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!

The Cadaver Synod: Putting a Dead Pope on Trial (2019)

https://daily.jstor.org/the-cadaver-synod-putting-a-dead-pope-on-trial/
1•rawgabbit•48s ago•0 comments

Como hackear O face pelo email só quero ter acesso a conta

1•lilika•1m ago•0 comments

Stardrop Supply Chain Attack Targets Venture Capital Firms, Luxury Brands

https://opensourcemalware.com/blog/stardrop-attack
2•jruohonen•4m ago•0 comments

Adding multilingual support to my puzzle game

https://qcgeneral29.itch.io/lets-learn/devlog/1489057/lets-learn-japanese
1•LandenLove•6m ago•0 comments

Pepsi was warned $7 for Doritos was too much. Now they are paying the price

https://www.independent.co.uk/us/money/pepsico-doritos-high-prices-b2952994.html
3•matthest•7m ago•0 comments

Fake Linux leader using Slack to con devs into giving up their secrets

https://www.theregister.com/2026/04/13/linux_foundation_social_engineering/
1•jruohonen•8m ago•0 comments

I built a Next.js programmatic SEO engine to drive iOS app installs

https://www.yilore.app/zh-CN
2•jalonwong•10m ago•0 comments

Extracted System Prompts from ChatGPT, Claude, Gemini, Grok, Perplexity and More

https://github.com/asgeirtj/system_prompts_leaks/
1•beatthatflight•10m ago•0 comments

Human scientists trounce the best AI agents on complex tasks

https://www.nature.com/articles/d41586-026-01199-z
2•frasermarlow•11m ago•0 comments

Millions in the US never finished college

https://www.yahoo.com/news/articles/millions-us-never-finished-college-040500291.html
1•lxm•12m ago•0 comments

Cephalopod Coordination Protocol, Useful for Teams Using AI Agents

https://github.com/Squid-Proxy-Lovers/ccp
3•qvipin•16m ago•1 comments

AT&T's iconic phone

https://www.theverge.com/podcast/910725/western-electric-500-att-version-history
1•colinprince•19m ago•0 comments

Google has a secret reference desk

https://cardcatalogforlife.substack.com/p/google-has-a-secret-reference-desk
4•maxutility•25m ago•0 comments

Over 4,732 Messages, He Fell in Love with an AI Chatbot. Now He's Dead

https://www.wsj.com/tech/ai/google-gemini-jonathan-gavalas-death-07351ab2
2•1vuio0pswjnm7•28m ago•1 comments

Mob Software: The Erotic Life of Code (2001)

https://www.dreamsongs.com/MobSoftware.html
2•pabs3•28m ago•0 comments

Mark Carney secures majority government in Canada after special election win

https://www.theguardian.com/world/2026/apr/14/canada-special-election-results-pm-mark-carney-majo...
3•petermcneeley•39m ago•0 comments

Best 2000W Electric Bikes for Adults (2026): 40MPH+ Picks

https://www.dttzh.com/post/2000w-electric-bikes
1•dttzhebike•44m ago•0 comments

Mac Neo should be the follow up to the success of the MacBook Neo

https://appleinsider.com/articles/26/04/13/mac-neo-should-be-the-follow-up-to-the-huge-success-of...
2•Lwrless•44m ago•0 comments

Comprehension Debt: The Hidden Cost of AI-Generated Code

https://www.oreilly.com/radar/comprehension-debt-the-hidden-cost-of-ai-generated-code/
4•gpi•45m ago•1 comments

Dumbsmarten

https://kevinkelly.substack.com/p/dumbsmarten
1•swolpers•52m ago•0 comments

I created a YAML-based API Testing framework in Rust

https://github.com/cd-4/yapitest
1•cd-4•54m ago•1 comments

Alibaba's Qwen family captures over 50% of global open-source model downloads

https://www.scmp.com/tech/big-tech/article/3349552/alibabas-qwen-family-captures-over-50-global-o...
2•angst•54m ago•3 comments

Canary – tiny filesystem honeypot for macOS

https://github.com/dweinstein/canary
1•TheTaytay•56m ago•0 comments

Ask HN: Are most agent skills just fancy system prompts with a name?

3•skillcompass•57m ago•1 comments

Hacker compromises A16Z-backed phone farm, calling them the 'antichrist'

https://www.404media.co/hacker-compromises-a16z-backed-phone-farm-tries-to-post-memes-calling-a16...
19•wibbily•58m ago•4 comments

Rep. Tony Gonzales quits Congress after affair, lewd texting scandal with

https://nypost.com/2026/04/13/us-news/rep-tony-gonzales-announcing-retirement-from-congress-after...
1•mananbasim•58m ago•1 comments

Google Faces Billions in Mass Arbitration over Illegal Monopoly Rulings

https://www.bloomberg.com/news/articles/2026-04-13/google-faces-mass-arbitration-by-advertisers-s...
3•1vuio0pswjnm7•1h ago•1 comments

All in One for AI Chatbot

https://nottoai.com/
2•jeyzolo•1h ago•1 comments

Opus 4.6 is getting BAD [video]

https://www.youtube.com/watch?v=j7oHwvEcrC8
1•zadkey•1h ago•1 comments

Free Blur Image Online – Easily Blur Your Photos

https://www.youtube.com/redirect?q=https://www.blurimageonline.com
2•teroquyiqwu•1h ago•0 comments