frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

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

A Minimal Python Reimplementation of Claude Code

https://pypi.org/project/patchpal/
1•wiseprobe•1m ago•0 comments

But What About Greenland? – Wait but Why (2014)

https://waitbutwhy.com/2014/09/but-what-about-greenland.html
1•mefengl•2m ago•0 comments

Ask HN: Would you use AI-personalized newsletters?

https://www.upletter.app/
1•josevalencar•3m ago•1 comments

AI Coding Agents Hallucinate – Real-Time ResearchAgent

https://hallucinationtracker.com
1•amadosalsta•5m ago•0 comments

Autopsy reveals Daniel Naroditsky's probable cause of death

https://www.charlotteobserver.com/news/local/article314402626.html
1•amrrs•7m ago•0 comments

Attitude-based networking

https://vece.ai/compare-yourself
1•iliakoliev•12m ago•1 comments

Tiny Mars Has a Big Impact on Our Climate

https://nautil.us/tiny-mars-has-a-big-impact-on-our-climate-1262470/
1•Bender•15m ago•0 comments

The Heat Pump relay race

https://www.heatpumped.org/p/the-heat-pump-relay-race
1•ssuds•17m ago•0 comments

Probing quantum mechanics with nanoparticle matter-wave interferometry

https://www.nature.com/articles/s41586-025-09917-9
1•cpncrunch•17m ago•0 comments

Threat Actors Expand Abuse of Microsoft Visual Studio Code

https://www.jamf.com/blog/threat-actors-expand-abuse-of-visual-studio-code/
3•vinnyglennon•17m ago•0 comments

AMD launches 34GB AI bundle in latest driver update

https://www.pcguide.com/news/amd-launches-massive-34gb-ai-bundle-in-latest-driver-update-heres-wh...
1•kristianp•20m ago•0 comments

Making activities load 500x faster than the most popular feed

https://getfast.ai/blogs/activity-feed
3•steadyelk•21m ago•0 comments

Personalized travel itineraries, mapped and shareable

https://TryTourify.app
1•Arnoldsaurus•24m ago•0 comments

Show HN: Dotenv Mask Editor: No more embarrassing screen leaks of your .env

https://marketplace.visualstudio.com/items?itemName=xinbenlv.dotenv-mask-editor
1•xinbenlv•24m ago•0 comments

Doctors raise alarm over declining vaccine rates in America's most vulnerable

https://www.dailymail.co.uk/health/article-15484717/doctors-warn-declining-vaccine-rate-older-adu...
4•Bender•26m ago•1 comments

Ask HN: Have your views about AI / LLMs changed? What triggered it?

3•ATechGuy•26m ago•0 comments

From Stealth Blackout to Whitelisting: Inside the Iranian Shutdown

https://www.kentik.com/blog/from-stealth-blackout-to-whitelisting-inside-the-iranian-shutdown/
1•oavioklein•28m ago•0 comments

Clawdbot Showed Me What the Future of Personal AI Assistants Looks Like

https://www.macstories.net/stories/clawdbot-showed-me-what-the-future-of-personal-ai-assistants-l...
1•janpio•29m ago•0 comments

1 in 35,385 US immigrants are in MN+criminal+undocumented

3•QuantumGood•29m ago•1 comments

Taboo against harming strangler fig spirits protects forests in Borneo

https://news.mongabay.com/2025/12/taboo-against-harming-strangler-fig-spirits-protects-forests-in...
2•PaulHoule•30m ago•0 comments

Fixes That Made My Website Faster and More Accessible

https://dingyu.me/blog/7-fixes-that-made-my-website-faster-and-more-accessible
1•felixding•32m ago•0 comments

Google Cloud to shut down Memorystore for Memcached by Jan 2029

https://docs.cloud.google.com/memorystore/docs/memcached/deprecation/memcached
2•tokkyokky•32m ago•1 comments

Starlight, a Bitcoin-native platform for turning ideas into funded work

https://starlight-ai.freemyip.com/
1•macroadster•32m ago•1 comments

Spend Decisions Get Approved

https://www.letsriff.ai/blog/from-emails-and-excel-to-decision-clarity-fixing-how-spend-decisions...
1•wheresclark•33m ago•0 comments

Lix – universal version control system for binary files

https://lix.dev/blog/introducing-lix/
4•onecommit•34m ago•0 comments

Wasma – Windows Assignment System Monitoring Architecture

https://github.com/Azencorporation/Wasma
1•goychay23•38m ago•1 comments

Show HN: PolyMCP – open-source toolkit to expose MCP tools and run agents

1•justvugg•38m ago•0 comments

Ark and GENESIS A protocol for sovereign know nodes and consent-based federation

1•PiSounds•38m ago•0 comments

On Mark Carney's use of "The Power of the Powerless" at the WEF

https://twitter.com/SilviaPencak/status/2013705975207797113
2•nailer•38m ago•0 comments

New Linux Patch Improved NVMe Performance And15% with CPU Cluster-Aware Handling

https://www.phoronix.com/news/Faster-Linux-NVMe-Cluster-Aware
2•Bender•39m ago•0 comments