frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

1•snyy•1y 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!

What most histories get wrong about MUMPS's first standard

https://github.com/rochus-keller/MUMPS/blob/main/docs/First_MUMPS_Standard_Article.md
1•Rochus•2m ago•0 comments

Self-Improving Agent Systems: A Unified View

https://yigengjiang.github.io/posts/self_improving_agent_systems/
1•ygx•3m ago•0 comments

PC Emulator PCem Makes It to WebAssembly

https://github.com/va3jfl/PCem-WebAssembly
1•JoelLagace•16m ago•0 comments

mRNA vaccine targeting tick proteins induces tick resistance in guinea pigs

https://medicine.yale.edu/news-article/yale-researchers-advance-work-in-diagnosing-and-preventing...
1•DogOfTheGaps•19m ago•0 comments

Pg_re2: 9x faster regular expressions in Postgres

1•saisrirampur•21m ago•1 comments

Australian Consumer advocate calls for mandatory domestic mobile roaming

https://www.abc.net.au/news/2026-07-13/calls-for-mandatory-domestic-mobile-roaming-intensify/1068...
3•ggm•24m ago•0 comments

The Battle of Carrhae (53B.C.E.) [video[

https://www.youtube.com/watch?v=bR7VDPUj5AE
1•JumpCrisscross•28m ago•0 comments

Is It Safe to Eat Pink Pork? Here's What You Need to Know

https://www.southernliving.com/is-it-ok-to-eat-pink-pork-11777418
1•mooreds•28m ago•0 comments

DeployKit: Agent-native deployment tooling for FDEs

https://cephos.substack.com/p/deploykit-agent-native-deployment
3•ism-cep•28m ago•0 comments

Is China's High-Quality Investment Output Economically Viable?

https://carnegieendowment.org/china-financial-markets/2026/04/is-chinas-high-quality-investment-o...
1•mooreds•29m ago•0 comments

Modernizing Property Tax Assessments in Allegheny County

https://www.prohousingpgh.org/blog/new-report-modernizing-property-tax-assessments-in-allegheny-c...
4•mooreds•29m ago•0 comments

Boinc-Like Crunching Numbers

https://primecrunch.com/
1•sudo_cowsay•30m ago•1 comments

People Can't Identify AI Poetry, but Enjoy It Less When Told It's by an AI

https://academic.oup.com/dsh/advance-article/doi/10.1093/llc/fqag067/8694305?login=false
1•willmarch•31m ago•0 comments

Medical examiner preliminary findings in Sen. Lindsey Graham's cause of death [video]

https://www.youtube.com/watch?v=u7-YKC7A_mA
2•Bender•32m ago•1 comments

Personas agents built from engagement data, scored on predictions

https://github.com/noashavit/noas-persona-loop
1•noashavit•33m ago•1 comments

Hyper-Local, Hyper-Cloud

https://www.proofofconcept.pub/p/hyper-local-hyper-cloud
1•herbertl•33m ago•0 comments

Less is more, more or less

https://jakub.kr/writing/less-is-more
1•herbertl•34m ago•0 comments

Putting a thrift store's inventory online with a $2 microcontroller

https://snapy.pro/blog/putting-a-thrift-stores-inventory-online
3•sej8•38m ago•2 comments

Show HN: Use After Effects with Claude Code, Cursor and Antigravity

https://github.com/Arman-Luthra/aftr
5•armanluthra_•41m ago•2 comments

Tinier – Image compress, convert and AI-upscale, 100% in the browser

https://tinier.app/
1•jonathanst•44m ago•0 comments

Temporarily removing the 5 hour usage limit restriction for all paid Codex plans

https://xcancel.com/thsottiaux/status/2076365965915467978#m
1•chiefstorm•50m ago•0 comments

Ask HN: Add flag for AI-generated articles

62•levkk•52m ago•21 comments

The Philosophical and Technical Legacy of Bernard Stiegler (2021)

https://dl.acm.org/doi/fullHtml/10.1145/3411763.3450385
1•nativeit•54m ago•0 comments

Show HN: Tactile, feel a trackpad tick over everything clickable on macOS

https://github.com/Mason363/Tactile
2•MasonChen•1h ago•1 comments

Hatching in 1PDG (2019)

https://www.patreon.com/watawatabou/posts/hatching-in-1pdg-31716880
1•andsoitis•1h ago•0 comments

Hyperblam – make music using Web Audio API only

https://hyperblam.how/
1•8bitsrule•1h ago•0 comments

Real Hack History Collection

https://archive.org/details/realhackinghistory
1•toomuchtodo•1h ago•1 comments

Want to own a real T. rex?

https://www.npr.org/2026/07/12/nx-s1-5890988/t-rex-gus-dinosaur-auction-sothebys-millions
1•defrost•1h ago•0 comments

Vibecoder Quin69 realizes programming is a real job [video]

https://old.reddit.com/r/LivestreamFail/comments/1uss5x8/vibecoder_quin69_realizes_programming_is...
2•ivewonyoung•1h ago•0 comments

Show HN: A 10-chapter synthesizer course in a single HTML file

https://grahampaasch.itch.io/oscillaedu
2•gpaasch•1h ago•0 comments