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!

We're worrying about the wrong AI apocalypse

https://www.vox.com/future-perfect/503068/ai-infrastructure-hacking-cybersecurity
1•Elof•20s ago•0 comments

Marvell pushes GlobalFoundries to light up wafer production

https://www.theregister.com/systems/2026/09/18/marvell-pushes-globalfoundries-to-light-up-wafer-p...
1•MC995•1m ago•0 comments

Saving another 100TB of RAM with math (and Rust)

https://blog.cloudflare.com/saving-100-tb-of-ram-with-math/
1•f311a•3m ago•0 comments

North Korea's fake job interviews infected 30k devices

https://www.theregister.com/security/2026/09/18/north-koreas-fake-job-interviews-infected-30000-d...
2•rndsignals•4m ago•0 comments

An update to how we count public views across YouTube

https://support.google.com/youtube/thread/433409976/an-update-to-how-we-count-public-views-across...
2•haunter•5m ago•0 comments

25 years of contributing to Postgres with Peter Eisentraut

https://talkingpostgres.com/episodes/25-years-of-contributing-to-postgres-with-peter-eisentraut
1•clairegiordano•5m ago•0 comments

A Third of Americans Still Can't Name the Three Branches of Government

https://studyfinds.com/americans-cant-name-3-branches-government/
3•mdp2021•6m ago•0 comments

Fathom: All in one Jellyfin client with Seer and YouTube

https://github.com/Fathom-Media/fathom
1•traceapps•7m ago•0 comments

Anthropic's CEO says that safety hinges on understanding how AI "thinks."

https://www.wired.com/story/if-the-ai-industry-followed-its-own-research-it-might-have-paused-alr...
2•rndsignals•7m ago•0 comments

Who's a Better Writer: A.I. Or Humans? NYTimes Quiz

https://www.nytimes.com/interactive/2026/03/09/business/ai-writing-quiz.html
2•theopsimist•8m ago•1 comments

Show HN: In Meeting – A native macOS Mic/Cam observer for home automation

https://github.com/fellowgeek/in-meeting
1•pcbmaker20•10m ago•0 comments

Show HN: Repairo – Auto fixing breaking changes in your codebase

https://github.com/adityacs50-lab/Repairo
1•Adityasays•12m ago•0 comments

Incrementally Computing 7B Permission Checks

https://www.feldera.com/blog/auth0-and-feldera-incrementally-computing-7-billion-permission-checks
1•gz09•12m ago•0 comments

Apple releases iPhone Duo simulator and Xcode 27.1 beta

https://developer.apple.com/documentation/xcode-release-notes/xcode-27_1-release-notes
4•CameronBanga•16m ago•1 comments

The new AgentCore runtime: Elastic, optimized, and consistently fast starts

https://aws.amazon.com/blogs/machine-learning/the-new-agentcore-runtime-elastic-optimized-and-con...
1•qainsights•16m ago•0 comments

Love vs. Wiley Book Writers: A Publishing Scam Gets a Rare Comeuppance

https://writerbeware.blog/2026/09/18/love-v-wiley-book-writers-a-publishing-scam-gets-a-rare-come...
3•ilamont•17m ago•1 comments

Record 38% of new vehicle sales to be EVs in 2030, study finds

https://news.harvard.edu/gazette/story/2026/09/record-38-of-new-vehicle-sales-to-be-evs-in-2030-s...
2•geox•18m ago•0 comments

Putin Uses Unlicensed Windows

https://twitter.com/christogrozev/status/2100955969404408311
1•mudil•19m ago•1 comments

PC ports of old console games are the new AI vibe coding battleground

https://www.pcgamer.com/gaming-industry/pc-ports-of-old-console-games-are-the-new-ai-vibe-coding-...
1•haunter•20m ago•0 comments

Classified F-35 stealth parts diverted to Hong Kong by shipper, gone missing

https://www.politico.com/news/2026/09/18/congress-f-35-china-investigation-01083647
6•cf100clunk•23m ago•0 comments

Stratasys awarded 27.6M in damages in first of 2 cases against bambu lab

https://all3dp.com/6/stratasys-awarded-27-6-million-in-damages-in-first-of-two-cases-against-bamb...
3•iancmceachern•23m ago•0 comments

Have You Seen Shannon

https://news.ycombinator.com/submit
1•susanboop_09•23m ago•0 comments

AI Lab building tycoon game

https://bedroomlabs.net
2•o_g•23m ago•0 comments

An Undercover Google Analyst Infiltrated a Notorious Supply-Chain Hacking Gang

https://www.wired.com/story/an-undercover-google-analyst-infiltrated-a-notorious-supply-chain-hac...
2•MC995•25m ago•0 comments

Before you build it, share it

https://coidea.co
1•moeidheidari•25m ago•0 comments

I vibecoded a tool to shrink Golang codebase automatically

https://github.com/dhilst/sx
1•geckones•25m ago•1 comments

SSD-Llama: SSD-Native Inference for Trillion-Parameter Moe on a Consumer PC

https://arxiv.org/abs/2609.18110
2•AlmostCosmo79•27m ago•0 comments

ChatGPT's Built-in Browser now supports Chrome extensions

https://twitter.com/JamesZmSun/status/2100995281097769216
2•twapi•28m ago•0 comments

Keeping vLLM's Prefix Cache Warm Between Agent Turns

https://doug.sh/posts/vllm-kv-cache-agents/
1•dougcalobrisi•28m ago•0 comments

Near-real-time vision using DiffusionGemma in Jev mode

https://twitter.com/mmastrac/status/2101011110132601054
1•mmastrac•28m ago•0 comments