frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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!

PE packer with randomized VM ISA per output file (C++)

https://github.com/iamsopotatoe-coder/TinyLoad
2•iamsopotatoe•4m ago•0 comments

MicroZig: Embedded Applications in Zig

https://github.com/ZigEmbeddedGroup/microzig
2•tosh•7m ago•0 comments

DFDS to invest €1B in battery electric ships for the Channel

https://www.dfds.com/en/about/media/news/dfds-to-invest-1-billion-euro-in-battery-electric-ships-...
2•zeristor•10m ago•0 comments

Media Date Fixer: Clean Up Wrong Dates in Photo and Video Libraries

https://github.com/xam-ps/Media-Date-Fixer
1•xamp•16m ago•0 comments

Magic 1.0 – A highly modular email theme

https://celaro.co/journal/magic-launch
1•celaro•17m ago•0 comments

Ask HN: What's the minimum needed tech to sustain modern civilization?

1•curiousaboutml•17m ago•0 comments

Review: The Unaccountability Machine, by Dan Davies

https://old.reddit.com/r/books/comments/1ssv55y/the_unaccountability_machine_by_dan_davies/
2•skanderbm•18m ago•0 comments

Nostalgebraist's Hydrogen Jukeboxes

https://www.astralcodexten.com/p/nostalgebraists-hydrogen-jukeboxes
1•Michelangelo11•23m ago•0 comments

How a self-proclaimed Swiss king's 'empire' is riling local authorities

https://www.france24.com/en/europe/20260510-how-switzerland-self-proclaimed-king-built-a-land-emp...
1•smcin•24m ago•2 comments

kzoo.k

https://www.nsl.com/k/kzoo.k
2•tosh•28m ago•0 comments

My Thoughts on AI, Part 1: Fears, Opinions, and Mental Journey

https://blog.isquaredsoftware.com/2026/05/ai-thoughts-part-1-fears-opinions-journey/
1•mavelikara•28m ago•0 comments

Terse Code

https://iabdb.me/2021/04/13/terse-code/
2•tosh•32m ago•0 comments

Solving Connect Four

http://blog.gamesolver.org/
1•truegoric•32m ago•0 comments

Distrust Has a Job; It's Just Not the One You're Doing

https://age-of-product.com/micromanager-ai/
1•swolpers•41m ago•0 comments

World Models for Planning Agents

https://mpmisko.github.io/ai-fundamentals-world-models-and-latent-dynamics/
2•mpmisko•41m ago•0 comments

Amazing Chessboard Patterns [video]

https://www.youtube.com/watch?v=VgmDuBCayPw
2•rwmj•47m ago•1 comments

Fellow Artists, I'm Begging You to Pull Your Heads Out of the Sand About AI

https://glasshalftrue.substack.com/p/fellow-artists-im-begging-you-to
1•_thisdot•54m ago•0 comments

LLMs Are the Key to Mutation Testing and Better Compliance

https://engineering.fb.com/2025/09/30/security/llms-are-the-key-to-mutation-testing-and-better-co...
1•nishantjani10•54m ago•1 comments

RainbowApple: 1977 Apple logo in the macOS menu bar

https://jorviksoftware.cc/utilities/rainbowapple
2•jonathan_hollin•57m ago•0 comments

The Daily Wire vs. US State Department

https://www.courtlistener.com/docket/68065253/131/the-daily-wire-llc-v-united-states-department-o...
1•47282847•58m ago•0 comments

Updated Aether Mind Whitepaper

https://qbc.network/docs/aether
1•BlockArtica•59m ago•0 comments

A beginner's guide to irrational behaviour

https://danariely.com/coursera/
1•charlieirish•1h ago•0 comments

Show HN: GDD–36 MCP tools to run N isolated Chromium browsers from Claude/Cursor

https://github.com/Cap-of-tea/GDD
1•imVSall•1h ago•0 comments

Pancreatic cancer just met its match: its death sentence is treatable

https://www.worksinprogress.news/p/pancreatic-cancer-just-met-its-match
2•NewCzech•1h ago•0 comments

A Lo-Fi Rebellion Against A.I

https://www.newyorker.com/culture/infinite-scroll/a-lo-fi-rebellion-against-ai
1•XzetaU8•1h ago•1 comments

Recent Kernel exploits, attack surface reduction, example IPSEC

https://www.openwall.com/lists/oss-security/2026/05/16/3
1•birdculture•1h ago•0 comments

The Gervais Principle

https://chamoda.com/the-gervais-principle
3•chamoda•1h ago•0 comments

When can the C++ compiler devirtualize a call?

https://quuxplusone.github.io/blog/2021/02/15/devirtualization/
1•lionkor•1h ago•0 comments

Fast16 Sabotage Tool Was Built to Subvert Nuclear Weapons Simulations

https://www.security.com/threat-intelligence/fast16-nuclear-sabotage
2•ledoge•1h ago•0 comments

Writing Z80 assembly, 4 decades later:-)

https://github.com/ttsiodras/3D-on-a-ZX-Spectrum-48K/
2•ttsiodras•1h ago•0 comments