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!

Guest-to-Host KVM Escape (CVE-2026-99999) 9.3 · Critical

https://ubuntu.com/security/CVE-2026-99999
1•tommy_axle•1m ago•0 comments

Americans' Confidence in Food Safety Drops to New Low

https://news.gallup.com/poll/715430/americans-confidence-food-safety-drops-new-low.aspx
1•karakoram•1m ago•0 comments

Moravec's Paradox

https://en.wikipedia.org/wiki/Moravec%27s_paradox
1•enjoyyourlife•1m ago•0 comments

What AI is revealing about education, what education must confront about itself

https://vanessaandreotti.substack.com/p/in-the-digital-waters
1•laurex•1m ago•0 comments

Bar Raiser, OKRs, the Spotify Model and Agile: Companies Are Full of It

https://tej.as/blog/companies-are-full-of-it
1•akurilin•2m ago•0 comments

I built a *creator-owned* social network centered around data privacy

https://napharu.net/
1•nmckaskle•2m ago•1 comments

Signal says minister's changes to bill will not persuade it to stay in Canada

https://www.theglobeandmail.com/politics/article-messaging-service-signal-says-ministers-changes-...
2•softwaredoug•2m ago•0 comments

Beam 1.0 Intelligence, Performance and Price Analysis

https://artificialanalysis.ai/models/reflection-beam
1•theanonymousone•2m ago•0 comments

Fixing "AI" UIs

https://malerchen.com/fixing-ai-uis/
1•pokemyiout•3m ago•0 comments

Analogue Super Nt+ & Mega Sg+

https://www.analogue.co/
1•thdr•5m ago•0 comments

Show HN: PocketConsole – Run Claude Code on your own server from your iPhone

https://apps.apple.com/us/app/pocketconsole-code-from-phone/id6818196856
1•atlasx1z•6m ago•0 comments

US Rep Announces Congressional Legislation to Protect Video Game Ownership

https://ritchietorres.house.gov/posts/rep-torres-announces-power-to-the-players-act-legislation-t...
5•DeepLogin•7m ago•0 comments

A Re-Ranker as a Decision Model

1•ymattia•8m ago•1 comments

The Pink Elephant in Your Prompt

https://bonsai.io/blog/pink-elephant-in-your-prompt/
1•kinduff•8m ago•0 comments

Website Design as Existential Crisis

https://www.debjitbanerjee.com/notes/website-design-as-existential-crisis/
1•speckx•8m ago•0 comments

AI Revolution vs. Computing Revolution

2•nitinagg•10m ago•0 comments

America's Wumao: Inside Polymarket's Paid Quote-Retweet Esports Program

https://www.readergrev.com/p/polymarket-paid-quote-retweet-esports-investigation
5•paimapi•14m ago•0 comments

CVE-Lite CLI: A developer first security scanner with exact fix commands

https://github.com/OWASP/cve-lite-cli
1•sonukapoor•14m ago•0 comments

My C23 Conventions

https://abner.page/post/c23-conventions-1/
2•birdculture•14m ago•0 comments

Where Do You Discover New Self-Hosted Apps?

https://noted.lol/where-to-find-self-hosted-apps/
1•geeked•15m ago•1 comments

Postgres 19 delayed after AI reviewers find more bugs than humans can fix

https://www.theregister.com/databases/2026/10/16/postgres-19-delayed-after-ai-reviewers-find-more...
4•magoghm•15m ago•0 comments

Ships' Captains Paid $100k a Month to Transit Strait of Hormuz

https://www.ft.com/content/0d665e5b-d8c8-4f1e-acf5-bba7193b4e6e
2•karakoram•16m ago•1 comments

Tesla Roadster Can Fly

https://techcrunch.com/2026/10/15/tesla-reveals-spacex-powered-roadster-that-flies-and-falls-with...
2•Guyadou•16m ago•2 comments

Show HN: Agent Chat in Your Markdown Notes – Chat with Context and Save Response

https://blog.etherpk.com/agent-chat-ask-a-language-model-about-your-notes
1•gb2d_hn•17m ago•0 comments

How to avoid AI brainrot – Miles Cranmer

https://www.youtube.com/watch?v=uXC7OuCas2Q
4•ray__•17m ago•0 comments

Evals for real-world, economically valuable tasks

https://evals.thriveholdings.com/
2•shamdasani•18m ago•0 comments

Imagine Every AI Agent on Earth Buying the Same Cheap Paper Towels

https://www.theatlantic.com/technology/2026/10/ai-agent-chaos-e-commerce/689010/
3•fortran77•19m ago•0 comments

Jane Street's event-driven feature engineering system

https://blog.janestreet.com/flex-model-an-event-driven-feature-engineering-system/
1•tokepi•20m ago•0 comments

No More Heroes – Terence Tao Talks to Numberphile About AI

https://www.youtube.com/watch?v=bAnwMdfcMVw
2•nyc111•20m ago•1 comments

VectorCraft vs. Figma vs. Penpot vs. Adobe Illustrator vs. Wunjo Design?

2•wladradchenko•20m ago•0 comments