frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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!

The C++ Documentary Won't Show You a Number. I Will

https://hftuniversity.com/post/the-c-documentary-won-t-show-you-a-number-i-will
1•canyp•57s ago•0 comments

Wasting China's solar panel surplus is madness

https://www.ft.com/content/b6cac184-75a4-47ab-94c5-5eb8c92cd407
1•mmarian•1m ago•1 comments

Criticizing the Everything Machine

https://pluralistic.net/2026/06/06/applied-counterescatology/
1•hn_acker•4m ago•0 comments

Refining Humanity

https://pluralistic.net/2026/06/05/defining-humanity/
1•hn_acker•4m ago•0 comments

Show HN: Dap-mux – Connect your editor and REPL to the same debug session

1•YesJustWolf•5m ago•0 comments

DOGE plan would have marked 2.7M living people as dead: Whistleblower

https://thehill.com/homenews/nexstar_media_wire/5912841-doge-plan-would-have-marked-2-7m-living-p...
2•hn_acker•6m ago•0 comments

William Gass and John Hawkes (1971)

https://www.92ny.org/archives/william-gass-and-john-hawkes
1•ofalkaed•7m ago•0 comments

Useful Robots (1968) [video]

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

Show HN: PriceHound.app – Price tracking for $1/mo instead of selling your data

3•Brian_Fitz•15m ago•0 comments

Kernel Boot Process and how it works

https://0xax.gitbooks.io/linux-insides/content/Booting/
1•modinfo•17m ago•0 comments

Discovery of Cold War-era rare Eastern Bloc computers in a German hangar

https://computerhistory.org/stories/explorers-of-the-lost-computers/
3•andrewstuart•18m ago•0 comments

366-byte C program emulator can run Linux and Doom – IOCCC29 winner

https://github.com/ioccc-src/winner/blob/master/2025/cable/prog.c
4•s-macke•25m ago•1 comments

Show HN: Kodiqa Agent

https://github.com/Kodiqa-Solutions/Kodiqa-agent
1•open_source_new•28m ago•0 comments

Total Engineering

https://vietthan.github.io/blog/2026/06/05/total-engineering/
2•vietthan•33m ago•0 comments

Sansar – In development Gaussian Splat rendering [video]

https://www.youtube.com/watch?v=m7fwbKn9jGk
1•ugjka•35m ago•0 comments

Americans Are Keeping Their Cars Longer Than Ever–and Remaking the Auto Industry

https://www.wsj.com/business/autos/americans-are-keeping-their-cars-longer-than-ever-and-remaking...
3•JumpCrisscross•36m ago•3 comments

Heaven knows I'm perplexed now

https://idlemachines.co.uk/essays/perplexed
1•smaddrellmander•37m ago•0 comments

The Honest Case for the Humanities

https://substack.com/@napinillos/p-199545151
4•dsubburam•38m ago•0 comments

A USB-connected speaker can infect a PC without ever being touched

https://arstechnica.com/security/2026/06/highly-reviewed-speaker-can-be-hacked-over-the-air-to-in...
3•leecoursey•39m ago•2 comments

Universal Memory Protocol – a shared format for agent memory

https://universalmemoryprotocol.io/
15•edihasaj•39m ago•5 comments

WindowSwap: Someone else's window view from anywhere in the world

https://www.window-swap.com/
2•davidbarker•42m ago•0 comments

New U.S. college grads now have higher unemployment than the average worker

https://www.randalolson.com/2026/06/04/recent-grad-unemployment-flip/
6•davidbarker•43m ago•2 comments

China has approved the first invasive brain-computer chip

https://www.technologyreview.com/2026/06/01/1138133/china-world-first-brain-chip/
2•davidbarker•44m ago•0 comments

OpenAI Unveils Lockdown Mode to Protect Sensitive Data from Prompt Injection

https://techcrunch.com/2026/06/06/openai-unveils-lockdown-mode-to-protect-sensitive-data-from-pro...
4•odig•46m ago•0 comments

Shadow Blister Effect

https://en.wikipedia.org/wiki/Shadow_blister_effect
4•thunderbong•46m ago•0 comments

Show HN: Typedframes – Pandas/polars column name checking at lint time

https://github.com/w-martin/typedframes
2•w-martin•46m ago•2 comments

I am giving up on VM Gaming

https://deployonfri.day/posts/i-am-giving-up-on-vm-gaming
1•BoKKeR11•47m ago•0 comments

The Case for Space Datacenters

https://newsletter.semianalysis.com/p/to-boldly-go-the-case-for-space-datacenters
4•davedx•47m ago•0 comments

Eating Out

https://www.futilitycloset.com/2026/06/06/eating-out/
2•speckx•48m ago•0 comments

Madagascar Hissing Cockroach

https://en.wikipedia.org/wiki/Madagascar_hissing_cockroach
3•davedx•48m ago•1 comments