frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

1•snyy•12mo ago
Hi HN,

We’re Chonkie (https://github.com/chonkie-inc/chonkie) — we build open source tools that help split documents into meaningful chunks for use with AI models.

When you use LLMs over large documents or codebases, you often need to break them into smaller parts to fit the model’s context window. Our chunkers do this in a smart way: they preserve structure and meaning, so only the most relevant pieces are passed into the model. This reduces hallucinations, avoids confusion, and improves performance and accuracy.

Today we’re launching our Code Chunker — a fast, structure-aware way to break down source code into high-quality, token-aware chunks.

How it works:

(See the code: https://github.com/chonkie-inc/chonkie/blob/main/src/chonkie...)

Code Chunker uses tree-sitter (https://tree-sitter.github.io/tree-sitter/) to parse your code into an abstract syntax tree (AST). It then recursively merges and groups nodes in a way that respects both code structure and token limits.

It supports all languages that tree-sitter supports, and is designed to preserve formatting and semantics. Large functions or class definitions won’t be split in the middle of a block — instead, we dive recursively into the AST to produce clean, coherent chunks that fit your configured token budget.

What it’s useful for:

  - Embedding-based code search

  - RAG (retrieval-augmented generation) over codebases

  - Long-context analysis of code

  - Preparing repos for fine-tuning or pretraining
Try it out:

  - Open source package: https://docs.chonkie.ai/chunkers/code-chunker

  - Hosted playground (free with account): https://cloud.chonkie.ai
Happy Chonking!

HackerFork – Surfaces HN posts that never make the front page

https://hackerfork.com
1•saadn92•38s ago•1 comments

Sys. Review: The Impact of Covid-19 Vaccination on Myocarditis Risk and Recovery

https://www.mdpi.com/2039-7283/16/4/77
1•cratermoon•1m ago•0 comments

Netflix's AI deal puts the global VFX workforce at risk

https://restofworld.org/2026/netflix-interpositive-vfx-ai-automation/
1•jackyli02•3m ago•0 comments

FPGA-based tiled matrix multiplication accelerator for self-attention

https://arxiv.org/abs/2503.16731
2•sha_rad•4m ago•0 comments

Show HN: Aide – A customizable Android assistant (voice, choose your provider)

https://aideassistant.com/
1•yincrash•7m ago•0 comments

Omacon keynote talk with DHH [video]

https://www.youtube.com/watch?v=sMxskir7Rug
1•nodesocket•10m ago•0 comments

Ask HN: Why aren't companies with unlimited AI tokens not crushing it?

1•taariqlewis•12m ago•0 comments

Found in Peat

https://old.reddit.com/r/fossilid/comments/1sruf2q/found_in_peat/
2•gehwartzen•14m ago•0 comments

Show HN: Open Chronicle – Local Screen Memory for Claude Code and Codex CLI

https://github.com/Screenata/open-chronicle
1•taoh•14m ago•1 comments

Show HN: GBrain, an AI tool for diagnosis and therapy for neurodivergents

https://www.neuroplusgbrain.net/
1•FDX2018•16m ago•0 comments

Wired: They Built a Legendary Privacy Tool. Now They're Sworn Enemies

https://www.wired.com/story/they-built-privacy-tool-grapheneos-now-sworn-enemies/
1•joemazerino•17m ago•0 comments

Show HN: Agent harness that turns errors into shared genes

https://github.com/Prismer-AI/PrismerCloud
1•PrismerAI•17m ago•0 comments

The AI engineering stack we built internally – on the platform we ship

https://blog.cloudflare.com/internal-ai-engineering-stack/
1•geoffbp•24m ago•0 comments

Humpback whales are forming super-groups

https://www.bbc.com/future/article/20260416-the-humpback-super-groups-swarming-the-seas
1•andsoitis•24m ago•0 comments

Silicon Theogeny

https://garden.theory-a.com/philosophy/silicon-theogony
1•notShabu•27m ago•0 comments

Is Claude Code going to cost $100/month? Probably not—it’s all very confusing

https://simonwillison.net/2026/Apr/22/claude-code-confusion/
1•jbegley•27m ago•1 comments

FBI looks into dead or missing scientists tied to NASA, Blue Origin, SpaceX

https://fortune.com/2026/04/21/scientists-disappear-die-nasa-space-blue-origin-spacex/
18•ineedasername•31m ago•1 comments

Angine de Poitrine – Interesting microtonal rock band [video]

https://www.youtube.com/watch?v=0Ssi-9wS1so
3•Uptrenda•37m ago•0 comments

Southern Poverty Law Center indicted for fraud, money laundering

https://www.politico.com/news/2026/04/21/southern-poverty-law-center-justice-department-investiga...
21•f38zf5vdt•41m ago•8 comments

Chernobyl and Fukushima show how radioactive materials move in the environment

https://theconversation.com/research-at-chernobyl-and-fukushima-shows-how-radioactive-materials-m...
2•defrost•42m ago•0 comments

Supreme Court wary of limiting federal regulators' power in a data privacy case

https://apnews.com/article/supreme-court-att-verizon-location-data-ce402d08a70c7fa9797c35a73e2935bb
1•1vuio0pswjnm7•45m ago•0 comments

Tests Are Dead, Meticulous Is Here

https://www.meticulous.ai
2•rmason•45m ago•0 comments

4o-aircraft-carrier whistleblower alive

1•America_One•50m ago•1 comments

Meta to track workers' clicks and keystrokes to train AI

https://www.bbc.co.uk/news/articles/cvglyklz49jo
1•mmarian•50m ago•1 comments

How Gen-Z AI Founders Are Merging Work and Life

https://www.inc.com/ben-sherry/gen-z-ai-founders-are-merging-work-and-life-in-these-3-ways/91239573
1•thoughtpeddler•53m ago•0 comments

Show HN: MemFactory: Unified Inference and Training Framework for Agent Memory

https://arxiv.org/abs/2603.29493
2•MemTensor•54m ago•0 comments

Ask HN: How to get motivation of side projects if you don't need the money?

1•101008•55m ago•1 comments

Composing a Search Engine

https://exa.ai/blog/composing-a-search-engine
1•gmays•55m ago•0 comments

Ascend – DevSecOps framework with AI-powered merge conflict sync

https://github.com/venkatapgummadi/ascend
1•venkatapgummadi•58m ago•1 comments

OpenAI reinvents Recall except everything is stored remotely

https://developers.openai.com/codex/memories/chronicle
11•pluc•58m ago•4 comments