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!

The Greatest Documentary You've Never Heard Of – Tie Xi Qu《铁西区》 by Wang Bing [video]

https://www.youtube.com/watch?v=jvki-LbGCIY
1•CharlesW•2m ago•0 comments

"Should be no trouble at all for a driver to understand."

https://unsung.aresluna.org/should-be-no-trouble-at-all-for-a-driver-to-understand/
1•CharlesW•5m ago•0 comments

Bluesky experienced sophisticated DDoS attack which intensified through April 16

https://bsky.app/profile/bsky.app/post/3mjnlu7smsk2w
3•ck2•6m ago•1 comments

Sandboxes and Worktrees: My Secure Agentic AI Setup in 2026

https://mikemcquaid.com/sandboxed-agent-worktrees-my-coding-and-ai-setup-in-2026/
1•wrxd•6m ago•0 comments

Analytics group: 40% of AI data center construction sites face possible delays

https://www.tomshardware.com/tech-industry/artificial-intelligence/analytics-group-signals-possib...
1•speckx•8m ago•0 comments

Clearwing – open-source Alternative to Anthropic Glasswing project

https://xcancel.com/QuixiAI/status/2044952124568527298
1•papascrubs•8m ago•0 comments

Moltbook, Gas Town and the Death of the Programmer Priest-Class

https://jchak.com/moltbook-gas-town-and-the-death-of-the-programmer-priest-class/
2•chakazula•8m ago•0 comments

Dome Systems – A system of control for AI agents

https://www.domesystems.ai/
1•madmax108•10m ago•0 comments

30 Years of "The Settlers 2": Veni, Vidi, Wusli

https://www.heise.de/en/background/30-Years-of-The-Settlers-2-Veni-Vidi-Wusli-11260484.html
1•doener•12m ago•0 comments

Stickers Against Germany

https://thediasporist.de/stickers-against-germany/
2•YeGoblynQueenne•12m ago•0 comments

Changes needed to deliver a transformation in biodiversity measurement

https://www.pnas.org/doi/10.1073/pnas.2519345123
2•PaulHoule•14m ago•0 comments

Reactionary Red-Lining of AI

https://www.chrbutler.com/reactionary-red-lining-of-ai
3•delaugust•14m ago•0 comments

Agent Wispr – Local dictation for terminals (CUDA, local model, cross-platform)

https://agentwispr.joshlehman.ca
1•JoshuaLehman•14m ago•0 comments

Show HN: How context engineering works, a runnable reference

https://github.com/outcomeops/context-engineering
2•linsys•15m ago•0 comments

As Agentic AI explodes, Amazon doubles down on MCP

https://thenewstack.io/amazon-aws-mcp-agentic/
3•Brajeshwar•15m ago•0 comments

Best practices for using Claude Opus 4.7 with Claude Code

https://claude.com/blog/best-practices-for-using-claude-opus-4-7-with-claude-code
3•MarlonPro•17m ago•0 comments

All 12 moonwalkers had "lunar hay fever" from dust smelling like gunpowder

https://www.esa.int/Science_Exploration/Human_and_Robotic_Exploration/The_toxic_side_of_the_Moon
2•cybermango•19m ago•0 comments

Dip 1053 – A Tale of Tuples

https://blog.dlang.org/2026/04/12/dip-1053-a-tale-of-tuples/
1•1980phipsi•19m ago•1 comments

SETI Home, but for AI

https://github.com/Agent-FM/agentfm-core
1•harshdoesdev•19m ago•1 comments

Fireside Friday

https://acoup.blog/2026/04/17/fireside-friday-april-17-2026/
1•Tomte•19m ago•0 comments

Century-Old Cleaning Chemical Linked to 500% Increased Risk of Parkinson's Desea

https://scitechdaily.com/century-old-cleaning-chemical-linked-to-500-increased-risk-of-parkinsons...
1•myth_drannon•20m ago•0 comments

FAA Scraps Civil and Criminal Penalties for Flying Drones Near ICE Vehicles

https://www.404media.co/faa-scraps-civil-and-criminal-penalties-for-flying-drones-near-ice-vehicles/
3•pavel_lishin•24m ago•1 comments

FireImg, A new tool for streamlining image generation

https://www.fireimg.com/demo/
1•mjnestor•25m ago•0 comments

Linux? In My Web Browser? – How to Bring Up the Linux Kernel

https://werwolv.net/posts/linux_in_my_browser/
1•WerWolv•26m ago•0 comments

Good Software Doesn't Double Check

https://www.boristhebrave.com/2026/04/17/good-software-doesnt-double-check/
1•speckx•28m ago•0 comments

Juggling by Numbers

https://www.numberphile.com/videos/juggling-by-numbers
1•ColinWright•29m ago•1 comments

A Visual History of Programming Languages

https://sheets.works/data-viz/every-language
2•birdculture•30m ago•0 comments

NeoGeo AES+: SNK announces reissue of retro console without emulation

https://www.heise.de/en/news/NeoGeo-AES-SNK-announces-reissue-of-retro-console-without-emulation-...
5•doener•31m ago•0 comments

The Case for Fixing Everything

https://www.technologyreview.com/2026/04/17/1135408/book-review-stewart-brand-fixing-everything-m...
2•Brajeshwar•31m ago•0 comments

Charts of the Week: Are Tech Stocks Cheap?

https://www.a16z.news/p/charts-of-the-week-is-tech-cheap
1•7777777phil•32m ago•0 comments