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!

Soon everybody will be worried about Chinese LLM's as agent Trojan horses

https://twitter.com/i/status/2080180914135667085
1•mherrmann•47s ago•0 comments

The Law of Leaky Abstractions (2002)

https://www.joelonsoftware.com/2002/11/11/the-law-of-leaky-abstractions/
1•rldjbpin•2m ago•1 comments

Google's Design Ethicist Testimony [pdf]

https://www.commerce.senate.gov/wp-content/uploads/media/doc/06_25_19Harris_Testimony.pdf
1•malaiqa•3m ago•0 comments

Code review: slapping an AI reviewer on top of an AI author doesn't cut it

https://blog.codacy.com/ai-code-review-is-not-enough-how-engineering-leaders-should-gate-ai-gener...
1•ARayOutOfBounds•3m ago•0 comments

OpenAI's models broke free and launched a cyberattack

https://www.politico.com/news/2026/07/22/openai-hugging-face-congress-response-01009190
1•Alien1Being•3m ago•0 comments

Show HN: I built a token-per-second counter in Go

https://github.com/canergulay/tokps
1•canergl•6m ago•0 comments

Beyond Arc and GSM: Langford Coverage as a Benchmark for ASI

https://zenodo.org/records/21502973
1•Mlangford75•9m ago•1 comments

Stupid Slow: The Perceived Speed of Computers (2024)

https://www.datagubbe.se/stupidslow/
1•doener•10m ago•1 comments

KTransformers – Flexible LLM Inference Framework

https://ktransformers.net/en
1•stareatgoats•13m ago•0 comments

OpenAI's Australian data centre drops water recycling plan

https://www.reuters.com/business/energy/openais-australian-data-centre-drops-water-recycling-plan...
2•adithyaharish•14m ago•0 comments

I gave Pi one tool and it ran for eight days

https://monotykamary.com/posts/i-gave-pi-one-tool/
1•kennyfrc•14m ago•0 comments

Why creators are hedging against the TikTok algorithm

https://www.officeos.co/blog/why-creators-are-hedging-against-the-tiktok-algorithm
1•Harro123•14m ago•0 comments

I'm helping DBA-less SQL Server Shops for free hoping that I can build my leads

https://consulting.marlonribunal.com/
1•MarlonPro•14m ago•0 comments

Ode to Jim Goad

https://counter-currents.com/2026/07/ode-to-jim-goad/
1•MrBuddyCasino•14m ago•0 comments

Distillation Is Not Anti-American, Weaponizing It Is

https://hardcoresoftware.learningbyshipping.com/p/241-distillation-is-not-anti-american
1•rbanffy•15m ago•0 comments

Show HN: Clipboard Saver – Browser extension to save and organize copied text

https://github.com/tejasashinde/clipboard-saver-extension
1•tejas_s•17m ago•0 comments

Find the prefect domain name with Gemeni and Agents (Antigravity)

https://rizz.dev/blog/guides/find-an-available-domain-name-with-ai
1•rizzdev•18m ago•1 comments

Besser is an open-source low-code platform to build all APIs, databases, agents

https://besser-pearl.org/
1•u1hcw9nx•19m ago•0 comments

Buzz – Where people and agents work together

https://buzz.xyz
1•blackdivine•19m ago•0 comments

World Artificial Intelligence Cooperation Organization

https://en.wikipedia.org/wiki/World_Artificial_Intelligence_Cooperation_Organization
1•iamflimflam1•20m ago•0 comments

Prefactoring: Clear the Way for Your New Feature

https://testing.googleblog.com/2026/07/prefactoring-clear-way-for-your-new.html
1•birdculture•21m ago•0 comments

Antares: Highly Efficient Open Weight AI Models for Vulnerability Localization

https://blogs.cisco.com/ai/introducing-antares-the-most-efficient-open-weight-ai-models-for-vulne...
1•shallow-mind•29m ago•0 comments

Iran strikes on CIA facilities prompt questions about possible Russian role

https://www.reuters.com/world/middle-east/iran-strikes-cia-facilities-prompt-questions-about-poss...
2•geox•31m ago•0 comments

Recent Data Graphics Pulling Their Weight

https://www.anychart.com/blog/2026/07/10/data-graphics-pull-their-weight/
1•latentframe•33m ago•0 comments

Valve give Steam Wishlist and Steam Gifts a major needed upgrade

https://www.gamingonlinux.com/2026/07/valve-give-steam-wishlist-and-steam-gifts-a-major-needed-up...
1•Erenay09•36m ago•0 comments

Graffiti (Conjecture-Generating Program)

https://en.wikipedia.org/wiki/Graffiti_(program)
1•YeGoblynQueenne•36m ago•0 comments

Show HN: Loop me in - Get looped into people's chats with AI. Help out. Get paid

https://www.loopmein.ai/
1•guico•37m ago•1 comments

Lira Engine – prove your data isn't in an LLM (AUC-ROC 1.000)

https://medium.com/@v_regis/why-self-auditing-your-ai-model-violates-eu-ai-act-article-53-22f693f...
1•roundcurtain•39m ago•0 comments

Incident Report for GitHub – Latency issues across a number of services

https://www.githubstatus.com/incidents/zq3c1jst2vkq
2•1f97•49m ago•0 comments

Show HN: OpenCode Session Tracker

https://github.com/ykocaman/opencode-session-tracker/tree/main
1•ykocaman•50m ago•2 comments