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!

When Writers Lose Faith in Free Speech

https://www.theatlantic.com/ideas/2026/11/philip-roth-political-novelists/689337/
1•tkgally•24s ago•0 comments

I shipped a CLI and what I run is a proxy

https://avelino.run/mcp-cli-became-a-proxy/
1•neiesc•8m ago•0 comments

Veda: The Agentic Native Hobby OS

https://github.com/vahmoh/Veda
1•vahmoh25y•8m ago•0 comments

Herb Sutter: When a language's creator and its owners strongly disagree [pdf]

https://isocpp.org/files/papers/P4454R0.pdf
1•acossta•8m ago•0 comments

Micron – a Pascal/Oberon-derived systems language with the power of C

https://github.com/rochus-keller/Micron/blob/master/Readme.md
1•birdculture•9m ago•0 comments

How to Build the Future: Paul Graham and Amjad Masad [video]

https://www.youtube.com/watch?v=Q78dJ0vkWe8
1•gmays•9m ago•0 comments

Avatar Web Integration

https://www.lee-ai.com/
2•eschwalme•9m ago•1 comments

Astryx: An open source design system that's customizable and agent ready

https://github.com/meta/astryx
1•pierreneter•9m ago•1 comments

Email Encryption

https://computer.rip/2026-07-19-email-encryption.html
1•pierreneter•10m ago•0 comments

AI model to learn language the way children do

https://pni.princeton.edu/news/2026/princeton-researchers-train-ai-model-learn-language-way-child...
1•thedreammachine•12m ago•0 comments

Users have started buying RTX 5060 Ti 16GB graphics cards for the sake of AI

https://en.gamegpu.com/news/zhelezo/polzovateli-nachali-massovo-skupat-videokarty-rtx-5060-ti-16g...
1•pierreneter•14m ago•1 comments

Adopting Python 3.15's lazy imports: a 4× faster CLI, and where they didn't help

https://namegarage.com/blog/python-3-15-lazy-imports
1•nikolay•14m ago•0 comments

NASA-Funded Study Details One of Oldest Mars Meteorites Ever Found

https://www.nasa.gov/solar-system/planets/mars/nasa-funded-study-details-one-of-oldest-mars-meteo...
1•handfuloflight•15m ago•0 comments

Xfce Wayland Development Roadmap

https://wiki.xfce.org/releng/wayland_roadmap
1•darkwi11ow•15m ago•0 comments

SS United States will be sunk, becoming the world's largest artificial reef

https://www.washingtonpost.com/transportation/2026/11/05/ss-united-states-be-sunk-become-worlds-l...
1•bookofjoe•17m ago•2 comments

Benchma(r)king: Carpentry with LLMs

https://emergencemagazine.org/essay/benchmarking/
1•dnw•17m ago•0 comments

After Ten Years: An Account at the Turn of the Year 1942–1943 [pdf]

https://ms.fortresspress.com/downloads/9781506433387%20After%20Ten%20Years%20FINAL-excerpt.pdf
1•mudil•18m ago•1 comments

Cooperative Vectors and Neural Rendering [pdf]

https://shawnhargreaves.com/CooperativeVectorsAndNeuralRendering.pdf
1•andsoitis•19m ago•0 comments

Rent-a-grandchild: Businesses offering companions to elderly grow in India

https://www.aljazeera.com/news/2026/11/8/rent-a-grandchild-businesses-offering-companions-to-elde...
1•Qem•21m ago•0 comments

AI to find vulnerabilities in global legislation (on Git)

https://github.com/lexifina/global-law/tree/main/vulnerabilities
1•alansaber•23m ago•0 comments

Industrial History: MWRD – Sanitary District of Chicago Railroad (2016)

http://industrialscenery.blogspot.com/2016/05/sanitary-district-of-chicago-railroad.html
2•Lammy•30m ago•0 comments

Internet governance about to get its quadrennial stress test at ITU meeting

https://www.theregister.com/networks/2026/11/08/internet-governance-about-to-get-its-quadrennial-...
3•nephihaha•33m ago•0 comments

a way to keep coding agents within the rules

https://github.com/OliverKlug/fairlead.git
1•KlugOliver•42m ago•0 comments

Managed Deep Agents delivers a better user experience for agents in production

https://www.langchain.com/blog/langsmith-managed-deep-agents-whats-new
1•gmays•44m ago•0 comments

Six GPUs on One X16 Slot: R9700s and RTX 3090s Behind a PCIe Switch

https://doug.sh/posts/six-gpus-one-x16-slot/
2•dougcalobrisi•44m ago•0 comments

Is curiosity all it's cooked up to be?

https://www.economist.com/business/2026/11/05/is-curiosity-all-its-cooked-up-to-be
1•andsoitis•45m ago•0 comments

Exody – Native macOS AI Workbench (5-stage loop, 100% BYOK, $0 markup)

https://www.exody.ai/
2•timamar•46m ago•0 comments

AI, Bullshit and Art Speak: How the art world prepared us for the age of AI slop

https://jaymollica.com/blog/ai-bullshit-and-art-speak/
3•thebigship•49m ago•0 comments

Nvidia Board to Probe Spying Case After CEO Admits Affair

http://www.bloomberg.com/news/articles/2026-11-08/nvidia-board-to-probe-spying-case-after-ceo-jen...
5•kamranjon•52m ago•1 comments

Show HN:Free Web Tools

https://nyneon.net/tools/
3•Munayem•54m ago•2 comments