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!

Electric Approaches Reshape Carbon Capture Tech

https://spectrum.ieee.org/direct-air-carbon-capture-electric
1•rbanffy•30s ago•0 comments

NASA Backs Quantum Path to Detect Gravitational Waves

https://www.universetoday.com/articles/a-quantum-trick-for-spotting-gravitational-waves
1•rbanffy•47s ago•0 comments

What Kotlin migration costs (a playbook by Verifone's chief architect)

https://kotlinlang.org/lp/enterprise-playbook/
1•lurking_fun•2m ago•0 comments

One of the World's 'Most Wanted' Lost Fish Is Rediscovered

https://e360.yale.edu/digest/spinach-pipefish-rediscovered
1•Brajeshwar•3m ago•0 comments

20+ YC startups have recently published machine learning research

https://www.empirical.health/blog/yc-startups-publishing-ai-research/
1•brandonb•4m ago•0 comments

ThinkRail – The worktree IDE for the pi coding agent

https://thinkrail.ai/
1•jlkuester7•4m ago•0 comments

SRE AI Agents in Trendyol

https://medium.com/trendyol-tech/sre-ai-agents-in-trendyol-098057b9dd31
1•altunsoy•5m ago•0 comments

Tata's B2B platform returned OTPs in API responses

https://eaton-works.com/2026/08/24/tata-nexarc-hack/
2•EatonZ•7m ago•0 comments

Show HN: MTL Exits – mapping train cars and doors to station exits

https://mtlexits.ca/
1•63labs•8m ago•0 comments

Micleus Naturalese: an AI filter in pure Rust, no embeddings, no agents

https://micleus.netlify.app/
1•aleintour•11m ago•0 comments

Show HN: Onlybun – a package that refuses to run on anything except Bun

https://github.com/Dong-Chen-1031/onlybun
2•DongChen1031•13m ago•0 comments

Another look at SQLite's WAL-Reset bug

https://theconsensus.dev/p/2026/08/23/another-look-at-sqlite-wal-reset.html
2•onatm•13m ago•0 comments

CS2 Retake Suite: 7 open-source C# plugins for Counter-Strike 2 servers

https://github.com/NeuTroNBZh/CS2-Retake-Suite
1•louiscercle35•13m ago•0 comments

Show HN: Neverbun – import it and your program exits if it's running on Bun

https://github.com/Dong-Chen-1031/neverbun
2•DongChen1031•13m ago•0 comments

Enabling the next-generation trait solver on Rust nightly

https://blog.rust-lang.org/2026/08/21/enabling-next-solver-on-nightly/
2•AndrewDucker•14m ago•0 comments

Show HN: Browse Hacker News inside any harness without using any tokens

https://github.com/LudeeD/clacker
1•ludee0•15m ago•0 comments

Many faces of expertise: fusiform face area in chess experts and novices (2011)

https://pubmed.ncbi.nlm.nih.gov/21752997/
1•Jimmc414•16m ago•0 comments

GNU Emacs 31.1 Released Mouse Control Enabled by Default Theme for New Users

https://www.phoronix.com/news/GNU-Emacs-31.1-Released
3•DemiGuru•16m ago•0 comments

Humanoid robots smash Usain Bolt's 100-meter record

https://www.theverge.com/tech/983688/world-humanoid-robot-games-sprint-record-2026
2•Brajeshwar•16m ago•0 comments

Why: Long context is not memory [pdf]

https://why.com/whitepaper.pdf
1•rasheed106•17m ago•0 comments

The Harness Is the Company

https://blog.sshh.io/p/the-harness-is-the-company
1•sshh12•18m ago•0 comments

Update: Source download: Browse, inspect and download every asset as a ZIP

https://github.com/turanburakyesilyurt/source-download
1•2rundev•18m ago•0 comments

No NPM install. No dev server. Running React templates straight in the browser

https://blog.crossui.com/2026/08/no-install-no-dev-server-vibe-coding-era
1•linb•19m ago•0 comments

You've heard of CSV files, but have you heard of CCSV files?

https://robida.net/entries/2026/08/12/youve-heard-of-csv-files-but-have-you-heard-of-ccs
1•surprisetalk•19m ago•0 comments

Show HN: Keep your coding agents on track

https://github.com/treadiehq/codecut
1•dantelex•19m ago•0 comments

Show HN: Track it easy – Log food and count calories in one simple chat

https://trackiteasy.app/
5•Tintly•22m ago•3 comments

Play Dates

https://dogdogfish.com/blog/2026/08/24/play-dates/
2•matthewsharpe3•22m ago•0 comments

Crafting QR Codes: A deep dive into QR code art

https://kylezhe.ng/writes/crafting-qr-codes
1•subset•24m ago•0 comments

Show HN: Sign Android APKs with schemes v2, v3 pure Python CLI

https://github.com/adityatelange/sign-apk-py
2•adityatelange•25m ago•0 comments

The AI-Native SDLC Playbook

https://claude.com/blog/the-ai-native-sdlc-playbook
2•_nivlac_•26m ago•0 comments