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!

All Thinking Things

https://heymaxwell.ai/manifesto
1•ifiamyourllm•2m ago•0 comments

Why Nvidia's board is incompetent and Nvidia will suffer (YouTube) [video]

https://www.youtube.com/watch?v=TGUsk0kHseY
1•fkdk•3m ago•0 comments

The local-first safety and cost layer for your autonomous agents

https://github.com/aisona-lab/tucana-code
1•aisonalab•4m ago•0 comments

Two-Photon Mesoscope

https://github.com/benkrasnow/Two_photon_mesoscope
1•tobr•6m ago•0 comments

Context, Semantics, and what the Heck is an Ontology?

https://motherduck.com/blog/context-layer-vs-semantic-layer-ontology/
1•zazuke•7m ago•0 comments

Every word of your Proton emails is now searchable, and still private

https://proton.me/blog/introducing-mobile-email-content-search
1•HelloUsername•8m ago•0 comments

Huang Says Nvidia Chips Were Diverted to China, Reversing Denials

https://www.bloomberg.com/news/articles/2026-12-02/jensen-huang-admits-nvidia-ai-chips-were-diver...
1•HelloUsername•10m ago•0 comments

Patients in England to be offered AI test that can predict heart attacks

https://www.theguardian.com/society/2026/dec/02/nhs-patients-england-ai-test-predict-heart-attack...
2•geox•12m ago•0 comments

Ford to end car production in Germany after nearly a century

https://www.reuters.com/business/autos-transportation/ford-end-vehicle-production-germany-ntv-rep...
1•benkan•15m ago•0 comments

Benchmarking GUI Frameworks

https://blog.zortax.de/posts/benchmarking-gui-frameworks
1•0x1997•16m ago•0 comments

James Russell, who pioneered CD, DVD technology dies at 95

https://www.chronline.com/stories/washington-state-inventor-who-pioneered-cd-dvd-technology-dies-...
1•benkan•16m ago•0 comments

U.S. Forest Service Published Documents Detailing Supposed Sightings of Bigfoot

https://www.smithsonianmag.com/smart-news/the-us-forest-service-just-published-three-bigfoot-docu...
1•benkan•16m ago•0 comments

Show HN: Ukraine Builders – Ukraine reconstruction tenders in one database

https://ukrainebuilders.com/developers
1•qiaobax•18m ago•0 comments

Show HN: Play – games beside Claude Code while it works

https://github.com/focks/playmod
2•ichandan•20m ago•0 comments

Concurrency limit is not a queue limit

https://www.drjoshcsimmons.com/writing/your-concurrency-limit-is-not-a-queue-limit
1•joshcsimmons•21m ago•0 comments

Where the Uncertainty Went

https://yusufaytas.com/where-the-uncertainty-went
3•legallytired•21m ago•0 comments

Show HN: Daftak – Share a doc; readers follow any part and see what changed

https://www.daftak.com/sharing
1•milad100•21m ago•0 comments

Adyen BFCM – a threejs dashboard to showcase live BFCM weekend data

https://bfcm.adyen.com
2•AmicableSandwic•26m ago•0 comments

Who Used A.I. Agents to Shop over Black Friday? Hardly Anyone

https://www.nytimes.com/2026/12/01/technology/ai-agents-black-friday.html
1•thm•30m ago•3 comments

Show HN: Elementile – daily word puzzles spelled with periodic table symbols

https://elementile.netlify.app/
1•manyone1•31m ago•0 comments

An open-source scanner that finds wasted LLM tokens in your code

https://github.com/florijan12/llm-cost-audit
1•florijan12•32m ago•0 comments

Artificial Analysis Safety Index

https://artificialanalysis.ai/articles/artificial-analysis-safety-index
2•mustaphah•37m ago•1 comments

A finance team should set and optimize an AI budget

https://ramp.com/blog/how-to-set-an-ai-budget
1•udonnoodle•38m ago•0 comments

Mods by Anthropic

https://code.claude.com/docs/en/plugins/mods/overview
1•andrearitossa•39m ago•0 comments

Identifying the Game at Work

https://daeus.blog/2026/11/30/identifying-the-game-at-work/
2•udonnoodle•41m ago•1 comments

OpenCognit – Agent Development Environment for Coding CLIs

https://opencognit.com/
1•Panto92•43m ago•0 comments

Show HN: Troupekit, Rust Framework for Agents That Resume After a Crash

https://github.com/ChaoticQubit/troupekit
3•ChaoticQubit•44m ago•0 comments

Letter to Prime Minister Andy Burnham from AI Security Institute

https://www.gov.uk/government/publications/letter-to-prime-minister-andy-burnham-from-ai-security...
2•AndrewDucker•47m ago•0 comments

We made disk writes on natbox 100 times faster, at a cost

https://natbox.io/blog/faster-disk-writes
2•msarrph•50m ago•0 comments

Troupekit: Open-Source Rust Framework for LLM Agents That Resume After a Crash

https://troupekit.org
3•ChaoticQubit•51m ago•0 comments