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!

Young South Korean investors are finding company in collective misery

https://www.businessinsider.com/young-south-korean-investors-humor-cope-kospi-stock-market-rout-2...
1•mapping365•55s ago•0 comments

Show HN: Misalignments when using AI for hacking

https://blog.vulnetic.ai/ai-misalignment-and-penetration-testing-e812194b67ca?sharedUserId=Vulnet...
1•danieltk76•7m ago•0 comments

A Lightweight Open-Source LLM Benchmark Tool – Compare Any Model on OpenRouter

https://cheikhhseck.medium.com/i-built-a-llm-benchmark-tool-and-tested-it-on-free-models-heres-wh...
1•cheikhdev•11m ago•0 comments

Zigbee vs. Matter over Thread:Understanding IoT Protocol Performance in Practice

https://arxiv.org/abs/2603.04221
2•teleforce•11m ago•0 comments

Bugtraq Is Back

https://lists.securityfocus.com/hyperkitty/list/bugtraq@securityfocus.com/thread/CHKLXLA7SJEWLDFH...
2•bashtoni•16m ago•0 comments

Spotted: Mac Studio with M3 Ultra 256GB RAM and M4 Max with 128GB RAM

https://gpuquicklist.com/blog/m3-ultra-256-and-m4-max-128
1•kristianp•19m ago•0 comments

Flowise Is Shutting Down

https://flowiseai.com/sunset
3•llmgraph•19m ago•1 comments

The Myth of the Food Desert

https://www.newyorker.com/magazine/2026/08/03/food-justice-undone-hanna-garth-book-review
1•delichon•20m ago•0 comments

US has used 'virtually all' of its long-range precision missiles during Iran war

https://www.reuters.com/world/us-has-used-virtually-all-its-long-range-precision-missiles-during-...
2•dataflow•21m ago•0 comments

Feynman's Office; the Last Blackboards [pdf]

https://aip.brightspotcdn.com/PTO.v42.i2.88_1.online.pdf
1•tylerdane•22m ago•1 comments

Eight Myths on Software Engineering and GenAI

https://queue.acm.org/detail.cfm?id=3807963
5•tchalla•31m ago•0 comments

White House excludes open models from framework to test advanced AI capabilities

https://www.axios.com/2026/08/04/trump-ai-framework-open-models
1•petethomas•31m ago•0 comments

Poetry Camera

https://poetry.camera/
1•karakoram•32m ago•0 comments

Lorem Slopsum

https://macro.land/blog/lorem-slopsum/
1•priyadarshy•34m ago•0 comments

Standalone Touch ID Sensor for Mac

https://github.com/zimengxiong/tinytouch
2•ls-a•36m ago•1 comments

Show HN: Find what users want by analyzing app reviews

https://seam.obverselabs.com/
2•OtmaneBenazzou•37m ago•0 comments

Nobody Was Watching: Anthropic, OpenAI, and Open Models

https://substack.norabble.com/p/nobody-was-watching
2•nedruod•40m ago•0 comments

So What's Up with That New CPanel Database Vulnerability?

https://lowendbox.com/blog/so-whats-up-with-that-new-cpanel-database-vulnerability/
1•shaunpud•42m ago•0 comments

Pigeons: SSH Anywhere, Built on Iroh

https://pigeons.computer/
3•AceJohnny2•43m ago•1 comments

2D Vortex Dynamics

https://lee-phillips.org/vortex/
2•leephillips•47m ago•0 comments

US yen intervention signals perfect storm rising in FX and bond markets

https://www.reuters.com/commentary/reuters-open-interest/us-yen-intervention-signals-perfect-stor...
3•mapping365•47m ago•1 comments

Advanced Lawnmower Simulator (1988)

https://en.wikipedia.org/wiki/Advanced_Lawnmower_Simulator
3•yzydserd•47m ago•0 comments

I'm (mostly) picking models on speed now, not intelligence

https://martinalderson.com/posts/speed-vs-intelligence/
2•birdculture•48m ago•0 comments

Appeals Court Agrees with EFF That Building a Web Browser Doesn't Violate CFAA

https://www.eff.org/deeplinks/2026/08/appeals-court-agrees-eff-building-web-browser-doesnt-violat...
8•iamnothere•49m ago•1 comments

Is It Possible to Make Smart Glasses That Aren't Creepy?

https://www.wired.com/story/is-it-possible-to-make-privacy-friendly-smart-glasses/
2•bushwart•50m ago•1 comments

IP and DNS Leaks in WebKit Affecting Proxy Browsers and iCloud Private Relay

https://mysk.blog/2026/08/04/webkit-proxy-icloud-private-relay-ip-leak/
16•lapcat•50m ago•0 comments

TikTok Withheld a Safety Feature from Millions. One Died by Suicide

https://www.bloomberg.com/news/features/2026-08-04/confidential-tiktok-report-shows-algorithm-saf...
2•petethomas•52m ago•0 comments

Crash experiences of highly automated vehicles and human drivers

https://www.iihs.org/api/datastoredocument/bibliography/2374
2•bushwart•53m ago•1 comments

OpenAI pays $3.2M in US probe over hiring foreign workers

https://www.reuters.com/business/openai-pays-32-million-us-probe-over-hiring-foreign-workers-2026...
6•alephnerd•56m ago•0 comments

Pass the Passkey: A Novel Attack Surface in Passwordless Authentication

https://unit42.paloaltonetworks.com/passwordless-authentication-security-risks/
19•jchanimal•59m ago•10 comments