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!

The Blue Goo Causing Flight School Planes to Lose Power in Midair

https://www.wsj.com/business/airlines/blue-goo-flight-school-plane-crash-c458f272
1•gmays•29s ago•0 comments

SurvAIval: Measuring Self-Preservation in Multi-Turn, Tool-Using AI Agents

https://arxiv.org/abs/2611.41440
1•codyznash•37s ago•0 comments

Show HN: Lilotab – a tab finder and switcher for Chrome

https://chromewebstore.google.com/detail/lilotab/jhdobndbhplpfcaaebplenpkdakdcamb
2•alphab_io•2m ago•0 comments

Dependabot alerts will pause on inactive repositories

https://blog.github.com/changelog/2026-11-10-dependabot-alerts-will-pause-on-inactive-repositories/
2•robin_reala•2m ago•0 comments

Towards More Ambitious and Responsible Research

https://blog.tmlr.org/2026/towards-more-ambitious-and-responsible-research/
2•jeremyscanvic•3m ago•0 comments

Apple slashes Siri AI daily limits by up to 94 percent in iOS 27.3

https://macdailynews.com/2026/12/01/apple-slashes-siri-ai-daily-limits-by-up-to-94-percent-in-ios...
3•apparent•6m ago•2 comments

Z2RAM Claims SRAM Memory Speeds at Much Greater Density

https://spectrum.ieee.org/sram-memory-z2ram
2•hasheddan•6m ago•0 comments

Laravel Rust

https://laravel-news.com/laravel-rust
2•aizk•8m ago•2 comments

New AI-driven chemistry discovery points the way to 'alien science'

https://techcrunch.com/2026/11/30/new-ai-driven-chemistry-discovery-points-the-way-to-alien-science/
2•rruxandra•9m ago•0 comments

Channelstack – Your app's whole world, on localhost

https://channelstack.dev
2•cbromann•9m ago•0 comments

Susi.ai builder – agentic coding in browser

https://susi.ai/
1•orbiterlab•11m ago•0 comments

Chipping Away at the Extended Riemann Hypothesis

https://www.johndcook.com/blog/2026/12/01/quasi-erh/
1•ibobev•12m ago•0 comments

ICE's plan to monitor 'all social media activities'

https://www.csmonitor.com/USA/Justice/2026/1201/ice-social-media-monitoring-immigration
3•jimt1234•15m ago•0 comments

Ask HN: What Are You Working On (December 2026)

3•iamsal•15m ago•1 comments

What Was the Cybertruck?

https://www.nytimes.com/2026/12/01/magazine/cybertruck-elon-musk.html
1•reaperducer•15m ago•0 comments

Creating Beveled Corners with "corner-shape"

https://www.joshwcomeau.com/css/bevel-corners/
1•ibobev•17m ago•0 comments

Show HN: Substack Mirror – Keep your Substack in sync with your blog

https://github.com/marketplace/actions/substack-mirror
1•donchuru•17m ago•0 comments

Is Pornography Really Replacing Sex for Young People?

https://www.psychologytoday.com/us/blog/women-who-stray/202611/is-pornography-really-replacing-se...
1•bushwart•17m ago•0 comments

Union types (new in C# 15)

https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/union
2•Archelaos•19m ago•0 comments

Show HN: A decision model optimizer that climbs by asking side questions

https://github.com/cmpnd-ai/dspy-side-questions
1•dbreunig•19m ago•0 comments

The Dual Operating System for AI-Native Companies

https://blog.afoot.net/p/how-ai-native-companies-turn-new
1•Vameyer•19m ago•0 comments

Groktimus playing the new season of Diablo

https://x.com/i/broadcasts/2ybpzvlpKYJlnP
1•dvaplima•20m ago•0 comments

Show HN: Patch runtimes at platform level with Brewlet

https://brewlet.sh/
1•brunoborges•22m ago•0 comments

Tecolot – Native Terminal for macOS

https://tecolot.com/
1•atmosx•22m ago•0 comments

Humble Books Bundle: The Ultimate Solo Software Developer by Manning

https://www.humblebundle.com/books/the-ultimate-solo-software-developer-manning-books-bookbundle
2•teleforce•24m ago•1 comments

A Letter to the Laravel Community

https://twitter.com/taylorotwell/status/2127833915755000011
2•luispa•24m ago•1 comments

Show HN: Ayaml – a fast, safe, pure-rust YAML library

https://github.com/asamarts/ayaml
1•aleqs•24m ago•0 comments

Robotaxis, cyber physical systems and safety engineering: Phil Koopman interview

https://cacm.acm.org/practice/interviews-in-practice-an-in-depth-discussion-with-phil-koopman/
1•barhdsry•25m ago•0 comments

A Differentiable Neuromechanical Simulator for Full-Body Musculoskeletal Motion

https://diffneusim.neumove.org/
2•fittingopposite•25m ago•1 comments

Build Applications with Local AI Models on a Mac

https://www.manning.com/books/build-applications-with-local-ai-models-on-a-mac
1•teleforce•25m ago•0 comments