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!

Show HN: Apfel – The free AI on your Mac

https://apfel.franzai.com
1•franze•1m ago•1 comments

Catching macOS Stealers in the Wild

https://objective-see.org/blog/blog_0x88.html
1•speckx•4m ago•0 comments

Flow – Focus Deeper, Longer

https://play.google.com/store/apps/details?id=com.get.flow_app&hl=en_US
1•K_A_P•8m ago•0 comments

Gemma 4 makes local AI agents practical

https://firethering.com/gemma-4-local-ai-agents/
3•steveharing1•9m ago•0 comments

AI's fluency in other languages hides a Western worldview that can mislead users

https://theconversation.com/ais-fluency-in-other-languages-hides-a-western-worldview-that-can-mis...
4•1659447091•14m ago•0 comments

Tried to Buy a Pint, Finding a Trojan: My First Malware Analysis

https://blog.michaelrbparker.com/post/17
1•birdculture•14m ago•0 comments

A database of analog cameras that can be 3D printed

https://printed.analogcamera.space/
1•thomasjb•14m ago•0 comments

Artemis II astronaut finds two Outlook instances running on computers

https://www.tomshardware.com/software/microsoft-office/artemis-ii-astronaut-finds-two-outlook-ins...
1•doener•15m ago•1 comments

Proton Meet Isn't What They Told You It Was

https://www.sambent.com/proton-meet-isnt-what-they-told-you/
2•bundie•17m ago•0 comments

Say No to ZeroVer: Start with 1.0.0

https://blog.nytsoi.net/2026/04/03/say-no-to-zero-ver/
1•thomasjb•21m ago•0 comments

France plans missile increase in new defense push

https://www.politico.eu/article/france-eyes-huge-missile-boost-new-defense-plan-document-shows/
4•vrganj•23m ago•1 comments

Show HN: My portfolio as a working terminal (vanilla JavaScript, one HTML file)

https://dzienko.dev/
2•Brosper•28m ago•1 comments

A Giant Leap Towards an AI-Native OS: AgenticInit (April Fools)

https://os.ewe.moe/blog/202604-april-fool
1•uneven9434•30m ago•0 comments

Life gave us lemon trees

https://nothingisnotafish.substack.com/p/life-gave-us-lemon-trees
1•gaodean•31m ago•0 comments

Agent as User, a new tool to help you run agent in isolated user environment

https://github.com/AgentaaU/AaaU
1•shylockhg•31m ago•1 comments

I Made a Terminal Pager

https://theleo.zone/posts/pager/
2•speckx•34m ago•0 comments

Cute Animal Heroic Interval

https://medium.com/luminasticity/cute-animal-heroic-interval-c38d0dc84d05
1•bryanrasmussen•38m ago•0 comments

OpenHarness: Open Agent Harness

https://github.com/HKUDS/OpenHarness
2•msolujic•38m ago•0 comments

Hardware supply chain attack in the wild

https://airguide.info/europes-easa-warns-stolen-engine-parts-may-re-enter-supply-chain/
2•jackpepsi•39m ago•0 comments

Fathom: AI hallucination detection from SAE activation geometry (pre-registered)

https://zenodo.org/records/19382453
3•fathom_geo•40m ago•0 comments

A CSS Engine in OCaml

https://gazagnaire.org/blog/2026-04-02-cascade.html
4•p4bl0•42m ago•0 comments

Ask HN: Has Claude Code become significantly worse for you as well?

3•bkfh•43m ago•1 comments

US Bans All Foreign-Made Consumer Routers

https://www.schneier.com/blog/archives/2026/04/us-bans-all-foreign-made-consumer-routers.html
4•jruohonen•43m ago•0 comments

A Simple and Universal Swarm Intelligence Engine, Predicting Anything

https://github.com/666ghj/MiroFish
4•amirouche•48m ago•0 comments

Ask HN: How do you avoid or identify a poisoned skill?

2•skillcompass•50m ago•1 comments

A Brief History of the Dust Jacket

https://firstruleofbookclub.com/book-history/a-brief-history-of-the-dust-jacket/
3•jjgreen•54m ago•0 comments

NASA astronauts prove that sending an email is rocket science

https://techcrunch.com/2026/04/02/nasa-artemis-microsoft-outlook-astronauts/
3•ludovicianul•55m ago•0 comments

LipoVive Weight Loss Formula Reviews 2026 – See Real Results

https://www.morningstar.com/news/accesswire/1138075msn/lipovive-reviews-shocking-2026-report-what...
3•hanisatx•55m ago•1 comments

MCP Connectors for Marketers: The 5-Minute Setup

https://aiforcontentmarketing.ai/mcp-connectors-for-marketers-the-5-minute-setup-that-connects-yo...
2•pakostina•59m ago•0 comments

They thought they were downloading Claude Code source

https://www.theregister.com/2026/04/02/trojanized_claude_code_leak_github/
3•jruohonen•59m ago•0 comments