T-Zero

•
90
•

Compress codebase context deterministically via AST pruning and provide developer tools to eliminate LLM hallucinations and reduce token costs.

T-Zero is an open-source deterministic code context compression engine and Model Context Protocol (MCP) server engineered to solve the context window token crisis in modern AI coding environments. By delivering the target focus file at 100% implementation while stripping surrounding dependencies into minimal AST interface skeletons, it achieves up to 94.6% token reduction without sacrificing task accuracy. Operating entirely locally and offline, T-Zero combines canonical MCP tools with Pre-Flight Reality-Lock AST validation and Shannon entropy credential scrubbing to safeguard secrets, prevent model hallucinations, and slash AI inference expenses across editors like Cursor, Claude Code, VS Code, and Windsurf.

주요 기능

01Smart Skeleton AST compression that prunes method bodies while preserving type signatures, interfaces, and docstrings
02Zero-Leak security scanner using Shannon entropy (H ≥ 4.75) to detect and redact API keys, credentials, and high-entropy secrets
03Full offline hybrid BM25 and TF-IDF semantic code search without external vector DBs or API fees
0411 GitHub stars
05Pre-Flight Reality-Lock that statically verifies suggested imports and method calls against the workspace AST to prevent hallucinations
06Multi-editor 1-click initialization supporting Cursor, Claude Desktop, Antigravity, VS Code, Windsurf, Cline, and Zed

사용 사례

01Slashing token overhead and API inference costs when feeding large enterprise codebases into AI coding assistants
02Validating AI-generated pull requests and code modifications against the codebase AST to prevent hallucinated APIs
03Auditing local codebases for exposed API credentials, architecture layer boundary violations, and change impact blast radius