frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

1•snyy•11mo 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!

Microsoft hints at bit bunkers for war zones

https://www.theregister.com/2026/04/08/microsoft_armored_datacenters/
1•lschueller•36s ago•0 comments

Fitting Gemma 4 (~52 GB) into 12 GB

https://varjosoft.com/gemma4-compression.html
1•velmu•2m ago•0 comments

FBI and DOJ Announce Operation Masquerade

https://www.justice.gov/opa/pr/justice-department-conducts-court-authorized-disruption-dns-hijack...
1•FriedPickles•3m ago•0 comments

Why GitOps still matters in a world of AI agents (FluxCon) [video]

https://www.youtube.com/watch?v=efpqMLQJaW4
1•stealthybox•8m ago•1 comments

Sandboxing Claude Code

https://kaveh.page/blog/claude-code-sandbox
1•kwar13•12m ago•1 comments

GUI Wonderland #5 – Apollo Aegis – In a Beautifully Connected World

https://blisscast.wordpress.com/2024/11/12/apollo-aegis-gui-wonderland-5/
1•bilegeek•13m ago•0 comments

These Stunning Artworks Were Created in MS Paint by a 92 Yr Grandma from Spain

https://digitalsynopsis.com/design/grandma-creates-beautiful-artwork-in-ms-paint/
2•thunderbong•14m ago•0 comments

Spy Basket

https://en.wikipedia.org/wiki/Spy_basket
1•ZeljkoS•15m ago•0 comments

Yu – Sandboxes your Claude Code/Codex with zero credential exposure

https://blog.dreambubble.ai/en/posts/your-ai-coding-agent-is-running-naked-on-your-laptop
2•qingant•15m ago•1 comments

I built a literary magazine in a week with Claude Code

https://tumbleweedwords.com/
1•tumbleweedwords•15m ago•0 comments

Revolution

1•silexia•19m ago•0 comments

Satoshi Nakamoto Unmasking

https://www.theverge.com/business/908601/the-latest-satoshi-nakamoto-unmasking
2•october8140•19m ago•0 comments

Chris Lattner: Every Engineer Is a Manager Now [video]

https://www.youtube.com/watch?v=PLQs_hHTzSk
1•tosh•28m ago•0 comments

Am I German or Autistic?

https://german.millermanschool.com/
2•pypt•29m ago•1 comments

Benutzerdefinierte Attribute Und Berechnete Daten in Email-Signaturen

https://set-outlooksignatures.com/de/blog/2026/04/08/custom-attributes
1•explicitcons•32m ago•1 comments

The Cost of Customer Development Isn't What You Think

https://medium.com/@juuso.vermasheina/the-real-cost-of-customer-development-isnt-what-you-think-6...
1•jvermasheina•36m ago•0 comments

Improving Unity's Mono codegen, part 1

https://blog.s-schoener.com/2026-04-07-mono-codegen-1/
1•mariuz•37m ago•0 comments

GLM 5.1: Pelican Test

https://simonwillison.net/2026/Apr/7/glm-51/
3•sorenbs•37m ago•1 comments

Darwin: Diagnostic-Guided Evolutionary Model Merging

https://huggingface.co/blog/FINAL-Bench/darwin-v6
1•seawolf2357•38m ago•0 comments

Ask HN: When do integrations become painful?

1•OdinSpecc•39m ago•0 comments

Your parallel Agent limit

https://addyosmani.com/blog/cognitive-parallel-agents/
3•saikatsg•45m ago•0 comments

Javadocs.dev

https://github.com/jamesward/javadoccentral
1•saikatsg•45m ago•0 comments

Row over 'virtual gated community' AI surveillance plan in Toronto neighbourhood

https://www.theguardian.com/technology/2026/apr/07/toronto-rosedale-row-virtual-gated-community-a...
2•beardyw•47m ago•0 comments

Who Stole Your Eyes?

https://www.parascene.com/blog/who-stole-your-eyes
1•heddycrow•48m ago•0 comments

Africa's Human Capital – Bill Gates Letter to The Economist

https://economist.com/letters/2026/04/01/letters-to-the-editor
2•andsoitis•50m ago•0 comments

Veracrypt Project Update

https://sourceforge.net/p/veracrypt/discussion/general/thread/9620d7a4b3/
5•super256•52m ago•1 comments

Beyond the Chatbot: How Claude Code Turns Security into a One-Command Workflow

https://hackarandas.com/blog/2026/04/07/beyond-the-chatbot-how-claude-code-is-turning-security-au...
1•ch0ks•53m ago•0 comments

Collabora Office Technical Committee – first meeting

https://forum.collaboraonline.com/t/collabora-office-technical-committee-1st-meeting/4568
3•maxloh•54m ago•1 comments

SOTA Normalization Performance with Torch.compile

https://pytorch.org/blog/sota-normalization-performance-with-torch-compile/
1•salkahfi•54m ago•0 comments

Chrome: Vertical tabs and immersive reading mode

https://blog.google/products-and-platforms/products/chrome/new-chrome-productivity-features/
2•tosh•56m ago•0 comments