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!

Hyperbola declines FSF stance regarding machine learning (2024)

https://www.hyperbola.info/news/hyperbola-declines-fsf-stance-regarding-machine-learning/
1•keyle•30s ago•0 comments

Meta loses bid to dismiss states' claims Facebook, Instagram addict children

https://www.reuters.com/legal/government/meta-loses-bid-dismiss-us-states-claims-that-facebook-in...
1•1vuio0pswjnm7•3m ago•0 comments

Persona Fails on Vertical IDs

https://mketab.org/blog/broken_persona/
1•wps•4m ago•0 comments

Study reveals what people see when they read lips

https://news.ku.edu/news/article/study-reveals-what-people-really-see-when-they-read-lips
1•giuliomagnifico•6m ago•0 comments

Matrix Orthogonalization Improves Memory in Recurrent Models

https://ayushtambde.com/blog/matrix-orthogonalization-improves-memory-in-recurrent-models/
3•at2005•13m ago•0 comments

AI systems out-persuade expert humans

https://arxiv.org/abs/2606.16475
2•heyimada•15m ago•0 comments

The first early human eggs from stem cells

https://www.conception.bio/science-and-updates/the-first-early-human-eggs-from-stem-cells
5•dsr12•17m ago•2 comments

The Job archetypes of the future, according to Claude Code's creator

https://www.businessinsider.com/job-archetypes-ai-claude-codes-boris-cherny-2026-6
2•backlit4034•18m ago•0 comments

From Slop to Determinism – Shifting the Narrative Space

2•pyeri•20m ago•0 comments

The coach-horn: what to blow and how to blow it (1907)

https://www.gutenberg.org/ebooks/78978
2•petethomas•20m ago•0 comments

Investigating Linux Graphics

https://roscidus.com/blog/blog/2025/06/24/graphics/
3•signa11•24m ago•0 comments

We pay engineers to cut our infra bill

https://rootly.com/blog/we-pay-engineers-to-cut-our-infra-bill
3•backlit4034•24m ago•0 comments

RFC 9980 Post-Quantum Cryptography in OpenPGP

https://www.rfc-editor.org/info/rfc9980/
2•ognyankulev•25m ago•0 comments

Anthropic Is Hitting a Wall

https://www.vincentschmalbach.com/anthropic-is-hitting-a-wall/
3•vincent_s•26m ago•0 comments

What's new in Claude Sonnet 5

https://simonwillison.net/2026/Jun/30/claude-sonnet-5/
5•ankitg12•29m ago•0 comments

Indigenous leaders criticize claim that Ontario evacuees burdening Niagara Falls

https://www.theglobeandmail.com/canada/article-kashechewan-first-nation-evacuees-niagara-falls/
2•petethomas•33m ago•0 comments

GSApp2AppImage: Bundle a GNUStep app as a standalone AppImage

https://lists.gnu.org/archive/html/discuss-gnustep/2026-06/msg00000.html
2•tedge•34m ago•1 comments

Anthropic says US lifts export ban on Fable 5

https://www.bbc.com/news/articles/cdr42623e1do
4•tobr•39m ago•1 comments

ESA declares private Minecraft servers 'illegal' in StopKillingGames hearing

https://www.pcgamer.com/gaming-industry/esa-bafflingly-declares-private-minecraft-servers-illegal...
3•N_Lens•39m ago•0 comments

The Supreme Court just worsened the Democrats's fundraising

https://www.politico.com/news/2026/06/30/the-supreme-court-just-made-the-dncs-fundraising-woes-a-...
2•Alien1Being•42m ago•0 comments

Commerce Department gives green light for Anthropic to bring back Fable 5

https://www.nbcnews.com/business/business-news/commerce-department-gives-green-light-anthropic-br...
3•rw2•45m ago•1 comments

Show HN: The Sword of Ghix – a retro game made by a 13 yo with AI Assisted tools

https://paulinatorrr.itch.io/sword-of-ghix-chapter-1
3•fredliu•46m ago•1 comments

Google sunsets Tenor API, breaking GIFs in Discord and X

https://aiweekly.co/alerts/google-sunsets-tenor-api-breaking-gifs-in-discord-and-x
2•Gaishan•48m ago•2 comments

GovScape lets you easily search government documents

https://www.washington.edu/news/2026/06/24/govscape-lets-you-easily-search-millions-of-government...
3•gnabgib•51m ago•0 comments

Fable 5 up to 50% of weekly usage limits through July 7

https://twitter.com/theo/status/2072173365318840573
3•bentaber•52m ago•2 comments

Otsuka posts phase 3B ADHD trial win ahead of looming FDA approval decision

https://www.fiercebiotech.com/biotech/otsuka-posts-phase-3b-adhd-trial-win-ahead-looming-fda-appr...
2•rguiscard•53m ago•0 comments

Underwater Suit-Wearing Cyborg Insect Capable of Hours-Long Divingl

https://www.nature.com/articles/s41467-026-74235-1
3•UltraSane•54m ago•2 comments

U.S. murder rate approaches a record low

https://www.npr.org/2026/06/30/nx-s1-5866810/us-murder-rate-record-low-crime-homicide
2•toomuchtodo•56m ago•0 comments

Claude Fable 5 available globally tomorrow

https://twitter.com/anthropicai/status/2072163884430229756
9•jitl•1h ago•1 comments

Ask HN: If governments keep restricting frontier AI, what happens next?

2•akashwadhwani35•1h ago•1 comments