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!

Beyond Context Windows: Evaluating Long-Term Memory for AI Agents

https://twitter.com/AgentMemoryL/status/2101312784688726331
1•IreneAI•5m ago•0 comments

A Summer of AI Optimization

https://lemire.me/blog/2026/09/22/a-summer-of-ai-optimization/
1•chmaynard•8m ago•0 comments

Be the first human to review your own code

https://abhinavr.me/posts/be-the-first-human-to-review-your-own-code/
1•avr5500•9m ago•0 comments

AMD has now officially joined the trillion-dollar club

https://companiesmarketcap.com/amd/marketcap/
2•AbuAssar•19m ago•1 comments

Axon Training Pod (ATP) VR for training police officers

https://www.axon.com/products/axon-training-pod
2•nephihaha•21m ago•0 comments

GeoRisk Trace – An evidence-gated agent that abstains on unsupported risk paths

https://github.com/ViviLoveAI/GeoRiskAgent
1•ViviLoveAI•21m ago•0 comments

When Pixels Collide – The Story of Reddit's Place (2017)

https://web.archive.org/web/20170409173246/http://sudoscript.com/reddit-place/
1•pmlnr•22m ago•0 comments

Speechify for Cartesia Users

https://chromewebstore.google.com/detail/lisen-free-read-aloud-wit/jjglbebakkebkafjilbfnejmgpdphbhp
1•theaugustin•23m ago•0 comments

Windows Exploitation Techniques: Dangling COM Object Registrations

https://projectzero.google/2026/09/windows-dangling-com.html
1•mfrw•24m ago•0 comments

What you can build with TypeSafe AI Jev

https://vercel.com/i/jev-use-cases
1•flashbrew•29m ago•0 comments

Deploy Drunk

https://korshakov.com/posts/deploy-drunk
1•denysvitali•30m ago•0 comments

Genesis – The Bible verse that far-right Americans misinterpret to defend Israel

https://www.trtworld.com/article/5081f8ade0cf
3•timeoperator•31m ago•0 comments

Keep Using Your Intel Mac in 2025?

https://aslihan.live/posts/why-intel-mac-in2025/
2•aslihana•33m ago•2 comments

AMD briefly joins the $1T club

https://www.theregister.com/systems/2026/09/21/perpetual-underdog-amd-nips-at-nvidias-heels-as-it...
3•mdp2021•36m ago•0 comments

Can gzip be a language model?

https://nathan.rs/posts/gzip-lm/
1•networked•37m ago•0 comments

Daily Geography Adventures

https://maptap.gg/
1•yitchelle•39m ago•0 comments

Mirror Node Reconnaissance

https://sgaillabs.com
1•sgaillabs•42m ago•0 comments

How AI Creates a Capability Mirage

https://sloanreview.mit.edu/article/how-ai-creates-a-capability-mirage/
1•ventana•42m ago•1 comments

PyTorch Written in C

https://github.com/thevoxium/bare-lm
1•docuru•43m ago•0 comments

Maki, the efficient coder

https://maki.sh/
1•abc42•44m ago•1 comments

Orchestrat

https://orchestrat.dev
1•armanghev•47m ago•0 comments

A TypeScript Server Just Outran Rust's Hyper

https://geastack.com/blog-typescript-server-outran-hyper
1•k3030•50m ago•0 comments

Rust code faster than SOTA libraries by asking agents to make the code faster

https://minimaxir.com/2026/09/agentic-iteration/
2•sdoering•53m ago•0 comments

Pedagogy in the Times of AI [video]

https://www.youtube.com/watch?v=N2a1J0UPeL4
1•tarunvelli•54m ago•0 comments

Firmware Freedom

https://playtaurus.com/blog/firmware-freedom
9•arbayi•56m ago•3 comments

Lex Friedman Brings Back Strategery

https://daringfireball.net/linked/2026/09/21/strategery-friedman
1•Tomte•1h ago•0 comments

How HN: ScribeToAny – Free Audio and Video to Text Transcription

https://scribetoany.com/
1•hypercube67•1h ago•0 comments

Flomo: A two-person notes app from China that bought a product from ByteDance

https://www.sinosphere.app/p/flomo-two-people-one-text-box-and
1•Nyloc1•1h ago•0 comments

Why AI resembles a charismatic religious leader

https://theconversation.com/why-ai-resembles-a-charismatic-religious-leader-291831
7•billybuckwheat•1h ago•1 comments

I made ByeBlocked: hide blocked users

https://github.com/8ug8ird/ByeBlocked
1•8ug8irdchoom•1h ago•0 comments