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!

How a Sony Veteran Is Overhauling the Company He Grew Up In

https://www.wsj.com/business/media/sony-ceo-hiroki-totoki-efc8923f
1•thm•35s ago•0 comments

The Mystery of Dark Oxygen

https://www.newyorker.com/science/elements/the-mystery-of-dark-oxygen
1•rbanffy•1m ago•0 comments

A U.S. Strategy to Prevent the Creation of Mirror Life

https://www.rand.org/pubs/research_reports/RRA4335-1.html
1•thunderbong•2m ago•0 comments

I built my own root DNS so I could stop renting names

https://anthony.dev.profullstack.com/blog/013-post.html
1•bradley_taunt•5m ago•0 comments

Woman claims stepfather used Grok to transform childhood photo into CSAM imagery

https://techcrunch.com/2026/08/15/woman-claims-her-stepfather-used-grok-to-transform-childhood-ph...
1•ilamont•7m ago•0 comments

Ranking Kickstarter Games I Backed but Never Finished or Ended Up Playing at All

https://blog.curiousquail.com/ranking-kickstarter-games-i-backed-but-never-finished-or-ended-up-p...
1•ajdude•8m ago•0 comments

A.I. Agents Are Taking Online Courses for Cheating Students

https://www.nytimes.com/2026/08/10/us/ai-cheating-online-degrees.html
1•bookofjoe•9m ago•1 comments

Show HN: 3D Graph of DeepSWE, via Three.js

https://icauro.com/toabundance
1•icauroboros•9m ago•1 comments

AGI will likely be silent

https://www.reddit.com/r/agi/s/sZECbecJVS
2•qikouki•9m ago•0 comments

WTF Are You Loading?

https://x-x.codes/posts/wtf-are-you-loading
1•alex_x•10m ago•0 comments

Comments in source code are inevitable

https://blog.moertel.com/posts/2026-08-14-comments-are-inevitable.html
1•chmaynard•14m ago•0 comments

Firefox for iOS now has a native adblocker

https://support.mozilla.org/en-US/kb/block-ads-firefox-ios
2•pentagrama•14m ago•0 comments

TinyGo in Zed

https://blog.oxplot.com/tinygo-in-zed/
2•oxplot•17m ago•3 comments

Testing Moonshot AI's Kimi K3 Inside Claude Code

https://philippdubach.com/posts/kimi-k3-inside-claude-code/
2•7777777phil•18m ago•0 comments

Show HN: A pre-execution guard that stops AI agents running destructive commands

https://github.com/vandith1/agent-guard
1•andevandith•18m ago•1 comments

Rustwright: Automate browsers with 70% less memory

https://github.com/Skyvern-AI/rustwright
1•suchintan•20m ago•0 comments

Is the industry ready for tokens-constrained work?

https://blog.alaindichiappari.dev/p/what-to-do-when-tokens-run-out
4•fullautomation•20m ago•0 comments

Banned Words List

https://pen.org/banned-words-list/
2•structuredPizza•22m ago•1 comments

US oil reserves are so low, the caverns holding them could be damaged

https://www.independent.co.uk/news/world/americas/us-politics/strategic-petroleum-reserve-trump-i...
1•NordStreamYacht•22m ago•0 comments

How Many Employees Does It Take to Reach $100M ARR Now?

https://nazr.com/blog/how-many-employees-100m-arr
1•chronicler•23m ago•0 comments

Claude: System Prompts

https://platform.claude.com/docs/en/release-notes/system-prompts
2•tosh•24m ago•0 comments

Open-source models on Dropstone feel noticeably more human than Claude

https://chat.dropstone.io
2•DarenWatson•24m ago•0 comments

Show HN: 3 Scrambled News Headlines

https://pzlgames.com/games/headlines/
6•pompomsheep•25m ago•2 comments

Show HN: Bench on Your Network

https://vbus.dev/
3•abu-matterize•30m ago•0 comments

Astronomers May Have Discovered a New Kind of Celestial Object: Black Hole Stars

https://www.smithsonianmag.com/smart-news/astronomers-peered-at-the-early-universe-and-may-have-d...
3•pseudolus•40m ago•1 comments

If you had trusted the settled science of the day here is how it would have gone

https://twitter.com/SamaHoole/status/2088832696155820150
3•delichon•40m ago•0 comments

Observers in Quantum Field Theory Cannot Be Fundamental Excitations

https://philpapers.org/rec/TANOIQ
2•danieltanfh95•42m ago•0 comments

AI-Prepped Paper Passed Peer Review. Now What?

https://cacm.acm.org/news/ai-prepped-paper-passed-peer-review-now-what/
3•pseudolus•42m ago•0 comments

X1 First Flight – Largest Electric Aircraft [video]

https://www.youtube.com/watch?v=fEudbAjschs
3•mpweiher•45m ago•0 comments

Show HN: Termique, an SSH client with E2E encrypted sync across desktop and iOS

https://termique.app/
3•masitings•48m ago•0 comments