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!

Sana.cpp – Nvidia's Sana T2I model in C++, 4.8x faster than PyTorch

https://github.com/cconthekeyboard/sana.cpp
1•cconthekeyboard•5m ago•1 comments

Octopuses could help us conceptualize a different form of intelligence

https://www.cbc.ca/lite/story/1.6871036
1•colinprince•7m ago•0 comments

Amodei Re. Regulation

https://twitter.com/DarioAmodei/status/2088758816376807762
1•jacquesm•13m ago•1 comments

Python's http.server – Add support for HTTP Range header in HTTPServer

https://github.com/python/cpython/pull/118949
2•gregsadetsky•15m ago•0 comments

Show HN: An open-source workspace for your agents

https://github.com/gigeey/launchpad-studio
1•SEArongo•17m ago•1 comments

A gas-enshrouded and gas-reddened black hole at cosmic dawn

https://www.nature.com/articles/s41586-026-10846-4
2•diwank•18m ago•0 comments

DeepSeek V4 Pro at 207 tok/s with the full 1M context, no quantization

https://runinfra.ai/inference-api/deepseek-v4-pro
3•OsamaJaber•18m ago•0 comments

Cross-Sectional Stock Selection: Where Returns Come from and Why Models Fail

https://wangqiao.me/posts/cross-sectional-stock-selection-models/
1•unliftedq•22m ago•0 comments

An app to streamline data analytics – and do it cheaply

https://app.verbagpt.com/
1•symuz•25m ago•0 comments

AGI-64 Brings Sierra Adventures to the Commodore 64

https://meanhamster.com/news/agi-64-brings-sierra-adventures-to-the-commodore-64
3•erickhill•28m ago•0 comments

Why Young Men Are Abandoning the Workforce

https://www.wsj.com/opinion/free-expression/young-men-are-abandoning-the-workforce-a021228a
2•bilsbie•38m ago•2 comments

BlockArena: AI-Generated FPS Game

https://blockarena.puter.com/
1•ent101•41m ago•0 comments

AI Agent Safety Is Still Thinking Like Permissions

https://jeffreyflynt02.medium.com/ai-agent-safety-is-still-thinking-like-permissions-45878337bd98
4•jflynt76•41m ago•0 comments

Why I vibecoded my own terminal multiplexer

https://www.codedsleep.com/posts/wv-multiplexer
1•codedsleep•43m ago•0 comments

Show HN: Adding friction to my automatic open Claude reaction

2•aqureshi8•44m ago•0 comments

Hacking Legends

https://opensourcelegends.com/hacking-legends
1•buffer_overlord•46m ago•0 comments

Rare things become common at scale (2014)

https://longform.asmartbear.com/scale-rare/
1•mooreds•47m ago•0 comments

Protecting water systems from cyberattacks: 5 steps cities can take now

https://www.smartcitiesdive.com/news/protecting-water-systems-cyberattacks-5-steps-cities/827560/
2•mooreds•47m ago•0 comments

Forecasting Andean rainfall and crop yield from influence of El Niño on Pleiades

https://www.nature.com/articles/47456
1•mooreds•48m ago•0 comments

Why Chinese Citizens Are More Optimistic About AI Than Americans

https://www.bloomberg.com/news/articles/2026-08-14/why-ai-optimism-is-so-much-higher-in-china-tha...
2•pella•48m ago•0 comments

PPS Watch – The Most Accurate Watch That Doesn't Tell Time

https://www.instructables.com/PPS-Watch-the-Most-Accurate-Watch-That-Doesnt-Tell/
1•sudo_cowsay•50m ago•0 comments

Code Is the Byproduct

https://yagmin.com/blog/code-is-the-byproduct/
2•lubujackson•56m ago•0 comments

Path Protocol – an open-source browser precision game and course editor

https://github.com/argentquest/protocol
2•EricMSilver•1h ago•0 comments

Inverse Problem

https://en.wikipedia.org/wiki/Inverse_problem
2•soupspaces•1h ago•0 comments

Physicists discover a hidden gluon structure inside protons

https://www.sciencedaily.com/releases/2026/08/260815064805.htm
6•gradus_ad•1h ago•0 comments

Play Anthakshari Online

https://anthakshari.ai/
3•hareeshimo•1h ago•0 comments

Israeli minister calls for killing '30 to 40′ Palestinians in Gaza nightly

https://www.aljazeera.com/news/2026/8/16/israeli-minister-calls-for-killing-30-to-40-palestinians...
28•LAC-Tech•1h ago•6 comments

Prolly: A content-addressed ordered map built on prolly trees

https://github.com/crabbuild/prolly
2•forhappy•1h ago•0 comments

Show HN: Continuum – Financial simulations for DIY multimillionaires

https://continuum-app.xyz/
3•charleswcho•1h ago•7 comments

Wallflower – A Social Reader

https://thewallflower.app/about
2•tldrthelaw•1h ago•0 comments