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!

Ask HN: Are PRs still the right way to review AI written code?

1•davidest•1m ago•0 comments

It's time to hyper-personalize models, again

https://paninihq.com/blog/adaptation/
1•lepisma•4m ago•0 comments

MAI Transcribe 2.5: The new frontier of speech recognition

https://microsoft.ai/news/mai-transcribe-2-5/
1•gmays•5m ago•0 comments

Doomscroll AI Papers – Rollai

1•silisleek•6m ago•0 comments

Building Pico, the fastest signals library

https://isograph.dev/blog/2026/12/03/building-the-worlds-fastest-signals-library/
1•ibobev•7m ago•0 comments

InfoManiak: Security incident involving database backups

https://infomaniakstatus.com/en/l1jPWM4PEW/
1•g-b-r•9m ago•0 comments

Time to Replace the Managers with AI?

https://openexecutive.ai
2•GrumpySciGuy•11m ago•1 comments

Shorthand

https://en.wikipedia.org/wiki/Shorthand
1•modinfo•11m ago•0 comments

Google Antigravity hits 5M weekly users and resets Gemini quotas

https://koody.co.uk/us-markets/google-antigravity-gemini-quota-reset
1•Bitvexel•11m ago•0 comments

TestLedger – which of your tests cost more than they are worth

https://github.com/surkuar/testledger
1•sureshbabusanth•15m ago•0 comments

Apple and Amazon Want to Help Us Remember Everything. Is This a Good Idea?

https://www.nytimes.com/2026/12/04/technology/personaltech/apple-watch-amazon-bee-recorded-conver...
1•bookofjoe•23m ago•2 comments

I told it to never call me again:AI bots wreak havoc with UK restaurant bookings

https://www.theguardian.com/business/2026/nov/28/ai-bots-wreak-havoc-uk-restaurant-bookings-meta-...
3•kartik147•28m ago•0 comments

Chinese hackers used AI to breach US Government systems including FBI, CIA

https://www.independent.co.uk/news/world/americas/chinese-hackers-cia-fbi-trump-b3097150.html
4•extasetoi12•30m ago•1 comments

The Mouse Is an Accessory

https://axlefublr.github.io/mouse-mode/
2•romania1•35m ago•0 comments

LLM Regression Testing with Promptfoo Derived Metrics

https://qainsights.com/llm-regression-testing/
1•qainsights•36m ago•0 comments

Abliteration Without Redistributing the Model

https://www.msuiche.com/posts/autoresearch-abliteration-without-redistributing-the-model/
2•orliesaurus•39m ago•0 comments

Fraudulent MDM Enrollment

1•Samchloepearl•44m ago•0 comments

China announces new humanoid robot soldier as arms race with U.S. expands [video]

https://www.youtube.com/watch?v=9GuQpwsdQU0
4•shinryudbz•44m ago•1 comments

The 10 Levels of Shader Math

https://fragcoord.xyz/t/tf1bv2g5
3•azhenley•49m ago•0 comments

4B model beats Claude Opus 5.5 at prompt-injection detection on BrowseSafe++

https://github.com/IamLumae/IamLumae/blob/main/beweise/2026-12-06_browsesafe-pp_northstar-4b-r3.1.md
1•LumaeAiResearch•52m ago•0 comments

Shoggoths: What Lovecraft's monsters tell us about Large Language Models (2023)

https://www.programmablemutter.com/p/shoggoths-amongst-us
1•ignoramous•52m ago•0 comments

Formal Papers by DeepMind

https://github.com/google-deepmind/formal-papers
2•pama•54m ago•1 comments

How AI Is Changing the Value of Engineering, Sales, and Experience

https://www.forbes.com/sites/dianehamilton/2026/12/03/how-ai-is-changing-the-value-of-engineering...
1•rafaelc•55m ago•0 comments

NightWatchPSX My Game Online

https://hackaday.io/project/207575-nightwatchpsx-my-game-online
1•Drfoxi•56m ago•0 comments

The Impossible Dance: Proving Saari's four-body conjecture after 56 years

https://saariproject.web.illinois.edu/
1•ayanmitra•1h ago•0 comments

Practical Quantum Safe Bitcoin

https://github.com/EspressoSystems/PQSB
8•jv22222•1h ago•1 comments

Checking if "GPTBot" and "ClaudeBot" requests come from OpenAI and Anthropic

https://llcrawler.com/reports/2026-11
2•sofyt•1h ago•0 comments

PqSniff – Evaluated Post Quantum connection share across my home network

https://www.xydac.com/projects/pqsniff/
1•xydac•1h ago•0 comments

Arc Prize 2026 Results and Analysis

https://arcprize.org/blog/arc-prize-2026-results-analysis
2•trott•1h ago•0 comments

Bonsai Kittens (2002)

https://web.archive.org/web/20020204080653/http://www.bonsaikitten.com/
3•helterskelter2•1h ago•1 comments