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!

$580M undersea cable rerouted to avoid the grave of Dobby the House Elf

https://www.tomshardware.com/networking/usd580-million-undersea-cable-rerouted-to-avoid-the-grave...
1•rbanffy•1m ago•0 comments

What Louis CK would think about Nvidia's circular financing

https://wrongquestions.substack.com/p/what-louis-ck-would-think-about-nvidias
1•yamirghofran•2m ago•0 comments

Want people to use cheaper AI models? Make expensive models slower

https://enterpilot.io/blog/make-expensive-ai-models-slower/
1•santiago-pl•2m ago•1 comments

Pizza Box Project Stack

https://cblgh.org/posts/2026-07-31-pizza-box-project-stack/
1•surprisetalk•3m ago•0 comments

How much would you pay for a smarter baby?

https://www.economist.com/business/2026/08/10/how-much-would-you-pay-for-a-smarter-baby
1•AsyncBanana•5m ago•0 comments

Firefox stunts on Microsoft neutering adblockers: 'uBO isn't going anywhere'

https://www.pcgamer.com/software/browsers/firefox-stunts-on-edge-as-microsoft-gears-up-to-neuter-...
1•HelloUsername•5m ago•0 comments

What survived rebuilding our SRE investigation agent six times

https://engineeringexec.tech/posts/evolution-of-an-sre-agent/
1•mbleterman•5m ago•0 comments

Layer Scope: How I used $20 of compute to make a new way to look at LLMs

https://blog.lwarfield.dev/layer-scope/
1•lwarfield•6m ago•1 comments

I wrote a C inference engine that runs BitNet 2B at 15–18 tok/s on a Pi 5

https://github.com/geisten/geistlib
1•geisten•7m ago•1 comments

Show HN: Afk, a CLI that scaffolds unattended cron and bash and Telegram agents

https://github.com/nahuelsoria/afk-agents
1•nahuelsoria•8m ago•0 comments

A Great Deal of Information About Hacker News

https://vale.rocks/posts/hacker-news
3•OuterVale•8m ago•0 comments

Wing Commander 1 source reconstruction

https://github.com/neuromancer/wc1-re
1•galapago•8m ago•0 comments

Show HN: C# Game Engine with its own scripting language and IDE

https://github.com/ArcadeMakerSources/ArcadeMaker
1•am-gm•9m ago•0 comments

Should You Self-Host LLM Inference? Cost and Risk Guide

https://theaiengineer.substack.com/p/should-you-self-host-inference
1•speckx•9m ago•0 comments

Scientists Release Biggest 2D Map of the Universe

https://newscenter.lbl.gov/2026/08/10/scientists-release-biggest-2d-map-of-the-universe/
2•NKosmatos•10m ago•1 comments

Chinese-Made Components on UK Naval Drone Cameras Sent Info to Beijing

https://www.kyivpost.com/post/82061
1•Teever•11m ago•0 comments

Show HN: Coordinate coding agents and Git worktrees around features

https://github.com/jan-bogaerts/md2
2•jbo76•11m ago•1 comments

I generate launch videos from a URL and never render one on a server

https://venturehand.com
1•hristoff•12m ago•0 comments

LLMs empowered agent-based modeling and simulation (2024)

https://www.nature.com/articles/s41599-024-03611-3
1•hamburgererror•13m ago•0 comments

Show HN: Write.md, a free, open-source, themeable Markdown editor for macOS

https://writemd.app/
1•danielbilekq•13m ago•0 comments

Show HN: A new chat interface for Ollama

https://github.com/bctnry/OpenSyzygy
3•kasumispencer2•14m ago•0 comments

Show HN: AI Village: AI security, tested in public.

https://aivillage.org/
1•Errorcod3•15m ago•0 comments

The Clash of the Egosystems

https://www.optoutproject.net/egosystems/
1•speckx•15m ago•0 comments

Show HN: Dbward – Approval workflows for production databases

https://github.com/dbward-dev/dbward
2•metapox•17m ago•0 comments

Nvidia Nemotron 3.5 Lightning

https://huggingface.co/nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-NVFP4
3•beklein•18m ago•0 comments

Show HN: Lightweight, TypeScript-first mocking library for AWS SDK v3 and Vitest

https://github.com/sudokar/aws-sdk-vitest-mock
2•sudokar•19m ago•0 comments

AMD 'had to re-engineer' the Ryzen 7 5800X3D for a re-release

https://www.tomshardware.com/pc-components/cpus/amd-had-to-re-engineer-the-ryzen-7-5800x3d-for-a-...
1•rbanffy•19m ago•1 comments

Spotify to Label AI Artists on the Platform with New 'AI Persona' Badge

https://www.billboard.com/pro/spotify-label-identify-ai-artists/
1•thm•19m ago•0 comments

Expat 2.8.3 released, fixes vulnerability CVE-2026-72522

https://blog.hartwork.org/posts/expat-2-8-3-released/
1•spyc•20m ago•0 comments

LittleFedi – A Lightweight ActivityPub Server

https://littlefedi.org/
1•wrxd•21m ago•0 comments