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!

Driving in America Is Headlight Hell

https://www.theatlantic.com/technology/2026/06/car-headlights-too-bright-adaptive-beams/687488/
1•pavel_lishin•1m ago•0 comments

How to Stop a Killer Asteroid

https://nautil.us/how-to-stop-a-killer-asteroid-1281888
1•Brajeshwar•2m ago•0 comments

Situational Awareness: The Decade Ahead

https://situational-awareness.ai/
2•yusufozkan•3m ago•0 comments

We Are On A Runaway Freight Train

https://mdelcaro.substack.com/p/the-freight-train
1•fathermarz•5m ago•0 comments

Artificial chocolate will show what shapes global trade

https://www.ft.com/content/06ad9bb9-983e-4651-8931-c9945164d589
1•mmarian•5m ago•2 comments

Spotify Wrapped for your AI coding usage

https://wrapped.entelligence.ai/
2•Entelligence25•6m ago•0 comments

An Overview of Modern AI Robotics from First Principles

https://interlatent.com/blog/interlatent-modern-ai-robotics-first-principles
2•sebg•7m ago•0 comments

Our First Fellows – Gnome Foundation

https://blogs.gnome.org/foundation/2026/06/11/announcing-our-first-fellows/
1•rbanffy•7m ago•0 comments

Copy Has a Blind Spot. This Claude Skill Finds It

https://aiforcontentmarketing.ai/your-copy-has-a-blind-spot-this-claude-skill-finds-it/
1•pakostina•8m ago•0 comments

Linux Sees Patches for "Critical" Vulnerability Affecting Many Arm CPUs

https://www.phoronix.com/news/Arm-CPU-Critical-CVE-2025-10263
1•rbanffy•9m ago•0 comments

Elon Musk's Age of Impunity

https://www.axios.com/2026/06/11/elon-musk-spacex-belfast-riots-incitement
2•1vuio0pswjnm7•11m ago•0 comments

Upgrading Pilo to Support Human-in-the-Loop Browser Automation

https://tabstack.ai/blog/pilo-interactive-mode
1•mooreds•11m ago•0 comments

Caddis – Professional Motion Design Tool

https://www.caddis.app/
1•preommr•13m ago•1 comments

Hijacking Cloud Identities by Recycling Namespaces in Global OIDC Issuers

https://astrix.security/learn/blog/subjugation-hijacking-cloud-identities-by-recycling-namespaces...
1•mooreds•14m ago•0 comments

Individual locomotor bias drives counterclockwise motion in pedestrian crowds

https://www.nature.com/articles/s41467-026-73713-w
1•helterskelter•14m ago•0 comments

Lisp's Influence on Ruby

https://blog.tacoda.dev/lisps-influence-on-ruby-6a54f1a7740e
1•tacoda•14m ago•0 comments

Welcome to the OpenAI, Anthropic, and Google price wars

https://sherwood.news/tech/openai-anthropic-google-price-wars-where-no-one-is-making-money/
1•simonpure•15m ago•1 comments

An evolutionary biologist and a science fiction writer walk into a bar (2024)

https://thereader.mitpress.mit.edu/the-collapse-is-coming-will-humanity-adapt/
1•FrustratedMonky•15m ago•0 comments

The theory taking the rich by storm: China funds data center haters

https://www.npr.org/2026/06/10/nx-s1-5844328/us-china-data-centers-foreign-influence
1•doruk101•16m ago•2 comments

Show HN: RadioPal – a somewhat intelligent layer over Liquidsoap

https://github.com/smoqadam/radiopal
2•smoqadam•16m ago•0 comments

DreamHost is shutting down Mailman – decision made sense, the execution didn't

https://emparrot.com/blog/2026/06/10/DreamHostMailman.html
1•wadco•16m ago•0 comments

Humans prefer to walk anticlockwise, scientists find – but reason is unclear

https://www.theguardian.com/science/2026/jun/10/humans-prefer-to-walk-anticlockwise-scientists-fi...
3•helterskelter•16m ago•0 comments

Why smart people keep getting AI wrong [video]

https://www.youtube.com/watch?v=KpTZbq-eV38
1•haizhung•17m ago•0 comments

Making Software: Image Compression

https://www.makingsoftware.com/chapters/image-compression
1•bpierre•17m ago•0 comments

Giulio Zausa's MMO-Chip Makes Reverse Engineering Old Silicon Chips a Multi Game

https://www.hackster.io/news/giulio-zausa-s-mmo-chip-makes-reverse-engineering-old-silicon-chips-...
1•retro_guy•19m ago•0 comments

Canada seeks to ban social media accounts for U16, joining growing global effort

https://apnews.com/article/canada-social-media-ban-16-kids-292444c9dd8773aeb4119aaa9eae5990
2•1vuio0pswjnm7•20m ago•0 comments

Fable 5 monitored a production incident, found nothing, was off by 20x

https://www.digitalapplied.com/blog/claude-fable-5-mythos-5-agentic-coding-deep-dive-2026
2•tkcashman•21m ago•0 comments

Code Is Cheap(er)

https://htmx.org/essays/code-is-cheap/
2•rcy•21m ago•1 comments

AMD Gaslights Security Researcher, Changes Rules Retroactively [video]

https://www.youtube.com/watch?v=4HjWHNLRMB0
4•SockThief•21m ago•1 comments

How a New DSL May Survive in the Era of LLMs

https://www.williamcotton.com/articles/how-a-new-dsl-survives-in-the-era-of-llms
1•williamcotton•21m ago•0 comments