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!

Show HN: Local RAG memory system that AI can write directly to

https://github.com/ptobey/local-memory-mcp
2•ptobey•4m ago•0 comments

Show HN: An exact verifier for one brick in a decades-old quantum math problem

https://zenodo.org/records/20682233
1•nerlwein•7m ago•0 comments

The heck I just stepped into – OpenCode Plans' privacy marketing vs. reality

https://opencode.ai/legal/privacy-policy
1•Frenchwho•9m ago•0 comments

Ramputene DIY

https://www.confuzine.com/2024/09/22/ramputene-diy-donostia-basque-country/
1•jruohonen•10m ago•0 comments

Record Every Meeting

https://rfd.shared.oxide.computer/rfd/0537
1•encodedrose•15m ago•0 comments

AgentGraph – Graph-Based Context Management

https://iancutzu.substack.com/p/agentgraph-graph-based-context-management
1•iancutzul•18m ago•0 comments

Inside Interoception: The hidden sense of how you feel inside

https://www.technologyreview.com/2026/06/12/1138833/inside-interoception-brain-body/
1•bookofjoe•18m ago•1 comments

Kennedy Center board's new bylaws strip funding if center removes Trump's name

https://bsky.app/profile/lizdye.bsky.social/post/3mo4ky6pbgk26
1•hn_acker•21m ago•1 comments

Achieving Pipeline Parallelism on $4 Microcontrollers: Splitting a 42M model

https://github.com/harmansingh4163-ai/ESP-32-s3-Story-maker-LLM
1•Harman-Singh123•23m ago•0 comments

Show HN: Galdor – a Go LLM agent framework with built-in tracing and replay

https://github.com/YasserCR/galdor
2•yassros16•24m ago•0 comments

QuantmLayer – kernel sandbox for coding agents that learns its policy

https://github.com/quantmlayer/quantmlayer
1•mquant•25m ago•0 comments

The Hype Hangover Kicks In

https://www.mikehyland.com/blog/the-developer-mood-june-2026
2•mjhyl•27m ago•1 comments

Show HN: Flashback Booth, A tactile retro photo booth in the browser

https://flashbackbooth.me
1•rairishabh2810•27m ago•0 comments

Metamodernism: The cultural philosophy of the digital age

https://nesslabs.com/metamodernism
1•andsoitis•28m ago•0 comments

How Israel's AI surveillance breakthrough in Iran is reshaping global intel

https://www.calcalistech.com/ctechnews/article/h17rby8bge
2•myth_drannon•28m ago•0 comments

Ask HN: How do you handle billing when event volume exceeds Stripe's limits?

2•badgerino•29m ago•1 comments

Best YouTube Downloader Alternatives That Work in 2026

https://www.youtubexx.com/
2•freeinvoiceflow•29m ago•0 comments

Phone-Free Events Grew 567% Globally in 2026, over 900% in US Alone

https://www.eventbrite.com/blog/press/newsroom/the-rise-of-phone-free-experiences/
5•karakoram•35m ago•0 comments

TimyWind Sailing Game

https://tinywind.io/play?firstvisit=1
2•SubiculumCode•36m ago•0 comments

Snapcompact: SoTA Compaction – Instant, Local, Free. Pick 3

https://blog.can.ac/2026/06/10/snapcompact/
2•himata4113•38m ago•0 comments

Identifying Life-Changing Books with LLMs

https://blog.joellehman.com/identifying-life-changing-books-with-llms.html
3•andsoitis•40m ago•0 comments

Formal Methods and the Future of Programming

https://blog.janestreet.com/formal-methods-at-jane-street-index/
4•sebg•43m ago•0 comments

Shareholder Supremacy and the Precog CEO

https://pluralistic.net/2026/06/13/minority-shareholder-report/
1•hn_acker•43m ago•0 comments

Ask HN: What would you do with a trillion dollars

6•brudgers•43m ago•4 comments

The Future of Crossover

https://www.codeweavers.com/blog/mjohnson/2026/06/11/whats-in-and-whats-out-for-crossover-27
2•akyuu•43m ago•0 comments

Thanks Amazon

https://www.reddit.com/r/ClaudeAI/s/TUivYGKnCK
2•ihazgithub•43m ago•0 comments

Ask HN: If you had a trillion dollars, what would you do?

2•brudgers•44m ago•2 comments

Show HN: Domainbase – Instant domain search and management

https://domainbase.app/
1•alexpate•44m ago•0 comments

How cyber-criminals adopted Russias secret language of thieves

https://www.bbc.com/future/article/20260611-fenya-how-cyber-criminals-adopted-russias-secret-lang...
3•1659447091•44m ago•0 comments

Mandrake –> Gentoo a.k.a. "Mandrake Expatriate Syndrome" (2003)

https://www.greenfly.org/mes.html
1•coatmatter•45m ago•0 comments