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!

Reinventing the Pull Request

https://lubeno.dev/blog/reinventing-the-pull-request
1•bkolobara•1m ago•0 comments

How Can America Be So Miserable When It's So Rich?

https://www.nytimes.com/2026/03/26/opinion/economy-attitudes-republicans-democrats.html
2•simonebrunozzi•1m ago•0 comments

Old-Games.com

https://www.old-games.com/
3•helloplanets•2m ago•0 comments

Algorithms, Neo-Brokers, and Political Power Reshaping Who Wins on Wall Street

https://respublica.media/the-rigged-casino/
1•amadeuspagel•2m ago•0 comments

An LLM's not going to tell you no (2024)

https://derekkedziora.com/notes/2024-12-11-an-llms-not-going-to-tell-you-no
1•speckx•3m ago•0 comments

Families are fed up with social media

https://nypost.com/2026/03/25/opinion/legal-double-whammy-is-just-the-start-for-social-media-comp...
1•1vuio0pswjnm7•3m ago•0 comments

Ask HN: Will AI ever be cheap?

1•worldsavior•3m ago•0 comments

The surprising science behind red-light therapy – and how it works

https://www.nature.com/articles/d41586-026-00878-1
1•mikhael•4m ago•0 comments

You shouldn't use ultrathink in Claude Code

https://www.claudecodecamp.com/p/claude-code-extended-thinking
3•aray07•4m ago•0 comments

Building a Blog with Elixir and Phoenix

https://jola.dev/posts/building-a-blog-with-elixir-and-phoenix
4•shintoist•5m ago•0 comments

Unit: A self-replicating Forth mesh agent running in a browser tab

https://davidcanhelp.github.io/unit/
1•DavidCanHelp•5m ago•0 comments

Scientists discover popular diabetic drug's unexpected effect on the brain

https://timesofindia.indiatimes.com/etimes/wellness/scientists-discover-popular-diabetic-drugs-un...
1•01-_-•6m ago•0 comments

CDC plans hiring push to fill gaps from last year's widespread layoffs

https://federalnewsnetwork.com/workforce/2026/03/cdc-plans-hiring-push-to-fill-gaps-from-last-yea...
1•starkparker•6m ago•0 comments

Spotify and Labels Seek $322M Default Judgment Against Anna's Archive

https://torrentfreak.com/spotify-and-labels-seek-322-million-default-judgment-against-annas-archive/
2•Cider9986•8m ago•0 comments

Germany's Merz floats EU-China trade deal as European capitals soften on Beijing

https://www.scmp.com/news/china/diplomacy/article/3348030/germanys-merz-floats-eu-china-trade-dea...
1•vrganj•8m ago•0 comments

Online legal database CanLII and AI startup Caseway settle copyright dispute

https://betakit.com/online-legal-database-canlii-and-ai-startup-caseway-settle-copyright-dispute/
2•ClearwayLaw•8m ago•1 comments

Text Reconstruction via Subtle Vibrations from Videos

https://www.mdpi.com/1424-8220/26/5/1407
1•PaulHoule•9m ago•0 comments

The surprising photographers behind Google screensavers

https://blog.google/products-and-platforms/platforms/google-tv/google-devices-screensavers-photog...
1•gnabgib•9m ago•0 comments

Ask HN: How do people control Claude Code on the go nowadays on the go?

1•moropex•10m ago•0 comments

Remote SQLite access your remote SQLite databases locally

https://remotesqlite.com
2•cloudmanic•12m ago•1 comments

Army extends maximum recruitment age to 42, allowing older recruits to join

https://abcnews.com/Politics/army-extends-maximum-recruitment-age-42-allowing-older/story?id=1314...
4•mindracer•12m ago•2 comments

Deploying MuJoCo on Azure ML: Surprising Pain Points

https://www.hapticlabs.ai/blog/2026/03/21/deploying-mujoco-on-azure-ml
3•mexitlan•14m ago•0 comments

Why LLMs Lie in Different Ways?

https://www.orsonai.com/publications/tes4-four-types-hallucination.html
1•JakubCwi•16m ago•0 comments

System Stability Protocol [REF-333]: Axiomatic Logic and Entropy Minimization

https://archive.org/details/system-stability-protocol-ref-333
1•rogmash•17m ago•0 comments

SuperMicro sued by shareholders over China-related criminal case

https://finance.yahoo.com/markets/stocks/articles/super-micro-sued-shareholders-over-221915291.html
2•irishcoffee•18m ago•1 comments

GLP-1 Anti-Obesity Rx and Alcohol and Substance Use Disorders

https://www.psychologytoday.com/us/blog/addiction-outlook/202602/glp-1-anti-obesity-rx-and-alcoho...
2•PaulHoule•19m ago•0 comments

Android Sets New Record for Mobile Web Performance

https://blog.chromium.org/2026/03/android-sets-new-record-for-mobile-web.html
2•WalterSobchak•20m ago•0 comments

Clojure: The Documentary, official trailer [video]

https://www.youtube.com/watch?v=JJEyffSdBsk
1•fogus•20m ago•0 comments

Leadership – Bold Visionary, Technocratic Expert, or Trimmer

https://www.theatlantic.com/ideas/2026/03/make-better-decisions-trimmer/686522/
2•bell-cot•20m ago•1 comments

Helix – Self-healing SDK for AI agent payments

https://github.com/adrianhihi/helix
1•adrianhihi•22m ago•0 comments