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!

YC Startup School 2026

https://bestmate.io/startup-school-2026
1•harper•1m ago•0 comments

Compass: Fast, local-first knowledge graph for understanding codebases

https://github.com/crabbuild/compass
1•handfuloflight•7m ago•0 comments

Ask HN: How to rewrite `Claude.md` and install the skill for Opus5 and Fable5

1•hyhmrright•9m ago•2 comments

Prompting Claude Opus 5

https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/prompting-claude-opus-5
1•alvis•9m ago•0 comments

How Netanyahu Lost America

https://www.theatlantic.com/ideas/2026/07/bibi-netanyahu-israel-failures-antisemitism/688050/
2•Alien1Being•13m ago•0 comments

We moved wind turbines from China to Sri Lanka [video]

https://www.youtube.com/watch?v=SXotkuJHxF0
1•thelastgallon•14m ago•0 comments

GPS Map Camera: Geotag Camera

https://play.google.com/store/apps/details?id=com.gpsmapcamera.photo.timestamp.video.location&hl=...
1•satyampromotion•15m ago•0 comments

Ted Kaczynski, Math Tutor

https://www.documentcloud.org/documents/2696533-Ted-Kaczynski-Math-Tutor/
1•Teever•15m ago•0 comments

Answerwatch – Track changes in what AI models recommend

https://github.com/haror1/answerwatch
1•arorah•15m ago•0 comments

Autoportrait

https://philipweiss.net/autoportrait/
1•philipfweiss•18m ago•0 comments

KMIP: How It Works, When You Need It, and How Infisical Implements It

https://infisical.com/blog/kmip
1•vmatsiiako•19m ago•0 comments

Why Most Backtests Fail in Production – and How Event-Time Replay Fixes It

https://medium.com/@DolphinDB_Inc/turning-market-history-into-live-signals-dolphindb-data-replay-...
2•napgirllll•20m ago•0 comments

How AI and Low-Latency Computing Are Reshaping Digital Twins

https://medium.com/@DolphinDB_Inc/real-time-decision-making-how-ai-and-low-latency-computing-are-...
1•chaercling•21m ago•0 comments

Free, private file tools that work in the browser

https://easyfiletools.com
1•randomperson_24•25m ago•0 comments

Recursive Filters: SMA, EMA, Low‑Pass, and a Tiny Kalman

https://www.staszewski.xyz/blog/recursive-filters/
1•kamilstaszewski•27m ago•0 comments

Show HN: Kdeps – A New CLI Coding Agent That Runs on Open Weight Models

https://kdeps.com
1•jjuliano•27m ago•0 comments

GitBook: The open source front end for GitBook doc sites

https://github.com/GitbookIO/gitbook
1•thunderbong•31m ago•0 comments

Improving Heuristics for A* Pathfinding

https://www.redblobgames.com/pathfinding/heuristics/differential.html
1•bobbiechen•34m ago•0 comments

Their position on open-weights models sucks

https://blog.nathanlangley.dev/posts/anthropic-open-weights.html
1•ninjahawk1•34m ago•0 comments

Prove Yourself – Delayed Disclosure as a Verifiable Public Artifact

https://prove-yourself.sebmellen.com/technical-notes.html
1•sebmellen•41m ago•0 comments

Show HN: Krate, AI-made apps as permissioned files for Mac, Windows, and Linux

https://github.com/incyashraj/krate
1•incyashraj•45m ago•0 comments

How I use AI in my geology research without losing the science I love

https://www.science.org/content/article/how-i-use-ai-my-geology-research-without-losing-science-i...
1•the-mitr•50m ago•0 comments

Machines will never understand language

https://astra.pizza/posts/machines-will-never-understand-language/
1•ankitg12•50m ago•0 comments

Request Timeout Is a Polite Suggestion

https://medium.com/devs-community/your-request-timeout-is-a-polite-suggestion-94171a66fb43
1•sukhpinder0804•51m ago•0 comments

A simple clustering algorithm for lists

https://cassidoo.co/post/clustering-tiles/
2•nreece•59m ago•0 comments

Space exploration game made using Claude Opus 5

https://twitter.com/anshuc/status/2081801966158811506
3•starshadowx2•1h ago•1 comments

Show HN: Over 150 side events of BlackHat 2026 in one page

https://www.chancity.ai/blackhat-vegas-2026
1•csujoy•1h ago•1 comments

AI Makes Starting Games Easier. Finishing Is Still Hard

https://twitter.com/robertvaradan/status/2078234518549311855
2•robertvaradan•1h ago•0 comments

Cursor Start

https://cursor.com/blog/cursor-start-india
2•twapi•1h ago•1 comments

OpenAI called the Hugging Face attack unprecedented. But we've been here before

https://www.technologyreview.com/2026/07/27/1140836/openai-hugging-face-attack-precedent/
6•devonnull•1h ago•0 comments