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!

Y Combinator Paxel

https://paxel.ycombinator.com/
1•flippant•3m ago•0 comments

Show HN: A DNA motif/feature scanner on a single Cloudflare Worker, in Rust

https://github.com/dhruvkjain/argus-ligand
1•dhruvkjain•3m ago•0 comments

LAPD lets contract with surveillance giant Flock expire

https://techcrunch.com/2026/07/13/lapd-lets-contract-with-surveillance-giant-flock-expire-citing-...
1•forks•3m ago•1 comments

CATL Debuts First Field-Validated Sodium-Ion Bess

https://www.catl.com/en/news/6861.html
1•ksec•4m ago•1 comments

Show HN: A developer tool guide for AI coding agents (900 tools and counting)

https://zairalabs.ai/guide/
1•harkdif•5m ago•1 comments

Show HN: WaitToUnlock – Lock yourself out of iOS ScreenTime

https://waittounlock.com/
4•shorekey•7m ago•0 comments

Show HN: Yes-Brainer – A council of LLMs that debate in the browser, BYOK

https://yesbrainer.ai/
1•trekhleb•7m ago•0 comments

The Verge

https://www.theverge.com
1•MO_Emara•7m ago•0 comments

Scissors, Glue, and AI

https://huntersoftwareconsulting.com/posts/2026-07-12-scissors-and-glue/
1•mooreds•8m ago•0 comments

Show HN: TrialCompass – Patient friendly clinical trial finder for blood cancer

https://trialcompass.app/
1•asinghal07•9m ago•0 comments

Gnome OS Creating "Test Center" for Experiment Software

https://www.phoronix.com/news/GNOME-OS-Test-Center
1•rbanffy•9m ago•0 comments

TypeAnywhere A semi-transparent type test you can toggle on top of anything [video]

https://www.youtube.com/watch?v=rpwxuJcWbOY
1•ssultan007•10m ago•1 comments

Energy Engineer Explains: Math Behind "AI Will Take Your Job" Is Laughably Wrong [video]

https://www.youtube.com/watch?v=sQGZXrzykpU
1•Geekette•12m ago•0 comments

'We're Fighting Satan': The War to Save Bees from a Hornet Invasion

https://www.nytimes.com/2026/07/13/science/south-carolina-yellow-legged-hornets.html
1•mooreds•12m ago•0 comments

A Slower AI Payoff Would Be Everyone's Problem

https://www.apollo.com/wealth/insights-news/insights/daily-spark/a-slower-ai-payoff-would-be-ever...
1•mooreds•12m ago•0 comments

It's an AI web, and we're just rats in the walls

https://www.theregister.com/columnists/2026/07/12/its-an-ai-web-and-were-just-rats-in-the-walls/5...
1•CrankyBear•13m ago•0 comments

Coding with GLM 5.2 on OpenCode for a flat $20/month

https://meshintelligence.substack.com/p/how-to-glm-52-on-opencode
1•meshintel•14m ago•0 comments

RecoverFlow – recovers failed Stripe payments, you pay only on recovery

https://recoverflow.org
1•BruceM2007•14m ago•0 comments

FCC approves orbital space mirrors, first test satellites will launch this year

https://www.tomshardware.com/tech-industry/fcc-approves-orbital-space-mirrors-first-test-satellit...
1•rbanffy•14m ago•0 comments

From Eurovision to NATO, Canada Edges Closer to Europe

https://www.newsweek.com/eurovision-nato-canada-edges-closer-europe-12181443
2•doener•15m ago•0 comments

GLP-1 implant is the latest bet to help patients maintain their weight loss

https://www.cnbc.com/2026/07/11/glp-1-implant-from-vivani-medical-aims-to-help-patients-stay-on-t...
1•gscott•18m ago•0 comments

Woodruff: You shouldn't trust trusted publishing

https://lwn.net/Articles/1081690/
2•jruohonen•19m ago•1 comments

Extension that replaces clickbait YouTube thumbs and titles via transcript

https://chromewebstore.google.com/detail/face-value/kogpodijhdpkdnahicgmnncdibiagkge
1•victor805•21m ago•0 comments

Trump says the US controls the Strait of Hormuz and should get paid for it

https://www.reuters.com/world/middle-east/trump-says-us-will-control-strait-hormuz-get-paid-it-20...
5•justacrow•21m ago•4 comments

From A.I To The Deep State, Michel Foucault foresaw it all

https://www.nytimes.com/2026/07/10/books/review/michel-foucault-ai-tech-power.html
1•bryanrasmussen•21m ago•1 comments

There Are Databases Everywhere for Those with the Eyes to See

https://buttondown.com/jaffray/archive/there-are-databases-everywhere-for-those-with-the/
1•ibobev•22m ago•0 comments

Build email automation in n8n that works – MailKite

https://mailkite.dev/blog/n8n-email-automation-webhook/
3•gabe_karina•23m ago•0 comments

The art and engineering of Sega CD Silpheed

https://fabiensanglard.net/silpheed/index.html
8•ibobev•23m ago•0 comments

Auth and Curl

https://taonaw.com/2026/07/10/auth-and-curl.html
2•speckx•24m ago•0 comments

Joys of cancelling a TBB task group

https://aras-p.info/blog/2026/06/28/Joys-of-cancelling-a-TBB-task-group/
2•ibobev•25m ago•0 comments