frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

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

A Tour of Oodi

https://blinry.org/oodi/
1•zdw•56s ago•0 comments

Margin – Open annotation layer for the internet

https://margin.at/
1•embedding-shape•1m ago•0 comments

I Hired a Robot and Made Him Journal

https://www.wysr.xyz/p/i-hired-a-robot-and-made-him-journal
1•martialg•2m ago•0 comments

Show HN: AI Brief – daily AI news clustered by topic (aibrief.fyi)

https://aibrief.fyi/
1•vkr2020•2m ago•0 comments

Record-Breaking Drone Show [video]

https://www.youtube.com/watch?v=i1ho1-JBBmw
1•gnabgib•4m ago•0 comments

OpenAI Ad Settings

https://chatgpt.com/#settings/Advertising
1•BiraIgnacio•4m ago•0 comments

Israel got away with targeting healthcare in Gaza. Now doing it in Lebanon too

https://www.theguardian.com/commentisfree/2026/apr/08/lebanon-gaza-healthcare-targeting-israeli-a...
3•hebelehubele•5m ago•0 comments

AI, Unemployment and Work

https://marginalrevolution.com/marginalrevolution/2026/04/ai-unemployment-and-work.html
2•speckx•5m ago•0 comments

iCloud-Linux

https://github.com/IsmaeelAkram/icloud-linux
1•Cider9986•6m ago•0 comments

The Forest Service–A Force Across Rural America–"Reorganizes" Under Trump

https://www.newyorker.com/news/the-lede/the-forest-service-a-force-across-rural-america-reorganiz...
2•gdubs•6m ago•0 comments

Will Your Job Exist in Five Years: Are you coal, or are you a horse?

https://www.theatlantic.com/ideas/2026/03/ai-job-loss-jevons-paradox/686520/
2•zdw•7m ago•0 comments

Trump, the Pirate of Hormuz

https://www.gregpalast.com/trump-the-pirate-of-hormuz/
2•doctor_radium•7m ago•0 comments

Maple adds projects, shared context, and pins to private AI

https://blog.trymaple.ai/organize-maple-with-projects-and-pinned-chats/
1•markskram•8m ago•1 comments

An Interview with Pat Gelsinger

https://morethanmoore.substack.com/p/an-interview-with-pat-gelsinger-2026
1•zdw•9m ago•0 comments

Number Usage in Passwords: Take Two

https://isc.sans.edu/diary/32866
1•speckx•9m ago•0 comments

Explanation for why we don't see two-foot-long dragonflies anymore fails

https://arstechnica.com/science/2026/03/leading-explanation-for-ancient-giant-flying-insects-gets...
1•mhb•11m ago•0 comments

Microsoft teases a big Windows Terminal redesign and visual upgrade

https://www.neowin.net/news/microsoft-teases-a-big-windows-terminal-redesign-and-visual-upgrade/
1•Brajeshwar•12m ago•0 comments

Working with agents doesn't feel like flow

https://dehora.net/journal/2026/working-with-agents-doesnt-feel-like-flow
2•pavel_lishin•14m ago•0 comments

John Deere agrees $99M right-to-repair settlement

https://www.theregister.com/2026/04/09/john_deere_repair_settlement/
3•speckx•15m ago•0 comments

The golden rules of agent-first product engineering

https://newsletter.posthog.com/p/the-golden-rules-of-agent-first-product
3•vinhnx•16m ago•0 comments

All of the String Types

https://lambdalemon.gay/posts/string-types
1•vinhnx•17m ago•0 comments

Bash Owns the Loop

https://www.nibzard.com/wrappers/
1•vinhnx•18m ago•0 comments

Show HN: Control your X/Twitter feed using a small on-device LLM

https://imbue.com/product/bouncer/
10•kanjun•18m ago•0 comments

We cut Codex's input token cost by 49.5% with a compression gateway (benchmark)

https://www.edgee.ai/blog/posts/stop-paying-codex-to-re-read-context
4•kokakiwi•18m ago•1 comments

KYB Engine at 3 Quantization Levels: Accuracy Held. Cost Dropped 6x

https://walsenburgtech.com/blog/quantization-benchmark-kyb-verification
1•cowartc•19m ago•0 comments

Meshcore Pt II. Setting Up Repeaters

https://www.redwoodrewrite.com/meshcore-pt-ii-setting-up-repeaters/
1•achierius•19m ago•0 comments

Government approves UK's largest solar farm

https://www.bbc.com/news/articles/cd0r4mxevdvo
1•mooreds•20m ago•0 comments

EFF Is Leaving X

https://www.eff.org/deeplinks/2026/04/eff-leaving-x
31•gregsadetsky•20m ago•6 comments

Banning New Foreign Routers Mistargets Products to Fix Real Problem

https://www.eff.org/deeplinks/2026/04/banning-new-foreign-routers-mistargets-products-fix-real-pr...
1•hn_acker•21m ago•0 comments

How to Delete Yourself from the Internet – By an Attorney

https://thechicagolandlawyer.com/delete-me/
1•abdillalaw•22m ago•1 comments