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!

Retired EV Batteries Get Second Life on the Grid

https://spectrum.ieee.org/second-life-ev-batteries
1•sohkamyung•1m ago•0 comments

Trump's Crypto Bank Built an Iran Sanctions Loophole

https://www.disruptionbanking.com/2026/07/16/trumps-crypto-bank-built-an-iran-sanctions-loophole-...
2•bmcdresson•1m ago•0 comments

The Short-Selling Hedge Fund Manager Walks Free While Accomplice Sits in Prison

https://www.disruptionbanking.com/2026/07/16/the-short-selling-hedge-fund-manager-walking-free-wh...
2•bmcdresson•2m ago•0 comments

Cerebras discontinue its free tier plan

https://www.cerebras.ai/pricing
2•TheJCDenton•3m ago•1 comments

The Manhattan prosecutor fighting the trade in stolen antiquities

https://www.ft.com/content/84ee6da5-41c8-4372-b166-b10046d914d8
2•Jtsummers•5m ago•0 comments

Users Are Humans in Some Context

https://minsukchang.com/blog/2026-07-15-human-in-context.md.html
1•sebg•6m ago•0 comments

Learning from experience instead of curated datasets

https://oaklab.ai/posts/learning-from-experience-instead-of-curated-datasets
2•sebg•13m ago•0 comments

I Made a YouTube Advert Destroyer

https://supercool.gumroad.com/l/YoutubeAdvertDestroyer
1•DemiKone2•17m ago•2 comments

My car's OTA update broke Android Auto, and it's a indictment of modern software

https://imdanielkendall.com/the-great-software-regress-how-move-fast-and-break-things-broke-our-l...
6•Expletive4138•17m ago•0 comments

SpaceX Starship Flight 13 – Everyday Astronaut stream [video]

https://www.youtube.com/watch?v=2r31rEkUUaA
3•losvedir•17m ago•0 comments

Show HN: Mojibake – a low-level Unicode library written in C

https://mojibake.zaerl.com/
5•program•18m ago•0 comments

The Free and Willing Algorithm

https://yelluwcomedy.substack.com/p/the-free-and-willing-algorithm
2•Burnsedia•19m ago•0 comments

Trump Media to sell high-speed access to president's social media posts

https://www.ft.com/content/32db576f-4f53-47d2-b00c-2ad4e906952c
4•pseudolus•19m ago•1 comments

The Little Book of Reinforcement Learning

https://github.com/alxndrTL/little-book-rl/
2•mustaphah•20m ago•0 comments

Tldraw Offline

https://offline.tldraw.com/
2•Yenrabbit•20m ago•1 comments

I built a privacy-first crypto portfolio tracker after the Ledger breach

https://coinwatch.space/en
2•ciferulo•22m ago•0 comments

Production and Reliability Series

https://yusufaytas.com/series/production-and-reliability
7•yusufaytas•24m ago•1 comments

FIFA World Cup 2026 Data Portraits

https://wc26.bogachev.fr/index.html
14•sebg•25m ago•9 comments

Fake IDs, Dummy Manuscripts and a Rare Book Heist at U.C.L.A

https://www.nytimes.com/2026/07/09/us/ucla-library-theft-chinese-books-california.html
3•reaperducer•25m ago•0 comments

Show HN: ReasonGate- An explainable gate that blocks LLM prompt injection

https://github.com/cgrtml/reasongate
3•Cagritemel•25m ago•0 comments

Boron – fast and lightweight stackful coroutines

https://codeberg.org/jjl/boron
3•miniBill•26m ago•0 comments

Russian kamikaze drone C++ reconstruction of onboard autonomy stack

https://github.com/19h/EPathfinder
3•19h•26m ago•1 comments

EU will force Google to share search data and open up AI on Android

https://arstechnica.com/gadgets/2026/07/its-official-eu-will-force-google-to-share-search-data-an...
4•EspadaV9•28m ago•0 comments

Ask HN: cybersecurity refusal for turning a jailbroken kindle into a monitor

7•areoform•33m ago•1 comments

Akihiro Miwa, Actor and Singer with Gender-Fluid Glamour, Dies at 91

https://www.nytimes.com/2026/07/16/movies/akihiro-miwa-dead.html
4•moritzwarhier•33m ago•0 comments

Forced to use a Pin in Windows 11, some alternatives

https://learn.microsoft.com/en-us/answers/questions/3865530/forced-to-use-a-pin-in-windows-11-why...
5•itronitron•34m ago•0 comments

You cannot copyright AI generated material in the US

https://twitter.com/CrimeDecoder/status/2077878317928087906
4•apwheele•36m ago•0 comments

Godot Community Poll 2026

https://godotengine.org/article/godot-community-poll-2026/
4•pineappletooth_•38m ago•0 comments

CVE-2026-25089: FortiSandbox unauthenticated command injection added to CISA KEV

https://hellorecon.com/blog/cve-2026-25089
9•slvnx•39m ago•0 comments

Flowers for Algernon

https://en.wikipedia.org/wiki/Flowers_for_Algernon
4•Jimmc414•40m ago•1 comments