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!

Are You Improving?

https://irinarokosz.substack.com/p/are-you-improving
2•mooreds•2m ago•0 comments

Less Is More UI Agent Skill

https://github.com/Mendiak/less-is-more-ui
1•mendiak•2m ago•0 comments

HN: CloneGuard – scan a repo for credential-stealing tricks before you run it

https://github.com/tharun208/cloneguard
1•tharun208•3m ago•0 comments

A Jev that can ask Opus for help gives Opus accuracy at 4x lower cost

https://hightouch.com/blog/llm-judges-identity-resolution
5•theanomaly•4m ago•0 comments

The Mineral Age

https://www.tomhegen.com/product/the-mineral-age
3•smartmic•8m ago•1 comments

GoLand's Profiler Now Works with AI Agents – The JetBrains Blog

https://blog.jetbrains.com/go/2026/11/06/we-gave-ai-agents-goland-s-profiler-they-found-the-same-...
1•99lcccss•10m ago•0 comments

Partnering with Hacktron to find vulnerabilities in OpenAI's systems – OpenAI

https://openai.com/index/partnering-with-hacktron/
2•99lcccss•11m ago•0 comments

Chinese Civilization and the Computerization of the World

https://nexa.polito.it/chinese-civilization-and-the-computerization-of-the-world/
1•thenthenthen•11m ago•0 comments

Northstar: A New Booster Engine with More Thrust and Less Mass

https://www.blueorigin.com/news/introducing-northstar-new-booster-engine
1•simonebrunozzi•11m ago•0 comments

Show HN: Agents infer Lego mechanisms from sources, then animate them

https://github.com/anteloc/ldraw-mecha/tree/v0.5.0
2•antelocnova•11m ago•0 comments

Fox completes its $22B Roku acquisition

https://www.foxcorporation.com/news/corp-press-releases/2026/fox-corporation-completes-acquisitio...
1•rexbee•11m ago•0 comments

The launch market is tough as satellite companies start building rockets

https://arstechnica.com/space/2026/11/ast-spacemobile-is-so-desperate-for-launch-theyre-building-...
1•ryan_j_naughton•12m ago•0 comments

Fly.io Got Breached

https://fly.io/blog/well-that-wasnt-fun/
3•ushakov•12m ago•1 comments

How to lie with statistics? (Huff,1954)

https://open.spotify.com/episode/5GbfZKqpO63pZuM6RWGO7n
3•realsarm•14m ago•0 comments

Datacenters were on the ballot. US voters rejected them

https://www.theguardian.com/us-news/2026/nov/04/datacenters-midterm-elections
3•Betelbuddy•14m ago•0 comments

TSMC Is Reportedly Considering 3D DRAM Production

https://www.techpowerup.com/354547/tsmc-is-reportedly-considering-3d-dram-production
2•kristianp•14m ago•0 comments

<script> alert("hi") </script>

1•z58•16m ago•1 comments

Radio Waves Coming from an Alien Planet May Be a Cosmic First

https://www.nytimes.com/2026/09/29/science/space/exoplanet-magnetic-field.html
1•gmays•16m ago•0 comments

As the Japanese Countryside Empties Out, Wildlife Is Disappearing

https://e360.yale.edu/digest/japan-depopulation-biodiversity
4•rdmuser•16m ago•0 comments

Fake security tools on GitHub push backdoors and infostealers

https://www.bleepingcomputer.com/news/security/fake-security-tools-on-github-push-backdoors-and-i...
5•sshah03•19m ago•0 comments

About Loopback Interfaces

2•wuway•19m ago•0 comments

Firecracker VM Escape: PwnEscape Part 2

https://pwn.ai/blog/firecracker-escape
10•SerCe•19m ago•0 comments

Trump Names Stephen Miller His Chief of Staff, Replacing Susie Wiles

https://www.nytimes.com/live/2026/11/06/us/trump-miller-wiles-chief-of-staff
8•mikhael•20m ago•0 comments

How I Got Started in Postgres with Magnus Hagander on Talking Postgres podcast

https://talkingpostgres.com/episodes/how-i-got-started-in-postgres-with-magnus-hagander
2•clairegiordano•20m ago•0 comments

Sparks of Binary Space Programming

https://sgiannopoulos.github.io/blog/machine-code-programming/
2•sgiannopoulos•21m ago•0 comments

OpenAI bugging suspect Alfozan pleads not guilty

https://www.cnbc.com/2026/11/06/openai-bugging-alfozan-saudi.html
3•Betelbuddy•21m ago•0 comments

My first and last telegram was from Rebecca West

https://thelampmagazine.com/blog/rebecca-wests-nightingale
6•bryanrasmussen•23m ago•0 comments

ℤ Is Diophantine in ℚ

https://github.com/elliotglazer/diophantine-z-q
5•artninja1988•24m ago•0 comments

The Adult Children Cleaning Up Their Parents' Feeds

https://nymag.com/intelligencer/article/boomer-parents-screen-time-problem.html
2•gmays•24m ago•0 comments

Activists break into building site of Microsoft datacentre in Amsterdam

https://www.theguardian.com/world/2026/nov/06/activists-break-into-building-site-of-microsoft-dat...
3•Betelbuddy•24m ago•1 comments