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!

Why Global Trepanation?

https://www.astralcodexten.com/p/why-global-trepanation
1•paulpauper•2m ago•0 comments

AICR v1.0: Open, stable, and verifiable GPU cluster configuration

https://developer.nvidia.com/blog/aicr-v1-0-open-stable-and-verifiable-gpu-cluster-configuration/
1•gmays•2m ago•0 comments

PHP2Shell: Both CVEs are two directions through the same pre-RINIT window

https://nefariousplan.com/posts/php-cve-2026-109618-109619-two-directions-one-window
1•tsavo42•5m ago•0 comments

XYEval: Agents say yes to bad advice

https://arxiv.org/abs/2609.23939
2•xnx•26m ago•0 comments

Linux_7.3 – Linux Kernel Newbies

https://kernelnewbies.org/Linux_7.3
2•abdelhousni•27m ago•0 comments

Node.js Brotli RCE (CVE-2026-111497)

https://vercel.com/kb/bulletin/node-js-security-advisory
5•nthypes•28m ago•0 comments

GoDaddy: Delayed Certificate Revocation

https://bugzilla.mozilla.org/show_bug.cgi?id=2083191
2•owenshen24•29m ago•0 comments

When Do We Become the Person We Ought to Be?

https://www.graphsaboutreligion.com/p/when-do-we-become-the-person-we-ought
3•toomuchtodo•29m ago•0 comments

Russia cracks down on AI bears as real attacks spread fear

https://www.reuters.com/lifestyle/russia-cracks-down-ai-bears-real-attacks-spread-fear-2026-10-14/
2•gnabgib•30m ago•0 comments

Did I just spent 6 months building a product that no one wants

6•harleenkh•31m ago•3 comments

mitmproxy adds --emudhra option

https://github.com/mitmproxy/mitmproxy/commit/169234499088fc2c414644a67efaed3d64ae2e3b
39•ahlCVA•35m ago•6 comments

eMudhra Intermediate CA Compromise

https://simonwillison.net/2026/Oct/20/emudhra-certificates/
2•abdelhousni•43m ago•1 comments

StENSEA

https://www.iee.fraunhofer.de/en/topics/stensea.html
2•sans_souse•45m ago•1 comments

Show HN: I built a Markdown and raw HTML blog platform scoring 99 on PageSpeed

https://bloffy.co/en
2•textlanes33•45m ago•0 comments

Airbnb bans making guests do dishes and take out the trash

https://www.theverge.com/tech/1015844/airbnb-chores-house-rules-update
23•babelfish•48m ago•9 comments

Dualtooth – Sync Windows Bluetooth Keys to Linux BlueZ in One Command

https://github.com/edotwedo/Dualtooth
3•thebeautifultre•50m ago•0 comments

Show HN: CertAvert – Free SSL/TLS tools and certificate expiry alerts

https://certavert.com
2•asiliev20•54m ago•0 comments

The Five Senses of Artificial Intelligence

https://project507.substack.com/p/the-five-senses-of-artificial-intelligence
2•massigenta•57m ago•0 comments

Agentitter – a microblogging/social network inside agents

https://agentitter.com/
2•soneca•57m ago•0 comments

CyberArena: Benchmarking AI Agents in Live Symmetric Attack-and-Defense Combat

https://arxiv.org/abs/2610.19005
2•neutrinoliu•57m ago•0 comments

The iPhone Duo

https://daringfireball.net/2026/10/the_iphone_duo
9•johnbehnke•1h ago•0 comments

Loco: The one-person framework for Rust

https://loco.rs/
2•mike1o1•1h ago•0 comments

Κ = 0.003 for integer multiplication crossed

https://github.com/CrocSwap/integer-mult-bounds/pull/4441
6•aleph_minus_one•1h ago•1 comments

Show HN: ZeGrapher v4: modern math plotter

https://zegrapher.com/en/
2•adelks•1h ago•1 comments

Singulion Structure and the Voynich Manuscript

https://journals.openedition.org/digitalmedievalist/2331
3•jhncls•1h ago•0 comments

Apple is finding its voice for what more sophisticated multitouch UX can be

https://royalicing.com/2026/apple-voice-iphone-duo
2•burntcaramel•1h ago•0 comments

Rails Is a JIT Compiler

https://railsatscale.com/2026-10-21-rails-is-a-jit-compiler/
5•hellerve•1h ago•0 comments

Show HN: Embodsi – Embodied Super Intelligence

https://embodsi.com/
2•laser•1h ago•0 comments

There isn't an easy exploit for this PHP vulnerability

https://eliastaylor.com/noexploit/
51•zkldi•1h ago•7 comments

Anthropic opens research preview of Claude Duet, a agent for professionals

https://www.reuters.com/technology/anthropic-unveils-claude-duet-ai-agent-app-2026-10-21/
2•satirr•1h ago•1 comments