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!

I made a half IDE half city builder

http://www.craigloewen.com/blog/2026/08/28/kingdom-ide/
1•craigaloewen•39s ago•0 comments

Everything Claude Saw: A Transparent Account of the Chardet v7 Rewrite

http://dan-blanchard.github.io/blog/chardet-rewrite-controversy/
1•wilsonfiifi•1m ago•0 comments

Make Waiting for AI Fun

https://commonsmade.com/hackathons
1•ceen•2m ago•0 comments

The first mail client with built-in compression and encryption

https://medium.com/@chris.ahrweiler/the-first-mail-client-with-built-in-compression-and-encryptio...
1•docjojo•5m ago•0 comments

Teamwork: When AI Becomes a Research Partner – Google Antigravity Blog

https://antigravity.google/blog/teamwork-when-ai-becomes-a-research-partner
1•porridgeraisin•8m ago•0 comments

Sovereignty is now a feature, and Canadian founders are shipping it for free

https://betakit.com/sovereignty-is-now-a-feature-and-canadian-founders-are-shipping-it-for-free/
2•ClearwayLaw•9m ago•1 comments

Particle system updates X3D exporter, documentation, geometry shader fixes

https://castle-engine.io/wp/2026/08/26/particle-system-updates-custom-shaders-web-support-freecad...
1•mariuz•9m ago•0 comments

How to Critically Read LLM Texts [video]

https://www.youtube.com/watch?v=BBmNOxQWcAc
1•jmount•9m ago•0 comments

Why Responsible AI Adoption Still Starts with People

https://www.tylertech.com/resources/blog-articles/why-responsible-ai-adoption-still-starts-with-p...
1•cebert•11m ago•0 comments

Show HN: Claude Code Skills – Solving context bloat

https://github.com/yevhens-hue/claude-skills-starter-kit
2•eshaforostov•12m ago•0 comments

Trump suggests cattle ranchers could bypass USDA-inspected meat plants

https://www.washingtonpost.com/politics/2026/08/28/trump-suggests-allowing-ranchers-bypass-usda-i...
2•bithammerthunde•13m ago•0 comments

Form Follows Function

https://en.wikipedia.org/wiki/Form_follows_function
1•nomilk•13m ago•0 comments

Agentic Workflow Design: Six Principles for 2026

https://www.amyzyuan.com/thoughts/agentic-workflow-design-2026
2•eterconf•15m ago•0 comments

Oligodendrocyte dysfunction in human age-related cognitive decline

https://www.nature.com/articles/s41591-026-04608-y
2•bookofjoe•16m ago•0 comments

Adapting to AI: Leadership

https://blog.colinbreck.com/adapting-to-ai-leadership/
1•kiyanwang•17m ago•0 comments

China rejected a container of Argentine beef. Here's what the US did next

https://tallow.app/blog/china-rejected-argentina-beef-chloramphenicol
3•mkl95•19m ago•0 comments

A few feral cats in an ALGOL trenchcoat.

https://wiki.xxiivv.com/site/pop2.html
3•bmacho•20m ago•1 comments

Tsundoku: The art of buying books and never reading them

https://www.bbc.com/news/world-44981013
3•austinallegro•20m ago•2 comments

Prompt Engineering Best Practices in 2026: Why the Advice Contradicts Itself

https://www.amyzyuan.com/thoughts/prompt-engineering-best-practices-2026
3•eterconf•21m ago•0 comments

States can regulate prediction markets as gambling, federal appeals court rules

https://www.cnn.com/2026/08/28/business/states-prediction-markets-gambling-federal-appeals-court
3•cocacola1•21m ago•0 comments

Social Policy Builds Financial Markets

https://economicsociology.org/2026/08/28/how-social-policy-builds-financial-markets/
1•kome•22m ago•0 comments

Superlogical 3min Demo

https://twitter.com/mitchellh/status/2093451043661316217
1•mfiguiere•23m ago•0 comments

We Tested a Smartphone Smuggled from North Korea - WSJ [video]

https://www.youtube.com/watch?v=nBRZKG1kjBM
1•mudil•24m ago•0 comments

Artificial Intelligence and the Problem of Induction [pdf]

https://www.iiardjournals.org/get/JHSP/VOL.%12%NO.%1%2026/Artificial%Intelligence%and%the%Problem...
1•1vuio0pswjnm7•26m ago•0 comments

The Answer to Every Problem

https://www.raptitude.com/2026/06/the-answer-to-every-problem/
2•Curiositry•26m ago•0 comments

Audience Infrastructure

1•DIMAZA•28m ago•0 comments

I have made an OS in CUDA

https://twitter.com/ShimazuSystems/status/2093064608122655000
2•porridgeraisin•30m ago•0 comments

I'd like to take a moment to speak to you about the Adobe PSD format (2012)

https://github.com/zepouet/Xee-xCode-4.5/blob/master/XeePhotoshopLoader.m
5•consumer451•32m ago•1 comments

Invisible Source Skew

https://www.lawfaremedia.org/article/invisible-source-skew
1•EA-3167•33m ago•0 comments

Who is at the frontier of terminal tasks?

https://fidian.ai/blog/tb-fn-benchmark-results/
1•amrrs•35m ago•0 comments