Skip to content

Instantly share code, notes, and snippets.

@devilankur18
devilankur18 / doc.md
Last active May 23, 2026 14:03
TokenZip v2 — PRD, HLD, LLD

TokenZip — PRD, HLD, LLD


📋 PRD — Product Requirements Document

1. Executive Summary

TokenZip v2 transforms Karpathy's llm wiki concept into a gzip like token compression engine on top of entire codebase, which can reduce the LLM input token cost upto by 95% when using with Coding Copilots like Claude Code, Codex etc. Instead of generating a flat text summary, it builds a multi-level, queryable, chainable knowledge graph — from repo → modules → files → symbols — stored locally in .tokenzip/db, exposed as an MCP server for any AI copilot, and kept fresh via git hooks