frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

1•snyy•11mo 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!

Human brain operates near, but not at, the critical point

https://phys.org/news/2026-03-human-brain-critical.html
1•yoquan•2m ago•0 comments

Fedora 44 will automatically make your Windows games run faster

https://www.xda-developers.com/fedora-44-will-automatically-make-your-windows-games-run-faster-no...
1•Alupis•4m ago•0 comments

WTO reforms talks stalled amid U.S.-India digital services taxation deadlock

https://www.reuters.com/world/india/wto-talks-stalled-going-into-final-day-amid-us-india-e-commer...
1•alephnerd•7m ago•0 comments

Hertz and Hearts – PC HRV biofeedback for chest-strap ECG (OpenHRV fork)

https://github.com/JoelAtHome/HertzAndHearts
1•J_Kobe•10m ago•0 comments

Apple issues urgent lock screen warnings for unpatched iPhones and iPads

https://securityaffairs.com/190109/security/apple-issues-urgent-lock-screen-warnings-for-unpatche...
2•WaitWaitWha•14m ago•0 comments

Emergency Microsoft, Oracle patches point to wider cyber issues

https://www.computerweekly.com/news/366640648/Emergency-Microsoft-Oracle-patches-point-to-wider-c...
1•smurda•15m ago•0 comments

Pentagon prepares for weeks of ground operations in Iran

https://www.washingtonpost.com/national-security/2026/03/28/trump-iran-ground-troops-marines/
2•Jimmc414•16m ago•1 comments

ReadyPC – open-source Rust PC Optomizer

https://github.com/Gloom-Team/ReadyPC/releases/tag/Latest
1•asdadaZ•16m ago•0 comments

Improving My C Build System with Zig

https://louislefebvre.net/tech/zig-gcc-replace/
1•louislef299•16m ago•0 comments

OpenYak – An open-source Cowork that runs any model and owns your filesystem

https://github.com/openyak/desktop
3•wangzhangwu•23m ago•1 comments

The Fastest Man Alive? [video]

https://www.youtube.com/shorts/R7OoEXaOVY0
1•SilentM68•24m ago•0 comments

How to Do Any Work

https://drive.google.com/uc?id=1wurJsO1vZYiynrTxDLroiQX2fBnKmldo&export=download
1•waseyjamal•27m ago•0 comments

Generalized Linear Model

https://en.wikipedia.org/wiki/Generalized_linear_model
1•azhenley•28m ago•0 comments

Data Centers Under Fire: A Systemic Security Challenge

https://www.datacenterknowledge.com/physical-security/data-centers-under-fire-a-growing-critical-...
1•WaitWaitWha•29m ago•0 comments

Mark Zuckerberg texted Elon Musk to offer help with DOGE

https://techcrunch.com/2026/03/28/mark-zuckerberg-texted-elon-musk-to-offer-help-with-doge/
1•toomanyrichies•33m ago•0 comments

Thinking in the Margins

https://theamericanscholar.org/thinking-in-the-margins/
1•SegfaultSeagull•47m ago•0 comments

The Revenge of the Data Scientist

https://hamel.dev/blog/posts/revenge/
1•prabal97•48m ago•0 comments

Eval-Driven Development: Applying TDD Principles to AI Agent Prompts

https://iris-eval.com/blog/eval-driven-development
1•iparent•49m ago•0 comments

Vanilla Claude vs. GitAuto Test Generation

https://gitauto.ai/blog/vanilla-claude-vs-gitauto-test-generation
1•nishiohiroshi•52m ago•0 comments

Show HN: Phantom – Let AI use your API keys without leaking them

https://github.com/ashlrai/phantom-secrets
1•masonwyatt23•54m ago•0 comments

Wikipedia officially bans AI-generated content

https://nypost.com/2026/03/28/tech/wikipedia-officially-bans-ai-generated-encyclopedia-entries/
6•1vuio0pswjnm7•54m ago•0 comments

Can You Guess What Tests a Calculator Needs?

https://gitauto.ai/blog/can-you-guess-what-tests-a-calculator-needs
1•nishiohiroshi•54m ago•0 comments

What Are Adversarial Tests and Why We Run Them

https://gitauto.ai/blog/what-are-adversarial-tests
1•nishiohiroshi•55m ago•0 comments

Indonesia Starts First Southeast Asia Social Media Ban for Kids

https://www.bloomberg.com/news/articles/2026-03-28/indonesia-starts-first-southeast-asia-social-m...
1•1vuio0pswjnm7•57m ago•0 comments

Indonesia's social media curbs for under 16s take set to start

https://www.reuters.com/business/media-telecom/indonesias-social-media-curbs-kids-set-saturday-fe...
1•1vuio0pswjnm7•58m ago•0 comments

Nice Graphs – Text to chart in one click

https://nice-graphs.com/pt
1•domiuau•1h ago•1 comments

Elon Musk's last co-founder reportedly leaves xAI

https://techcrunch.com/2026/03/28/elon-musks-last-co-founder-reportedly-leaves-xai/
4•SilverElfin•1h ago•3 comments

A n00B PM's guide to vibe coding kernels from scratch

https://www.ddmckinnon.com/2026/03/28/a-n00b-pms-guide-to-vibe-coding-kernels-from-scratch/
2•dmckinno•1h ago•0 comments

Aging Is a Software Problem

https://twitter.com/davidasinclair/status/2037966418453410024
1•dschol•1h ago•0 comments

Show HN: Local-first dictation for macOS – Parakeet TDT, zero cloud calls

https://typedwith.ai/
1•newtechwiz•1h ago•0 comments