frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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!

I Built the Same App with Five GUI Frameworks: Tauri Slint Egui Dioxus Flutter

https://medium.com/@yalovoy/i-built-the-same-app-with-five-gui-frameworks-tauri-slint-egui-dioxus...
1•zero-ground-445•12m ago•0 comments

Khufu Ship

https://en.wikipedia.org/wiki/Khufu_ship
2•polivier•13m ago•0 comments

Show HN: I built a codebase analysis MCP: Stria

https://github.com/Reliary/stria
1•microbass•13m ago•1 comments

US takes step to halt Nvidia AI chip shipments to Chinese firms outside China

https://www.reuters.com/world/china/us-takes-step-halt-nvidia-ai-chip-shipments-chinese-firms-out...
1•tartoran•18m ago•0 comments

Qwen-VLA: Vision-Language-Action Modeling Across Tasks, Environments, and Robots

https://www.dcard.tw/f/relationship/p/255790583?cid=d3500548-d505-400c-8906-1449999188de
1•maxloh•22m ago•0 comments

Claude Code Ultracode

https://note.com/tolove/n/n08cf64926fd4?hl=en-US
3•hmokiguess•33m ago•0 comments

Beyond Tokenmaxxing

https://dhrumil.ca/thoughts/beyond-tokenmaxxing
2•dhrumilcse•34m ago•0 comments

OllamaMQ New Version v0.2.7

https://github.com/Chleba/ollamaMQ
3•chleba•35m ago•0 comments

Ad Infini­Tum

https://matthiasott.com/notes/ad-infinitum
3•yurivish•36m ago•1 comments

Stand and Deliver Revisited

https://reason.com/2002/07/01/stand-and-deliver-revisited-2/
2•pcfwik•37m ago•0 comments

Iran: The Internet Is Back, but Something Has Changed

https://emot.substack.com/p/when-the-internet-disappears
2•emot•37m ago•0 comments

Scaling Trust – Can We Create Programmable Trust?

https://cahootzcoops.com/blog/scaling-trust-can-we-coordinate-economics-beyond-a-boss-and-create-...
1•DeonRob•40m ago•0 comments

Illinois budget – new tax on targeted advertising, social media data collection [pdf]

https://www.ilga.gov/documents/legislation/104/SB/PDF/10400SB3019ham001.pdf
3•stockresearcher•43m ago•1 comments

What Kind of Clock Is an LLM?

https://isthisanart.substack.com/p/what-kind-of-clock-is-an-llm
1•HR01•44m ago•0 comments

Ben Affleck: AI company he sold to Netflix for $600M leads to 'more human work'

https://finance.yahoo.com/sectors/technology/articles/ben-affleck-says-ai-company-103500057.html
2•indigodaddy•54m ago•0 comments

San Francisco Popos (Privately Owned Public Open Spaces) Sorted by Distance

https://tools.encona.com/sfpopos
3•rahimnathwani•57m ago•1 comments

Claude Code OS: self-updating operational memory for Claude Code (open source)

https://github.com/bernardohcrocha/claude-code-os/
2•bernardohcr•1h ago•0 comments

Show HN: RedFlag – self-hosted update manager with a supply chain gate

https://github.com/Fimeg/RedFlag
1•Fimeg•1h ago•0 comments

Team Topologies as the Infrastructure for Agency

https://matthewskelton.com/blog/team-topologies-as-the-infrastructure-for-agency
2•wapasta•1h ago•0 comments

Karpathy LLM Wiki pattern integrated into Obsidian agenic workflow

https://github.com/pssah4/vault-operator
3•pssah4•1h ago•0 comments

Science sleuths uncover more than 100 suspicious images Thermo Fisher antibody

https://www.nature.com/articles/d41586-026-01706-2
4•Bender•1h ago•0 comments

Google wants to release up to 32M good mosquitoes California and Florida

https://ktla.com/news/google-wants-to-release-up-to-32-million-good-mosquitoes-in-california-and-...
3•Bender•1h ago•0 comments

William Chester Minor

https://en.wikipedia.org/wiki/William_Chester_Minor
1•petethomas•1h ago•0 comments

Gen Z are 'zebra striping' to avoid hangovers, scientists say it works

https://www.dailymail.com/sciencetech/article-15854983/Gen-Z-zebra-striping-avoid-hangovers-scien...
3•Bender•1h ago•2 comments

The Anarchist's Workbench [pdf]

https://blog.lostartpress.com/wp-content/uploads/2020/07/AWB_Consumer_June-2020_v5.1-1.pdf
2•wesleyd•1h ago•0 comments

Memo from the Interstellar Information Service – Re: Earth's Latest Space "Plan"

https://samhenrycliff.medium.com/memo-from-the-interstellar-information-service-re-earths-latest-...
1•6stringmerc•1h ago•0 comments

OpenJDK: Removal of the JVM Compiler Interface (JVMCI), in JDK 27

https://bugs.openjdk.org/browse/JDK-8382582
2•alasr•1h ago•0 comments

Harvard Graduation Speaker: "The Mission of Your Generation Is to Destroy AI"

https://www.yahoo.com/entertainment/tv/articles/harvard-graduation-speaker-unloads-ai-130000122.h...
4•poly2it•1h ago•4 comments

How Servers Work: A Hands-On Introduction to TCP Sockets

https://labs.iximiuz.com/tutorials/how-servers-work-tcp-sockets
1•birdculture•1h ago•0 comments

New AI Agent Architecture to fix LLM deviations and token costs

https://github.com/botcircuits-ai/botcircuits-agent
1•nexcatara•1h ago•0 comments