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!

AI Kill Switch Act would let Trump admin order shutdown of rogue AI systems

https://arstechnica.com/tech-policy/2026/07/ai-kill-switch-act-would-let-trump-admin-order-shutdo...
1•ndsipa_pomu•2m ago•0 comments

An institutional-grade market terminal for retail investors

https://kresmion.com
1•sol9•3m ago•0 comments

End-to-End Encryption and "Going Dark"

https://www.schneier.com/blog/archives/2026/07/end-to-end-encryption-and-going-dark.html
1•mdp2021•4m ago•0 comments

Show HN: Amdb – Local code context MCP server, single Rust binary

https://github.com/BETAER-08/amdb
1•try_betaer•6m ago•0 comments

Game of Trees – Git-based version control from OpenBSD folks

https://www.gameoftrees.org/
1•gregnavis•8m ago•0 comments

Mirror Mirror: Mirror your PC screen to your phone over your local network

https://github.com/maco30001/Mirror-Mirror
1•maco3000•8m ago•0 comments

Use This Instead of OpenCode

https://www.truss-agent.com/
1•jrh89•9m ago•0 comments

The Hugging Face Incident – By Scott Alexander

https://www.astralcodexten.com/p/the-hugging-face-incident
1•mellosouls•10m ago•0 comments

Clop ransomware targets Windchill, FlexPLM in data theft attacks

https://www.bleepingcomputer.com/news/security/clop-ransomware-targets-windchill-flexplm-in-data-...
1•Imbiss•10m ago•0 comments

How Do We Stop Vibe Coding?

https://alexklos.ca/blog/how-do-we-stop-vibe-coding
1•prohobo•11m ago•0 comments

Launching Health in ChatGPT to US Users

https://openai.com/index/health-in-chatgpt/
1•mellosouls•14m ago•0 comments

Study: Economic benefits of data centers in USA

https://www.scheller.gatech.edu/news/2026/data-centers-are-booming-who-benefits.html
1•giuliomagnifico•16m ago•1 comments

Round-Trip Correctness: A New Metric for Generative AI-Based Process Modeling

https://community.sap.com/t5/technology-blog-posts-by-sap/round-trip-correctness-a-new-metric-for...
1•rramadass•19m ago•1 comments

The first mainstream song about computer games literally "Computer Games" (1979)

https://www.youtube.com/watch?v=gsHYSs_qgmU
2•wewewedxfgdf•21m ago•0 comments

Show HN: Audio Player with "Binaural Beats" tuned to the same key as your music

https://github.com/henrygabriels/binaural-studio
2•gabriel666smith•22m ago•0 comments

Show HN: A Website Introducing Flux 3

https://flux-3.io
2•akseli_ukkonen•23m ago•0 comments

A Semioethical Framework for Artificial Intelligence

https://lyceum.institute/humanitas-technica/seppuai/
2•einhard•28m ago•0 comments

IRGC Claims It Destroyed Amazon's Bahrain Data Center

https://houseofsaud.com/irgc-claims-destroyed-amazon-bahrain-data-center/
3•thisislife2•30m ago•0 comments

Show HN: Transept: AI translation workspace that puts humans first

https://transept.ai
3•sithamet•30m ago•0 comments

Prebuilt, parameterized, interactive HTML widgets for MCP Apps

https://github.com/Techthos/gadget
2•alex20465•32m ago•0 comments

The Codex App Lied to Me About /Clear

https://samwize.com/2026/07/24/codex-app-lied-to-me-about-clear/
2•ingve•34m ago•0 comments

I'm So Tired of "Is This AI?"

https://www.trend-mill.com/p/im-so-tired-of-is-this-ai
5•moomoy•38m ago•1 comments

Show HN: A static, client-side tarot calculator for Brazilian Portuguese

https://meuarcanopessoal.net/
5•visiohex•43m ago•1 comments

Show HN: Maplike – Rust traits for operations on containers (get, set, push...)

https://github.com/mikwielgus/maplike
2•mikolajw•44m ago•0 comments

BookWyrm is a social network for tracking and sharing your reading

https://github.com/bookwyrm-social/bookwyrm
2•protomolecool•46m ago•0 comments

Image Resizer

https://img-resizer.github.io/
2•javatuts•47m ago•0 comments

Shape Up: Stop Running in Circles and Ship Work that Matters [pdf]

https://basecamp.com/shapeup/shape-up.pdf
2•saikatsg•49m ago•0 comments

Brief Observations on Life

http://unfuck.i.ng/art/science/life/
2•singingfish•50m ago•1 comments

Flux 3 X Mimic: The Next Generation of Video-Action Models

https://bfl.ai/blog/flux-3-mimic
36•kensai•51m ago•3 comments

Towards a Theory of Bugs: The Ruliology of the Unexpected

https://writings.stephenwolfram.com/2026/07/towards-a-theory-of-bugs-the-ruliology-of-the-unexpec...
2•nsoonhui•53m ago•0 comments