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!

Linux distribution is a security policy

https://brianredbeard.com/blog/sshhole-vulnerability/
1•thebeardisred•56s ago•0 comments

Debug your HTTPS/HTTP traffic

https://novawire.dev
1•vewello•3m ago•0 comments

Show HN: Ls-service – minimal, namespaced, and typed localStorage wrapper

https://github.com/brysonbw/ls-service
1•Brysonbw•3m ago•0 comments

Lab-grown meat was supposed to save the world. What happened?

https://www.theguardian.com/news/ng-interactive/2026/nov/05/lab-grown-meat-save-the-world-food-re...
1•tosh•5m ago•0 comments

Venice's lagoon dredging approved: the combined impact was "assessed elsewhere"

https://andreafontana.it/en/venice-vittorio-emanuele-canal-go-ahead.html
1•trikko•5m ago•0 comments

Wix stolen my .com domain

2•wixcom•6m ago•1 comments

How to Make Things, and Why – Stuart Halloway (Clojure/Conj 2026) [video]

https://www.youtube.com/watch?v=7yeH1DqK984
2•wofo•6m ago•0 comments

Visualizing Fast Tokens

https://tokens.chengeric.com/
1•eh8•6m ago•1 comments

Many diagnosed with a peanut allergy don't realize they may not have it anymore

https://www.washingtonpost.com/health/2026/11/04/many-diagnosed-with-peanut-allergy-dont-realize-...
1•gmays•7m ago•0 comments

Show HN: calsdk, one TypeScript API for Google Calendar, Outlook and iCloud

https://github.com/vkpdeveloper/calsdk
2•vkpdeveloper•7m ago•0 comments

Introducing Pangram Image 1.0

https://www.pangram.com/blog/introducing-pangram-image-1-0
2•gmays•11m ago•0 comments

Reverse-engineering Kiro-account-manager: AWS accounts and Claude distillation

https://hansdekker.dev/writing/fraudulent-aws-accounts-claude-distillation/
1•ioshaan•12m ago•1 comments

Wgpu merges support for raytracing pipelines

https://github.com/gfx-rs/wgpu/pull/10144
1•molive•12m ago•0 comments

What does good rogue agent disclosure etiquette look like?

https://www.itbrew.com/stories/what-does-good-rogue-agent-disclosure-etiquette-look-like
1•codyznash•13m ago•0 comments

Consistency Models

https://jepsen.io/consistency/models
1•alihm•13m ago•0 comments

Search engine for Centuries of art, photography, illustration from great museums

https://arkivism.com/
2•akudha•13m ago•1 comments

Dept of Justice probes Nvidia over $13B Hugging Face acquisition

https://www.tomshardware.com/tech-industry/artificial-intelligence/dept-of-justice-reportedly-pro...
3•gmays•14m ago•0 comments

Identity in an Advanced Nation

https://dgwbirch.substack.com/p/identity-in-an-advanced-nation
1•mooreds•15m ago•0 comments

Show HN: Thinker – Trim context and cache knowledge to extend agent usage limits

https://thinker.sh/how-it-works
1•yoavshmariahu•17m ago•0 comments

Show HN: Keynate – News sites and blogs installed on your own server in minutes

https://www.keynate.com
1•kanhaiya2909•18m ago•0 comments

Show HN: Umbel – Remote-control agent CLIs over tmux

https://github.com/jahala/umbel
1•jahala•21m ago•0 comments

Building the Software That Lets People Control NYC's Skyline Lights

https://www.stackbuilders.com/case-studies/spireworks/
1•StackBuilders•21m ago•0 comments

Hungary: Communist-era files released, up to 60k former agents revealed

https://www.euronews.com/2026/11/04/hungary-communist-era-files-opened-up-to-60000-former-agents-...
5•rdmuser•22m ago•0 comments

Read Books with Visuals ASAP

https://picta-jet.vercel.app
1•aaron_dutta•23m ago•0 comments

Z Is Diophantine in Q

https://github.com/elliotglazer/diophantine-z-q
1•bananaflag•24m ago•0 comments

New Daily Minigame

https://profiled.today/
1•AhmedForReal•24m ago•0 comments

AI Makes Building Easy. Failing First Is the Hard Part

https://brian.biz/blog/fail-fast-fail-often/
1•BrianWoods•24m ago•0 comments

Is Flying Private Less Safe? How the Rules Differ from Commercial Airlines

https://www.wsj.com/business/airlines/is-flying-private-less-safe-heres-how-the-rules-differ-from...
2•thm•25m ago•0 comments

NASA Navigation Experiment Shows Promise for Planetary Landings

https://www.nasa.gov/centers-and-facilities/armstrong/nasa-navigation-experiment-shows-promise-fo...
2•titusblair•25m ago•0 comments

GDPx agent benchmark: cost per point for 12 models, and the safety-filter caveat

https://theainewsreport.com/2026-11-05-semianalysis-gdpx-agent-benchmark-cost-per-point-explained...
1•titusblair•26m ago•0 comments