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!

'Lasting peace': Hamas, Trump announce 'complete disarmament'

https://www.theaustralian.com.au/world/hamas-agrees-complete-disarmament-announces-trump/news-sto...
1•asdefghyk•1m ago•1 comments

YC Startup Guaranteed Job Interviews for People Getting Company Logo Tattoo

https://www.wsj.com/lifestyle/careers/the-ai-startup-that-guaranteed-job-interviews-for-people-ge...
4•fortran77•9m ago•1 comments

Reimagine the World with Nano Banana in Google Earth

https://blog.google/products-and-platforms/products/earth/nano-banana-google-earth-image-generation/
1•soheilpro•13m ago•0 comments

Show HN: Real Estate Agent Email List – 1.1M+ US Realtor Contacts

https://www.usagentleads.com
1•qwikhost•14m ago•0 comments

How the HSA Became the Top%'s Wealth-Building Loophole

https://insurancedimes.com/2026/07/27/how-the-hsa-became-the-top-1-percents-ultimate-wealth-build...
1•crookedroad44•14m ago•0 comments

LinkedIn adds a 'seems like AI slop' button

https://www.theverge.com/ai-artificial-intelligence/973384/linkedin-seems-like-ai-slop-button
3•cwnyth•15m ago•0 comments

Refinement types for Rust

https://github.com/flux-rs/flux/
1•AsyncBanana•16m ago•0 comments

What did the Romans ever do for Christianity?

https://www.economist.com/culture/2026/07/23/what-did-the-romans-ever-do-for-christianity
2•andsoitis•22m ago•0 comments

Can LLMs have an "accent" like second language speakers?

1•hmokiguess•22m ago•0 comments

Agentic AI at Two Different Scales: Nanbeige4.2-3B and Laguna S2.1

https://kaitchup.substack.com/p/agentic-ai-at-two-different-scales
1•gmays•23m ago•0 comments

America's startup boom offers hope for the future of work

https://www.economist.com/leaders/2026/07/30/americas-startup-boom-offers-hope-for-the-future-of-...
2•andsoitis•23m ago•0 comments

MAME 0.289

https://www.mamedev.org/?p=565
4•chungy•27m ago•0 comments

Anthropic says Claude hacked three companies during tests

https://www.reuters.com/legal/litigation/anthropic-says-claude-ai-models-accessed-three-companies...
7•nerder92•35m ago•2 comments

DoC Announces LoIs With 7 Companies for $874M to Accelerate Semiconductor R&D

https://www.nist.gov/news-events/news/2026/07/department-commerce-announces-letters-intent-7-comp...
2•petethomas•38m ago•0 comments

Create your own startup in minutes

https://moneion.com
1•Developer_2•40m ago•2 comments

Why do OpenAI's GPT-2 weights beat mine? Part three: testing overtraining

https://www.gilesthomas.com/2026/07/why-do-openai-gpt2-weights-beat-mine-3-overtraining
1•gpjt•42m ago•0 comments

Decimen Optical Transfer: fountain-coded QR file transfer

https://github.com/bashalarmistalt/decimen-optical-transfer/
1•thunderbong•45m ago•0 comments

The Automation Mindset: Why AI Rewards Builders and Sidelines Everyone Else

https://digitalmagazines.online/articles/the-automation-mindset-why-ai-rewards-builders
1•FeelingCreative•45m ago•0 comments

What Every Programmer Should Know About Twists of Elliptic Curves

https://leetarxiv.substack.com/p/twists-of-elliptic-curves
2•birdculture•45m ago•0 comments

US cites 'unauthorized travel' to end DACA status for mother deported to Mexico

https://apnews.com/article/daca-immigration-texas-uscis-09071c1707e6e1d385ca503c9c75bc6f
7•petethomas•47m ago•1 comments

Economist Style Plugins for Claude Code

https://github.com/TAJD/economist-style-guide-plugin
1•handfuloflight•48m ago•1 comments

Judge Voices Doubt US Has Justified Its Ban on Anthropic AI

https://www.bloomberg.com/news/articles/2026-07-30/judge-voices-doubt-us-has-justified-its-ban-on...
5•sbulaev•52m ago•0 comments

Cursor Benchmark Partners

https://cursor.com/blog/benchmarkpartners
1•MehrdadKhnzd•57m ago•0 comments

Show HN: A VS Code extension buffers NPM updates to avoid supply chain attacks

https://marketplace.visualstudio.com/items?itemName=about14sheep.tinynpm
1•about14sheep•1h ago•0 comments

Anthropic AI Models Hacked Three Organizations During Tests

https://www.bloomberg.com/news/articles/2026-07-30/anthropic-s-ai-models-hacked-three-organizatio...
4•evo_9•1h ago•0 comments

Show HN: Great Spectations, the Spec Checker

https://greatspectations.com
1•RustyRussell•1h ago•1 comments

NeuronAI turns smart solutions into voice

https://neuronai.uz/en/
3•yutabek•1h ago•0 comments

We accidentally built an LLVM compiler for Jax

https://iza.ac/posts/2026/07/accidental-llvm-compiler-for-jax/
2•infinitewalk•1h ago•0 comments

ISS Mimic

https://iss-mimic.github.io/Mimic/dashboard.html
1•michaefe•1h ago•2 comments

The Religion of Speed

https://graybeard.ing/the-religion-of-speed/
3•MobiusHorizons•1h ago•2 comments