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!

Show HN: Arena for Speech-to-Speech Models

https://voiceduel.com/
2•armaanp23•3m ago•0 comments

Email Personalization That Gets Read

https://www.maxprog.com/site/blog/post.php?id=2984&topic=Email-Personalization-That-Gets-Read
1•maxprog•3m ago•0 comments

Astronomers Find a New Object from the Early Universe Using Webb Data

https://www.universetoday.com/articles/astronomers-find-a-new-object-from-the-early-universe-usin...
1•rbanffy•4m ago•0 comments

Show HN: Podiom – Persistent project context, goals and scheduling for AI agents

https://github.com/Podiom/Podiom
1•Maphielbso•6m ago•0 comments

Collapse OS - Bootstrap post-collapse technology

https://collapseos.org/
1•sedatk•6m ago•0 comments

Opus5/low can do CryptoNote base58 decoding toolless, in working memory alone

https://bsky.app/profile/jleclanche.bsky.social/post/3msji47npvk2y
4•scrollaway•8m ago•0 comments

Chip design from the bottom up – Reiner Pope [video]

https://www.youtube.com/watch?v=oIk3R-sMX5o
2•__rito__•10m ago•0 comments

Water system controllers don't belong on the internet, says ex-NSA chief

https://www.theregister.com/security/2026/08/07/water-system-controllers-dont-belong-on-the-inter...
5•Bender•11m ago•0 comments

Cop who used police system to snoop for info on crook pals sentenced

https://www.theregister.com/legal/2026/08/07/cop-who-used-police-system-to-snoop-for-info-on-croo...
1•Bender•12m ago•0 comments

Flesh-eating screwworms feast on humans in Mexico; human cases top

https://arstechnica.com/health/2026/08/flesh-eating-screwworms-feast-on-humans-in-mexico-human-ca...
1•Bender•13m ago•0 comments

Show HN: From raw Point Cloud dataset to regular Grid index

https://huggingface.co/spaces/adec314/point-to-grid
1•adec314•17m ago•0 comments

Investors Clamor to Bet on AI Whiz Kid Fund After Situational Awareness Turmoil

https://www.bloomberg.com/news/articles/2026-08-07/silicon-valley-rallies-around-ai-whiz-kid-afte...
2•petethomas•18m ago•0 comments

Comparable information rates across the human communicative niche

https://pmc.ncbi.nlm.nih.gov/articles/PMC6984970/
1•gregsadetsky•21m ago•0 comments

Predictable Updates About Consciousness

https://minihf.com/posts/2024-08-08-predictable-updates-about-consciousness/
2•zetalyrae•25m ago•1 comments

Open source, locally translate any video to English

https://github.com/devrim/mid-voice
1•aesopsfable•28m ago•1 comments

iOS 26 Gets First Jailbreak Thanks to Dopamine

https://www.macrumors.com/2026/08/07/ios-26-dopamine-jailbreak/
3•tosh•29m ago•0 comments

Show HN: Hermes Missions – crash-safe durable execution for AI agents, no deps

1•devcriollo•31m ago•1 comments

China's Kimi K3 AI model escapes isolated sandbox during security test

https://www.scmp.com/tech/tech-trends/article/3363271/chinas-kimi-k3-ai-model-escapes-isolated-sa...
6•johnbarron•31m ago•0 comments

Schrödinger's Toctou

https://github.com/xoreaxeaxeax/schrodingers-toctou
2•karel-3d•35m ago•0 comments

Ask HN: What art would you like to express?

3•d4ng•37m ago•1 comments

Geometric Fluid Mechanics (SGP'26 Course)

https://www.youtube.com/watch?v=c-iGLl4rPik
1•E-Reverance•37m ago•0 comments

Release: Rep. Khanna Introduces Data Center Bill of Rights

https://khanna.house.gov/media/press-releases/release-rep-khanna-introduces-data-center-bill-rights
3•fortran77•40m ago•1 comments

Show HN: Secchi – Package intelligence in your terminal

https://github.com/kannandreams/secchi
1•kannanpoem1984•40m ago•1 comments

YouTube's AI Detection Kicked Us in the Face

https://twitter.com/Kurz_Gesagt/status/2083191397981561232
3•unsnap_biceps•41m ago•1 comments

xAI's Grok Build 1.0 ships an undocumented remote-workspace command

https://runtimewire.com/article/exclusive-xai-s-grok-build-1-0-ships-an-undocumented-remote-works...
2•ryanmerket•42m ago•0 comments

CFPB Winds Down Probe of Community Loan Funds Targeted by Vought

https://news.bloomberglaw.com/banking-law/cfpb-winds-down-probe-of-community-loan-funds-targeted-...
2•petethomas•43m ago•0 comments

Smoking accessories are making a comeback

https://www.admiddleeast.com/story/the-most-controversial-trend-of-2026-smoking-accessories-are-m...
1•Pamar•47m ago•2 comments

Startup Lumilens Raises $700M to Replace Data-Center Wires with Light

https://www.wsj.com/tech/startup-raises-700-million-to-replace-data-center-wires-with-light-adc74358
2•bookofjoe•49m ago•1 comments

What If Wishes Could Be Bought and Sold?

https://www.newyorker.com/books/page-turner/what-if-wishes-could-be-bought-and-sold
1•Anon84•52m ago•0 comments

AI Tool Directory

1•lokeshjoshi•53m ago•0 comments