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!

Britain to make salary disclosure in job ads mandatory

https://www.reuters.com/business/world-at-work/britain-make-salary-disclosure-job-ads-mandatory-2...
2•1659447091•4m ago•0 comments

Ask HN: If you had unlimited Claude credits, what would you build and why?

1•anragyadev•6m ago•2 comments

PwnPad – hardware hacking platform built for practical learning

https://github.com/twelvesec/PwnPad
1•therepanic•7m ago•0 comments

Peer Learning Between Agents in a Multi-Agent Team

https://github.com/Mininglamp-AI/Octo
1•ElenaDaibunny•8m ago•0 comments

AML Cycle 2: Do agent memory rankings hold across tracks?

https://twitter.com/AgentMemoryL/status/2117617801296802085
1•SndOfViento•9m ago•0 comments

ChatGPT Image 2.6

https://openai.com/vi-VN/index/introducing-images-2-6/
1•backrun•10m ago•0 comments

AML Cycle 2: What to look for when the results drop

https://x.com/AgentMemoryL
1•IreneAI•11m ago•0 comments

Codet JSON

1•fifflesticks•11m ago•0 comments

Ask HN: What workspace/productivity tools do you use and why?

1•anragyadev•14m ago•1 comments

World of Warcraft Forever's Launch Was Running on over 200k Gigabytes of RAM

https://www.ign.com/articles/world-of-warcraft-forevers-launch-was-running-on-over-200000-gigabyt...
1•Element_•16m ago•0 comments

AI Bicep Heart

https://www.aibicepheart.com
1•daisyjin•19m ago•0 comments

I use AI to draft software docs

https://ai-techwriter.com/best-practices/use-ai-to-draft-sw-docs/
2•taubek•22m ago•0 comments

Active Benchmarking

https://www.brendangregg.com/activebenchmarking.html
3•dboon•23m ago•0 comments

Running untrusted JavaScript inside Elixir with WebAssembly

https://amanitaproject.com/posts/2026-06-14-running-untrusted-javascript-inside-elixir-with-webas...
2•lupodevelop•24m ago•1 comments

Budget offers $50B jolt to help Canada double its electricity grid

https://www.cbc.ca/news/politics/electricity-budget-new-money-9.7410949
5•geox•26m ago•0 comments

OpenAI is quietly renaming data centers 'compute campuses'

https://www.theverge.com/ai-artificial-intelligence/1025242/openai-quietly-renames-data-centers-a...
2•herpderperator•31m ago•0 comments

Digital Hygiene (2025)

https://karpathy.bearblog.dev/digital-hygiene/
2•7777777phil•34m ago•0 comments

The quiet disappearance of the non-technical engineering manager

https://medium.com/@emilyhustlenyc/the-quiet-disappearance-of-the-non-technical-engineering-manag...
4•robinhoodexe•34m ago•1 comments

OpenAI Just Found Nearly 1k Ways to Gain Root Access in Linux

https://hothardware.com/news/openai-just-found-nearly-1000-ways-to-gain-root-access-in-linux
3•axelfontaine•42m ago•0 comments

Groundbreaking Upgrade to SVG Is Approaching: Linked Parameters Are Almost Here

https://blog.kizu.dev/link-parameters-soon/
3•robin_reala•44m ago•0 comments

Fractal patterns reveal hidden limits to AI predictability

https://www.msn.com/en-us/science/mathematics/fractal-patterns-reveal-hidden-limits-to-ai-predict...
2•galaxyLogic•44m ago•0 comments

Show HN: Mantis – AI agents browse 36% faster than with Playwright MCP

https://github.com/perzianhq/mantis
2•aaditsingal7859•48m ago•0 comments

Great Blue Norther of November 11, 1911

https://en.wikipedia.org/wiki/Great_Blue_Norther_of_November_11,_1911
1•handfuloflight•50m ago•0 comments

ING Said to Be Seller of $500M Data Center Loan Portfolio

https://www.bloomberg.com/news/articles/2026-11-05/mystery-seller-puts-up-500-million-data-center...
3•toomuchtodo•50m ago•1 comments

The Scarlet Letter for the Honest: A Short Pamphlet on the New Witch Hunt

https://medium.com/@smoking2man/the-scarlet-letter-for-the-honest-a-short-pamphlet-on-the-new-wit...
2•Aldus551•56m ago•0 comments

Delaware plan would let AI agents run businesses

https://arstechnica.com/tech-policy/2026/10/no-human-at-the-helm-delaware-plan-would-let-ai-agent...
2•jonbaer•59m ago•0 comments

WhatsFlow CRM – Client-side sales pipeline and receipts for WhatsApp Web

https://chromewebstore.google.com/detail/whatsflow-crm-seller-vaul/dkhhcnchpoopgkdphmjiljfldinpmibk
2•laxsaj•1h ago•0 comments

AI is changing mathematics – but not how you think

https://www.npr.org/2026/11/04/nx-s1-6010471/ai-math-navier-stokes-mathematicians-openai
2•theanonymousone•1h ago•0 comments

The Hitchhiker's Guide to Training on Compute Islands

https://www.coreauto.com/hitchhikers-guide-to-training-on-compute-islands
1•gmays•1h ago•0 comments

Who are the darktable users in 2022?

https://eng.aurelienpierre.com/2026/07/who-are-the-darktable-users-in-2022/
1•xiaoyu2006•1h ago•0 comments