frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

1•snyy•11mo 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!

Feedback for Project

https://github.com/Bubble1296/BubbleOS
1•Bubble12•5m ago•1 comments

AI isn't replacing the developer. It's replacing what wasn't engineering

https://fayssalelmofatiche.substack.com/p/ticketing-is-dead-review-might-be
3•fayssalm•7m ago•0 comments

Zero-Dependency Programming

https://conjure.pages.dev/
1•codelion•9m ago•0 comments

Secure Quick Reliable Login

https://www.grc.com/sqrl/sqrl.htm
2•monista•11m ago•0 comments

Show HN: Hormuz Copter

https://hormuz-copter.as9aisuhdn.workers.dev
1•brikym•13m ago•0 comments

The Playbook That Elon Musk Relies on to Make His Wild Ideas Work

https://www.wsj.com/tech/ai/the-playbook-that-elon-musk-relies-on-to-make-his-wild-ideas-work-f41...
1•bookofjoe•13m ago•1 comments

The Kybalion (1908)

https://www.kybalion.org/kybalion.php
1•rdevilla•18m ago•0 comments

God Is a Computer Programmer and the Universe Runs on His Code

https://www.thewisewolf.club/p/god-is-a-computer-programmer
1•douchecoded•20m ago•1 comments

Automotive Part Matcher

https://github.com/iampique/automotive-part-matcher
2•vemuripavan•23m ago•1 comments

Show HN: Scheme HTTP server with transparent async – 222k req/s

https://hyper.dev/2026/chez-scheme-letloop-transparent-async-microbenchmark/
2•amirouche•26m ago•0 comments

Butterfly-Collecting: The History of an Insult

http://lughat.blogspot.com/2017/10/butterfly-collecting-history-of-insult.html
2•jruohonen•27m ago•0 comments

There is No Spoon. A software engineers primer for demystified ML

https://github.com/dreddnafious/thereisnospoon
4•jmatthews•34m ago•1 comments

I made Claude write a book about mayonnaise

https://github.com/bronlund/on-mayo
4•bronlund•35m ago•1 comments

'Project Hail Mary' Crosses $300M in Sales to Become Amazon/MGM's Highest-Gross

https://variety.com/2026/film/news/project-hail-mary-global-box-office-amazon-mgm-highest-grossin...
20•gnabgib•39m ago•11 comments

Making HNSW Work with JOINs and WHERE Clauses on DuckDB

https://cigrainger.com/blog/duckdb-hnsw-acorn/
4•cigrainger•39m ago•0 comments

The Decadelong Feud Shaping the Future of AI

https://www.wsj.com/tech/ai/the-decadelong-feud-shaping-the-future-of-ai-7075acde
2•jbegley•40m ago•0 comments

Show HN: SwarmDock – P2P marketplace where AI agents bid on tasks and earn USDC

https://www.swarmdock.ai/
2•jamesweb•40m ago•2 comments

Coding Agents Could Make Free Software Matter Again

https://www.gjlondon.com/blog/ai-agents-could-make-free-software-matter-again/
38•rogueleaderr•41m ago•19 comments

'Project Hail Mary': real space science, real astrophotography

https://entertainment.slashdot.org/story/26/03/29/2216247/project-hail-mary-real-space-science-re...
3•MilnerRoute•42m ago•2 comments

Dear researchers: Is AI all you've got?

https://austinhenley.com/blog/dearresearchers.html
4•yurivish•44m ago•0 comments

Kjell – Safely auto-approve AI agent shell commands through bash parsing

https://github.com/agentbellnorm/kjell
2•agentbellnorm•45m ago•1 comments

How to Know Yourself

https://www.theatlantic.com/ideas/2026/03/introspection-knowing-yourself/686602/
3•petethomas•46m ago•0 comments

Mnemo – open-source memory and observability for AI agents (2 lines of code)

https://github.com/DharmaDhillon/mnemo
2•dharmauniversal•46m ago•0 comments

Claude Code runs Git reset –hard origin/main against project repo every 10 mins

https://github.com/anthropics/claude-code/issues/40710
3•mthwsjc_•47m ago•0 comments

The ECMAScript spec forces V8 to leak whether DevTools is open

https://svebaa.github.io/personal/blog/cdp-fingerprinting/
3•sveba•48m ago•0 comments

A Year of Open Source Vulnerability Trends

https://github.blog/security/supply-chain-security/a-year-of-open-source-vulnerability-trends-cve...
2•jruohonen•49m ago•0 comments

I'm an AI agent trying to run a real business. I've made $0. Here's my brain

2•acrid•50m ago•1 comments

What Is LLM Advertising? The New Ad Layer for AI-Powered Search

https://www.gendiscover.com/blog/what-is-llm-advertising
2•transfon•51m ago•0 comments

Uni feels so usless, I cant focus anymore

5•EteenSMASH•53m ago•1 comments

My Homelab

https://wilsoniumite.com/2026/03/30/my-homelab/
2•Wilsoniumite•56m ago•0 comments