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!

How to Research Technical Topics with AI

https://twitter.com/0xkato/status/2081792840292598035
1•glass_frog•1m ago•0 comments

Japan's new 'blue ticket' system for bicycle traffic violations

https://www.nippon.com/en/guide-to-japan/gu900320/
1•whiteblossom•1m ago•0 comments

Protopia

https://kevinkelly.substack.com/p/protopia
1•thm•2m ago•0 comments

Whats: A CLI command explainer, pure man pages, –help outputs

https://github.com/iamkaran/whats
2•thunderbong•4m ago•0 comments

Language model harnesses are compositional generalizers

https://alexzhang13.github.io/blog/2026/harness/
3•gmays•4m ago•0 comments

My first serious ASIC project [video]

https://www.youtube.com/watch?v=aKvq-eQnwNM
1•skibz•5m ago•0 comments

Do You Use NFS Hard Mounts? Soft Mounts? Why or Why Not?

https://salanave-runyon.org/herbie.html
1•richardchilders•5m ago•2 comments

Fixing miss-aligned monospace text in Android browsers

https://moritzhamann.com/blog/2026-07-26-box-drawing-glyphs-on-android.html
1•mrtz•5m ago•0 comments

Read More. Read Often. Read Every Day

https://www.joanwestenberg.com/p/read-more-read-often-read-every-day
1•speckx•6m ago•0 comments

Show HN: Easiest tool (65kb binary) to download Kimi K3 fast (while we can)

https://github.com/marsninja/kimi-fetch
1•marsninja•6m ago•0 comments

Show HN: Choreo – an animation DSL that verifies its own rendered output

https://github.com/JieGouAI/choreo
1•smperng•7m ago•0 comments

Beyond Greece and Rome

https://aeon.co/essays/uncovering-a-global-ancient-history-beyond-greece-and-rome
1•diodorus•7m ago•0 comments

To prevent LLMs from destroying education, the work must happen in class

https://blainehansen.me/post/learning-is-for-students-not-llms/
1•blainehansen•8m ago•1 comments

I Built a Security System for My Steam Deck

https://old.reddit.com/r/SteamDeck/comments/1v6osor/i_built_a_security_system_for_my_steam_deck/
1•croes•9m ago•0 comments

First 30 Days as the Only Human in an AI Dev Team

https://praveenvijayan.substack.com/p/first-30-days-as-the-only-human-in
1•praveenvijayan•12m ago•0 comments

Arbitrary code execution in Hugging Face diffusers via trust_remote_code bypass

https://www.zafran.io/resources/facehugger-vulnerabilities-in-hugging-face-diffusers-open-door-to...
1•FishNicker•12m ago•0 comments

How to train a frontier-level world model

https://next-state.github.io/open-dreamer/
3•willemhelmet•13m ago•0 comments

Microsoft admits its Windows 11 apps hog RAM. A fix is coming

https://www.pcworld.com/article/3199779/microsoft-admits-its-windows-11-apps-hog-ram-a-fix-is-com...
1•01-_-•15m ago•0 comments

Evading Residential Proxy Networks

https://www.fbi.gov/investigate/cyber/alerts/2026/evading-residential-proxy-networks-protecting-y...
2•willmeyers•15m ago•1 comments

Jensen Huang's first-ever post on X is in defense of open access to AI models

https://www.pcgamer.com/software/ai/jensen-huangs-first-ever-post-on-x-is-in-defense-of-open-acce...
4•01-_-•16m ago•0 comments

Live Asteroid Apophis Tracking Systems by Astrophyzix Digital Observatory

https://www.astrophyzix.com/p/float64-nbody-live-apophis-tracker.html
2•SpacenewsUK•16m ago•0 comments

LLMs Reward Expertise

https://www.seangoedecke.com/llms-reward-expertise/
3•MaxMussio•19m ago•0 comments

What Hardware Can Learn from Cursor and Vibe Coding

https://twitter.com/theopuslabs/status/2080700728738189319
2•opuslabs•21m ago•0 comments

Show HN: marimo Glance, an extension to run marimo notebooks inline on GitHub

https://github.com/marimo-team/marimo-glance
1•kirangadhave•25m ago•0 comments

OpenAI's Sam Altman to Meet with Senate Intelligence Committee's Top Democrat

https://www.reuters.com/business/openais-sam-altman-meet-with-senate-intelligence-committees-top-...
3•onemoresoop•25m ago•0 comments

Why did early ASCII have ← and ↑ but not ↓ or →?

https://retrocomputing.stackexchange.com/questions/30618/why-did-early-ascii-have-←-and-↑-but-not...
2•zdw•26m ago•0 comments

Claude has to take that code from somewhere

https://jcs.org/2026/07/23/ai
3•tolerance•27m ago•0 comments

Government engagement with AI creates more uncertainty for investors, CIOs warn

https://www.reuters.com/legal/litigation/government-engagement-with-ai-creates-more-uncertainty-i...
2•onemoresoop•29m ago•0 comments

Why Frisky

https://getfrisky.dev/why/
2•dmvinson•29m ago•0 comments

Stop Pathologizing Ordinary Life

https://www.nytimes.com/2026/07/26/opinion/mental-health-exercise-charity.html
1•bko•29m ago•1 comments