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!

A2ABreak: Systematic Security Analysis of the A2A Protocol

https://arxiv.org/abs/2609.10871
1•sbulaev•2m ago•0 comments

Russian developers used Claude to build 'kamikaze' attack drone software

https://www.theguardian.com/world/2026/sep/12/ukraine-war-briefing-russian-developers-used-ai-to-...
2•warrenmiller•6m ago•0 comments

A Nix store is three functions

https://fzakaria.com/2026/09/11/a-nix-store-is-three-functions
1•Tomte•7m ago•0 comments

Hearts of Iron IV, Part I: Operational Art

https://acoup.blog/2026/09/11/teaching-paradox-hearts-of-iron-iv-part-i-operational-art/
1•Tomte•8m ago•0 comments

Show HN: A high-performance, all-in-one extension for managing tabs

https://chromewebstore.google.com/detail/leotabs-—-tab-manager-swi/heolckkdeandgagkiefggcneodni...
2•ringlochid•8m ago•0 comments

Judeo-iraqi Arabic

https://en.wikipedia.org/wiki/Judeo-Iraqi_Arabic
1•marysminefnuf•10m ago•0 comments

Age of Enlightenment

https://en.wikipedia.org/wiki/Age_of_Enlightenment
1•num42•12m ago•0 comments

Planck Scale

https://en.wikipedia.org/wiki/Planck_units
2•num42•13m ago•0 comments

Show HN: Poptimum – A Daily Optimization Game

https://poptimum.fun/
1•ShayHDavidson•17m ago•0 comments

WeWorm: Zero-Click WeChat Worm

https://calif.io/research/weworm
2•BlackEarth•20m ago•0 comments

Show HN: GenieUI – Turn prompts into editable iOS and Android interfaces

https://genieui.com/
1•andygeek•34m ago•0 comments

Trails – Jac Hacks

https://github.com/tirthsuba15/trails-jac-hacks
1•tirthsuba•34m ago•0 comments

The Unspoken Skill of Finesse

https://newsletter.weskao.com/p/the-unspoken-skill-of-finesse
1•AntonZ234•37m ago•0 comments

Anthropic Says Iran Used Its American AI Model to Target U.S. Navy Warships

https://www.wsj.com/politics/national-security/anthropic-says-iran-used-its-american-ai-model-to-...
2•kaycebasques•38m ago•1 comments

Bending Spoons keeps buying iconic products, who's next?

https://nextspoons.com/
1•napolux•40m ago•0 comments

Teaching Novice Computing and Programming in the Agentic AI Era

https://cs.brown.edu/people/sk/Publications/Papers/Published/fkl-teach-nov-agentic-ai-era/
1•matt_d•41m ago•0 comments

Show HN: I combined Marc Lou's TrustMRR and IndiePage for free. I wanted it

https://myindie.space
1•sithu_khant•45m ago•0 comments

OpenAI agents attacked RubyGems before Hugging Face incident

https://www.reuters.com/legal/litigation/openai-agents-attacked-software-service-rubygems-before-...
2•01-_-•48m ago•0 comments

Does anyone run Postgres without PgBouncer?

https://www.brandur.org/fragments/postgres-without-pgbouncer
1•paperwhitez•1h ago•0 comments

Show HN: Don't Hit Send – the model answers while you type

https://github.com/scalattice/dont-hit-send
2•RomulusHill•1h ago•0 comments

Homotopy Type Theory – Univalent Foundations of Mathematics (2013)

https://hott.github.io/book/hott-online.pdf.html
2•peter_d_sherman•1h ago•1 comments

macOS defaults list: Incomplete list of macOS defaults commands with demos

https://macos-defaults.com
4•zdw•1h ago•0 comments

We blind-tested ChatGPT, Claude, and Gemini on 20 everyday tasks (Open Dataset)

https://dailyskill.ai/ai-benchmark-2026/
1•dubaimark•1h ago•1 comments

Maven Robotics wants to steal your robot deployment deal

https://techcrunch.com/2026/09/10/maven-robotics-wants-to-steal-your-robot-deployment-deal/
1•soltanov•1h ago•0 comments

Ask HN: What's a good "semi-dumb" phone/watch for kids?

3•funkaster•1h ago•1 comments

Anthropic reveals rogue AI agents hate CAPTCHAs

https://techcrunch.com/2026/09/10/anthropic-reveals-rogue-ai-agents-hate-captchas-just-like-you/
1•soltanov•1h ago•0 comments

Google Launches Meridian GeoX Globally

https://developers.google.com/meridian/geox
1•soltanov•1h ago•0 comments

OpenAI agents attacked RubyGems back in May

https://simonwillison.net/2026/Sep/12/openai-agents-rubygems/
16•lumpa•1h ago•1 comments

How the U.S. Space Force Is Used in Wars Today [video]

https://www.youtube.com/watch?v=RGcRuej-LVE
1•handfuloflight•1h ago•0 comments

Show HN: Menu Hub – a native macOS menu bar manager in SwiftUI/AppKit

https://github.com/Talljack/menu-hub/releases/tag/v0.1.5
1•talljack•1h ago•0 comments