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!

Deveggs – a self evolving developer eggsperience

1•kunggaochicken•1m ago•0 comments

The mysterious pneumonia in Russia deserves attention, not panic

https://www.statnews.com/2026/10/06/russia-plague-reports-pneuomonia-siberia-expert-calm/
2•EA-3167•4m ago•1 comments

Where Are the Builders?

https://near.blog/where-are-the-builders/
1•yarapavan•4m ago•0 comments

RetinaRelay – A Second Life for Your iMac

https://www.retinarelay.com/
1•tambourine_man•9m ago•0 comments

Runtime – Your AI Agents Have a Home

https://withruntime.com/
1•shermansingh•10m ago•0 comments

Trust Me, You Want SunOS 4.1.4 on Your Older Sun Boxes

https://oldsilicon.com/technologies/sunos-414-older-sun-boxes/
1•caned•12m ago•0 comments

Show HN: Agentc: <1MB static, no Libc, minimal, embeddable agent with Rust/C API

https://github.com/abird-ai/agentc
1•logxroot•20m ago•0 comments

SaaS RFP – post and bid on SaaS in public

https://saasrfp.com
1•danielandrews43•21m ago•1 comments

Trump plans to charge international students $70k for work authorization

https://www.reuters.com/legal/government/trump-administration-plans-charge-international-students...
1•onemoresoop•21m ago•0 comments

Agent Collaboration over Unreliable Channels

https://spakhm.com/projects/bitfuse.html
1•rzk•22m ago•0 comments

Free Unlimited Fish Audio Text to Speech

https://www.fish-audio.org/
2•wsm123456•23m ago•0 comments

The Dot and the Swarm

https://www.oneusefulthing.org/p/the-dot-and-the-swarm
1•gmays•25m ago•0 comments

Building alone, faster: a panel on what AI is doing to the product trio

https://jennywanger.com/articles/building-alone-faster/
2•mooreds•30m ago•0 comments

A common language for game telemetry

https://briangilbert.net/writings/local-telemetry-standard/
1•realityloop•32m ago•0 comments

Don't make me type my business in twice: what tour operators need from software

https://justinsmith.build/writing/dont-make-me-type-it-twice/
3•s14jsmith•33m ago•0 comments

Exodus AI – Affordable face swapping tool for creators

https://tally.so/r/44gGAB
2•godwinokuli•33m ago•0 comments

What I learned leaving a Ruth AI in charge

https://silavapi.co.uk/blog/what-i-learned-leaving-a-ruth-ai-in-charge/
1•mooreds•34m ago•0 comments

Evolutionary Refactoring: Let Agents Invent Codebase-Specific Patterns

https://adamtornhill.substack.com/p/evolutionary-refactoring-let-agents
1•mooreds•35m ago•0 comments

SpaceX's recovered Starship after Flight 13 splashdown returns to Texan port

https://www.floridatoday.com/story/tech/science/space/spacex/2026/10/07/spacex-brings-home-first-...
2•bookmtn•37m ago•0 comments

US Man Given Prison Sentence for Bot-Farming Music Streams

https://thequietus.com/news/us-man-given-prison-sentence-for-bot-farming-music-streams/
2•cdrnsf•41m ago•2 comments

Show HN: Chromatics, a classics reader that colors every character's dialogue

https://chromatics.mobile/
1•mchromatics•43m ago•0 comments

BuzzSearch MCP extracts exact words your target customer uses

https://buzzsearch.ai/mcp
1•zhizdev•44m ago•0 comments

OSHotspot, WiFi hotspot manager for Linux with a live security dashboard

https://github.com/King03-sam/OSHotspot
1•olojedesamuel•44m ago•0 comments

In Defense of Western Civilization by Marco Rubio

https://statedept.substack.com/p/in-defense-of-western-civilization
1•7777777phil•49m ago•1 comments

Morse Code in 2026: Why the U.S. Navy Brought It Back

https://morsecoder.us/blog/morse-code-navy-2026/
1•7402•50m ago•0 comments

What the interns have wrought, special jumbo 2026 edition

https://blog.janestreet.com/wrought-2026/
1•jsomers•51m ago•0 comments

The impact of Dolly Parton's death on Wikipedia

https://diff.wikimedia.org/2026/10/07/storms-make-trees-take-deeper-roots-the-impact-of-dolly-par...
3•soheilpro•51m ago•0 comments

Why Muse May Never Need Ads

https://www.mbi-deepdives.com/no-ads-muse/
1•gmays•53m ago•0 comments

NotProton: Steam Play for macOS

https://github.com/NotProtonNot/NotProton
1•jzelinskie•54m ago•1 comments

Agent in a Bottle: Can LLM Agents Turn Their Capabilities into Cheap Artifacts?

https://arxiv.org/abs/2610.08775
1•simonpure•56m ago•0 comments