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!

Show HN: Roundtable-agent – Claude Code chairs the AI apps on my Android phone

https://github.com/bluelikeness/roundtable-agent
1•bluelikeness•16m ago•0 comments

Xiomi HyperOS 4 UI now makes use of Rust and Flutter

https://shiftdelete.net/en/xiaomi-hyperos-4-arrives-next-month-with-major-performance-boosts
1•pjmlp•17m ago•0 comments

Show HN: Laravel-go-tenancy – Configurable multitenancy for Laravel Go

https://martinshaw.github.io/laravel-go-tenancy/
1•deux-titres•17m ago•1 comments

My second-hand 5G router came with a Tailscale backdoor named after me

https://blog.euhe.eu/posts/second-hand-router-backdoor/
3•siguiriya•21m ago•0 comments

Attention Costs $100k

https://tornikeo.com/your-attention-costs-100k/
3•tornikeo•23m ago•0 comments

Helpful, Honest, and Harmless Robots

https://alignment.anthropic.com/2026/hhh-robots/
2•geox•24m ago•0 comments

A Graph Description Language with Spatial Semantics

https://blog.brownplt.org/2026/12/03/spytial-gdl.html
2•matt_d•30m ago•0 comments

Whenere: Seeking intrepid play testers – by Neal Stephenson

https://nealstephenson.substack.com/p/whenere-seeking-intrepid-play-testers
1•joecobb•33m ago•0 comments

Bear Trap

https://www.cnn.com/2026/12/05/europe/ukraine-russia-operation-bear-trap-intl
2•znnajdla•33m ago•0 comments

Scaling Proactive Compute: When Agents Anticipate the Task

https://proactive-compute.stanford.edu/
2•matt_d•37m ago•0 comments

Reverse engineered MS Word with pixel perfect rendering

https://f-office.org/
2•hosolmaz•38m ago•0 comments

A Dead Telescope May Have Spotted a Hotly Debated Planet

https://www.nytimes.com/2026/12/04/science/gaia-data-proxima-c.html
3•saikatsg•38m ago•0 comments

Jeff Dean on creating a new VCS

https://twitter.com/JeffDean/status/2128319771779473409
2•abhi9u•40m ago•0 comments

Monero versus Zcash: Who Wins the Battle for Crypto Privacy?

https://superlist.fun/news/monero-vs-zcash/
3•Gordo3•42m ago•0 comments

Silence at NIST, Panic on X: Who Gets to Tell Us Our Encryption Is Broken?

https://soghoian.net/blog/silence-at-nist-panic-on-x/
4•hellcow•45m ago•0 comments

Smoking cannabis probably causes cancer, says World Health Organization

https://www.theguardian.com/society/2026/dec/04/smoking-cannabis-probably-causes-cancer-says-worl...
3•YeGoblynQueenne•48m ago•0 comments

EU antitrust chief Ribera backs digital tax on Big Tech, calls it 'peanuts'

https://www.reuters.com/business/retail-consumer/eu-antitrust-chief-ribera-backs-digital-tax-big-...
2•giuliomagnifico•50m ago•0 comments

Huawei's HarmonyOS(Independent OS) Crosses 100M Device Milestone

https://www.huawei.com/en/news/2026/12/harmonyos-collective-achievement-award
5•DeepLogin•52m ago•2 comments

Human Needs >> Genie Needs

https://newsletter.kentbeck.com/p/human-needs-genie-needs
1•umbula•56m ago•0 comments

"allow read: if true" is two permissions, and a field mask isn't one

https://redsuture.com/research/firestore-get-vs-list
1•MikeDMuindi•1h ago•0 comments

Show HN: We turned our marketing site into a flight simulator

https://okae.ai/landing
2•okae-team•1h ago•0 comments

The first beta of Android 18

https://developer.android.com/blog/posts/the-first-beta-of-android-18
3•exploraz•1h ago•0 comments

An agent governance framework for enterprises

https://luciobaiocchi.com/blog/agent-governance-security-framework
4•luciobaiocchi•1h ago•0 comments

Forge Engine – Visual 2D Game Maker Editor

https://forgeengine.space/
1•Benjaminqwer•1h ago•1 comments

Out of the Muck

https://bengodfrey.dev/blog/out-of-the-muck/
1•sudo-bendg•1h ago•0 comments

Adversarial Hiring

https://drive.google.com/file/d/1_u30ecKI2NnLjyE7fbSLbcpKF-njASfb/view
2•rustoo•1h ago•0 comments

Zig: Package conflict management and build system docs

https://ziglang.org/devlog/2026/#2026-12-04
2•joshcsimmons•1h ago•0 comments

V Programming Language 0.5.3

https://github.com/vlang/v/releases/tag/0.5.3
2•hggh•1h ago•0 comments

Post-quantum RSA (terabyte key) (2017)

https://eprint.iacr.org/2017/351
1•networked•1h ago•0 comments

The Hidden Cost of Getting Everything Right

https://www.derekthompson.org/p/what-happens-when-we-build-a-machine
2•thunderbong•1h ago•0 comments