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!

Insightix – when Polymarket and Deribit price the same event differently

https://insightix.io
1•chriswolff•2m ago•0 comments

Trump's latest AI czar has resigned

https://techcrunch.com/2026/07/20/trumps-latest-ai-czar-has-already-resigned/
1•adithyaharish•2m ago•0 comments

Assessing State Reaction to the Supreme Court's Undermining of Property Rights

https://statecourtreport.org/our-work/analysis-opinion/assessing-state-reaction-supreme-courts-un...
1•1vuio0pswjnm7•2m ago•0 comments

Havana syndrome: US to compensate victims

https://www.bmj.com/content/394/bmj-2026-100312
1•Coral-Tiny•3m ago•0 comments

Show HN: HyCanvas, a free self-hostable Canva alternative

https://github.com/hyscaler/HyCanvas
1•devadattas•4m ago•0 comments

France's edge in the AI race is cheap energy

https://www.politico.eu/article/frances-edge-in-the-ai-race-is-cheap-energy-if-american-big-tech-...
1•leonidasrup•5m ago•0 comments

Reproducing the Jacobian conjecture counterexample in two cells of SymPy

https://korbonits.com/blog/2026-07-20-trust-nothing-verify-everything/
1•korbonits•7m ago•0 comments

Retriever: A Programming Framework for Closed-Loop Robot Agents

https://retriever.systems/blog/
1•ilreb•8m ago•0 comments

AI's Next Big Breakthrough Is Looking Pretty Scary

https://www.bloomberg.com/opinion/articles/2026-07-21/self-improving-ai-models-look-genuinely-scary
1•petethomas•8m ago•0 comments

Reverse-engineering is cheap now

https://simonwillison.net/2026/Jul/20/cheap-reverse-engineering/
2•edward•12m ago•0 comments

Brain runs on about twenty watts

https://medium.com/@hugo.minney/the-20-watt-brain-can-we-connect-brains-for-computing-f8981b9ca7f9
2•giuliomagnifico•12m ago•1 comments

A Factory Reset Left the Previous Owner's GPS Coordinates on a Kasa Camera

https://www.vincentschmalbach.com/factory-reset-kasa-camera/
1•vincent_s•14m ago•0 comments

The Galaxy Card Is Samsung's Answer to the Apple Card

https://www.wired.com/story/galaxy-card-is-samsung-answer-to-the-apple-card/
1•divbzero•14m ago•0 comments

Show HN: Use This Instead of 4Chan

https://interactink.vercel.app/interactink.html
1•squeezes•16m ago•0 comments

How to Build the ChatGPT Typing Effect in Modern JavaScript

https://jsdev.space/howto/chatgpt-typing-effect/
1•javatuts•18m ago•0 comments

9 months building an advanced StarCraft reporting tool with Go and Claude

https://marianogappa.github.io/thoughts/building-an-advanced-starcraft-reporting-tool/
1•maloga•19m ago•0 comments

Do we just want slaves?

https://www.yashthapliyal.com/blog/do-we-just-want-slaves
2•yash1hi•27m ago•0 comments

Show HN: Claudexor – quota-aware routing for Claude Code, Codex, and Cursor

https://github.com/razzant/claudexor
2•abstractDL•27m ago•0 comments

Zoom is now Chrome only

https://zoom.us/test
3•asdfsa32•28m ago•2 comments

Bloomberg's Last Stand

https://theterminalist.substack.com/p/bloombergs-last-stand
1•hubraumhugo•29m ago•0 comments

Unity ships a CLI that lets AI agents operate running game projects

https://runtimewire.com/article/unity-ships-a-cli-that-lets-ai-agents-operate-running-game-projects
1•ryanmerket•30m ago•0 comments

Show HN: Ex Situ – open-source spatial index of displaced cultural artifacts

https://exsitu.app/map
7•hbyel•34m ago•0 comments

Church was sacred, now it is theater

https://www.flocksafety.com/industries/places-of-worship
2•maieuticagent•35m ago•1 comments

Looking for contributors – trie based memory efficient LLM runner

https://github.com/oteomamo/SALT
1•omamo•38m ago•0 comments

ShotPlan: Cinematic Video Generation with Learnable Planning Token

https://pensioner-11.github.io/ShotPlan/
2•ilreb•45m ago•0 comments

Reasons for having your own website in 2026

https://bellkiosk.website/blog/reasons-to-website.html
4•vinhnx•45m ago•0 comments

Show HN: UEFI Bootloader for TempleOS

https://codeberg.org/0x2f22d23e/UwUEFI
3•AlecMurphy•47m ago•0 comments

Laura Grego on satellites, nuclear weapons and the battle for our skies

https://www.theguardian.com/lifeandstyle/2026/jul/20/doomsday-system-physicist-laura-grego-satell...
3•oriettaxx•50m ago•0 comments

AI's solution to 87-year-old riddle takes mathematicians by surprise

https://www.newscientist.com/article/2580374-ais-solution-to-87-year-old-riddle-takes-mathematici...
3•vismit2000•50m ago•0 comments

What Becomes Scarce After Intelligence?

https://manasbihani.substack.com/p/every-ai-bet-is-the-same-bet
2•manasb25•52m ago•0 comments