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!

The Sorting Machine

https://sorting-machine.pages.dev
1•StrageMusik•2m ago•0 comments

Ethereum deploys AI agents to hunt bugs, discovers libp2p vulnerability

https://thecoinheadlines.com/tech-and-ai/ethereum-deploys-ai-agents-to-hunt-bugs-discovers-libp2p...
1•ar_writer•6m ago•0 comments

Dozens rescued in southeastern Missouri as 1-in-1k-year rainfall

https://www.cnn.com/2026/07/10/weather/missouri-flood-rescues-campers-climate
1•Bender•8m ago•0 comments

Show HN: A free and open source session recording Chrome extension

3•mohsen1•9m ago•0 comments

The 4-Bitter Lesson: Balancing Stability and Performance in NVFP4 RL

https://humansand.ai/blog/nvfp4-rl
1•Areibman•10m ago•0 comments

Show HN: My lunch-break transformer in C became a book about my toddlers

https://github.com/carlovalenti/TRiP/blob/main/My_TRiP_through_AI-Chapter3.md
1•carlovalenti•10m ago•0 comments

FCC Approves Reflect Orbital's Space Mirror Satellite That Astronomers Hate

https://www.pcmag.com/news/fcc-approves-reflect-orbitals-giant-mirror-satellite-that-astronomers-...
2•healsdata•11m ago•0 comments

Millions told to stay indoors lung-penetrating toxins sweep across two US states

https://www.dailymail.com/sciencetech/article-15969309/toxic-air-arizona-colorado-wildfire-smoke....
1•Bender•11m ago•0 comments

Musk tells Tesla staff to switch to Grok, a model he admits is worse

https://electrek.co/2026/07/10/musk-tells-tesla-staff-switch-grok/
1•Bender•13m ago•0 comments

I run my agency's 10 AI agents from launchd, no n8n, 0 dependencies

https://github.com/Botfather90/digiton-agent-fleet
2•Brandon99pt•15m ago•0 comments

Shuji Nakamura, Nobel Prize winning inventor of Blue LED, working on fusion

https://www.cnn.com/science/shuji-nakamura-lit-up-the-world-and-now-wants-to-power-it-spc
3•osnium123•19m ago•0 comments

Looks good, feels bad? Review explains why modern design can strain your brain

https://www.stir.ac.uk/news/2026/july-2026-news/looks-good-feels-bad-stirling-led-review-explains...
2•hhs•21m ago•0 comments

Let us now praise famous shape rotators

https://hollisrobbinsanecdotal.substack.com/p/let-us-now-praise-famous-shape-rotators
1•HR01•23m ago•0 comments

AIsteels – Materials Intelligence Stack

https://www.aisteels.it/
1•DrNuke•23m ago•0 comments

A Brief History of the Crazy Old 7-Segment Display

https://hackaday.com/2026/07/09/a-brief-history-of-the-crazy-old-7-segment-display/
2•kristianp•25m ago•1 comments

WolfIP Doesn't Allocate

https://hackaday.com/2026/04/09/wolfip-doesnt-allocate/
1•kristianp•25m ago•0 comments

Plants get wearables to track their health

https://now.tufts.edu/2026/07/08/plants-get-wearables-track-their-health
2•hhs•27m ago•0 comments

Gesamtwerk // Metaphysische Systemtheorie Ein Zustandsraum-Modell

https://www.academia.edu/169875498/GESAMTWERK_METAPHYSISCHE_SYSTEMTHEORIE_Ein_Zustandsraum_Modell...
1•MMSI•28m ago•0 comments

Arizona toddler declared dead was found alive in the morgue

https://www.nbcnews.com/news/us-news/arizona-toddler-declared-dead-was-found-alive-morgue-rcna352853
3•type0•30m ago•0 comments

Gary Kildall's Death Investigation

https://dfarq.homeip.net/gary-kildalls-death-investigation/
3•rbanffy•30m ago•0 comments

Show HN: I scrape an $8.5M-ARR company run by AI agents and chart it live

https://maertspolsia.mzpx.ai
1•pro_methe5•31m ago•0 comments

Stop Making Threads

https://moonside.games/posts/stop-making-threads/
1•chnoblouch•34m ago•0 comments

China takes a page from SpaceX and recaptures first stage of rocket to reuse it

https://apnews.com/article/china-rocket-space-reuse-6d695fcad64a101dc3991c1bfa0e7357
1•tocs3•37m ago•0 comments

Tip

https://vivaldi.com/blog/tips/tip-830/
1•nahidai•38m ago•0 comments

Go Pop quiz: what time was it?

https://dave.cheney.net/2025/12/18/pop-quiz-what-time-was-it
1•kristianp•41m ago•0 comments

Einstein's relativity rules chemical bonds in heavy elements, new research shows

https://www.brown.edu/news/2026-07-09/chemical-bonds-relativity
13•hhs•44m ago•7 comments

China recovered its first reusable rocket and showed a new way to do it

https://arstechnica.com/space/2026/07/china-recovered-its-first-reusable-rocket-and-showed-a-new-...
2•sohkamyung•45m ago•0 comments

It's Now Imperative That You Copy That Floppy

https://hackaday.com/2026/07/07/its-now-imperative-that-you-copy-that-floppy/
1•rbanffy•45m ago•0 comments

OmFest Interest Form

https://docs.google.com/forms/d/e/1FAIpQLScyY9c5MowPFW6BmIitqaaF3T-ykM_d8eD2pq2XqwSt7N50zg/viewform
1•mooreds•48m ago•0 comments

Old Icons – All This

https://leancrew.com/all-this/2026/07/old-icons/
1•rbanffy•49m ago•0 comments