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!

Star Trek S01e20 "Court Marshall"

https://en.wikipedia.org/wiki/Court_Martial_(Star_Trek:_The_Original_Series)
1•Jimmc414•1m ago•0 comments

Protecting Engineers' Skills in the AI Era

https://spectrum.ieee.org/ai-engineer-skills
1•rbanffy•6m ago•0 comments

Ask HN: How does your job benefit society?

1•chistev•7m ago•0 comments

There are many agent harnesses, but this one is mine

https://earendil.com/posts/there-are-many-agent-harnesses-but-this-one-is-mine/
1•zdw•9m ago•0 comments

Anxious or outgoing? Study links Big Five personality traits to genetic variants

https://www.nature.com/articles/d41586-026-02761-5
1•geneticdrifts•10m ago•0 comments

Spending deal comes with a bonus: Blocking political control of grants

https://arstechnica.com/science/2026/09/budget-deal-puts-political-control-of-grants-on-hold-unti...
1•rbanffy•10m ago•0 comments

I found an AI-driven browser that builds workflows from playbooks

https://www.browserargus.com/blog/two-lanes-for-cold-email
1•akimmaimedow•10m ago•0 comments

Oura S-1

https://www.sec.gov/Archives/edgar/data/2133022/000119312526381855/d119865ds1.htm
2•firexcy•13m ago•0 comments

The Unsung Inventor Who Chased the LED Rainbow

https://spectrum.ieee.org/yellow-led-inventor
1•rbanffy•16m ago•0 comments

Modal's rise: sandboxes, cold starts, and what the SEC paperwork reveals

https://henrymichaelson1.substack.com/p/inside-modals-rise-sandboxes-sub
3•hmichaelson20•19m ago•0 comments

Dash for Windows: Now in Beta

https://blog.kapeli.com/dash-for-windows-beta
2•frou_dh•20m ago•0 comments

ZJIT GC: Inlining GC Fastpath in ZJIT (Ruby)

https://railsatscale.com/2026-09-01-zjit-gc-fastpath/
1•weatherlight•20m ago•0 comments

Show HN: Generate a Claude Code or Codex agent fleet from one HTML file

https://github.com/bob-codedaptive/fleet-generator
1•survivor0xb0b•20m ago•0 comments

here is how We're All Going to Die

https://www.noahpinion.blog/p/heres-how-were-all-going-to-die
1•paulpauper•22m ago•0 comments

Bitcoinica

https://en.bitcoin.it/wiki/Bitcoinica
1•chistev•22m ago•1 comments

SpaceXAI apologizes for outage that affected Grok and other 'compute partners'

https://www.engadget.com/2250789/spacexai-apologizes-for-outage-that-affected-grok-and-other-comp...
1•cdrnsf•26m ago•0 comments

I tracked 7,022 MCP tool definitions. 14 servers changed within 27 hours

https://github.com/GautamTalksDev/mcp-pin/blob/main/docs/findings/2026-09-03-schema-drift.md
1•GautamTalksDev•27m ago•0 comments

GLP-1s Are Being Linked to Fewer Serious Infections, Including TB

https://gizmodo.com/ozempic-and-other-glp-1s-are-being-linked-to-fewer-serious-infections-includi...
3•gumby•29m ago•1 comments

Rich vs. King in the Real World: Why I sold my company

https://longform.asmartbear.com/rich-vs-king-sold-company/
2•gmays•31m ago•0 comments

Matching Features, Not Tokens: Energy-Based Fine-Tuning of Language Models

https://energy-based-fine-tuning.github.io/
1•E-Reverance•32m ago•0 comments

Blockchain und Bitcoin erklärt in 6 Episoden – Episode 4

https://medium.com/@chris.ahrweiler/blockchain-und-bitcoin-erkl%C3%A4rt-in-6-episoden-episode-4-e...
1•docjojo•32m ago•0 comments

Jenzin-Wuang-Nemotron-30B-A3B-BF16

https://huggingface.co/ApolloRaines/Jenzin-Wuang-Nemotron-30B-A3B-BF16
1•Apollo_R•32m ago•1 comments

Perhaps I should look up the statute of limitations

https://lars.ingebrigtsen.no/2026/09/03/perhaps-i-should-look-up-the-statute-of-limitations/
2•TMWNN•33m ago•0 comments

Flock Taught Cops How to Surveil No Kings Protesters

https://www.404media.co/flock-taught-cops-how-to-surveil-no-kings-protesters/
7•text0404•34m ago•0 comments

The World in Which We Live

https://nntaleb.substack.com/p/the-world-in-which-we-live
1•paulpauper•38m ago•0 comments

Scaling AI: The Communication Wall

https://www.aaravwattal.com/blog/c2c-interconnect/
1•matt_d•39m ago•0 comments

Models Don't Go Rogue

https://mail.cyberneticforests.com/models-dont-go-rogue/
3•cdrnsf•39m ago•1 comments

Methods for Random Gradients

https://justinjay.wang/methods-for-random-gradients/
1•nickswalker•39m ago•0 comments

Relativistic Lightsail Propulsion Dynamics

https://arxiv.org/abs/2606.04052
1•rbanffy•40m ago•0 comments

Linked Lists in the Linux Kernel

https://0xax.dev/books/linux-inside/linux-datastructures-1
1•matt_d•40m ago•0 comments