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!

Dow's record close hides a rotation away from tech

https://www.disruptionbanking.com/2026/07/06/the-dows-record-52900-close-hides-a-bigger-story-wal...
1•emsidisii•26s ago•0 comments

What Claude Code Orchestrator Loops Look Like in Practice

https://old.reddit.com/r/ClaudeAI/comments/1up0614/how_to_build_insanely_powerful_orchestrator_lo...
1•bgnm2000•1m ago•0 comments

Show HN: Char-width – final answer to measure terminal text width

https://www.npmjs.com/package/char-width
1•dawson0•2m ago•0 comments

Can I get some brutally honest feedback on a Chrome extension I built at 16?

https://chromewebstore.google.com/detail/readback-–-universal-cont/pomfhagjojbnfmgmldkpakfggpdp...
1•ceoakshat•3m ago•0 comments

NostalgicPod – iPod-like music player for Android

https://nostalgicpod.com/en/
2•LorenDB•4m ago•0 comments

Adoption and Impact of Command-Line AI Coding Agents at Microsoft [pdf]

https://arxiv.org/abs/2607.01418
1•azhenley•4m ago•0 comments

Show HN: A Wordle game that insults you as you play

https://smugexe.trydoff.dev
1•shreyasjk•5m ago•0 comments

The Red Queen Gödel Machine: Co-Evolving Agents and Their Evaluators

https://arxiv.org/abs/2606.26294
2•niclane7•6m ago•0 comments

Show HN: A website that shows every pro triathlete's swim, bike, and run gear

https://racekit.pro
1•mpc75•7m ago•1 comments

Orasort: 5x faster column-sorting with an expired patent from Oracle

https://deepsystemstuff.com/how-oracles-secret-column-sorting-technique-became-public-after-its-p...
1•theanonymousone•8m ago•0 comments

A Tale of Two Irans

https://a16z.com/this-is-a-tale-of-two-irans/
1•kehiy•10m ago•0 comments

Behind the Refusal: Determining Guardrail Activation via Behavioral Monitoring

https://arxiv.org/abs/2607.02121
1•Jimmc414•10m ago•0 comments

When Albert Einstein & Charlie Chaplin Met and Became Fast Famous Friends (1930)

https://www.openculture.com/2026/07/when-albert-einstein-charlie-chaplin-met.html
1•Brajeshwar•10m ago•0 comments

Can you run every line of code in Super Mario Bros.? [video]

https://www.youtube.com/watch?v=o0gOALTvkcc
1•dbl000•12m ago•0 comments

Show HN

https://vorcigernix.github.io/rohrpost/
1•vorcigernix•13m ago•2 comments

Local translation: when small dedicated models beat Goliath

https://qvac.tether.io/blog/local-translation-when-small-dedicated-models-beat-goliath/
1•delduca•14m ago•0 comments

LeetCode but not as a product but a learning tool

https://cses.fi/problemset/text/2433
1•callsign_bats•15m ago•0 comments

I built an out-of-the-box self-hosting infrastructure. How can I improve it?

https://github.com/canntstand/ServeHub-2
1•canntstand•16m ago•1 comments

It's true – AI will replace _most_ software engineers

https://getsmall.xyz/post/cmp5lur8h0003vyr7dxes60rh
1•trezm•16m ago•1 comments

Autoresearch: The feedback loop behind self-improving agents

https://www.latent.space/p/autoresearch-introspection
1•gmays•17m ago•0 comments

Young People Watch TikTok, Not Television

https://www.wsj.com/opinion/young-people-watch-tiktok-not-television-6142cdf7
1•bookofjoe•19m ago•1 comments

Millions may be getting the wrong cholesterol test

https://www.sciencedaily.com/releases/2026/06/260626125714.htm
1•brandonb•20m ago•0 comments

Show HN: Voltius – open-source SSH/SFTP client, built in Rust

https://voltius.app
2•kipavy•20m ago•0 comments

Pulpie: Models for Cleaning the Web

https://usefeyn.com/blog/pulpie-pareto-optimal-models-for-cleaning-the-web/
1•snyy•21m ago•1 comments

Apple Startup Sounds

https://froods.ca/~dschaub/sound.html
1•gregsadetsky•21m ago•0 comments

AI-friendly architecture: write better software, not just more of it

https://purple-hammer.com/blog/ai-friendly-architecture.html
1•AriIs•22m ago•0 comments

Union Busters Coming After Me

https://www.nlrbedge.com/p/union-busters-coming-after-me
3•anothermathbozo•22m ago•0 comments

UK regulator warns of "arms race" to keep up with AI use in financial services

https://arstechnica.com/ai/2026/07/uk-regulator-warns-of-arms-race-to-keep-up-with-ai-use-in-fina...
2•secret_hawk_25•23m ago•0 comments

They got something on the screen

https://graybeard.ing/they-got-something-on-the-screen/
1•rglover•23m ago•0 comments

How to design a cancer vaccine (and vastly improve them)

https://www.owlposting.com/p/how-to-design-a-cancer-vaccine-and
2•crescit_eundo•24m ago•0 comments