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!

Google reportedly working on ultra-efficient AI chip for Gemini

https://thedailycompute.beehiiv.com/p/google-reportedly-working-on-ultra-efficient-ai-chip-for-ge...
2•theanonymousone•1m ago•0 comments

Show HN: Skim – a minimalist open-source email client for Windows (MIT)

https://skim-tech.com/
1•nikitazarubin•3m ago•0 comments

SLAC to lead AI project to recover critical metals from Li-ion battery waste

https://www6.slac.stanford.edu/news/2026-07-22-slac-lead-genesis-mission-ai-project-recover-criti...
1•rbanffy•3m ago•0 comments

Coin Used for Bus Fare Turns Out to Be 2k-Year-Old Carthaginian Artifact

https://mymodernmet.com/ancient-carthaginian-coin-found/
2•bryanrasmussen•4m ago•0 comments

Elon Musk's Vision of the Future

https://www.economist.com/business/2026/07/23/elon-musks-vision-of-the-future
1•dsubburam•6m ago•0 comments

In search of a collaborative internet without big tech and server farms

https://seamside.com/docs/
3•akumpf•8m ago•0 comments

Namecheap Gave My Account to an Unverified Third Party Just Because They Asked

7•Thrashed•10m ago•0 comments

Microsoft responds to LG monitors installing McAfee ads on Windows

https://arstechnica.com/gadgets/2026/07/microsoft-responds-to-lg-monitors-installing-mcafee-ads-o...
3•worldsavior•12m ago•0 comments

Exploring Gymflation with AI

https://cbowdon.github.io/posts/gymflation/
1•sebg•13m ago•0 comments

Doctor Dario (Game)

https://doctordario.ai/
1•ipince•15m ago•0 comments

Evaluating AI Agents: A Production Blueprint with Strands and AgentCore

https://aws.amazon.com/blogs/machine-learning/evaluating-ai-agents-a-production-blueprint-with-st...
1•Imbiss•15m ago•0 comments

Colorblind: Checking figure accessibility for colour blind people

https://quantixed.org/2022/05/19/colorblind-checking-figure-accessibility-for-colour-blind-people/
1•sebg•15m ago•0 comments

Stripe in talks to buy OpenRouter for ~10B

https://www.wsj.com/tech/ai/stripe-in-talks-to-buy-buzzy-ai-model-marketplace-openrouter-decc6a74
4•htrp•16m ago•0 comments

Ask: Why does everything Microsoft create lately feel fragile and half-baked?

2•nothrowaways•18m ago•1 comments

ADTs (Algebraic Data Types) in Java

https://rockthejvm.com/articles/algebraic-data-types-in-java
1•theanonymousone•19m ago•0 comments

Official Swedish dictionary completed after 140 years (2023)

https://www.theguardian.com/world/2023/oct/25/official-swedish-dictionary-completed-after-140-years
2•theanonymousone•20m ago•0 comments

CalMac ferry bridge visits paused over passenger's filming with smart glasses

https://www.bbc.co.uk/news/articles/c77grkz46k3o
2•AndrewDucker•20m ago•0 comments

Show HN: AgentPulse, drift investigation for multi-agent systems

https://prove-ai.github.io/agentpulse/
1•leylal0016•20m ago•0 comments

AI Coding Will Prevent Expertise

https://larsfaye.com/articles/ai-coding-will-prevent-expertise
1•ragall•22m ago•0 comments

Couple pay >$800k for a gene-editing therapy for their daughter. She died.

https://www.science.org/content/article/exclusive-death-girl-chinese-gene-editing-trial-was-never...
2•Shortness8•23m ago•0 comments

Directed Agentic Graphs

https://jlowin.dev/blog/directed-agentic-graphs
1•tayloramurphy•23m ago•0 comments

Easy A's, Less Pay: The Long-Term Effects of Grade Inflation

https://www.nber.org/papers/w34952
1•sebg•24m ago•0 comments

Flock's CEO Says Its ALPRs Don't Do Video After Repeatedly Announcing They Can

https://www.404media.co/flocks-ceo-says-its-alprs-dont-do-video-after-repeatedly-announcing-they-...
1•cdrnsf•25m ago•0 comments

How does Q-head work in batch training in Tiny Recursive Networks?

https://www.kaggle.com/discussions/questions-and-answers/728582
1•SamCoding•25m ago•1 comments

DOJ Says Government Can Use TikTok Again Because 'Owned' No Longer Means 'Owned'

https://www.techdirt.com/2026/07/23/government-lawyers-say-trump-admin-can-use-tiktok-again-becau...
2•hn_acker•25m ago•0 comments

Project management in your repo

https://github.com/lovelace-co/lovelace
1•LambrosP•27m ago•0 comments

Show HN: LLM-budget-cap – atomic Redis spend cap for LLM APIs

https://github.com/Rentheria/llm-budget-cap
1•Rentheria•27m ago•0 comments

Show HN: Grounded-forge – RAG with summaries and task views precomputed ingest

https://github.com/chrisgagne/grounded-forge
1•chrisgagne•28m ago•0 comments

Show HN: Experimental freshness-first caching library for FastAPI

https://github.com/grandimam/zinda
1•grandimam•29m ago•0 comments

Technology Modernization Fund: Small Savings Achieved So Far

https://www.gao.gov/products/gao-26-107737
1•Jimmc414•32m ago•0 comments