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!

Human land use drives microplastic abundance in terrestrial wildlife

https://www.nature.com/articles/s41586-026-11285-x
1•bryanrasmussen•6m ago•0 comments

Disk encryption on NetBSD – achieving secrecy

https://netbsd.org/~nia/disk-encrypt/
2•jaypatelani•9m ago•0 comments

The elites just went into hiding [video]

https://www.youtube.com/watch?v=qAd1myPXrRk
1•Bender•14m ago•0 comments

Reading and Working for Salon

https://www.typebarmagazine.com/on-reading-and-working-for-salon/
1•rdmuser•15m ago•1 comments

B.C. arbitrator imposes first union contract for Amazon workers in North America

https://www.cbc.ca/news/canada/british-columbia/amazon-union-contract-b-c-first-north-america-9.7...
5•Teever•16m ago•1 comments

96.0% on LongMemEval: what retrieval does for long-term memory

https://www.papr.ai/blog/papr-longmemeval-96
1•amirkabbara•17m ago•0 comments

Confessions of an AI Skeptic

https://daniel-azuma.com/blog/2026-11-12-ai-skeptic/
1•gashad•18m ago•0 comments

Show HN: Four bite-sized chess puzzle games built on micro-boards

1•navalsaini•18m ago•0 comments

Turing Complete: Learn CPU architecture with puzzles

https://store.steampowered.com/app/1444480/Turing_Complete/
1•totallymike•22m ago•1 comments

Show HN: Hazel – Declarative schema management for SQLite

https://github.com/winebarrel/hazel
1•winebarrel•27m ago•0 comments

Rust Is the New C

https://www.namtao.com/rust-is-the-new-c/
2•hatamoto•39m ago•0 comments

Munich Laser Emits a Beam of Matter Waves (1999)

https://www.sciencedaily.com/releases/1999/03/990317060831.htm
1•peter_d_sherman•49m ago•1 comments

Anthropic CVP (Mythos) Defense Access Requirements Reduced to KYC

https://portal.anthropic.com/login?returnTo=%2Fprograms%2Fcvp#_
1•jcomp•50m ago•1 comments

New study narrows the timeline for the emergence of life on Earth

https://gizmodo.com/early-earth-was-a-molten-asteroid-blasted-hellscape-scientists-now-know-when-...
2•gmays•51m ago•0 comments

How Jensen Huang Built the Backdoor Route That Keeps Beijing in the AI Race

https://www.wsj.com/tech/jensen-huang-backdoor-ai-data-centers-a5e4499d
3•ViktorRay•56m ago•1 comments

Kiri – The Modern Container Runtime

https://runkiri.com/
12•nikolay•58m ago•7 comments

Show HN: Gawain – Require type hints on all Python variables

https://github.com/matheuzgomes/gawain
16•MarinhoD•59m ago•3 comments

Agent Substrate: The Core System

https://github.com/agent-substrate/substrate
3•thunderbong•1h ago•0 comments

Anthropic, can you please make up your mind with your models?

4•xlayn•1h ago•1 comments

Europe's Digital Wallets May Be More Traceable Than Intended

https://spectrum.ieee.org/europe-digital-id-security-cryptography
2•geox•1h ago•0 comments

Songs That Explain America

https://www.theatlantic.com/culture/2026/09/50-songs-explain-america-playlist/687598/
1•gmays•1h ago•0 comments

Training Your Replacement: Worker Incentives and the Pace of Automation

https://www.nber.org/papers/w35950
2•rohanm93•1h ago•0 comments

Discovery Feed for Agents

https://twitter.com/cadenbuild/status/2121372002313503003
1•cadenli2025•1h ago•0 comments

Smart AI Keyboard: Translate

https://play.google.com/store/apps/details?id=smart.ai.keyboard&hl=en_US
1•aikeyboard•1h ago•0 comments

FAA Outage: Why Duffy Is Spelled with Two Ms

https://www.flyingpenguin.com/faa-outage-why-duffy-is-spelled-with-two-ms/
1•zzzeek•1h ago•1 comments

Heading over Humanity

https://www.writingruxandrabio.com/p/handing-over-humanity
1•hwacth•1h ago•0 comments

Ranking 162 anime by how much of their dialogue is common words

https://etoku.app/anime/easiest
2•willmorrison•1h ago•3 comments

Show HN: Turbo-Browser-MCP – Batch forms, DOM deltas and submit guards for MCP

https://github.com/Tthanh2k6/turbo-browser-mcp
8•tthanh2k6•1h ago•0 comments

SRT Link to Red5 Opens Path to Real-Time Streaming Everywhere

https://www.red5.net/blog/srt-realtime-streaming-everywhere/
2•mondainx•1h ago•0 comments

Show HN: A blog on how computers work from scratch (1)

https://dinank.dev/posts/between-wall-and-first-fetch.html
2•daynum•1h ago•2 comments