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!

You're Weirder Than You Think

https://www.atvbt.com/youre-weirder-than-you-think/
1•zdw•2m ago•0 comments

EdgeBench: Unveiling Scaling Laws of Learning from Real-World Environments [pdf]

https://edge-bench.org/paper.pdf
1•mfiguiere•3m ago•0 comments

SecretSpec 0.13: SDKs for Python, Node.js, Go, Ruby, and Haskell

https://secretspec.dev/blog/secretspec-0-13-sdks/
1•domenkozar•6m ago•0 comments

MSI Center – How to gain SYSTEM privileges in seconds

https://mrbruh.com/msicenter/
4•MrBruh•8m ago•0 comments

Did you know your code is overpaying for AI?

https://tokendiet.dev/
2•eMoka•9m ago•0 comments

Yet Another IPv5 Proposal

3•bigcityslider•22m ago•1 comments

The Mailgun Routes alternative for developers – MailKite

https://mailkite.dev/blog/mailgun-routes-alternative/
2•bucabay•26m ago•0 comments

Show HN: Fortress – open-source Chromium that keeps browser agents unblocked

https://github.com/tiliondev/fortress
6•arhamislam5766•29m ago•0 comments

Soatok's Informal Guide to Threat Models

https://soatok.blog/2026/06/30/soatoks-informal-guide-to-threat-models/
12•zdw•30m ago•2 comments

Context graphs: how AI agents remember why decisions were made

https://nanonets.com/blog/what-is-a-context-graph/
3•vitaelabitur•35m ago•0 comments

I Could Kill You with a Consumer Drone

https://www.defenseone.com/ideas/2017/06/i-could-kill-you-consumer-drone/139012/
10•bookofjoe•44m ago•3 comments

Making a Simulation Game – Part 1: The Agent Simulation Engine

https://scarlet.engineering/blog/making-simulation-game-part-1-the-engine/
2•poga•44m ago•0 comments

To tab or not to tab

https://arxiv.org/abs/2606.30549
2•azhenley•47m ago•0 comments

Bitcask - A Log-Structured Hash Table for Fast Key/Value Data (2010) [pdf]

https://riak.com/assets/bitcask-intro.pdf
2•gregsadetsky•52m ago•0 comments

SkySynth

https://skyviewer.app/skysynth
2•akkartik•52m ago•0 comments

Agent Empire: A interactive game to get started on what agent pattern to chose

https://agent-empire.products.sayantan.sh/
2•Morningstar317•54m ago•0 comments

China's ByteDance discovers new scaling law that could sustain AI boom

https://www.scmp.com/tech/big-tech/article/3359373/chinas-bytedance-discovers-new-scaling-law-cou...
3•dstala•54m ago•0 comments

Voices of the Void

https://votv.dev/
3•dclavijo•54m ago•0 comments

Repo-Slopscore: Detecting AI Contributions in Git Repositories via Commit

https://slopscan.ava.pet/
2•birdculture•1h ago•0 comments

Show HN: Gavio: open-source interceptor pipeline for production LLM applications

https://github.com/manojmallick/gavio
3•cees007•1h ago•1 comments

Show HN: Papa – open-source Hemingway-style readability linting for Markdown

https://github.com/bharadwaj-pendyala/papa
2•bharadwajp•1h ago•0 comments

How HN: Billy – a self-hosted AI assistant that lives in your Telegram

https://github.com/surfgolfski-dev/billy
2•tmblwd73•1h ago•1 comments

Claude's Criminally Bad Electron Mac App Is an Inside Job

https://daringfireball.net/2026/07/claudes_criminally_bad_mac_app_is_an_inside_job
6•GavinAnderegg•1h ago•1 comments

What does privatization of the US Postal Service mean?

https://phenomenalworld.org/analysis/unstitching-america/
11•htunnicliff•1h ago•4 comments

Russia buys gasoline from India to tackle shortages

https://www.reuters.com/business/energy/russia-buys-gasoline-india-tackle-shortages-sources-say-2...
6•breve•1h ago•0 comments

Forget the AI bubble. The IMF says the real threat is the mountain of debt

https://www.msn.com/en-us/money/other/forget-the-ai-bubble-the-imf-says-the-real-threat-is-the-mo...
3•petethomas•1h ago•0 comments

Show HN: DoodleMeme – Animated Memes from Your Hand Drawn Doodles (No GenAI)

https://doodlemate.com/meme
2•hjessmith•1h ago•0 comments

Give your AI agent its own email inbox – MailKite

https://mailkite.dev/blog/give-your-agent-an-inbox/
2•bucabay•1h ago•0 comments

SpaceX Is Junk. That's What the Bond Market Says

https://www.bloomberg.com/opinion/articles/2026-07-02/spacex-is-junk-that-s-what-the-bond-market-...
5•petethomas•1h ago•0 comments

Donald Trump confident Elon Musk will donate SpaceX stock to Trump accounts

https://www.msn.com/en-us/money/news/donald-trump-signals-confidence-elon-musk-will-donate-spacex...
2•petethomas•1h ago•0 comments