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!

Show HN: Rav2d – AV2 video decoder ported from C to Rust (47K lines, 786 tests)

https://github.com/stukenov/rav2d
1•stukenov•4m ago•0 comments

Herdr: A tmux-like terminal multiplexer for AI coding agents

https://github.com/ogulcancelik/herdr
2•yigitkonur35•8m ago•0 comments

Who are the Volcano Group, mystery saboteurs behind a five-day Berlin blackout?

https://www.theguardian.com/environment/2026/may/23/volcano-group-berlin-blackout-mystery-saboteurs
2•monkey_monkey•10m ago•0 comments

The Art of Money Getting

https://kk.org/cooltools/book-freak-210-the-art-of-money-getting/
2•dxs•12m ago•0 comments

ZA/UM (Disco Elysium's studio) releases new computer game 'Zero Parades'

https://news.err.ee/1610032093/estonian-game-studio-za-um-releases-new-computer-game-zero-parades
1•vintagedave•13m ago•0 comments

Quantum 'Jamming' Could Help Unlock the Mysteries of Causality

https://www.wired.com/story/quantum-jamming-could-help-unlock-the-mysteries-of-causality/
1•Brajeshwar•15m ago•0 comments

Export Mac (OLM) to Outlook for Windows (PST)

https://apps.microsoft.com/detail/9n7jk7z3546j?hl=en-US&gl=US
1•tieanderson•17m ago•0 comments

Optimal summit window for Matterhorn from 50 years of historical data and pandas

https://mz.prose.sh/matterhorn-pandas
1•manuelz•18m ago•0 comments

Awesome Neuroscience

https://github.com/analyticalmonk/awesome-neuroscience
2•akashtndn•19m ago•0 comments

Multimodal adaptive optical microscope: in vivo imaging, molecules to organisms

https://www.nature.com/articles/s41592-026-03066-1
1•bookofjoe•23m ago•0 comments

Programming Language Pilang

https://github.com/rolandbrake/pilang
2•rolandbrake•24m ago•0 comments

Python Articles

https://www.pythonmorsels.com/articles/
1•slow_typist•25m ago•0 comments

MediaUse Makes FIFA 2026 Programmable for AI Agents (No Vision)

https://mediause.dev/skills/fifa2026
1•yooibox•25m ago•0 comments

I Miss Terry Pratchett

https://www.mahl.me/blog/the-spell-that-wouldnt-leave/
34•gorgmah•25m ago•8 comments

OpenClaw: Own Personal AI Assistant. Any OS. Any Platform

https://github.com/openclaw/openclaw
1•danborn26•29m ago•0 comments

Inequality and Risk

https://paulgraham.com/inequality.html
2•Anon84•29m ago•1 comments

The $58,000 TV bill: When DirecTV sued O.J. Simpson for piracy

https://arstechnica.com/tech-policy/2026/05/the-58000-tv-bill-when-directv-sued-o-j-simpson-for-p...
2•LorenDB•29m ago•0 comments

UK targets hostile and heinous Russian activity with latest sanctions

https://www.gov.uk/government/news/uk-targets-hostile-and-heinous-russian-activity-with-latest-sa...
1•doener•31m ago•1 comments

Writing VBA modules inside Excel files is much stranger than I expected

https://github.com/WilliamSmithEdward/pyOpenVBA/blob/main/docs/ms-ovba-implementation-guide_v2.md
1•birdculture•33m ago•1 comments

How ancient builders made the Great Pyramid of Giza nearly earthquake-proof

https://www.nationalgeographic.com/history/article/giza-pyramid-earthquake
2•bookofjoe•35m ago•2 comments

US Government releases UFO sighting reports – 'Orbs swarming in all directions'

https://www.bbc.com/news/articles/cn8pzzlyy66o
1•nsoonhui•37m ago•0 comments

There's Never Been a Better Time to Study Computer Science

https://www.theatlantic.com/technology/2026/05/computer-science-major-coding-ai/687279/
2•chrisaycock•39m ago•0 comments

Building a claw-like agent to run in the browser

https://aifoc.us/building-a-claw-in-the-browser/
1•kinlan•40m ago•0 comments

China: Mine death toll rises to 90 after gas blast

https://www.theguardian.com/world/2026/may/23/china-mine-explosion-shanxi-deaths-xi-jinping
2•tosh•47m ago•0 comments

Trump admin to force foreigners in the U.S. to apply for a green card abroad

https://www.npr.org/2026/05/23/nx-s1-5832399/trump-administration-green-card-abroad
1•thinkcontext•49m ago•4 comments

Matrix Multiplications on GPUs Run Faster When Given "Predictable" Data

https://www.thonking.ai/p/strangely-matrix-multiplications
1•tosh•49m ago•0 comments

80386 Microcode Disassembled

https://www.reenigne.org/blog/80386-microcode-disassembled/
41•nand2mario•49m ago•3 comments

macOS-MCP

https://github.com/CursorTouch/MacOS-MCP
2•jeomon•50m ago•1 comments

Judson's Last Ride

https://www.realclearpolitics.com/articles/2026/05/22/judsons_last_ride_154150.html
1•NaOH•51m ago•0 comments

Building Self-Extending CLI Tools with Strands Agent

https://aws.amazon.com/blogs/devops/building-self-extending-cli-tools-with-aws-strands/
1•kiyanwang•57m ago•0 comments