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!

Oops, Should've Thought of That

https://blog.jim-nielsen.com/2026/oops-shouldve-thought-of-that/
1•Brajeshwar•52s ago•0 comments

Best Enterprise AI Gateway for Scalability and Cost Control

https://medium.com/@sebuzdugan/best-enterprise-ai-gateway-for-scalability-and-cost-control-837680...
1•sebuzdugan•3m ago•0 comments

Option Prices Imply Little Will Happen This Coming Month

https://www.emergingtrajectories.com/lh/cboe-indices-too-calm/
1•cl42•3m ago•0 comments

Self-Hosted Sandbox for Coding Agents

https://medium.com/@Koukyosyumei/self-hosted-sandbox-for-coding-agents-bf1f16c9144e
1•syumei•3m ago•0 comments

Is Europe safer than America?

https://www.economist.com/graphic-detail/2026/08/09/is-europe-safer-than-america
1•alphabetatango•5m ago•1 comments

Which countries have passed peak population, and when will the rest do?

https://ourworldindata.org/which-countries-have-already-passed-peak-population-and-when-will-the-...
1•alphabetatango•7m ago•0 comments

Show HN: Smplkit – feature flags, remote config, dynamic log levels – solo dev

https://www.smplkit.com/
1•mike-gorman•11m ago•0 comments

Kickstart Exchange

https://exchange.kickstart.tools/
2•wrxd•12m ago•0 comments

Netlify is building its own Git platform

https://www.netlify.com/blog/netlify-source-with-netlify-cto-dana-lawson/
3•serhalp•12m ago•0 comments

The Secret Word Game Bank of America's CEO Plays with Wall Street

https://www.wsj.com/finance/banking/the-secret-word-game-bank-of-americas-ceo-plays-with-wall-str...
1•gmays•13m ago•0 comments

Modular Cognitive Architecture Emerges in Large Language Models

https://arxiv.org/abs/2608.13567
1•Brajeshwar•15m ago•0 comments

Show HN: Convert Documents to Markdown

https://insanai.github.io/zenfmt/
1•vikrantrathore•15m ago•0 comments

Future of the Brain: Dr. Shulgin, Dr. Koch, Dr. Churchland (2005) [video]

https://www.youtube.com/watch?v=Lf0YfMX_MFk
1•binyu•15m ago•0 comments

Show HN: A distributed experiment in structured prime search

https://github.com/max-russo-com/max-prime-challenge
1•max-russo•16m ago•1 comments

Spain extends Almaraz nuclear plant operations through 2030

https://www.reuters.com/business/energy/spain-extends-almaraz-nuclear-plant-operations-through-20...
1•mpweiher•16m ago•0 comments

Modjo's "Lady": Memories of the Video

https://francoisnemeta.wordpress.com/2016/06/29/modjo-lady-hear-me-tonight-the-story/
1•Michelangelo11•16m ago•0 comments

Exercises Physical Therapists Wish Everyone Did to Age Well

https://www.nytimes.com/2026/08/15/well/move/exercises-physical-therapists-longevity.html
1•whack•18m ago•0 comments

Exclusive model of Ferrari's first electric car, Luce, sells for $40M

https://www.cnn.com/2026/08/17/cars/ferrari-electric-luce-record-sale-intl-scli
1•thm•18m ago•1 comments

New weekly injection offers diabetics alternative to daily insulin shots

https://www.washingtonpost.com/health/2026/08/16/new-weekly-injection-offers-diabetics-alternativ...
1•bookofjoe•19m ago•1 comments

Autonomous Buying of Experiment Equipment

https://chillphysicsenjoyer.substack.com/p/autonomous-buying-of-experiment-equipment
1•surprisetalk•19m ago•0 comments

Ubuntu is growing faster on Windows 11 than on native Linux PCs, says Canonical

https://www.windowslatest.com/2026/08/16/ubuntu-is-growing-faster-on-windows-11-than-on-native-li...
3•CoolCold•21m ago•3 comments

The Great Lock in of 2026

https://www.punctr.art/lock-in/
1•speckx•24m ago•0 comments

ZX Spectrum System Tour: Memory Mapping

https://bumbershootsoft.wordpress.com/2026/08/15/zx-spectrum-system-tour-memory-mapping/
2•ibobev•24m ago•0 comments

Thumbnail Decoding Challenge

https://www.colino.net/wordpress/archives/2026/08/16/thumbnail-decoding-challenge/
1•ibobev•24m ago•0 comments

MALDA – a language where LLM prompts and tools are syntax

https://github.com/amaldini/maldalang
2•amaldini•24m ago•0 comments

The History of Swinth

https://www.goto10retro.com/p/the-history-of-swinth
1•ibobev•24m ago•0 comments

Satellite operators are in panic mode due to a worsening launch crisis

https://arstechnica.com/space/2026/08/theres-a-huge-launch-crunch-right-now-and-it-will-probably-...
2•ryzvonusef•24m ago•1 comments

346 of 1600 new TLDs coming revealed

https://namedesk.app/tlds
2•zeppelin_7•26m ago•1 comments

Show HN: Moba Go – Go with alternating long thinks and rapid bursts

https://go.danieltan.omg.lol
1•danieltanfh95•27m ago•1 comments

The outstanding engineer who wanted to become a mediocre manager

https://maroun-baydoun.com/blog/from-outstanding-engineer-to-mediocre-manager/
1•marounbaydoun•28m ago•0 comments