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!

Pete Hegseth's Reckless Message to Helicopter Pilots

https://www.theatlantic.com/international/2026/07/hegseth-reckless-military-helicopter/688008/
1•Jtsummers•26s ago•0 comments

Why AI Needs a "Genie Coefficient"

https://spectrum.ieee.org/ai-agent-benchmark
1•mikelgan•30s ago•1 comments

SWARÓG: a highly powerful agent for network monitoring and content generation

https://medium.com/@a.galecki/swar%C3%B3g-highly-powerful-agent-for-network-monitoring-and-conten...
1•NodesHub•2m ago•1 comments

Fei-Fei Li says robotics simulation startup SceniX joins World Labs

https://runtimewire.com/article/fei-fei-li-scenix-joins-world-labs
1•ryanmerket•2m ago•0 comments

Show HN: Ounce, Stop measuring wealth in inflating fiat. Measure it in gold

https://useounce.com/
1•halfradaition•3m ago•0 comments

Show HN: Observability for Coding Agents and LLM Applications

https://telemetry.dev/
1•ephraimduncan•3m ago•0 comments

Impossible Colors

https://en.wikipedia.org/wiki/Impossible_color
1•akramachamarei•4m ago•1 comments

Ask HN: My Microsoft for Startups subscription is expiring

1•alexander2002•5m ago•0 comments

Substack adds an AI detector to help spot blogs written by no one

https://www.theverge.com/ai-artificial-intelligence/968855/substack-pangram-ai-detecting-tool
1•droidjj•5m ago•0 comments

Gritt: AI to Build Infrastructure with Robotics

https://www.gritt.ai/
1•wslh•5m ago•0 comments

Show HN: Collecte MTL – niche web app to know Montreal waste collection schedule

https://collectemtl.ca/
2•scastiel•6m ago•0 comments

Bruno Blocker – I made an free and lightweight focus app

https://www.brunoblocker.com/
2•aksel_salmi•7m ago•2 comments

France first European country to ban social media access for under-15s

https://www.theguardian.com/world/2026/jul/21/france-ban-social-media-access-under-15s
2•Erikun•7m ago•0 comments

Show HN: Posecode, a text language and renderer for human movement

https://www.posecode.org/play
3•brnbrn•7m ago•0 comments

Jimothy the raccoon has a rare spinal condition. Here's what that means

https://www.popsci.com/science/whats-jimothy-raccoon-condition/
2•speckx•8m ago•0 comments

Wordle

https://en.wikipedia.org/wiki/Wordle
3•chistev•9m ago•0 comments

Three-Body Scattering for Generative Modeling

https://arxiv.org/abs/2607.18198
2•E-Reverance•9m ago•0 comments

Judge approves $1.5B Anthropic settlement, reduces class counsel fees to 6.8% [pdf]

https://storage.courtlistener.com/recap/gov.uscourts.cand.434709/gov.uscourts.cand.434709.680.0_4...
4•ilamont•11m ago•0 comments

New HollowGraph malware uses Microsoft Graph for stealthy C2 comms

https://www.bleepingcomputer.com/news/security/new-hollowgraph-malware-uses-microsoft-graph-for-s...
4•devonnull•11m ago•0 comments

ACP v2 is available in Draft

https://agentclientprotocol.com/announcements/acp-v2-draft
2•artooro•14m ago•0 comments

June 23, 2026: The Night France Saved the British Grid

https://dispatches.kilowatts.io/p/a-midsummer-nights-near-miss
5•bookofjoe•14m ago•0 comments

Synthetic Consumer Panels Without Microdata via IPF

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=7122180
1•7777777phil•15m ago•0 comments

Ask HN: Personal Goal Setting Method (Jim Rohn)

1•urnicus•15m ago•0 comments

Show HN: Stage is sunestting their product, what now?

1•othmanosx•17m ago•0 comments

Trump Slaps 50% Tariffs on Canada, Loses $100B+ in Contracts Instead [video]

https://www.youtube.com/watch?v=fmkhC7_rLcM
3•Jazgot•17m ago•0 comments

Thermodynamic Computers Go with the (Energy) Flow

https://www.quantamagazine.org/thermodynamic-computers-go-with-the-energy-flow-20260715/
1•pseudolus•17m ago•0 comments

Python

1•ronniojunior•17m ago•1 comments

Show HN: AgentPulse detects and investigates failures in multi-agent systems

https://agentpulse-1-555l.onrender.com
1•leylal0016•17m ago•0 comments

Natural-Density Almost-Bounded Collatz Orbits in Logarithmic Time (AI, Lean)

https://www.proofatlas.ai/formalizations/natural-density-log-time-collatz/
1•zone411•18m ago•0 comments

The shark that lives for 400 years – and what it can teach us about longevity

https://www.bbc.com/future/article/20260717-the-shark-that-lives-for-centuries
1•pseudolus•19m ago•0 comments