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!

See Through Walls with WiFi

https://github.com/ruvnet/RuView
1•chunkyslink•24s ago•1 comments

The Lost Treasure of Sid Meier's Pirates

https://remapradio.com/articles/the-lost-treasure-of-sid-meiers-pirates/
2•spankibalt•31s ago•0 comments

Going Freestanding

https://antonz.org/going-freestanding/
1•ingve•4m ago•0 comments

Small Models Can Introspect, Too (2025)

https://vgel.me/posts/qwen-introspection/
1•networked•5m ago•0 comments

Reducing C++ template bloat by factoring out the type-dependent portions

https://devblogs.microsoft.com/oldnewthing/20260820-00/?p=112629
1•ingve•6m ago•0 comments

Where to Draw the Line Which decisions should not be handed over to LLMs?

https://queue.acm.org/detail.cfm?id=3834784
1•tmanolatos•10m ago•1 comments

Domain-Driven Design matters more when AI writes your code

https://threedots.tech/post/ddd-and-ai-coding/
1•BerislavLopac•12m ago•0 comments

The LLM rewrote the email after I approved it

https://www.crusbro.com/en/product-architecture.html
1•crusbro•12m ago•0 comments

Updating a side project with AI in 275 commits

https://benhoyt.com/writings/updating-gifty-with-ai/
1•ingve•14m ago•1 comments

Show HN: Plainspeak, make AI agents write like a human

https://sufiyan.cc/plainspeak
1•codersufiyan•14m ago•0 comments

Show HN: I built a TV like website for Indian nostalgic shows

https://www.dabbatv.xyz/
2•codepeddler•20m ago•1 comments

From Magna Carta to microchip – The measurement of time (1981)

https://www.rigb.org/explore-science/explore/video/magna-carta-microchip-measurement-time-1981
1•pillars•21m ago•0 comments

The Download: polycrisis support networks and a hydrogen gold rush

https://www.technologyreview.com/2026/08/20/1142579/the-download-polycrisis-support-networks-unde...
1•joozio•22m ago•0 comments

We Rebuilt the Linux MicroVM Stack on Apple Silicon

https://encore.dev/blog/firecracker-apple-silicon
2•signa11•24m ago•0 comments

Show HN: Real Valued Chess – chess on a continuous board

https://martinylu.com/real-chess
1•martinAsdf•24m ago•1 comments

Video to Prompt

https://www.videotoprompt.dev
1•daisyjin•27m ago•0 comments

RL Policy Churn

https://twitter.com/id_aa_carmack/status/2090514515129520516
1•tosh•31m ago•0 comments

Young Americans increasingly fear AI will take their jobs

https://www.pewresearch.org/short-reads/2026/08/18/young-adults-in-the-us-are-increasingly-wary-o...
4•01-_-•34m ago•0 comments

Mathematically Perfect solar array in Factorio [video]

https://www.youtube.com/watch?v=CDzJ1_p3uVg
1•operatorius•34m ago•0 comments

Pretraining a Mini Kimi K3

https://books.vizuara.ai/book/pretraining-a-mini-k3
1•ngaut•39m ago•0 comments

Trump Threatens 'Tremendous Consequences' for Countries Doing Business with Iran

https://canews24.online/?p=66
2•Edymilson•41m ago•1 comments

Are PDFs Getting Bigger? Analyzing PDF File Sizes from 2006–2025

https://pdf4wcag.com/blog-news/analysis-pdf-file-size
1•smartdev01•44m ago•5 comments

Social Listening for Agents

https://sociallisteningapi.com/
1•shash7•54m ago•1 comments

Teen drops lawsuit against Meta, Google, and Snap ahead of trial

https://www.msn.com/en-us/news/world/us-teen-drops-lawsuit-against-meta-google-and-snap-ahead-of-...
1•anigbrowl•56m ago•0 comments

Show HN: Argentic – An L402 Lightning toll booth for AI scraping agents

https://Argentic.network
4•Ag0146•59m ago•0 comments

AI CMS with WebMCP tools for agents in admin panel

https://aliothpress.com/cms-for-ai-agents-webmcp-built-in
1•nikariguel•1h ago•0 comments

The /Wayfinder Skill: Navigating the "Fog of War" of Planning

https://www.latent.space/p/wayfinder-skill
1•swyx•1h ago•0 comments

First giant tuna caught off Yorkshire since 1960s

https://www.bbc.com/news/articles/c9w04005veqo
2•teleforce•1h ago•0 comments

Robot Comment Classifier

https://entropicthoughts.com/ai-comment-classifier
2•kqr•1h ago•0 comments

Repository Is Your Swarm

https://nicktrevino.com/your-repository-is-your-swarm.html
2•Hyperlisk•1h ago•0 comments