frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

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

Wdquery

https://github.com/altilunium/wdquery
1•altilunium•1m ago•0 comments

An iPhone-hacking toolkit used by Russian spies likely came from U.S. contractor

https://techcrunch.com/2026/03/09/an-iphone-hacking-toolkit-used-by-russian-spies-likely-came-fro...
2•cdrnsf•1m ago•0 comments

Hyperspace Agent

https://agents.hyper.space/research-report
1•vinhnx•3m ago•0 comments

Secure Secrets Management for Cursor Cloud Agents

https://infisical.com/blog/secure-secrets-management-for-cursor-cloud-agents
1•vmatsiiako•3m ago•0 comments

Built a lightweight AI summary plugin for Salesforce (no Einstein required)

https://dscopeai.com
1•pavelkds•4m ago•1 comments

The Great Silicon Brain Robbery: A Chronicle of Our Artificial Demise

https://laughingmachines.substack.com/p/the-great-silicon-brain-robbery-a
1•kmer007•6m ago•0 comments

Valedex – Extract financial metrics from CIM PDFs for private market deals

https://www.valedex.com/
1•marcelk123•8m ago•1 comments

Apple: The First 50 Years

https://www.applefirst50.com
1•pqvst•8m ago•0 comments

CUDA-morph: PyTorch .cuda() code on AMD/Intel/Ascend without rewrites

https://github.com/JosephAhn23/cuda-morph
1•josephahn291215•9m ago•0 comments

Whether you have heard of the Extropians or not, they have influenced you

https://mtabarrok.com/extropia-archaeology
1•myth_drannon•11m ago•0 comments

Gemini AI Help and Support: What to Do After a Cryptocurrency Investment Scam

1•GeminiAi•14m ago•1 comments

Zuckerberg has "finished" with Alexandr Wang, worth US$14B

https://www.idnfinancials.com/news/61918/zuckerberg-has-finished-with-alexandr-wang-worth-us14-bi...
4•SilverElfin•18m ago•2 comments

China's AI giants are handing out cash to lure in users

https://www.economist.com/business/2026/03/09/chinas-ai-giants-are-handing-out-cash-to-lure-in-users
1•petethomas•20m ago•0 comments

We Tried Paying Artists Royalties on AI-Generated Work – Learnings

https://www.kapwing.com/blog/learnings-from-paying-artists-royalties-for-ai-generated-art/
2•jenthoven•22m ago•0 comments

Ask HN: Favorite Non-Spammy iPhone Games?

1•bix6•27m ago•1 comments

A Survival Guide to a PhD (2016)

http://karpathy.github.io/2016/09/07/phd/
1•vismit2000•30m ago•0 comments

PEP 827: Type Manipulation

https://peps.python.org/pep-0827/
1•azhenley•31m ago•0 comments

Fil-C: A memory-safe C implementation

https://lwn.net/Articles/1042938/
1•zdkaster•33m ago•0 comments

David W. Bates, cybernetics specialist: 'The brain is not a computer'

https://www.lemonde.fr/en/opinion/article/2026/02/28/david-w-bates-cybernetics-specialist-the-bra...
2•1vuio0pswjnm7•35m ago•0 comments

Anthropic launches Code Review

https://code.claude.com/docs/en/code-review
2•rishabhaiover•38m ago•1 comments

The Arts Bookstore of the Internet

https://mzs.press/
2•mooreds•39m ago•0 comments

Breaking free from smartphone addiction: Defensive tactics against algorithms

https://english.elpais.com/technology/2026-03-07/breaking-free-from-smartphone-addiction-defensiv...
4•1vuio0pswjnm7•39m ago•0 comments

Lovable, Monetization, and the Vibe Coder Economy

https://jxnl.co/writing/2025/06/12/lovable-monetization-and-the-vibe-coder-economy/
1•AnhTho_FR•42m ago•0 comments

Trial against Meta in New Mexico highlights video depositions by top executives

https://apnews.com/article/meta-instagram-new-mexico-zuckerberg-mosseri-social-e5a6749f4628cff9ff...
1•1vuio0pswjnm7•45m ago•1 comments

Lunches.fyi: Scraping corporate cafeteria menus and ranking the food

https://walzr.com/lunches-fyi/
3•meetpateltech•49m ago•0 comments

Human Brain Cells Run New Data Centers in Singapore, Melbourne

https://www.bloomberg.com/news/articles/2026-03-09/human-brain-cells-run-new-data-centers-in-sing...
1•inaros•49m ago•0 comments

Mockdown

https://www.mockdown.design
2•handfuloflight•50m ago•0 comments

Sony is testing dynamic pricing in the PlayStation Store

https://psprices.com/news/sony-ab-testing-prices/
1•xoxxala•50m ago•0 comments

Amazon tells FCC to bin SpaceX's million-satellite datacenter dream

https://www.theregister.com/2026/03/09/amazon_petitions_to_block_spacexs/
4•johnbarron•55m ago•0 comments

Lazy iteration vs. array chaining on 500k rows – benchmark results

1•gvsh_maths•58m ago•1 comments