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!

German federal Microsoft spending hit €481M in 2025

https://www.heise.de/news/Bund-in-der-Abhaengigkeitsfalle-Kostenexplosion-bei-Microsoft-Lizenzen-...
1•logickkk1•38s ago•0 comments

A green unit test, a red CI, and a chown that raced a zsh lock file

https://inferhaven.com/blog/2026-06-18-building-haven-bench-in-the-open/
1•inferhaven•1m ago•0 comments

Colorado River's Dire Water Picture Expected to Hit Green River Ranchers Hard

https://cowboystatedaily.com/2026/06/23/colorado-rivers-dire-water-picture-expected-to-hit-green-...
2•Bender•1m ago•0 comments

Luck Surface Area

https://blog.danwald.me/luck-surface-area
3•danwald•3m ago•0 comments

Demesne, Zanzibar-style authz compiled to RLS

https://github.com/foir-io/demesne
2•mattblr•3m ago•0 comments

Medical diagnosis AIs can be tricked into telling whose data trained them

https://www.theregister.com/ai-and-ml/2026/06/24/medical-diagnosis-ais-can-be-tricked-into-tellin...
3•Bender•4m ago•0 comments

Show HN: Hacker News Job Salary Trends

https://hacker-job.com/trends
2•timqian•4m ago•0 comments

Mythos discovers 'Squidbleed,' a memory leak thats gone undetected since Clinton

https://www.theregister.com/security/2026/06/23/mythos-discovers-squidbleed-a-memory-leak-thats-g...
2•Bender•5m ago•0 comments

GNU C/C++ Vector Extensions

https://gcc.gnu.org/onlinedocs/gcc/Vector-Extensions.html
2•pillmillipedes•6m ago•0 comments

Open Robotics Is Maturing

https://digitalcxo.com/article/open-robotics-is-maturing/
2•CrankyBear•6m ago•0 comments

Attaky – The ultimate modular ecosystem for everyone

https://attaky.com/
2•LorenDB•7m ago•0 comments

Drastically Reduce Stress with a Work Shutdown Ritual – Cal Newport

https://calnewport.com/drastically-reduce-stress-with-a-work-shutdown-ritual/
2•ankitg12•9m ago•0 comments

The AI Data Centre Legal Case That Could Eradicate Civil Rights

https://read.misalignedmag.com/the-ai-data-centre-legal-case-that-could-eradicate-civil-rights-c2...
2•lcubw•10m ago•0 comments

Why big AI labs are hiring so many philosophers

https://www.economist.com/science-and-technology/2026/06/24/why-big-ai-labs-are-hiring-so-many-ph...
4•Brajeshwar•10m ago•0 comments

What does your eval measure?

https://shash42.substack.com/p/what-does-your-benchmark-actually
2•shash42•11m ago•0 comments

Show HN: Tuip – CLI / TUI for checking SaaS vendors' statuses

https://github.com/ikan31/tuip
2•ahme•12m ago•0 comments

Loops Burn Tokens

https://www.wheresyoured.at/cargo-culture/
3•felixdoerp•13m ago•0 comments

Show HN: Gifhub, bug hunter that shows instead of tells

https://github.com/press-pass/gifhub
2•spmartin823•14m ago•0 comments

The Bargain. Or what America forgot and Europe still keeps

https://idle.news/blog/the-forgotten-bargain/
3•umilio•14m ago•0 comments

The Xteink X4 E-Ink Reader

https://blog.omgmog.net/post/xteink-x4-e-ink-reader/
3•felixdoerp•15m ago•0 comments

Sentrup – AI Customer Support Platform

2•sentrup•17m ago•0 comments

Exploiting vulnerabilities in Johnson and Johnson web apps

https://eaton-works.com/2026/06/24/jnj-webapp-hacks/
3•EatonZ•17m ago•0 comments

Show HN: Cutlistor – Instant cut list optimizer with 3D Model and PDF Import

https://www.cutlistor.com
2•xiyan•17m ago•0 comments

I crawled 827 employers' career sites to measure ATS market share

https://resumegeni.com/research/ats-market-share-2026
3•blakec•18m ago•0 comments

Germany's Kai Havertz: 'I make runs that look pointless but I'm creating space'

https://www.theguardian.com/football/2026/jun/24/kai-havertz-germany-world-cup-2026-interview
2•bookofjoe•19m ago•0 comments

Ask HN: How much coding should beginners learn in the AI era?

4•JohnDSDev•19m ago•0 comments

Show HN: Empowering codex/Claude Code with Aswath Damodaran valuation thinking

https://github.com/stockvaluation-io/stockvaluation_io
2•pradeep1177•19m ago•0 comments

Building a LoFi Radio

https://cieslak.dev/en/blog/2026-06-24-lofi/
2•cieslak•22m ago•1 comments

Show HN: Metaspec: The DpANS3R Common Lisp Spec in S-Expr and HTML Format

https://metaspec.dev/#
3•dlowe-net•22m ago•0 comments

Show HN: Browser based tool for programming ch57x macro-pads

https://pollrobots.com/cheese-tax.html
2•pacaro•24m ago•0 comments