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!

The Art of Kite Flying (1430–1929)

https://publicdomainreview.org/collection/art-of-kite-flying/
1•benbreen•40s ago•0 comments

Show HN: Woltspace – a lodge for your coding agents

https://www.woltspace.com/
1•jerpint•4m ago•0 comments

GitHub Banned All CI for Our (OSS) Org Because of Bad Drive-By Contributors

1•BlueMatt•5m ago•0 comments

Americans and AI 2026: Chatbots, Smart Devices and Views on Impact

https://www.pewresearch.org/internet/2026/06/17/americans-and-ai-2026-chatbots-smart-devices-and-...
1•toomuchtodo•11m ago•0 comments

Rightwing populist 'El Tigre' wins Colombia election

https://www.ft.com/content/49294716-56be-40a4-ba31-b4e376ccb47f
1•petethomas•11m ago•0 comments

Zombie unicorns are haunting Silicon Valley

https://www.economist.com/business/2026/06/21/zombie-unicorns-are-haunting-silicon-valley
4•andsoitis•14m ago•0 comments

Crossary – AI-assisted field mapping that outputs signed Excel files

https://www.crossary.com
1•migueljpalmeida•14m ago•0 comments

Japan's Toto to invest $495M in chip materials, targeting 1-nm era

https://asia.nikkei.com/business/tech/semiconductors/japan-s-toto-to-invest-495m-in-chip-material...
1•Nrbelex•17m ago•0 comments

Never Too Late

https://stephengbarr.substack.com/p/its-never-too-late-practical-tips
1•SGBmedia•19m ago•0 comments

Remaking BBC test cards to teach you video processing

https://www.youtube.com/watch?v=U_6HxPkrgcg
1•unleaded•20m ago•0 comments

Job application asked for my SAT scores

https://mrmarket.lol/job-application-asked-for-my-sat-scores/
2•mrmarket•20m ago•0 comments

2k retired Google Pixel phones get a second life as a private cloud

https://www.theregister.com/on-prem/2026/06/18/2000-retired-google-pixel-phones-get-a-second-life...
2•joebuckwilliams•21m ago•0 comments

Early prototype of Stonehenge unearthed 3 miles from prehistoric landmark

https://www.nbcnews.com/world/united-kingdom/stonehenge-united-kingdom-prehistoric-prototype-summ...
2•gmays•27m ago•1 comments

Keogram: The Sky in 2025

https://apod.nasa.gov/apod/ap260621.html
1•mef51•27m ago•0 comments

Entity Core Protocol

https://github.com/EntityChurch/entity-core-protocol/blob/master/specs/ENTITY-CORE-PROTOCOL.md
1•billatbillslab•30m ago•1 comments

You're probably using Agent Skills wrong

https://notes.ansonbiggs.com/youre-probably-using-agent-skills-wrong/
2•MisterBiggs•38m ago•0 comments

Hacking their bodies for a longer life: is there science behind their methods?

https://www.nature.com/articles/d41586-026-01884-z
2•olalonde•41m ago•0 comments

World-first catch: new shark species

https://www.eurekalert.org/news-releases/1132305
2•gmays•46m ago•0 comments

Show HN: Baserates.dev, memorize programmer napkin math

https://www.baserates.dev/
1•stopachka•49m ago•0 comments

The Doom Justifies the Valuation

https://geohot.github.io//blog/jekyll/update/2026/06/21/the-doom-justifies-the-valuation.html
29•inatreecrown2•55m ago•12 comments

The Next Black President

https://www.vanityfair.com/story/the-next-black-president
7•Kapura•58m ago•0 comments

Ask HN: Are you being "529 Overloaded" by Anthropic too?

3•hmokiguess•59m ago•1 comments

QEMU with Espressif

https://github.com/espressif/qemu
2•arbayi•1h ago•0 comments

Older iPhones are vulnerable to a flaw Apple likely can't fix

https://mashable.com/tech/older-iphones-vulnerable-to-a-flaw-apple-cant-fix
3•gnabgib•1h ago•0 comments

Claude: Elevated Error Rates for Opus 4.8, Opus 4.7, Opus 4.6, and Sonnet 4.6

https://status.claude.com/incidents/lv35v0q9nsj2
32•forks•1h ago•35 comments

(Reverse Engineering) Apple Internals: Swift in the Kernel

https://blog.calif.io/p/apple-internals-swift-in-the-kernel
3•dnw•1h ago•0 comments

1983 Northern Telecom Commodore Phone

https://www.oldtelephoneroom.ca/1983-northern-telecom-commodore-phone/
11•arexxbifs•1h ago•2 comments

Give your sandboxed agents API keys they can't read

https://www.superserve.ai/blog/introducing-secrets/
2•Amit_Patil_010•1h ago•0 comments

Better Grammar – Grammar Practice for Adults

https://benkaiser.github.io/better-grammar/
3•benkaiser•1h ago•0 comments

Summer Solstice 2026: Sunrise Live from Stonehenge [video]

https://www.youtube.com/watch?v=Z8a4eoxUIMw
2•zeristor•1h ago•2 comments