frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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!

The External Governance Layer – a reference architecture for AI agent governance

https://trust.aos-1.com/whitepapers/aos-1-governance
1•rami_mkheir•10s ago•0 comments

CodeGraph on Hono: the tool-call savings reproduce, the cost savings don't

https://harrisonsec.com/blog/i-tested-codegraph-on-hono-benchmark/
1•gzxharrison001•1m ago•0 comments

Update Your Android

https://cyber.netsecops.io/articles/google-patches-actively-exploited-zero-day-flaw-in-android-fr...
1•jaybode•2m ago•0 comments

Show HN: A Stripe widget that tells you how much you can safely pay yourself

https://github.com/Cashflowyai/safe-pay-stripe
1•sachou•4m ago•0 comments

Texan Startup Ranch Plans to Save America [video]

https://www.youtube.com/watch?v=qIob2-ugCO0
1•simonebrunozzi•4m ago•0 comments

Ask HN: Concerned about Hormuz?

1•a_tartaruga•5m ago•0 comments

Ask HN: Are Anthropic, OpenAI the last software startups?

1•hemezh•6m ago•0 comments

Show HN: Terse, TypeScript First Workflow Builder

https://github.com/TerseAI/Terse
1•thomask1995•7m ago•0 comments

Anonymous 1-on-1 voice calls with strangers in other countries

https://mindfuse.io
1•Joeribon•8m ago•0 comments

Potato–Describe cloud design,get production diagram with animated walkthrough

https://abhisheksingh011.github.io/potato/
1•potatoarchitect•9m ago•0 comments

Nixtropic: Fido security key with open secure element

https://github.com/jjacke13/nixtropic
1•ecesena•9m ago•0 comments

Anthropic Whales Dominate Usage Ahead of IPO

https://keithbrown.com/anthropic-whales-ipo/
2•optimizethis•9m ago•1 comments

Meta AI Support System Prompt

https://github.com/michaelcummings12/meta-ai-support-prompt/blob/main/system-prompt.md
1•yellow_lead•11m ago•0 comments

The Next Frontier of Visual AI Is Code

https://a16z.com/the-next-frontier-of-visual-ai-is-code/
1•ykhli•12m ago•0 comments

Leiden Declaration on Artificial Intelligence and Mathematics

https://leidendeclaration.ai/
1•uamuamuam•13m ago•0 comments

New Clues to Chemical Origins of Metabolism at Dawn of Life (2020)

https://www.quantamagazine.org/new-clues-to-chemical-origins-of-metabolism-at-dawn-of-life-20201012/
3•andsoitis•13m ago•0 comments

Iddqd, or the hardest kind of unsafe Rust

https://oxide.computer/blog/iddqd-unsafe
5•hasheddan•13m ago•1 comments

Show HN: Claude Code plugin for deep multi-agent code reviews

https://github.com/Farfield-Dev/deep-review
1•hemezh•15m ago•0 comments

AI-Generated Papers in the NeurIPS 2026 Position Paper Track

https://blog.neurips.cc/2026/06/02/ai-generated-papers-in-the-neurips-2026-position-paper-track/
1•ad8e•15m ago•0 comments

Ask HN: ZealPHP – Dangers Isolating Request-State in Coroutines?

1•sibidharan•16m ago•0 comments

The Contract for Palantir's Super API for the IRS

https://www.404media.co/here-is-the-contract-for-palantirs-super-api-for-the-irs/
5•laurex•17m ago•0 comments

Fixing my ridiculous fridge with a tiny Funnel site

https://tailscale.com/blog/funnel-fridge
1•berlianta•18m ago•0 comments

AI Grifters Are Making Anti-Data Center Slop with AI

https://www.404media.co/ai-grifters-are-making-anti-data-center-slop-with-ai/
3•Brajeshwar•19m ago•0 comments

"I was just scammed for $500K by Polymarket."

https://xcancel.com/willo2_Poly/status/2061640812132516321
12•int32_64•19m ago•1 comments

Apps on Android Share Data with Facebook (2018)

https://privacyinternational.org/report/2647/how-apps-android-share-data-facebook-report
1•downbad_•20m ago•0 comments

Show HN: Stop Babysitting Your Agents

https://github.com/StackOneHQ/stack-nudge
1•Hiskias•22m ago•0 comments

Amazon paid music subscription will soon include ads and lose downloads

https://old.reddit.com/r/mildlyinfuriating/comments/1tur3w5/amazon_just_informed_me_that_my_paid_...
4•thisislife2•22m ago•4 comments

Physics as a Game Loop. Part 1: Objects and Waves

https://underreacted.leaflet.pub/3mncmabgnmc2x
1•danabramov•23m ago•0 comments

Second Foundation to install 307 MW of battery storage in Czechia

https://www.pveurope.eu/solar-storage/second-foundation-install-307-mw-battery-storage-czechia
2•doener•25m ago•1 comments

Americans don't know how to fight AI. So they're fighting data centers

https://www.vox.com/future-perfect/490350/data-center-moratoria-ai-backlash
25•stalfosknight•26m ago•0 comments