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!

Belfry – a TV episode tracker built around reminders, not logging

https://belfry.tv
1•Sedude•1m ago•0 comments

Show HN: Mnemosyne – Export AI chat to carry context from one tool into another

https://github.com/TheJoin95/mnemosyne/blob/main/README.md
1•thejoin95•1m ago•0 comments

GitHub Is Experiencing Difficulties

https://www.githubstatus.com/?d=2026/08/06
5•Jeaye•4m ago•0 comments

How Did Rogue Generate Its Random Dungeons?

https://howtomakeanrpg.com/r/a/rogue-dungeon-generation.html
1•danschuller•5m ago•0 comments

California Town Says Flock Cameras Misread License Plates 71% of the Time

https://www.techdirt.com/2026/08/06/california-town-says-flock-cameras-misread-license-plates-71-...
1•hn_acker•5m ago•0 comments

List of Trading Losses

https://en.wikipedia.org/wiki/List_of_trading_losses
1•_vaporwave_•6m ago•0 comments

Dress made of living mycelium can renew and repair itself

https://www.dezeen.com/2026/08/05/dress-living-mycelium-renew-repair/
1•speckx•8m ago•0 comments

API Is Not Your MCP Tool

https://ro14nd.de/mcp-tool-design-patterns/
2•DataOverload•10m ago•0 comments

Massachusetts prosecutors run their offices on software from the dial-up era

https://nasser.blog/dial-up-justice/
1•aragonite•10m ago•0 comments

Agent Plugins

https://twitter.com/OpenAIDevs/status/2085398373511918022
2•tosh•12m ago•1 comments

What's My Local AI?

https://whatsmylocal.ai/
3•chrismatic•13m ago•0 comments

JWT decoder with connect-src 'none', so it can't upload your token

https://jwt.jamuny.com/
2•pop3zxcv•16m ago•1 comments

Introducing: Cloudflare Agents

https://blog.cloudflare.com/agents-on-cloudflare/
2•zuckerborg0101•18m ago•0 comments

Export AI chat sessions to carry context from one tool into another

https://github.com/TheJoin95/mnemosyne
1•thejoin95•19m ago•0 comments

Open Questions on Open Weights

https://www.astralcodexten.com/p/open-questions-on-open-weights
1•reducesuffering•19m ago•0 comments

Microsoft filings suggest "around 70%" of its AI revenue is on OpenAI

https://www.windowscentral.com/artificial-intelligence/microsoft-filings-suggest-around-70-percen...
30•speckx•20m ago•4 comments

The Question Concerning Technology – Martin Heidegger (Wikipedia)

https://en.wikipedia.org/wiki/The_Question_Concerning_Technology
2•jonash54•21m ago•0 comments

Five Indie Platforms You Might Not Have Heard Of

https://brennan.day/five-interesting-indie-platforms-you-might-not-have-heard-of/
2•nate•21m ago•2 comments

Zapscape (CVE-2026-64561)

https://github.com/V4bel/Zapscape
2•john_strinlai•23m ago•0 comments

India's IT sector is surviving artificial intelligence

https://www.economist.com/finance-and-economics/2026/08/06/indias-it-sector-is-surviving-artifici...
4•alephnerd•27m ago•1 comments

How I became the villain of El Cerrito's Nextdoor

https://www.oaklandreviewofbooks.org/the-villain-of-el-cerrito-nextdoor/
1•bsimpson•31m ago•0 comments

LLMs and Programmatic Stagnation

https://systemist.net/changelog/letters/2026-07-31-programmatic-stagnation
1•tsraveling•31m ago•0 comments

Potions in Mageia. 01 – Pidgin and its accessories

https://blog.mageia.org/en/2026/08/05/potions-in-mageia-01-pidgin-and-its-accessories/
1•rw_grim•33m ago•0 comments

Maybe we just shouldn't build software with so many people

https://blog.nicoleta.cc/maybe-we-just-shouldnt-build-software-with-so-many-people/
2•speckx•34m ago•1 comments

A Subtle Web of Meaning

https://robertxworld.com/a-subtle-web-of-meaning/
1•devrob•34m ago•0 comments

Nashville uses eminent domain to block data center near zoo

https://nashvillebanner.com/2026/08/04/metro-council-data-center-eminent-domain-vote/
11•DeepLogin•35m ago•1 comments

A Pronoun for LLMs

https://blog.david.connol.ly/2026/08/lem.html
3•slartibardfast0•35m ago•1 comments

DeepSeek Plans 'Significant' Price Increase for AI Services

https://www.bloomberg.com/news/articles/2026-08-06/deepseek-plans-significant-price-increase-for-...
4•croes•37m ago•1 comments

New Melania Trump series coming to Amazon Prime after losses for documentary

https://www.euronews.com/culture/2026/08/06/new-melania-trump-series-coming-to-amazon-prime-after...
2•vrganj•37m ago•0 comments

Reflections on software engineering in the age of AI

https://glattetre.me/blog/reflections-on-software-engineering/
2•GOATS-•38m ago•0 comments