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!

Quantum Computing for Software Engineers – Leanpub

https://leanpub.com/quantum-computing-for-software-engineers
1•rbanffy•1m ago•0 comments

Otium – an overnight job-application pipeline that runs on your Mac

https://github.com/HarshVirani914/otium
1•harshvirani914•3m ago•0 comments

JDF – An open JSON document format with a reader, CLI and PDF import

https://jdf.dev
1•latenightfounde•3m ago•0 comments

Modern JavaFX CSS theme collection with additional controls

https://github.com/mkpaz/atlantafx
1•saikatsg•4m ago•0 comments

Under 30 Hall of Shame

https://www.forbes.com/sites/alexyork/2026/11/29/30-under-30-hall-of-shame/
2•taubek•5m ago•0 comments

The Software-Defined Mirage and the Alien Worlds of Socket Cores and OS Kernels

https://www.nextplatform.com/control/2026/11/27/the-software-defined-mirage-and-the-alien-worlds-...
1•rbanffy•6m ago•0 comments

Diagramming app Scapple updated for Windows and macOS

https://www.literatureandlatte.com/scapple/overview
1•ooloncoloophid•6m ago•0 comments

The Water Mantle

https://medium.com/luminasticity/the-water-mantle-de1dd56527f7
1•bryanrasmussen•8m ago•0 comments

AWS Launches Quick Docs, Sheets and Slides

https://www.aboutamazon.com/news/aws/aws-quick-ai-for-work
5•onza•10m ago•0 comments

Offshoring: A Corporate War Story

https://michael-lewis.com/posts/offshoring-a-corporate-war-story/
1•m-i-l•10m ago•0 comments

Little Language Model: The Eliza Effect

https://neil-vass.com/little-language-model-the-eliza-effect/
1•matthewsinclair•11m ago•0 comments

Just Pick the Smarter Model

https://www.seangoedecke.com/just-pick-the-smarter-model/
1•8by3•16m ago•0 comments

Show HN: KeepSurviv /001 – 39KB offline SVG shelter guide and 26mm brick

https://keepsurviv.eu/001
1•mosidze•17m ago•0 comments

Textpattern 4.9.3

https://textpattern.com/weblog/textpattern-493-released-security-fixes-squashed-bugs-and-tweaks
1•petecooper•19m ago•0 comments

Wada-Wayfinder

https://github.com/cvanelteren/wada-wayfinder/tree/main
1•cvanelteren•24m ago•1 comments

Valkey vs. Redis benchmark: Valkey 9.2.0 against Redis 8.12.0 on the same work

https://thestacksentinel.com/lab/valkey-vs-redis/
1•nspkord•27m ago•1 comments

What Criminologists Don't Say, and Why

https://www.city-journal.org/article/what-criminologists-dont-say-and-why
3•barry-cotter•38m ago•0 comments

Let you agents run anything, just not on your machine

https://mcprush.com/dhruvil-codes/airgap-mcp
1•bydhruvil•43m ago•0 comments

Can a Model Edit Its Own Weights? A Preliminary Study

https://morethanamachine.com/posts/can-a-model-edit-its-own-weights/
1•reddmachine•47m ago•0 comments

Kavach AI – Offline, sub-16ms PR security scanner with 1-click patches

https://github.com/marketplace/actions/kavach-ai-security-inspector
1•rajrajak99•50m ago•0 comments

Nature: Has AI just cracked Internet encryption?

https://www.nature.com/articles/d41586-026-03875-6
4•dn2k•53m ago•0 comments

Geneva plans cocaine prescription trial for crack addicts

https://www.swissinfo.ch/eng/various/geneva-is-trialling-the-prescription-of-cocaine-for-crack-ad...
2•extasetoi12•55m ago•0 comments

A little robot for your website, with a brain of his own

https://github.com/erdemozkan/boxnib
1•serdemozkan•58m ago•0 comments

Early Signs Point to a Super El Niño Collapse and a Shift to La Niña in 2027

https://www.severe-weather.eu/long-range-2/super-el-nino-collapse-la-nina-forecast-2027-seasonal-...
2•xbmcuser•58m ago•0 comments

Ad Spend: The overlooked economics of what happens after the click

https://merlin.studio/updates/ad-spend-the-overlooked-economics-of-what-happens-after-the-click
1•merlinstudio•59m ago•0 comments

Show HN: Ventium: A Verilog Pentium Implementation That Runs Win95 and Quake

https://github.com/AL-255/ventium
2•al255•1h ago•0 comments

'Tremendous' sight of bird 106 miles from home

https://www.bbc.co.uk/news/articles/c54gnz3r8ml2o
4•zeristor•1h ago•0 comments

One Claude model retires 30 Nov; two Gemini IDs silently change models 1 Dec

https://deepsweep.ai/blog/ai-model-retirements-november-december-2026
1•brad-mcevilly•1h ago•1 comments

'I told it to never call me again': AI bots wreak havoc with restaurant bookings

https://www.theguardian.com/business/2026/nov/28/ai-bots-wreak-havoc-uk-restaurant-bookings-meta-...
5•vrganj•1h ago•1 comments

As many as 38,000 children taken from Ukraine to Russia during war, report finds

https://www.cnn.com/2026/11/29/politics/ukrainian-children-taken-russia-war
6•MilnerRoute•1h ago•0 comments