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!

$2000 Bug Bounty to Whoever Fixes the Lenovo Legion Pro 7's Speakers on Linux

https://github.com/nadimkobeissi/16iax10h-linux-sound-saga/blob/main/PLEDGE.md
1•nickswalker•2m ago•0 comments

Orientale basin photographed by Artemis II

https://www.nasa.gov/image-detail/amf-art002e009212/
2•ajd555•4m ago•1 comments

The Downfall and Enshittification of Microsoft in 2026

https://caio.ca/blog/the-downfall-and-enshittification-of-microsoft.html
1•speckx•5m ago•0 comments

College instructor uses typewriters to curb AI work and teach life lessons

https://apnews.com/article/typewriter-ai-cheating-chatgpt-cornell-ce10e1ca0f10c96f79b7d988bb56448b
3•jethronethro•6m ago•0 comments

If No One Pays for Proof, Everyone Will Pay for the Loss

https://freakonometrics.hypotheses.org/89367
1•cdrnsf•7m ago•0 comments

Ask HN: Alternatives to Claude (Code)?

1•vixalien•7m ago•0 comments

Inside a Corporate Retreat That Went Very Badly Wrong

https://www.wsj.com/lifestyle/workplace/corporate-retreat-gone-wrong-07754741
2•dsr12•7m ago•0 comments

L-System Tree Planter

https://manymanytrees.com/
1•diogocteles•8m ago•0 comments

Show HN: Mactic – Open source touchpad haptics tool for MacBooks

https://github.com/MatMercer/mactic
2•MatMercer•8m ago•0 comments

Dor: The Structure Is the Product

https://twitter.com/dorvonlevi/status/2041220562283110579
1•nadis•9m ago•0 comments

Why Enterprise AI Needs More Than Documents

https://kimura.yumiwillems.com/p/human-as-context-why-enterprise-ai
1•yumiatlead•9m ago•0 comments

Root Persistence via macOS Recovery Mode Safari

https://yaseenghanem.com/recovery-unrestricted-write-access/
3•yaseeng•10m ago•0 comments

'Microshifting' puts a new spin on 9-to-5 schedules

https://apnews.com/article/microshifting-work-time-flexible-schedule-balance-97a98519916b447cd60c...
4•billybuckwheat•11m ago•0 comments

Jsonlogic-Fast

https://github.com/JPatronC92/jsonlogic-fast
1•JPatronC92•12m ago•0 comments

They're Putting AI Cameras in School Buses

https://www.usermag.co/p/theyre-putting-ai-cameras-in-school
1•defrost•12m ago•0 comments

We upgraded our agent to Opus and our costs went down

https://www.mendral.com/blog/frontier-model-lower-costs
2•shad42•13m ago•0 comments

Anthropic closes door on subscription use of OpenClaw

https://www.theregister.com/2026/04/06/anthropic_closes_door_on_subscription/
1•lschueller•14m ago•0 comments

Snake Bros Keep Getting Bitten by Their Lethal Pets. Only Zoos Can Save Them

https://www.wired.com/snake-bros-antivenom-index-zoos-influencers-chris-gifford/
2•Stratoscope•15m ago•1 comments

Model2Kernel: Model-Aware Symbolic Execution for Safe CUDA Kernels

https://arxiv.org/abs/2603.24595
2•PaulHoule•16m ago•0 comments

Show HN: An agentic loop for time-series forecasting using sktime and MCP

1•silkpeak•16m ago•0 comments

Disgruntled researcher leaks "BlueHammer" Windows zero-day exploit

https://www.bleepingcomputer.com/news/security/disgruntled-researcher-leaks-bluehammer-windows-ze...
4•speckx•18m ago•0 comments

Show HN: QuickMailBites – email client that reads your AWS S3 bucket

https://github.com/bonskari/quickmailbites
2•mike_strings872•18m ago•1 comments

The Importance of Being Idle

https://theamericanscholar.org/the-importance-of-being-idle/
3•Caiero•19m ago•0 comments

AI dataset filter (free for now)

https://datasetfilter.com/
2•monicca•22m ago•0 comments

Show HN: Sidebar based/tabbed tiling window manager for macOS

https://github.com/zimengxiong/winmux/
2•zimengx•23m ago•0 comments

Are low-quality listicles about to lose their edge in Google Search?

https://searchengineland.com/low-quality-listicles-trend-google-search-473703
5•speckx•27m ago•1 comments

Show HN: I built a tool to bootstrap VLESS and REALITY over SSH (with rollback)

2•insany•28m ago•0 comments

OpenExp – AI memory that learns what works via Q-learning

https://github.com/anthroos/openexp
4•antroos•28m ago•0 comments

Tracing a Full MoE Training Step Through the XLA Compiler

https://patricktoulme.substack.com/p/frontier-pretraining-infrastructure
3•matt_d•29m ago•0 comments

I built the solution for MCP security before it was even in the headlines

https://github.com/tejasprasad2008-afk/TraceTree
2•Tejas_dmg•29m ago•1 comments