frontpage.
newsnewestaskshowjobs

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!

MRIs Show Dogs Are Good at Distinguishing Between Human Emotions

https://www.smithsonianmag.com/smart-news/scientists-gave-dogs-mris-and-learned-that-theyre-surpr...
1•pseudolus•1m ago•0 comments

Biddr Pay-to-Rank Leaderboard for Products and Profiles

https://biddr.lol
1•affixio•5m ago•0 comments

File Transfer Pseudoprotocol (2020)

https://computer.rip/2020-05-20-file-transfer-pseudoprotocol.html
1•1317•6m ago•0 comments

MLRP Mirror House

https://divisare.com/projects/235297-mlrp-laura-stamer-mirror-house
1•jruohonen•7m ago•0 comments

Walking the Length of Manhattan

https://craigmod.com/ridgeline/232/
1•bookofjoe•17m ago•0 comments

Moderna, Merck breakthrough could usher in wave of cancer vaccines

https://www.cnn.com/2026/08/21/health/mrna-cancer-vaccines-wave
3•fariswyatt•18m ago•0 comments

Venezuela abandoning the bolivar would be the biggest currency switch

https://fortune.com/2026/08/22/dollarization-venezuela-bolivar-currency-switch-hyperinflation-oil...
3•firesteelrain•19m ago•1 comments

The Titan has been mapped. (TITIN Q8WZ42)

https://medium.com/@kisnorbert87/the-titan-has-been-mapped-q8wz42-b90096a655f2
1•kisnorbert•19m ago•0 comments

Ask HN: What silly or weird web search did you do recently?

1•RetroTechie•21m ago•0 comments

Show HN: linecast – weather, radar, tides and maps in the terminal

https://terminaltrove.com/linecast/
2•ashuttl•22m ago•0 comments

We found an attack class in MCP tool-call receipts, built a linter for it

https://www.npmjs.com/package/ccs-lint
1•easterndev•22m ago•0 comments

Digital Switch Recipes

https://di.day/en/digital-switch-recipes
1•jruohonen•22m ago•0 comments

IBM Research Unveils Quantum Computing Mainframe [video]

https://www.youtube.com/watch?v=wwMI6IhvwE0
1•mofosyne•22m ago•0 comments

Show HN: Room Acoustic and HRTF Simulator

https://nikhil-verma.com/room-signal/
2•NikhilVerma•23m ago•0 comments

Visualization of CERN Accelerator Complex

https://explore360.cern.ch/home
2•cybersepp•27m ago•0 comments

The USA's real Covid-19 scandal is still unfolding

https://www.economist.com/united-states/2026/08/20/the-real-covid-19-scandal-is-still-unfolding
3•SideburnsOfDoom•28m ago•0 comments

Show HN: Declarative, reproducible configuration materializer for AI agents

https://github.com/tooppoo/enozunu
2•philomagi•30m ago•0 comments

"I Designed and 3D Printed a Mechanical Excavator" [video]

https://www.youtube.com/watch?v=EJXZIJ86S3Q
1•embedding-shape•33m ago•1 comments

A mission to stop a space observatory from falling to Earth has failed

https://www.cnn.com/2026/08/19/science/nasa-swift-boost-mission-effort-ends
2•bushwart•34m ago•0 comments

What do you think of AI website builders?

https://blog.webround.com/en/i-built-an-ai-website-builder-and-killed-it
1•LucaSiviero•34m ago•1 comments

AI Labels Are Big Tech's Most Basic Responsibility, Even Those Claude Watermarks

https://www.cnet.com/tech/services-and-software/claude-watermarks-ai-labels-commentary-2026/
1•MS8080•35m ago•0 comments

Ranger – a powerful terminal file manager with Vim keybindings

https://digitalescapetools.com/tools/tool.html?id=ranger
1•xabd•38m ago•0 comments

News API Comparison 2026

https://bitbucket.org/free-news-api/news-api-comparison/src/main/
7•lookupitsdown•38m ago•1 comments

Agent Mayday, 911 for Agents

https://agentmayday.org/
2•pingou•40m ago•0 comments

Mathematical Discourse

https://www.mathematicaldiscourse.org/
1•subset•42m ago•0 comments

This Week Changed Medicine Forever: 4 Breakthroughs

https://afshine.substack.com/p/this-week-changed-medicine-forever
3•delichon•43m ago•1 comments

Show HN: Make ordinary subagent workflows persistent and trackable

https://github.com/ringlochid/oh-my-subagents
3•ringlochid•44m ago•0 comments

Learn electronics by building your own SPICE with Python and Z3

https://spicycircuits.dev
3•pkoird•46m ago•0 comments

Andrew Ng: "AI Engineering Skills Map: Building and Deploying AI Applications"

https://twitter.com/AndrewYNg/status/2090840747738374568
2•Anon84•50m ago•0 comments

Why Einstein would fail today: The case for an automated AI Science Institute

https://zenodo.org/records/22067050
1•Anastasov_Theor•54m ago•0 comments