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 get product feedback from agents

https://www.sanity.io/blog/how-to-get-product-feedback-from-agents
1•ingve•3m ago•0 comments

Teams using AI for outbound email are finding it harder, Folderly research finds

https://apnews.com/press-release/ein-presswire-newsmatics/press-release-722e599d4420e5d71c812e09b...
1•adamhh•4m ago•0 comments

Node.js Security Fix Silently Broke node-fetch, which broke other tools

https://jdstaerk.substack.com/p/nodejs-security-fix-silently-broke
2•DDerTyp•8m ago•1 comments

HorseWood Reviews 2026: Why Men Are Talking About This Formula

https://finance.yahoo.com/sectors/healthcare/articles/horsewood-urgent-report-2026-horse-19110038...
1•ratypals•12m ago•0 comments

Beast – governed output gateway for AI coding agents

https://github.com/Byron2306/EdgeK-BEAST
1•Byron230686•13m ago•0 comments

Truthforge: A deterministic, closed-form valuation model for token ecosystems

https://github.com/TruthForge-Foundation/truthforge
1•TruthForge•14m ago•0 comments

Site lets you blend your music taste with artists, not sure its useful

https://www.eccomuse.com/
1•Nigh-Knight•14m ago•0 comments

Pentagon used Elon Musk's Grok AI to fire 2k missiles at Iran, official says

https://www.independent.co.uk/news/world/americas/us-politics/elon-musk-grok-ai-iran-missiles-pen...
3•pseudolus•18m ago•0 comments

Narcissism of Small Differences

https://en.wikipedia.org/wiki/Narcissism_of_small_differences
2•gurjeet•21m ago•0 comments

Squidbleed (CVE-2026-47729) Heartbleeds ancient cousin, hiding in Squid since 97

https://blog.calif.io/p/squidbleed-cve-2026-47729
2•chillax•23m ago•0 comments

Intel Announces Leadership Appointment at Intel Foundry

https://newsroom.intel.com/corporate/intel-announces-leadership-appointment-at-intel-foundry-to-a...
1•zvr•24m ago•0 comments

2k retired Google Pixel phones get a second life as a private cloud

https://www.theregister.com/on-prem/2026/06/18/2000-retired-google-pixel-phones-get-a-second-life...
1•pseudolus•25m ago•0 comments

What I've Learned From Selling 500k Books

https://fortelabs.com/blog/what-ive-learned-from-selling-500000-books/
1•jger15•27m ago•0 comments

The Hidden Harms of CPR (2023)

https://www.newyorker.com/news/the-weekend-essay/the-hidden-harms-of-cpr
1•pseudolus•28m ago•0 comments

Estonia to give digital identities to AI agents

https://www.euractiv.com/news/estonia-to-give-digital-identities-to-ai-agents/
2•giuliomagnifico•32m ago•0 comments

PWA for nervous system regulation (no subscriptions, offline)

https://quietudeapp.com/
1•saphidev•34m ago•0 comments

Show HN: I Built a SaaS Explainer Template Editor in Clickcast.tech

https://www.clickcast.tech/template-editor
1•clickcasttech•34m ago•0 comments

Linux 7.2 Gets Rid of the Last Optimized MD5 Implementation

https://www.phoronix.com/news/Linux-7.2-MD5-Generic-Only
2•t-3•35m ago•0 comments

Tesla HW3 claim grows to 7,000 owners, gets backing for collective action

https://electrek.co/2026/06/18/tesla-hw3-claim-netherlands-7000-owners-kennedy-van-der-laan/
2•breve•36m ago•0 comments

Haggis legalised in US state as Tartan Army celebrate another World Cup win

https://www.dailyrecord.co.uk/news/scottish-news/haggis-legalised-state-tartan-army-37314996
2•jjgreen•38m ago•0 comments

Rockstar Games faces full hearing over alleged union busting

https://www.theregister.com/offbeat/2026/06/19/rockstar-games-faces-full-hearing-over-alleged-uni...
2•t-3•40m ago•0 comments

The room the economy can't see

https://wilsoniumite.com/2026/06/19/the-room-the-economy-cant-see/
2•Wilsoniumite•41m ago•0 comments

Norway greenlights first full-scale ship tunnel

https://eandt.theiet.org/2026/06/18/norway-greenlights-world-s-first-full-scale-ship-tunnel
7•geox•41m ago•0 comments

GitHub Copilot App

https://github.com/features/ai/github-app
1•adrianvi•42m ago•0 comments

Pazuzu

https://spectrecollie.com/2026/06/18/pazuzu/
1•jwx48•45m ago•0 comments

Protect an MCP Server with an Authorization Server

https://fusionauth.io/blog/mcp-authorization-server
1•sixhobbits•48m ago•0 comments

Sorry Guys,but I'll Be Cryosleeping Throughout the Rest of This Space Expedition

https://www.mcsweeneys.net/articles/sorry-guys-but-ill-be-cryosleeping-throughout-the-rest-of-thi...
1•calcifer•50m ago•0 comments

Conversations Should Stay Yours

https://getweeve.io/
1•dylandeheer•53m ago•0 comments

Pull request limits are cutting down the noise

https://github.blog/open-source/maintainers/how-pull-request-limits-are-cutting-down-the-noise/
3•ingve•54m ago•0 comments

Taipy – Alternative to Streamlit

https://taipy.io/
1•amai•56m ago•0 comments