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!

Opkssh integrating single sign-on with SSH (2025)

https://www.ethanheilman.com/x/33/index.html
1•EthanHeilman•1m ago•0 comments

Text Is My Gimmick

https://aethermug.com/posts/text-is-my-gimmick
1•mrcgnc•3m ago•0 comments

Why in Building Protocols, Like Code, Starting over Is Dumb

https://lowentropy.net/posts/whole-new-protocol/
1•speckx•3m ago•0 comments

Show HN: A little physical breakout clone

https://brontosaurusrex.github.io/physical/v7/
1•brontosaurusrex•5m ago•0 comments

Alternative Medicine for Chickens

https://ambrook.com/offrange/livestock/they-gave-grapes-to-a-chicken
1•surprisetalk•6m ago•0 comments

NASA Just Spotted a Wandering Black Hole Devouring a Star

https://nautil.us/nasa-just-spotted-a-wandering-black-hole-devouring-a-star-1283245
1•Brajeshwar•7m ago•0 comments

BitBang – turn any machine into a URL

https://github.com/richlegrand/bitbang-cli
1•narragansett•7m ago•1 comments

Bypassing Claude's upload limits, 4x (500 MB → 2 GB)

https://blog.zernote.com/2gb-user-interviews-into-claude/
3•fenix1851•7m ago•0 comments

Why AI investor Leopold Aschenbrenner is selling all stocks

https://www.cnbc.com/2026/07/30/leopold-aschenbrenners-hedge-fund-is-facing-steep-ai-losses.html
1•speckx•8m ago•0 comments

How many people are dying as a result of USAID's demise?

https://www.economist.com/finance-and-economics/2026/07/30/how-many-people-are-dying-as-a-result-...
2•andsoitis•8m ago•0 comments

Booritney's ultimate guide to meal prep

https://www.booritney.com/p/booritneys-ultimate-guide-to-meal
1•tasshin•10m ago•0 comments

End of Oncall Era of Pagerduty

https://github.com/FluidifyAI/Regen
1•furyman•13m ago•0 comments

ISO 3103

https://en.wikipedia.org/wiki/ISO_3103
1•EndXA•13m ago•0 comments

Why everything breaks at 150 people

https://falconer.com/notes/cerebras-knowledge-base/
1•cyndunlop•14m ago•0 comments

Making My Own Game Console Part 2: IT Lives [video]

https://www.youtube.com/watch?v=S81iN-z0ouo
1•mrinfinite•14m ago•0 comments

OpenClaw – On the Road to LTS

https://openclaw.ai/blog/extended-stable-releases-and-maturity-scorecards
1•lgl•15m ago•0 comments

Understanding AWS IAM Roles for Service Accounts (IRSA) from First Principles

https://arcade-lab.io/blog/irsa-without-eks-self-hosted-oidc
1•denesbeck•15m ago•0 comments

Show HN: I built a tool that reviews any GitHub PR and quizzes you on it

https://makesensegithub.com/
4•atomicnature•16m ago•0 comments

Leverage Points

https://donellameadows.org/archives/leverage-points-places-to-intervene-in-a-system/
1•tosh•18m ago•0 comments

212k AI coding benchmarks: context beats generic prompts

https://techloom.it/blog/effective-ai-coding-prompts/
1•tmuhlestein•19m ago•0 comments

I Accidentally Became the DevOps Guy

https://sgaud.com/texts/devops
1•SarthakGaud•19m ago•0 comments

NY sues prediction market Kalshi alleging it's an illegal gambling operation

https://www.cnn.com/2026/07/31/politics/new-york-sues-kalshi-prediction-market
3•pavel_lishin•20m ago•1 comments

Arch AUR Under Another Wave of Malicious Packages, Package Adoptions Halted

https://www.phoronix.com/news/Arch-Linux-AUR-Adoptions-Halted
1•ImJamal•21m ago•0 comments

Why is differentiating mechanics and integration art?(2011)

https://mathoverflow.net/questions/66377/why-is-differentiating-mechanics-and-integration-art
1•num42•22m ago•0 comments

Detect Dark Matter's Mark from Your Backyard

https://spectrum.ieee.org/dark-matter
5•Brajeshwar•23m ago•0 comments

Show HN: Active inference world models: From finding a mug to making tea

https://cpnslab.com/active-inference-world-models/
1•alexdshaw•25m ago•0 comments

Effects in Hale

https://hale-lang.org/articles/effects-in-hale/
2•rrook•26m ago•1 comments

Show HN :Tandem – one session across Claude Code and Codex, no double spend

https://github.com/Bhavya6187/tandem
1•bhavya6187•26m ago•0 comments

Seattle's Third Act

https://www.ascend.vc/blog/seattles-third-act
2•surprisetalk•28m ago•0 comments

Show HN: Run manual QA test cases in a real browser with an AI agent

https://github.com/broxhq/qpilot
3•Muhammad-21•29m ago•0 comments