frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

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

Musk admits xAI "not built right" weeks after Tesla invested $2B

https://electrek.co/2026/03/13/elon-musk-admits-xai-built-wrong-rebuild-tesla-spacex-investment/
1•mirzap•47s ago•0 comments

Show HN: PDR AI – Open-source startup accelerator engine for non-technical chaos

https://github.com/Deodat-Lawson/LaunchStack
2•DaggerDreaming•7m ago•0 comments

I pulled IRS filings for the org that wrote Meta's model legislation

https://old.reddit.com/r/linux/comments/1rtd51g/update_i_pulled_irs_filings_for_the_org_that/
2•theseusares•9m ago•1 comments

New Mexico's Child-Safety Case Could Change Social Media Forever

https://kancelaria-skarbiec.pl/en/meta-newmexico-trial/
1•doener•11m ago•1 comments

Museum of Questionable Medical Devices

https://www.museumofquackery.com/
1•nomilk•14m ago•0 comments

Race conditions in generated code (tested across 10 models, 5 runs)

https://forward.deployed.agency/blog/check-call-deduct
1•birdculture•15m ago•0 comments

Meta allegedly targeted ads at teens based on their emotional state (2025)

https://www.business-humanrights.org/en/latest-news/meta-allegedly-targeted-ads-at-teens-based-on...
1•doener•16m ago•0 comments

Free nonce and API key generator

https://www.aegisoptikon.com/security-demo.html
1•Coppernickske•23m ago•0 comments

Hardening macOS (Updated to Tahoe)

https://www.bejarano.io/hardening-macos/
1•ricardbejarano•23m ago•0 comments

Torturing Rustc by Emulating HKTs

https://www.harudagondi.space/blog/torturing-rustc-by-emulating-hkts/
1•g0xA52A2A•25m ago•0 comments

International Oscar Favorites Are Offering a Complicated New View of America

https://www.nytimes.com/2026/02/25/magazine/international-oscar-favorites-are-offering-a-complica...
1•coloradoave22•28m ago•0 comments

Learn Claude Code

https://learn-claude-agents.vercel.app/en/
1•samuel246•31m ago•0 comments

Why is this program erroneously rejected by three C++ compilers?

https://stackoverflow.com/questions/5508110/why-is-this-program-erroneously-rejected-by-three-c-c...
1•tornikeo•35m ago•0 comments

The Effect of High-Tech Clusters on the Productivity of Top Inventors: Comment [pdf]

https://michaelwiebe.com/assets/moretti/moretti_comment_aer.pdf
1•luu•36m ago•0 comments

Major Aging Related Metabolic Shifts Occur Around Ages 44 and 60

https://www.nature.com/articles/s43587-024-00692-2
3•LarsDu88•38m ago•1 comments

Real Ollama Admin UI

https://github.com/ollama-admin/ollama-admin
1•eriscodev•41m ago•1 comments

Google AI Pro users getting locked out of Antigravity

https://discuss.ai.google.dev/t/google-ai-pro-subscription-antigravity-quota-not-working-as-adver...
1•anticensor•42m ago•0 comments

Coding After Coders: The End of Computer Programming as We Know It

https://www.nytimes.com/2026/03/12/magazine/ai-coding-programming-jobs-claude-chatgpt.html
1•bgarbiak•43m ago•0 comments

Italy ruling tells millions they have lost the right to citizenship

https://www.cnn.com/2026/03/14/travel/italy-citizenship-law-restrictions-constitutional-court
3•maxloh•46m ago•0 comments

How to write a good prompt for generating images

https://nanobananaprompt.club
2•w-mobai•49m ago•0 comments

LA's Tesla Diner is so dead, not even the tech bros are eating there

https://www.sfgate.com/la/article/tesla-diner-la-22071684.php
2•MilnerRoute•51m ago•0 comments

Study finds human aging happens in bursts

https://news.stanford.edu/stories/2024/08/massive-biomolecular-shifts-occur-in-our-40s-and-60s-st...
3•thunderbong•52m ago•0 comments

Become a Claude Certified Architect

https://anthropic.skilljar.com/claude-certified-architect-foundations-access-request
1•donutshop•53m ago•0 comments

Show HN: Kromacut – Open-source tool for multi-color 3D prints from images

https://github.com/vycdev/Kromacut
2•vycdev•53m ago•0 comments

I built a vocabulary trainer for people who read English books

https://www.vokabelwunder.de
1•zuzzl•54m ago•0 comments

Adobe to pay $75M to settle US lawsuit over hard-to-cancel subscriptions

https://www.dexerto.com/entertainment/adobe-to-pay-75m-to-settle-us-lawsuit-over-hard-to-cancel-s...
3•gregdoesit•55m ago•0 comments

Pi Day

https://en.wikipedia.org/wiki/Pi_Day
2•beardyw•1h ago•0 comments

Slashdot Is Down

https://slashdot.org
2•xtracto•1h ago•0 comments

How the world lives with AI [pdf]

https://static1.squarespace.com/static/631d02b2dfa9482a32db47ec/t/696fdc02d5b1030cb064d15a/176893...
1•Manheim•1h ago•1 comments

Curation and Its Side Effects

https://www.autodidacts.io/curators-skim/
2•Tomte•1h ago•0 comments