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!

Show HN: AI blog system with human DNA

https://voicecite.com
1•iamkazihasanali•1m ago•0 comments

Show HN: Contextrot– Analyze where Claude Code degrades from its own session log

https://github.com/Priyanshu-byte-coder/contextrot
1•PriyanshuDoshi•2m ago•0 comments

AI coding jargon, explained in plain English

https://github.com/mattpocock/dictionary-of-ai-coding
1•saikatsg•4m ago•0 comments

Agent Torrent, can idle coding agents form a useful swarm?

https://devden.raghavan.studio/p/agent-torrent
1•raghavankl•5m ago•0 comments

Show HN: Plan your multi-day hut hikes in the alps

https://getcabinfever.com/
1•felixdoerp•7m ago•0 comments

SmartTAR 1.3.0

https://github.com/eco-by-different/smarttar-star
1•e_b_d•7m ago•1 comments

Show your hands honor for the power they bring you

https://aresluna.org/show-your-hands-honor/
1•Game_Ender•8m ago•0 comments

New World screwworm is disgusting. How could it not be a food safety issue?

https://www.cnn.com/2026/07/05/health/screwworm-food-safety
2•mooreds•11m ago•0 comments

Train and run transformers directly on Apple's Neural Engine

https://github.com/christopherkarani/Espresso
1•christkarani•11m ago•0 comments

Why DMARC's new "NP" tag can fail with DNSSEC

https://dmarcwise.io/blog/dmarc-np-incompatibility-with-dnssec
2•matteocontrini•13m ago•0 comments

Buckeye and Me

https://memoirland.substack.com/p/buckeye-and-me
1•mooreds•14m ago•0 comments

OpenAPI Initiative AI Policy

https://github.com/OAI/OpenAPI-Specification/blob/main/AI.md
1•mooreds•14m ago•0 comments

DNScanner (CLI)

https://github.com/ChinadaCam/DNScanner
1•ChinadaCam•15m ago•0 comments

Show HN: Santui, your terminal home base

https://github.com/sonyarianto/santui
1•sonyarianto•16m ago•0 comments

It's not about physical vs. digital games, it's about ownership

https://popcar.bearblog.dev/its-about-ownership/
1•popcar2•18m ago•0 comments

The Emoji Museum

https://emojistime.com/en/museum
1•kilroy123•18m ago•0 comments

Secure AI Sandboxes on Kubernetes

https://mitos.run/blog/ai-sandboxes-on-kubernetes
1•stubbi•19m ago•1 comments

Show HN: Small World – The "Preact" of 3D Web Engines (TypeScript, WebGPU)

https://rottensteiner-stefan.github.io/small-world/
1•DragonZoul•20m ago•0 comments

33434 Scottmanley (1999 FU)

https://ssd.jpl.nasa.gov/tools/sbdb_lookup.html#/?sstr=33434
1•root-parent•22m ago•0 comments

Show HN: AgentWatch – per-client cost tracking for LangChain agents

https://agentwatch-two.vercel.app/
1•hubi8120•23m ago•0 comments

Solar rail could become common in Europe after successful trial in Switzerland

https://www.euronews.com/2026/07/05/italy-could-be-the-next-country-to-build-a-solar-railway-afte...
3•neilfrndes•24m ago•2 comments

Show HN: microide, a 100% vibecoded IDE that LLM agents can drive

https://pablojimenezmateo.github.io/microide/
1•gef3233•24m ago•0 comments

OpenAI-Compatible DeepSeek API – No Chinese Phone Required

https://api.aifreeaistack.com
3•FreeAIStack•27m ago•0 comments

Infuriating Google commercial imagines the founding fathers embracing AI

https://www.theverge.com/ai-artificial-intelligence/961468/google-ai-commercial-founding-fathers-...
2•ilreb•29m ago•1 comments

Morphometrics: Introduction to the Analysis of Shape

https://www.geol.umd.edu/~tholtz/G331/lectures/331biomech.html
2•num42•30m ago•0 comments

Doorways do not always cause forgetting: a multimodal investigation (2021)

https://link.springer.com/article/10.1186/s40359-021-00536-3
2•bookofjoe•30m ago•0 comments

C programmers commit fresh crimes against readability

https://www.theregister.com/offbeat/2026/07/05/c-programmers-commit-fresh-crimes-against-readabil...
4•jjgreen•31m ago•1 comments

Challenging Caveman

https://pi-infected.github.io/token-harness-optimizer-leaderboard/
2•Tokenade•32m ago•1 comments

Female US rower completes historic solo journey from California to Hawaii

https://www.theguardian.com/us-news/2026/jul/04/california-hawaii-rowing-solo-journey
3•dwa3592•32m ago•0 comments

Self-hosted email client with an AI agent, running on Cloudflare Workers

https://github.com/cloudflare/agentic-inbox
3•Brajeshwar•35m ago•0 comments