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!

Social media platforms to be forced to offer algorithm opt-out

https://www.abc.net.au/news/2026-09-06/opt-out-laws-social-media-algorithm-parliament-government/...
1•nreece•3m ago•0 comments

Paleolithic

https://en.wikipedia.org/wiki/Paleolithic
1•andsoitis•5m ago•0 comments

Vistep – 62 animated science explanations

https://vistep.ai/
1•int64ago•8m ago•1 comments

GPT-6 Astra on robot arms

https://openai.robocurve.org/gpt-6-astra/
2•Anon84•15m ago•0 comments

Release containerd 2.3.5 · containerd/containerd

https://github.com/containerd/containerd/releases/tag/v2.3.5
1•kyisaiah47•19m ago•0 comments

The Next Big Opportunity in Data Centers: Insuring Them

https://www.wsj.com/finance/the-next-big-opportunity-in-data-centers-insuring-them-f133f3cb
1•thm•24m ago•0 comments

80k-year-old "arrowheads" rewrite human history

https://www.sciencedaily.com/releases/2026/09/260903064233.htm
1•gradus_ad•24m ago•0 comments

Founders School

https://founders.school
1•ungreased0675•29m ago•1 comments

Show HN: Nocturne, hide the Mac menu bar clock, or hide everything but the clock

https://github.com/dotcomjack/nocturne
1•dotcomjack•30m ago•0 comments

One new Swiss company in thirty-six now claims AI

https://prospex.ch/blog/ai-companies-in-switzerland-what-the-commercial-register-shows/
1•mial•43m ago•0 comments

Captcha in LinkedIn is not working while signing up from LibreWolf

1•Hannbal•45m ago•0 comments

Ask HN: Why don't we bring back old school OkCupid?

2•firefax•50m ago•2 comments

Linguistic Drift at the Frontier

https://pydantic.dev/articles/linguistic-drift-at-the-frontier
2•hummusFiend•54m ago•0 comments

Gateside by TSA Precheck

https://www.tsa.gov/precheck/gateside-tsa-precheck
4•minhduong243•55m ago•0 comments

Why the chicken crossed the road, according to various entities

https://dynomight.net/chicken/
2•Curiositry•56m ago•0 comments

Emergent cheating and whistleblowing in autonomous research swarms

https://arxiv.org/abs/2609.04170
2•anigbrowl•1h ago•0 comments

How to make your agent do its own support

https://mmoustafa.com/blog/2026/09/05/how-to-make-your-agent-do-its-own-support/
2•mmoustafa•1h ago•0 comments

Asahi Linux Supports M3

https://asahilinux.org/2026/09/m2-episode-1/
5•LorenDB•1h ago•2 comments

I hate Wispr Flow so much

https://www.nytimes.com/2026/08/19/magazine/ai-dictation-app-wispr.html
2•paaloeye•1h ago•1 comments

GPT-6 Astra recreated the Palace of Fine arts in Blender

https://twitter.com/sharifshameem/status/2095688352075075878
2•handfuloflight•1h ago•0 comments

When Code Is Abundant

https://about.gitlab.com/blog/when-code-is-abundant/
3•gmays•1h ago•0 comments

Manifolds, differential forms, and multivariable calculus

https://hidden-phenomena.com/articles/diff-forms
1•measurablefunc•1h ago•0 comments

Limitations of Perceptual Image Metrics

https://halide.cx/blog/metric-limits/
2•computerbuster•1h ago•0 comments

Show HN: Vibes – A Mac app for friends to see who's online and coding

https://vibes.opentangle.com/
1•zzzmarcus•1h ago•0 comments

Show HN: Cowbull – Wordle-like game where you only get match counts

https://cowbull.co/
2•ajayvk•1h ago•1 comments

Sentrux: Codebase Architectural Sensor

https://sentrux.dev/
2•handfuloflight•1h ago•0 comments

Show HN: CocoCut – A zero-cloud, 1-second video diary engine built with Flutter

https://cococut.app/en
1•xcc3641•1h ago•1 comments

V1.0.0 – the complete fourteen-channel atlas

https://letenergyflow.app/
2•MuzikPro•1h ago•0 comments

The Netherlands Will Never Be Rid of Louisiana Crawfish

https://www.theatlantic.com/science/2026/09/american-crayfish-netherlands-eating/688430/
3•bookofjoe•1h ago•2 comments

Not Everything Digital Is Good: Tech Isn't Always an Example of Genius

https://thewalrus.ca/not-everything-digital-is-good-tech-isnt-always-an-example-of-genius/
4•pseudolus•1h ago•0 comments