frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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!

Nature's Overlooked Role in National Security

https://nautil.us/natures-overlooked-role-in-national-security-1280439
1•lschueller•3m ago•0 comments

Show HN: Gitbar – A menu bar app for GitHub PRs and issues

https://usegitbar.app/
1•brunokiafuka•3m ago•0 comments

LLxprt Code Is the Anti-Claw

https://vybestack.dev/blog/rendered/2026-02-20-anti-claw.html
1•mooreds•3m ago•0 comments

Sam Altman is "the face of evil" for not reporting school shooter, says lawyer

https://arstechnica.com/tech-policy/2026/04/school-shooting-lawsuits-accuse-openai-of-hiding-viol...
1•asplake•4m ago•0 comments

Lilex. The Font for Developers

https://lilex.myrt.co/
3•hmokiguess•4m ago•0 comments

Bambu labs sends legal threat to orcaslicer dev over use of AGPL code [video]

https://www.youtube.com/watch?v=jIbpQtoz6hs
2•mindcrime•6m ago•0 comments

Practical Ways to Reduce Claude Code Token Usage

https://www.kdnuggets.com/7-practical-ways-to-reduce-claude-code-token-usage
2•sminchev•9m ago•1 comments

Recession and Revolution: Our Experience Isn't a Model or System

http://charleshughsmith.blogspot.com/2026/05/recession-and-revolution-our-experience.html
1•speckx•9m ago•0 comments

Boris Cherny: TI-83 Plus Basic Programming Tutorial (2004)

https://www.ticalc.org/programming/columns/83plus-bas/cherny/
1•suoken•13m ago•0 comments

Empty Screenings

https://walzr.com/empty-screenings
1•jbegley•14m ago•0 comments

AI startup JuliaHub raises $65M to rival Simulink

https://www.axios.com/2026/04/30/bob-muglia-ai-hardware-engineering
9•ViralBShah•14m ago•1 comments

XGrammar-2: 80x Faster Structured Generation for Agent Tool Calling

https://blog.mlc.ai/2026/05/04/xgrammar-2-fast-customizable-structured-generation
2•ubospica•14m ago•0 comments

Show HN: Full-featured CLI textarea component for React Ink

https://github.com/omranjamal/ink-textarea
1•omranjamal•15m ago•0 comments

What NIST's mDL guidance means for the future of digital identity

https://1password.com/blog/nist-mobile-drivers-license-standards
1•AndroidKitKat•17m ago•0 comments

The creator of Roomba is back with a furry robot companion

https://www.theverge.com/ai-artificial-intelligence/922947/roomba-creator-new-robot-familiar-mach...
2•jpm_sd•24m ago•0 comments

Your Dinner Got Worse On Purpose

https://www.worseonpurpose.com/p/your-dinner-got-worse-on-purpose
2•jkestner•25m ago•0 comments

AI models are choking on junk data

https://fortune.com/2026/05/03/ai-models-are-choking-on-junk-data/
2•Zeidd•25m ago•1 comments

Russian satellites over Ukraine: where and when they fly over

https://texty.org.ua/projects/117087/in-focus-of-a-satellite-how-russia-spies-on-ukraine-from-space/
4•gmays•28m ago•0 comments

Chinese Government Got the Largest Digital Rights Conference Canceled

https://www.wired.com/story/the-chinese-government-pressured-zambia-to-cancel-the-worlds-largest-...
3•miohtama•29m ago•0 comments

Formatting a 25M-line codebase overnight

https://stripe.dev/blog/formatting-an-entire-25-million-line-codebase-overnight-the-rubyfmt-story
11•r00k•30m ago•2 comments

Reverse-engineering Final Fantasy X (PS3) with Ghidra

https://tech.dreamleaves.org/posts/exploring-spira-ps3-binary-with-ghidra/
3•joshguthrie•31m ago•0 comments

'Nature' Retracts Paper on the Benefits of ChatGPT in Education

https://www.404media.co/nature-retracts-paper-on-the-benefits-of-chatgpt-in-education/
4•cdrnsf•31m ago•0 comments

Promptise Foundry – a Python agentic framework for building production systems

https://github.com/promptise-com/foundry
1•cryxnet•33m ago•0 comments

Lena – macOS menu bar app for storing and copying CLI commands

https://github.com/yannickboog/lena
2•Schaefle•33m ago•0 comments

2 Letters from Steve (2013)

https://davidgelphman.wordpress.com/2013/03/29/2-letters-from-steve/
1•CharlesW•35m ago•0 comments

Show HN: NeuralScript – A pure-Rust AOT compiler

https://github.com/bwiemz/NSL
1•AkaiNa•35m ago•0 comments

The War Against Renters

https://thezvi.substack.com/p/housing-roundup-15-the-war-against
3•7777777phil•36m ago•0 comments

Safety benchmarks are inflated because models know they're being tested

https://www.lesswrong.com/posts/mDriHK4beN5rq2tAA/verbalized-eval-awareness-inflates-measured-safety
2•aranguri•37m ago•0 comments

Deepsec

https://vercel.com/blog/introducing-deepsec-find-and-fix-vulnerabilities-in-your-code-base
4•0xedb•38m ago•1 comments

Transformers Are Inherently Succinct

https://arxiv.org/abs/2510.19315
4•bearseascape•38m ago•0 comments