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!

Sprout – easily build an app with AI, share it, and use other apps

https://sprout.monkeyai.io/
1•davidk2yang•29s ago•1 comments

Obama addresses racist video shared by Trump depicting him as an ape

https://www.bbc.com/news/articles/c74754j7qwgo
1•Dwus•1m ago•0 comments

Antirez/h3.c: MiniMax H3 inference engine for Mac computers

https://github.com/antirez/h3.c
1•swyx•7m ago•0 comments

Insidedb, an interactive, animated explainer of database internals

https://david-g-3654.github.io/insidedb/
1•davai-g•9m ago•0 comments

Show HN: Sketchling – a hand-drawn animation language for coding agents

https://github.com/AnayGarodia/sketchling
1•ag5250•11m ago•0 comments

Predicting AI Job Exposure

https://www.ben-evans.com/benedictevans/2026/5/24/ai-job-exposure
1•fagnerbrack•13m ago•0 comments

Reorgs Happen

https://ben.balter.com/2026/06/07/reorgs-happen/
2•fagnerbrack•13m ago•0 comments

Compensation Bands and Promotions

https://molochinations.substack.com/p/compensation-bands-and-promotions
2•fagnerbrack•13m ago•0 comments

Google's AI Team Tells Job Seekers Its HR Filters Are Unreliable

https://www.bloomberg.com/news/articles/2026-08-10/google-s-ai-team-tells-job-seekers-its-hr-filt...
2•htrp•14m ago•1 comments

Show HN: Linejudge – an independent verification harness for coding agents

https://github.com/phillipmex/linejudge
1•phillipmex•20m ago•0 comments

Show HN: Airship – Figma-Like Visual Editor for Claude Code, Codex and OpenCode

https://github.com/0xnyn/airship
1•0xnyn•20m ago•0 comments

A Lost Civilization Is Baffling Experts and Rewriting China's Origin Story

https://www.wsj.com/world/china/a-lost-civilization-is-baffling-experts-and-rewriting-chinas-orig...
4•bookofjoe•21m ago•1 comments

Nintendo Should Stop Selling Consoles

https://taikhooms.substack.com/p/nintendo-the-media-company
2•Altaba•24m ago•0 comments

Flock Cameras Can Track Every Car in America. Police Love Them. Citizens Don't

https://www.nytimes.com/2026/08/10/us/flock-cameras-can-track-every-car-in-america-police-love-th...
19•pseudolus•29m ago•2 comments

OpenAI found us generators for maximal Monster subgroup holdout 59:29

https://arxiv.org/abs/2607.28900
1•oliculipolicula•30m ago•0 comments

U.S. brokers secret deal on clandestine Syrian nuclear site

https://www.axios.com/2026/08/10/syria-nuclear-israel-turkey-iaea
2•cwwc•31m ago•0 comments

Sergey Brin has now spent $100M to fight the billionaire tax

https://techcrunch.com/2026/08/10/google-co-founder-sergey-brin-has-now-spent-100-million-to-figh...
6•debo_•31m ago•2 comments

Show HN: Ohm – Use uBlock Origin cosmetic filters in Chrome again

https://ohm.wbnns.com/
1•wbnns•34m ago•0 comments

Show HN: It's 6 18 am now going to sleep as MVP is made GN

https://bengu-phi.vercel.app
1•sahil423•38m ago•0 comments

Road deaths in the US have fallen more slowly than in other rich countries

https://ourworldindata.org/data-insights/road-deaths-in-the-united-states-have-fallen-much-more-s...
2•alphabetatango•43m ago•1 comments

Using AI while exercising your critical thinking

https://swiftrocks.com/using-ai-without-losing-critical-thinking
1•jshchnz•44m ago•0 comments

The Fourth Amendment After Chatrie

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=7238178
1•cbrews•44m ago•0 comments

Harry Potter fans force diverting UK-Ireland power link to avoid Dobby's grave

https://www.bbc.com/news/articles/cy8mgpl27dpo
7•yurivish•46m ago•2 comments

The insufferable hypocrisy of elite academia

https://www.theatlantic.com/magazine/2026/09/elite-academia-leadership-hypocrisy/687969/
2•loughnane•47m ago•0 comments

Show HN: SecondState – what if Hebbia started with raw ERP data?

https://trysecondstate.com/
1•ELAmrani•50m ago•0 comments

SpaceX's Earnings Show Elon Wiped Out Two-Thirds of Twitter's Ad Business

https://www.techdirt.com/2026/08/10/spacexs-earnings-show-elon-wiped-out-two-thirds-of-twitters-a...
7•shye•52m ago•0 comments

Greenland issues 'strong warning' as Trump-linked oil firm prepares to drill

https://www.theguardian.com/world/2026/aug/08/greenland-iwarning-trump-linked-oil-firm-prepares-d...
5•abdelhousni•53m ago•1 comments

Beware the Permanent Periphery

https://asteriskmag.com/issues/15/beware-the-permanent-periphery
2•m-hodges•54m ago•0 comments

Cable Pioneer Bob Miron Dies at 89

https://www.cablefax.com/people/cable-pioneer-miron-dies-at-89
2•indigodaddy•54m ago•2 comments

Muse Glimmer 30B unsloth GGUF format Q4, Q6, Q8 quantizations

https://huggingface.co/unsloth/Muse-Glimmer-30B-GGUF
1•walrus01•54m ago•0 comments