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!

Skills for Real Engineers. Straight from my .claude directory

https://github.com/mattpocock/skills
1•thunderbong•1m ago•0 comments

Show HN: Monitoring Confidential Inference Providers

https://confidentialinference.net/attestation
1•aaaljaz•3m ago•0 comments

The Night My Sega Dreamcast Called the Cops [video]

https://www.youtube.com/watch?v=uTagIZUs-u0
1•truxs•5m ago•0 comments

The Boot Chain of a RISC-V Board: From Silicon to Ubuntu 26.04

https://blog.ludovic.dev/2026/06/08/spacemit-k3-boot-process.html
1•luhenry•6m ago•0 comments

Driverless Trucks Are Here–and They're Delivering Bags of Doritos

https://www.wsj.com/business/logistics/driverless-trucks-are-hereand-theyre-delivering-bags-of-do...
1•JumpCrisscross•7m ago•0 comments

FleetPing – WhatsApp inspections for small fleets

https://fleetping.app/
1•surajitfp•8m ago•0 comments

It's Like Minesweeper

https://etamponi.github.io/posts/its-exactly-like-minesweeper/
1•etamponi•9m ago•0 comments

3D Japan

https://twitter.com/i/status/2061314177399169040
1•marklit•15m ago•0 comments

Global stock markets fall as concerns persist over tech firms

https://www.theguardian.com/business/2026/jun/08/stock-markets-fall-tech-firms-ai-boom-oil-prices...
1•01-_-•17m ago•0 comments

An easter egg in the new Lego Batman

https://social.panic.com/@cabel/116710623616975906
1•robin_reala•17m ago•0 comments

Free and private AI chat from DuckDuckGo

https://duck.ai/
4•strzibny•17m ago•0 comments

Greenwald density limit isn't a hard wall: density-free regime seen on EAST

https://www.science.org/doi/10.1126/sciadv.adz3040
1•nryoo•18m ago•0 comments

'Poisoned' AI: the ChatGPT shopping scams that lead to fake websites

https://www.theguardian.com/money/2026/jun/07/ai-chatgpt-shopping-scams-fake-websites
1•01-_-•18m ago•0 comments

AI bills can be as big as a postdoc salary. Is the cost worth it?

https://www.nature.com/articles/d41586-026-01369-z
1•giuliomagnifico•24m ago•0 comments

History of CentOS

https://www.theregister.com/os-platforms/2026/06/08/history-of-centos-how-a-biochemists-linux-hob...
2•sohkamyung•25m ago•0 comments

Show HN: Veritrooper – find what your AI gets wrong about your own docs

https://veritrooper.com/
1•brian8620•25m ago•0 comments

Some Uses of { and }

https://www.jsoftware.com/papers/from.htm
1•tosh•28m ago•0 comments

Show HN: Tinytasktree – Behavior-tree-style task orchestration for LLM agents

https://github.com/orion-arm-ai/tinytasktree
1•hit9•29m ago•0 comments

The Cursor Developer Habits Report

https://cursor.com/insights
2•nsoonhui•29m ago•0 comments

Prompt Injection in RAG Agentic Systems

https://ulad.net/prompt-injection-in-rag-agentic-systems/
1•delduca•30m ago•0 comments

The EU CHIPS Act Is a Failure [video]

https://www.youtube.com/watch?v=eqoX9OIR-DI
2•obscurette•31m ago•0 comments

The lost social infrastructure of work

https://www.science.org/doi/10.1126/science.aeh9559
1•pseudolus•31m ago•0 comments

BastionRoute A WebSocket relay fabric for UDP with zero-inbound ports

https://github.com/klauscam/BastionRoute
1•klauscam•32m ago•0 comments

Ask HN: How do you stay focused while working from home?

3•infoinlet•32m ago•5 comments

Bonzi Buddy

https://en.wikipedia.org/wiki/BonziBuddy
1•ColinWright•33m ago•0 comments

Wonderwerk Cave bones reveal possible fire use by human ancestor 1.79M years ago

https://phys.org/news/2026-06-wonderwerk-cave-bones-reveal-human.html
2•pseudolus•35m ago•0 comments

Show HN: Makememe – a meme CLI for your Claude Code

https://github.com/dhruvmehra/makememe
1•dhruvme•36m ago•1 comments

A Dialog on APL (2015)

https://www.dyalog.com/blog/2015/05/a-dialog-on-apl/
1•tosh•37m ago•0 comments

Premature Optimization Is Fun Sometimes

https://invlpg.com/posts/2025-06-19-premature-optimization.html
1•throawayonthe•38m ago•0 comments

Blaise v0.10.0 (alpha) – Incremental compile, Native Back end and more

https://github.com/graemeg/blaise/releases/tag/v0.10.0
1•mariuz•38m ago•0 comments