frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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!

I run gratitude circles (2025)

https://mxstbr.com/notes/gratitude-circles
1•mooreds•37s ago•0 comments

A.I. Doesn't Have to Mean Layoffs a French Multinational, Schneider Electric

https://www.nytimes.com/2026/05/29/business/economy/ai-jobs-productivity.html
1•pgrote•40s ago•0 comments

Was I Married to a Stranger? (2023)

https://www.nytimes.com/2023/06/30/style/modern-love-married-to-a-stranger.html
1•mooreds•55s ago•0 comments

Hookwarden: Find missing webhook signature verification(JS/TS,Python,PHP)

https://github.com/Hookwarden/hookwarden
1•adelinalipsa•2m ago•0 comments

Show HN: Extend AI turns a voice note into posts that sound like you

https://extend.redsystem.dev
1•crlapples•5m ago•0 comments

Collection of Claude Code Skills

https://github.com/glebis/claude-skills
1•ankitg12•7m ago•0 comments

Probabilistic, Reformative Justice

https://www.lesswrong.com/posts/dqbhcm6g7CMWvhoid/probabilistic-reformative-justice
3•mdurana•8m ago•0 comments

The Taming of the Screw (2000)

https://www.americanhistory.si.edu/subs/anglesdangles/taming.html
2•downbad_•8m ago•0 comments

US, UK and Australia to develop underwater drone technology

https://www.bbc.com/news/articles/c5y8wjvd1ypo
1•maxloh•9m ago•0 comments

Skill Distillation

https://tomtunguz.com/the-pi-agent-skill-distillation/
1•walterbell•10m ago•0 comments

Seriously Off-Topic, But: Things My Girlfriend and I Have Argued About

http://thingsmygirlfriendandihavearguedabout.com/
1•dxs•11m ago•0 comments

Was Einstein Just Autocomplete?

https://audriusberzanskis.substack.com/p/was-einstein-just-autocomplete
1•audriusber•13m ago•1 comments

Canonical takes over Flutter desktop maintenance

https://www.omgubuntu.co.uk/2026/05/flutter-desktop-canonical-maintained
1•maxloh•13m ago•0 comments

Semantic knowledge (TF-IDF and tool-IDF and clustering) from Claude sessions

https://github.com/chigichan24/crune
1•ankitg12•14m ago•0 comments

Is Astranis Preparing for Acquisition via SPAC?

https://shielddigitaldesign.com/posts/2026/astranis-acquisition/
1•stn8188•15m ago•0 comments

Webcam head tracking, webcam to control in‑game FOV

https://www.openfov.com/
1•mwit2023•16m ago•0 comments

AI Job Grief: The Unnamed Psychological Crisis Hitting Tech Workers

https://jackmaguire.org/blog/ai-job-grief/
3•LilBytes•17m ago•1 comments

mvzr: Minimum Viable Zig Regex

https://github.com/mnemnion/mvzr
2•tosh•18m ago•0 comments

Leap 71 Computational Engineering Podcast [video]

https://www.youtube.com/watch?v=OI4v77ONPlc
1•timventura•22m ago•1 comments

Local first and portable CI with Pixi

https://prefix.dev/blog/portable-ci-with-pixi
1•droelf•23m ago•1 comments

The RIGGED attention system of this website needs to be ERADICATED

1•Ahhhhhh2664645•24m ago•0 comments

Coders are refusing to work without AI – and that could come back to bite them

https://techcrunch.com/2026/05/29/coders-are-refusing-to-work-without-ai-and-that-could-come-back...
3•Brajeshwar•26m ago•0 comments

GrafoPropagation Strong Model [video]

https://www.tiktok.com/@claudio.fernandes165/video/7645614973263056161
1•sunbagger•27m ago•0 comments

Factorio to halt development after upcoming update

https://factorio.com/blog/post/fff-440
2•delichon•28m ago•1 comments

I Gave an AI Agent $0 and Told It to Make $10k

https://costder.github.io/2026/05/hbf-ai-agent-zero-to-10k/
1•SoulForge•29m ago•1 comments

NixOS 26.05 Released

https://discourse.nixos.org/t/nixos-26-05-released/77930
2•thefossguy69•30m ago•1 comments

Voxel Space

https://s-macke.github.io/VoxelSpace/
23•davikr•33m ago•2 comments

Genomic test could spare breast cancer patients chemotherapy

https://www.theguardian.com/society/2026/may/29/groundbreaking-genomic-test-spare-breast-cancer-p...
3•marc__1•33m ago•0 comments

Is Sandpack Broken on iOS-Safari?

https://sandpack.codesandbox.io/docs/advanced-usage/components
1•razodactyl•35m ago•1 comments

Near-invisible solar cells that could turn windows into power generators

https://www.ntu.edu.sg/news/detail/near-invisible-ultrathin-solar-cells-that-could-turn-windows-i...
3•wjSgoWPm5bWAhXB•39m ago•0 comments