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!

Why wait? Business grads buying firms to install themselves as CEO

https://www.bbc.com/news/articles/czxqpqrzq01o
2•BiraIgnacio•6m ago•0 comments

Portal by Spotify cut my Claude Code token usage by 90%

https://engineering.atspotify.com/2026/9/portal-by-spotify-cut-my-claude-code-token-usage-by-90
2•cebert•9m ago•0 comments

Ask HN: What's Going on with Web.archive.org

1•1vuio0pswjnm7•12m ago•0 comments

Apple's iPhone Event Early [video]

https://www.youtube.com/watch?v=4nC_YTAVmls
1•Cider9986•19m ago•0 comments

Build your own benchmark masterclass

https://www.youtube.com/watch?v=IUmomwsgRN0
1•rvialep•19m ago•0 comments

The Decade of Decline in Seattle Public Schools

https://www.educationprogress.org/p/the-decade-of-decline-in-seattle
3•barry-cotter•22m ago•0 comments

Fontra – The browser-based Font Editor

https://fontra.xyz
2•zahrevsky•24m ago•1 comments

The 33-Year-Old AI Hotshot Taking Silicon Valley Swagger Back to Beijing

https://www.wsj.com/tech/ai/moonshot-ai-yang-ceo-china-6f12ddbf
2•megacorp•32m ago•1 comments

Connecting every app to every other app

https://blog.val.town/connectors
3•Chidiebere229•38m ago•0 comments

Gimlet's Series B

https://gimletlabs.ai/blog/announcing-series-b
3•bigcat12345678•39m ago•0 comments

Columbo should model CoT reasoning

https://hollisrobbinsanecdotal.substack.com/p/just-one-more-thing
1•HR01•40m ago•0 comments

Oracle Health Execs Subpoenaed After VA Contract Costs Nearly Triple

https://medcitynews.com/2026/09/oracle-healthcare-ehr-va/
3•sbulaev•41m ago•0 comments

Diffusion as a Training Curriculum for Timestep-Free Iterative Reasoning

https://arxiv.org/abs/2609.01449
1•E-Reverance•42m ago•0 comments

Are Fewer Children the Future?

https://newrepublic.com/article/215004/fewer-children-future-global-fertility-decline
2•littlexsparkee•52m ago•3 comments

GPT-6 Astra proves Berge Fulkerson for C(20) graphs

https://twitter.com/fcesco/status/2096001522312085724
3•fcesco•53m ago•0 comments

Thoughts on Twitterviewer.net?

2•orange999•55m ago•2 comments

Claude Code skills for advanced context engineering techniques and patterns

https://github.com/NeoLabHQ/context-engineering-kit
1•leovs09•56m ago•0 comments

Show HN: TimerVana a Local-first scheduler for real world routines

https://timervana.net/browse
1•granto•1h ago•0 comments

This Month in Ladybird – August 2026

https://ladybird.org/newsletter/2026-08-31/
6•exploraz•1h ago•0 comments

Ask HN: Why isn't there a cursor for video games development

1•JimsonYang•1h ago•1 comments

NextDNS: fully configurable DNS, accepts money from customers as business model

https://nextdns.io/
1•Arubis•1h ago•1 comments

Can guitar frets perform multiplication?

https://www.charlespetzold.com/blog/2026/09/Can-Guitar-Frets-Perform-Multiplication.html
8•wibbily•1h ago•0 comments

Christmas Village shoppers no longer will be allowed to enter booths

https://www.phillyvoice.com/christmas-village-booths-ada-compliance/
5•josephcsible•1h ago•3 comments

What Tech Titans Don't Understand About Sci-Fi

https://www.theatlantic.com/newsletters/2026/09/the-books-briefing-tech-titans-sci-fi-asimov-lepo...
4•cisc•1h ago•0 comments

Rust's Type Checker Implementation Is Unsound: An Empirical Study

https://arxiv.org/abs/2608.28713
3•pykello•1h ago•0 comments

Abliteration.ai is making a business out of removing AI guardrails

https://techcrunch.com/2026/09/03/abliteration-ai-is-making-a-business-out-of-removing-ai-guardra...
3•ndesaulniers•1h ago•0 comments

The Search Evaluation Ladder

https://www.searchplex.net/blog/search-evaluation-ladder
2•splxai•1h ago•0 comments

Los Angeles District Bans Most A.I. For Students

https://www.nytimes.com/2026/09/03/us/lausd-schools-ban-ai-artificial-intelligence.html
3•bookofjoe•1h ago•4 comments

Basic News – a Telegram bot with customizable news digests

https://basicnews.world/
1•xenohunter•1h ago•0 comments

A pre-registered test: can a business's rules be recovered from its data?

https://justinsmith.build/writing/everything-a-business-knows/
1•s14jsmith•1h ago•0 comments