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!

Are your creative projects livestock or pets?

https://herbertlui.net/are-your-creative-projects-livestock-or-pets/
1•herbertl•2m ago•0 comments

Teleport-env – <500ms stateful rollbacks for AI agents via CRIU

https://github.com/JaiCode08/teleport-env
1•Jainish08•9m ago•0 comments

Unlocking Liquidity on Prediction Markets [pdf]

https://docs.lattica.finance/unlocking-liquidity.pdf
1•stephenflanders•10m ago•0 comments

Love Language – The undying dream of Esperanto

https://harpers.org/archive/2026/06/love-language-katie-thornton-esperanto/
1•pseudolus•11m ago•0 comments

Show HN: What 1k Harness Experiments Taught Me About Self-Improving Agents

https://www.henrypan.com/blog/2026-05-25-self-improvement-harness/
1•megadragon9•11m ago•0 comments

Meta to start testing AI subscription services

https://www.cnbc.com/2026/05/27/meta-testing-ai-subscription-services-cheapest-plan-at-7point99-a...
1•mattas•12m ago•0 comments

Google engineer charged with insider trading after making $1.2M on Polymarket

https://techcrunch.com/2026/05/27/google-engineer-charged-with-insider-trading-after-making-1-2m-...
3•evo_9•15m ago•0 comments

Bubbles – an HN-like link aggregator for the non-tech internet

https://bubbles.town/
1•Curiositry•16m ago•0 comments

Planescape: Torment, Part 1: From the Tabletop

https://www.filfre.net/2026/05/planescape-torment-part-1-from-the-tabletop/
1•doppp•18m ago•0 comments

Zig 2026: No-AI Policy, $670K Foundation, Left GitHub and Why Zig Isn't 1.0 [video]

https://www.youtube.com/watch?v=iqddnwKF8HQ
2•doppp•18m ago•0 comments

Dario Amodei warned of an AI white-collar bloodbath, now he's changing narrative

https://fortune.com/2026/05/05/dario-amodei-jevons-paradox-will-ai-wipe-out-white-collar-jobs/
2•gmays•19m ago•0 comments

Microsoft's New Governance Toolkit MCP Extensions

https://medium.com/c-sharp-programming/securing-your-net-f2020c72027e
1•sukhpinder0804•20m ago•0 comments

Do they know we can tell it's AI slop?

5•jwsteigerwalt•20m ago•2 comments

Connectix RAM Doubler

https://computeradsfromthepast.substack.com/p/connectix-ram-doubler
1•myth_drannon•23m ago•0 comments

Building complex functions out of real parts

https://www.johndcook.com/blog/2026/05/22/complex-functions-real-parts/
1•ibobev•26m ago•0 comments

Real and Imaginary Parts

https://www.johndcook.com/blog/2026/05/23/real-and-imaginary-parts/
1•ibobev•26m ago•0 comments

Fitting the parameters of a Besace curve like the Meta logo

https://www.johndcook.com/blog/2026/05/27/the-meta-logo-and-fitting-besace-curves/
1•ibobev•26m ago•0 comments

Tabby's Star (KIC 8462852)

https://en.wikipedia.org/wiki/Tabby%27s_Star
1•Jimmc414•29m ago•0 comments

Language Modeling Materializes a World Model of Protein Biology [pdf]

https://biohub.ai/papers/esm_protein.pdf
1•y1zhou•31m ago•0 comments

Modos's open-hardware 13.3″ color e-paper monitor goes live on Crowd Supply

https://www.crowdsupply.com/modos-tech/modos-flow
2•Curiositry•34m ago•0 comments

Justice Dept. Is Said to Open Criminal Inquiry of E. Jean Carroll

https://www.nytimes.com/2026/05/27/us/politics/criminal-inquiry-e-jean-carroll-trump-accusations....
2•JumpCrisscross•35m ago•0 comments

Satire with Permits: A Brushed-Metal Pole Targeting Epstein Headed to Wisconsin

https://easternherald.com/2026/05/28/consentivus-pole-epstein-files-capitol-chaz-stevens-first-am...
1•ChazStevens•37m ago•0 comments

Ghost CMS flaw abused to push ClickFix attacks on sites

https://securityaffairs.com/192655/cyber-crime/ghost-cms-flaw-abused-to-push-clickfix-attacks-on-...
1•mooreds•37m ago•0 comments

Show HN: Verbum Vitae – Bible memorization [pt]

https://vvitae.com
1•barddoo•38m ago•0 comments

With coding agents, specs feel more like source code

https://blog.yushi91.com/blog/spec-is-the-new-source-code/
1•OldDod•43m ago•0 comments

Workshop: Sandboxed development environments on Ubuntu with a single command

https://discourse.ubuntu.com/t/introducing-workshop-launch-sandboxed-development-environments-on-...
2•zikani_03•47m ago•0 comments

Finding Miscompiles for Fun, Not Profit

https://newsletter.semianalysis.com/p/finding-miscompiles-for-fun-not-profit
1•tmoertel•48m ago•0 comments

Illinois Lawmakers Just Passed America's Strongest AI Safety Bill

https://www.wired.com/story/illinois-pass-major-ai-safety-law-pritzker/
4•droidjj•54m ago•5 comments

AI Cheats [pdf]

https://metr.org/risk-report-feb-mar-2026.pdf
1•brian_herman•1h ago•0 comments

One Job That Is Growing in the A.I. Era? Cybersecurity Experts

https://www.nytimes.com/2026/05/24/technology/ai-cybersecurity-jobs.html
1•mooreds•1h ago•0 comments