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!

Trump Just Started the Debt Spiral [video]

https://www.youtube.com/watch?v=g1kgEiP1v10
1•Bender•1m ago•0 comments

Hello Python 3.15, goodbye 3.10, and now I can use 3.11

https://simonwillison.net/2026/Oct/12/python-3-15/
1•elffjs•1m ago•0 comments

Checking agent actions before they run

https://rebuno.io/blog/agent-guardrails
1•nnww•2m ago•0 comments

Vellum: A web engine in Minecraft for rendering modded GUIs

https://github.com/maxleiter/vellum
1•MaxLeiter•3m ago•0 comments

AI Is a Tool. Using It Well Takes Skill.

https://yyhh.org/blog/2026/10/ai-is-a-tool/
2•layer8•3m ago•0 comments

Phreak.ing – Internet Phone Switch

https://phreak.ing/
3•rickcarlino•4m ago•0 comments

Show HN: Turn spoken thoughts into system design diagrams

https://github.com/triggeredcode/lucid
1•triggered_code•4m ago•0 comments

Hit 10 wks and 1k players with a vibecoded MMO

https://www.eldermyr.com/play
1•tipsy_pipsqueak•5m ago•1 comments

Brachistochrone Curve

https://en.wikipedia.org/wiki/Brachistochrone_curve
1•EndXA•5m ago•0 comments

Name Shame

https://tedium.co/2026/10/09/nominative-antideterminism-history/
1•aray07•5m ago•0 comments

Show HN: News.txt – world news by region, from each region's own outlets

https://news.freestuffsthat.work
1•dd_xplore•7m ago•0 comments

Skyloons; Pop the Balloons

https://play.google.com/store/apps/details?id=com.maniar.balloonpopquest&hl=en_US
2•connectmaniar•7m ago•0 comments

The Screaming Toaster

https://knell.digital/the-screaming-toaster/
1•ceroxylon•8m ago•1 comments

Intel D270 GPU AI Accelerator–Up to 480 GB LPDDR5X

https://www.intel.com/content/www/us/en/products/details/discrete-gpus/data-center-gpu/d-series.html
2•hurricanepootis•8m ago•1 comments

The Enshittification of Mathematics [pdf]

https://link.springer.com/epdf/10.1007/s00283-026-10566-7?sharing_token=f2pTArS79Vtd93ZQiz7V-ve4R...
3•matteodelabre•9m ago•0 comments

AI Is Making Us Dumber – Unless We Fight Back

https://baromae.blogspot.com/2026/10/can-ai-really-make-us-smarter-what_01666148514.html
3•odilelof•9m ago•0 comments

The Fish Farming Industry's Dirty Secrets

https://www.nytimes.com/interactive/2026/10/08/magazine/farm-raised-fish-aquaculture-overfishing....
2•mikhael•9m ago•0 comments

Realtek UDPServer Exposure

https://app.getnetchek.com/security/exposed-realtek-udpserver
2•thegodhand•17m ago•0 comments

Wordfence Argus Discovers Critical Vulnerability in Ghostscript

https://www.wordfence.com/blog/2026/10/wordfence-argus-discovers-critical-vulnerability-in-ghosts...
1•wondersky•17m ago•0 comments

Show HN: 20 Questions with Jev

https://thesecretsproject.com/20-questions
1•frabjoused•19m ago•0 comments

Linux 7.3-Rc7 Released with Linux 7.3 Hopefully Out Next Weekend

https://www.phoronix.com/news/Linux-7.3-rc7-Released
1•Bender•23m ago•0 comments

Cristiano Ronaldo's Road to 1,000 Goals

https://theroadto1000goals.com/
1•Betelbuddy•23m ago•0 comments

3D Fan Remake of Z

https://github.com/playopenz/OpenZ
1•fenio•25m ago•0 comments

Teaching a Door to Say No

https://2389.ai/research/writing/door-agent/
1•rafaelc•26m ago•1 comments

Claim-Offence Theory by Sk Wasim

https://archive.org/details/claim-offence-theory-sk-wasim
1•skwasimin•27m ago•1 comments

Time Till Open Source Alternative is now zero

https://staltz.com/time-till-open-source-alternative-is-zero
1•j_maffe•29m ago•0 comments

Show HN: Vibecheck – merge gate that checks you understand your AI-written code

https://github.com/bhurghundii/vibecheck.dev
1•sailorganymede•30m ago•0 comments

General Magic: Oral History of the Influential Tech Company (2018)

https://nymag.com/intelligencer/2018/08/general-magic-oral-history-of-the-influential-tech-compan...
1•mpweiher•30m ago•0 comments

Who Is Vfmaddrnd231pd?

https://purplesyringa.moe/blog/who-is-vfmaddrnd231pd/
1•pngmangi•31m ago•0 comments

The Throw from Eden: How Myth and Gödel Prove the Same Limit

https://felixschaller.substack.com/p/the-throw-from-eden-how-myth-and
1•freshNfunky•32m ago•0 comments