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!

Why we're moving Wire off Cloudflare Durable Objects

https://usewire.io/why-wire/architecture-benchmark/
1•jitpal•37s ago•0 comments

2026 French cybersecurity startup radar

https://www.wavestone.com/en/insight/2026-french-cybersecurity-startup-radar/
1•mooreds•1m ago•0 comments

Why AI Agents Forget by Design

https://stantyan.com/blog/why-ai-agents-forget/
1•stantyan•2m ago•0 comments

Conversing with antiquity: Agentic AI partner for expanding historical research

https://deepmind.google/science/workflows/conversing-with-antiquity/
1•pretext•3m ago•0 comments

Former Microsoft engineer shrinks Notepad down to size

https://www.theregister.com/os-platforms/2026/06/30/former-microsoft-engineer-shrinks-notepad-dow...
1•vintagedave•4m ago•1 comments

Are you ready for what it takes to stop ghost guns?

https://www.theverge.com/tech/960802/3d-printed-gun-laws-ghost-guns
1•aarvin_roshin•5m ago•0 comments

Linus Torvalds on "99% of our code is written by AI" claims

https://xcancel.com/IntCyberDigest/status/2069512370217488423
1•Topfi•7m ago•0 comments

Stanford's new freshman curriculum illustrates what's wrong with college

https://www.hottakes.space/p/stanfords-new-freshman-curriculum
1•barry-cotter•7m ago•0 comments

Kennel 1.0.0 – Native Desktop App for Managing AI CLI Agents

https://github.com/eranif/kennel
1•SableDb•8m ago•0 comments

Insert token to continue, says AI. Yeah, about that...

https://www.theregister.com/columnists/2026/07/06/insert-token-to-continue-says-ai-yeah-about-tha...
1•Bender•9m ago•0 comments

Midtown Manhattan skyscraper evacuated over fears is on verge of collapse

https://www.dailymail.com/news/article-15959605/midtown-manhattan-building-collapse-evacuation.html
1•Bender•9m ago•1 comments

Markdown Now Has a UTI in Apple's Version 27 OSes

https://developer.apple.com/documentation/uniformtypeidentifiers/uttype-swift.struct/markdown
2•Brajeshwar•10m ago•0 comments

UK guts planning red tape so datacenters can bypass the neighbors faster

https://www.theregister.com/on-prem/2026/07/07/uk-guts-planning-red-tape-so-datacenters-can-bypas...
1•Bender•10m ago•0 comments

Off By: Exploiting a Use-After-Free in the Linux Kernel

https://blog.exodusintel.com/2026/06/08/off-by-exploiting-a-use-after-free-in-the-linux-kernel/
1•Tomte•10m ago•0 comments

The American Dream starts now

https://trumpaccounts.gov/
2•TuringNYC•11m ago•0 comments

Why does WhatsApp drain so much phone battery?

https://manualdousuario.net/en/whatsapp-battery-drain/
2•rpgbr•11m ago•0 comments

Let AI Burn

https://www.wheresyoured.at/let-ai-burn/
5•crescit_eundo•11m ago•0 comments

Focus on Liquidity Risk Sharpens as Slower Private Equity Distributions Persist

https://www.ai-cio.com/news/focus-on-liquidity-risk-sharpens-as-slower-private-equity-distributio...
1•petethomas•11m ago•0 comments

Tools vs. Subagents: Building Effective AI Agents Without Over-Engineering

https://machinelearningmastery.com/tools-vs-subagents-building-effective-ai-agents-without-over-e...
1•eigenBasis•13m ago•0 comments

Show HN: Watch how an AI agent thinks

https://www.howagentsthink.com/?mode=code
1•douvy•14m ago•0 comments

Show HN: DataStays, developer data tools that run in the browser

https://datastays.dev
1•shmoo•15m ago•0 comments

Verbalizable Representations Form a Global Workspace in Language Models

https://transformer-circuits.pub/2026/workspace/
1•kesor•18m ago•0 comments

Anthropic's Claude Cowork heads to the cloud

https://www.zdnet.com/article/anthropic-claude-cowork-comes-to-phone-web-cloud/
1•swolpers•18m ago•0 comments

Supamachine: A Deterministic State Machine for Supabase Authentication

https://www.inventbuild.studio/blog/announcing-supamachine-a-deterministic-state-machine-for-supa...
1•virgil_disgr4ce•18m ago•0 comments

purego: A library for calling C functions from Go without Cgo

https://github.com/ebitengine/purego
1•eatonphil•18m ago•0 comments

Owning Inference on a DGX Spark: Qwen3.6 27B writing code that ships

https://www.devashish.me/p/owning-inference-qwen36-on-dgx-spark
1•devashish86•19m ago•1 comments

Show HN: Aviation Gazetteer – comprehensive list of aviation museums in the UK

https://airmuseums.co.uk/
1•marcusgg•19m ago•1 comments

What We Should Learn from Nordic Happiness

https://www.nytimes.com/2026/07/04/opinion/norway-nordic-social-democracy.html
1•d4ft•21m ago•0 comments

Volvo Is Bringing Native Apple Music to over Two Million Cars

https://insideevs.com/news/800822/volvo-cars-native-apple-music-software-update/
1•01-_-•22m ago•0 comments

The scientists trying to refreeze the Arctic

https://www.theguardian.com/environment/2026/jun/16/arctic-sea-ice-rethickening-climate-geoengine...
1•geox•22m ago•0 comments