frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

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

I made a website to check if Cloudflare is down

https://www.iscloudflaredown.com/
1•vinlock•16s ago•0 comments

AIbraham Lincoln, the First AI Presidential Candidate

https://www.voteabe2028.ai/
1•beAbU•2m ago•1 comments

Is It a Bubble? By Howard Marks

https://www.oaktreecapital.com/insights/memo/is-it-a-bubble
1•saigrandhi•3m ago•0 comments

Testing and Benchmarking of AI Compilers

https://www.broune.com/blog/testing-and-benchmarking-of-ai-compilers
1•chubot•3m ago•0 comments

Prevention of PTSD Symptoms in Soldiers Using Attention Bias Modification

https://psychiatryonline.org/doi/full/10.1176/appi.ajp.20250160
1•wslh•3m ago•0 comments

Device Activity Tracker: WhatsApp Activity Tracker via RTT Analysis

https://github.com/gommzystudio/device-activity-tracker
1•thunderbong•5m ago•0 comments

Using Git add -p for fun (and profit)

https://techne98.com/blog/using-git-add-p/
1•fixedprog•6m ago•0 comments

Show HN: MCPShark – Traffic Inspector for Model Context Protocol

6•mywork-dev•6m ago•0 comments

Microservices is the software industry's most successful confidence scam

https://twitter.com/dhh/status/1998785569468399819
3•dinvlad•8m ago•0 comments

HN Time Capsule

https://karpathy.ai/hncapsule/
1•__rito__•8m ago•1 comments

John Noble Wilford, Times Reporter Who Covered the Moon Landing, Dies at 92

https://www.nytimes.com/2025/12/08/science/john-noble-wilford-dead.html
1•digital55•9m ago•0 comments

Auto-grading decade-old Hacker News discussions with hindsight

https://karpathy.bearblog.dev/auto-grade-hn/
2•__rito__•9m ago•1 comments

Demonstrably Safe AI for Autonomous Driving

https://waymo.com/blog/2025/12/demonstrably-safe-ai-for-autonomous-driving
1•simonpure•10m ago•0 comments

Code-less vibe-"coding" – hallucinating apps one screen at a time

https://amongai.com/2025/12/10/hallucinate-any-app-one-screen-at-a-time/
2•danielmewes•11m ago•2 comments

New research shows RL may not help a model learn new basic skills

https://arxiv.org/abs/2512.07783
1•binsquare•12m ago•1 comments

Glyphosate safety article retracted 8 years after Monsanto ghostwriting revealed

https://retractionwatch.com/2025/12/04/glyphosate-safety-article-retracted-elsevier-monsanto-ghos...
4•robtherobber•13m ago•1 comments

Cube: Agentic Analytics Platform

https://cube.dev/
1•gk1•13m ago•0 comments

Valve: HDMI Forum Continues to Block HDMI 2.1 for Linux

https://www.heise.de/en/news/Valve-HDMI-Forum-Continues-to-Block-HDMI-2-1-for-Linux-11107440.html
8•OsrsNeedsf2P•13m ago•0 comments

Waymo: Delivering more for our riders in a year of growth

https://waymo.com/blog/2025/12/2025-year-in-review
2•hnburnsy•14m ago•0 comments

Star Types

https://science.nasa.gov/universe/stars/types/
2•belter•14m ago•0 comments

Show HN: TermKeeper – Track contracts, renewals, and notice periods with AI

https://termkeeper.com/
1•SNDRVH•16m ago•0 comments

Links for December 2025

https://www.astralcodexten.com/p/links-for-december-2025
1•feross•16m ago•0 comments

A woman who discovered black holes

https://newhumanist.org.uk/articles/6296/the-woman-who-discovered-black-holes
1•MaysonL•18m ago•0 comments

World Spider Catalog

https://wsc.nmbe.ch/
1•fi-le•18m ago•0 comments

Tourists required to give 5 years social media history to enter US

https://www.dailymail.co.uk/news/article-15369957/Trump-foreign-tourists-social-media-history.html
9•testing22321•19m ago•5 comments

Pg_ClickHouse: A Postgres extension for querying ClickHouse

https://clickhouse.com/blog/introducing-pg_clickhouse
1•spathak•19m ago•0 comments

Writing Leads to Thinking (and Not the Other Way Around)

https://www.historians.org/perspectives-article/how-writing-leads-to-thinking-february-2010/
1•bryanrasmussen•20m ago•0 comments

IDF Soldiers Fire on UN Peacekeepers

https://unifil.unmissions.org/unifil-statement-10-december-2025
7•a_paddy•21m ago•0 comments

Token‑Efficient Agents: Building MCP‑Heavy Agents Without Burning Tokens

https://codeagentsalpha.substack.com/p/tokenefficient-agents-building-mcpheavy
1•olegkozlov•22m ago•1 comments

Scouts by Yutori is now generally available

https://yutori.com/scouts
10•abhshkdz•27m ago•1 comments