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!

"Long-Term Support" doesn't mean what you think

https://pointieststick.com/2026/05/23/long-term-support-doesnt-mean-what-you-think/
1•yonatan8070•1m ago•0 comments

My game just went viral on Reddit? vibecoded it as a joke, iterating like crazy

https://gunguesser.com
2•abhahbnar•2m ago•0 comments

The U.S. Education Department fired workers. Now, it's on a hiring spree

https://text.npr.org/nx-s1-5820922
1•williadc•2m ago•0 comments

A Cattle Ranch Is Doing What Ivy League Colleges Can't

https://www.nytimes.com/2026/05/20/opinion/deep-springs-college-ivy-league-education.html
1•mooreds•2m ago•0 comments

Jimmy Carr on Why Everyone Is Wrong About AI [video]

https://www.youtube.com/watch?v=jaYOskvlq18
1•mooreds•2m ago•0 comments

Show HN: Mac app that unlocks superpowers for GhostCMS sites

https://spectersync.com/
1•aabergkvist•3m ago•0 comments

Only In Monroe –- May 22, 2026 [video]

https://www.youtube.com/watch?v=jJTXB5uT_C4
1•mooreds•3m ago•1 comments

Pardon MIE?

https://ironpeak.be/blog/bypassing-apple-mie/
1•jiveturkey•4m ago•0 comments

The Enshittification of History

https://www.antipope.org/charlie/blog-static/2026/05/the-enshittification-of-histor.html
1•HotGarbage•4m ago•0 comments

Deepfake vids degrade political reputations even when viewers know they're fake

https://www.psypost.org/deepfake-videos-degrade-political-reputations-even-when-viewers-realize-t...
1•gnabgib•7m ago•0 comments

Claude Code isolated inside Docker with dmenu and fzf (POSIX sh)

https://github.com/shirozuki/claude-cli
1•shirozuki•9m ago•0 comments

Show HN: Money Me – finance app that shows your actual spendable balance

https://money-me.com
1•markbarnett3•9m ago•0 comments

Hearts and Minds: An Ambivalent Review of "Project Hail Mary"

https://www.rifters.com/crawl/?p=11659
1•spariev•9m ago•0 comments

zellij-org/awesome-zellij: A list of resources for zellij

https://github.com/zellij-org/awesome-zellij
2•y1n0•12m ago•0 comments

I've Spent 25 Years Studying Loneliness. AI Is About to Make It Worse

https://fortune.com/2026/05/23/loneliness-researcher-ai-companions-social-disconnection-warning/
3•Brajeshwar•15m ago•0 comments

'Future of work' on agenda as NZ govt digital leaders head to Microsoft US HQ

https://www.rnz.co.nz/news/political/596121/future-of-work-on-agenda-as-nz-govt-digital-leaders-h...
4•billybuckwheat•18m ago•0 comments

Garden Grove chemical threat: 40000 evacuated as overheated tank faces explosion

https://www.cnn.com/2026/05/22/us/chemical-spill-orange-county-california
2•amelius•19m ago•0 comments

Edit components and host your website

https://slatehut.com
1•isandeep1995•24m ago•0 comments

Show HN: Runners? This One for You

https://runnerapp.pro/
1•dortal•24m ago•0 comments

Prompts are technical debt too

https://www.seangoedecke.com/prompts-are-technical-debt-too/
1•saikatsg•25m ago•0 comments

Code review is not about catching bugs

https://www.davidpoll.com/2026/02/code-review-is-not-about-catching-bugs/
1•ville•26m ago•0 comments

GateGraph – a gate that decides if an AI agent action may proceed before it runs

https://github.com/humancoreai/Gategraph
1•humancore•29m ago•0 comments

Air France and Airbus found guilty of manslaughter over 2009 plane crash

https://www.bbc.com/news/articles/czd2qmdvmq6o
3•baal80spam•31m ago•0 comments

Planescape: Torment, Part 1: From the Tabletop

https://www.filfre.net/2026/05/planescape-torment-part-1-from-the-tabletop/
1•birdculture•33m ago•0 comments

Claude doesn't know what time it is

https://blog.danielyj.com/blog/please-give-it-a-clock
4•bear_with_me•40m ago•1 comments

European households waste > 70 kg of food per capita yearly

https://www.sciencedirect.com/science/article/pii/S0956053X26002060
1•rustoo•42m ago•0 comments

Google's Gmail to Offer 1GB Email Storage? (2004)

https://m.slashdot.org/story/44639
3•chistev•42m ago•0 comments

Free Quick Fix Design Tools

https://quickfix.tools/design/
1•mlongo•42m ago•1 comments

Ask HN: Why disparage AI while attributing ideas to AI when written with it?

1•amichail•42m ago•6 comments

Show HN: nsS3ui – A non sucking GUI for S3

1•isuleman•44m ago•2 comments