Skip to main content
Glama

⚡ T-ZERO CONTEXT ARCHITECT V4

Enterprise-Grade Codebase Context Builder, AST Signatures Analyzer, and Token Reducer.
Built for Cursor, VS Code Copilot, Cline, Antigravity IDE, Claude Code, and ChatGPT. Cuts LLM context ingestion overhead by up to 95% while preserving the structural outline of your code (signatures, hierarchy, dependencies).
Includes a native Model Context Protocol (MCP) server for autonomous AI coding agents.

Developer: Toprak Ahmet Aydoğmuş
LinkedIn: Toprak Ahmet Aydoğmuş
Bio & Hub: https://hopp.bio/siberegitim
GitHub Repository: https://github.com/toprakahmetaydogmus/TZeroAlgorithm

⚡ Visual Proof: Raw Ingestion vs. T-Zero AST Pruning (Reproducible)

Analysis Mode

Raw Context Volume

T-Zero Pruned Payload

Token Reduction Ratio

Cost Delta / Query

Full Repository Scan

166,996 tokens

8,465 tokens

-94.9%

-$0.3963 / query

Run it yourself offline ($0 cost): python tzero.py --savings

🚀 1-Line Quickstart

# Run instantly with uvx (zero installation required)
uvx tzero-mcp

# Or install via pip / pipx
pip install tzero-mcp

Or configure directly into your MCP Client (Cursor, Claude Desktop, Windsurf, or Antigravity IDE):

{
  "mcpServers": {
    "tzero": {
      "command": "tzero-mcp"
    }
  }
}

Or run offline CLI inspection immediately ($0 cost, 100% Zero-Leak):

python tzero.py --savings

🇬🇧 English

Table of Contents

  1. Security Architecture (100% Zero-Leak Guarantee)

  2. Model Context Protocol (MCP) Server

  3. System Architecture

  4. Core Highlights & Capabilities

  5. Installation & Setup

  6. Usage Guide (GUI & CLI)

  7. Keyboard Shortcuts

  8. Project Structure

  9. Automated Test Suite & CI/CD

  10. License & Credits


Related MCP server: mcp-code-context

🔒 Security Architecture (100% Zero-Leak Guarantee)

IMPORTANT

T-Zero Algorithm strictly contains ZERO hardcoded, personal, or public API keys or credentials anywhere in the repository.
Defense-in-depth and zero-trust principles are enforced by default.

  1. OS-Level Credential Encryption (Keyring Engine):

    • API keys are never written to plain-text configuration files or logs.

    • Stored through the cross-platform keyring library, which uses the native OS store:

    • Windows: Windows Credential Manager

    • macOS: Apple Keychain

    • Linux: Secret Service API (GNOME Keyring / KWallet via DBus)

  2. Zero Telemetry & Absolute Privacy:

    • Your source code, tokens, file structure, and API credentials are never sent to any third-party telemetry, analytics, or developer servers.

    • Outbound network traffic is exclusively initiated directly from your client to the AI provider endpoint chosen by you (NVIDIA, OpenAI, Google, Anthropic, OpenRouter, or localhost Ollama).

    • The optional local web dashboard (--web) binds to 127.0.0.1 only; its page loads a web font from Google Fonts in your browser.

  3. Password-Obfuscated Keyring Backup:

    • API keys can be backed up to a password-protected .dat binary file. This uses a simple repeating-key XOR (no salt, not strong cryptography), so keep the file private and treat it like a secret. It is git-ignored by default.

  4. 12-Factor Environment Variable Detection:

    • Automatically detects and inherits standard system environment variables when present:

      • NVIDIA_API_KEY

      • OPENAI_API_KEY

      • GEMINI_API_KEY

      • OPENROUTER_API_KEY

      • ANTHROPIC_API_KEY

  5. 100% Offline Dry-Run Mode ($0 Cost):

    • Generate full-featured context trees, AST signature maps, and markdown blueprints without any internet connection, API keys, or AI provider subscriptions.


🤖 Model Context Protocol (MCP) Server

T-Zero V3 natively embeds a standard Model Context Protocol (MCP) server (tzero_mcp.py) operating over stdio. This empowers AI agents in Cursor, Claude Desktop, Antigravity IDE, and Cline to autonomously inspect, prune, and query your project's codebase before writing a single line of code.

🛠 Available MCP Tools (21 Autonomous Tools)

Tool Name

Parameters

Purpose

get_project_context_tree

project_root, reduction_mode, max_tokens, include_file_contents

Scans workspace and builds a multi-tier T-Zero hierarchical context tree (T-1 to T-4) with PageRank & Git recency token budgeting. Reduces tokens by up to 95%.

query_module_dependencies

project_root, file_path

Analyzes incoming and outgoing import dependencies across Python, TypeScript, Go, Rust, Java, C#, and C++.

query_architecture_boundaries

project_root, extra_guidance

Queries active T-4 architectural boundaries, operational constraints, and Zero-Leak rules for coding agents.

generate_architecture_blueprint

project_root

Generates a complete system architecture specification (ARCHITECTURE.md) with live Mermaid topology diagrams.

generate_repo_map

project_root, max_tokens

Produces an ultra-compressed AST symbol map (classes, methods, signatures) optimized for prompt injection.

audit_codebase_quality

project_root, file_path

Runs an AST static code smell check and secret leak scan (detects functions >30 lines, global vars, missing docstrings).

find_code_duplicity

project_root, min_lines

Scans the workspace to identify repeated/duplicate blocks of code across files for refactoring.

estimate_token_cost

text, project_root, reduction_mode

Computes exact token count and USD cost comparison across OpenAI, Claude, DeepSeek, Gemini, and Ollama ($0).

analyze_change_impact

target_symbol, project_root

Traces AST symbol definitions, caller cascades, inbound dependents, and calculates a 0-100 risk score with test coverage hints.

enforce_architecture_boundaries

project_root, rules_file

Validates modular import boundaries against tzero.rules.json to prevent architectural erosion.

search_codebase_semantic

query, project_root, top_k

100% private, local in-memory BM25 + TF-IDF hybrid semantic code search and RAG engine ($0 cost, 0 leaks).

export_agent_rules

project_root

Generates 1-click rules for Cursor (.cursorrules, .cursor/rules/*.mdc), Windsurf, Claude Code, Cline, and Copilot.

get_token_savings_metrics

project_root, team_size

Calculates quantitative token reduction ratio, monthly/annual cost savings, and team developer ROI metrics.

get_incremental_diff_context

base_ref, project_root

Extracts an ultra-compact diff context with modified symbols and downstream blast radius for PR reviews (98%+ token reduction).

prune_code_snippet

code, file_path_or_ext, reduction_mode

Prunes arbitrary in-memory code snippets into compact AST signatures on-the-fly (80-95% reduction).

verify_zero_leak_security

project_root, target_file, code_snippet

100% Zero-Leak security scanner for hardcoded API keys (OpenAI, Anthropic, Gemini, NVIDIA, GitHub) and secrets ($0 cost, 0 leaks).

verify_hallucination_guard

proposed_code, target_file, project_root

Eliminates AI coding hallucinations before code is written by validating imports and call signatures against workspace AST with fuzzy Did-You-Mean suggestions.

get_smart_skeleton_context

focus_file, focus_symbol, project_root

Focus-aware dynamic skeletonizer delivering full focus implementation with surrounding 1st-degree AST interface skeletons.

rank_repository_pagerank

project_root

Identifies repository architectural backbone and module centrality using graph-theory PageRank over AST topologies.

trace_symbol_call_chain

symbol_name, project_root, direction

Traces deep upstream callers and downstream callees across workspace AST with execution tree and Mermaid diagrams.

find_dead_code

project_root

Detects unused, orphaned, or unreferenced functions and classes across the codebase AST.

📦 Live MCP Resources

  • tzero://architecture: Real-time Mermaid architecture blueprint and module topology diagram.

  • tzero://boundaries: Active T-4 architectural layer boundaries, security rules, and constraints.

  • tzero://token-roi: Quantitative token reduction ratio and economic engineering team ROI savings.

🧭 MCP Prompts

  • tzero_grounding: Injects strict architectural boundary rules, modular integrity guidelines, and Zero-Leak security mandates into the agent's system session.

📊 Token Benchmark (Single-File Example)

Measured on tzero_v3.py at commit 4846dcf with the project's count_tokens_precise estimator (approximately characters / 4):

Input

Full source estimate

Ultra AST signatures

Estimated reduction

tzero_v3.py (224,150 characters)

56,037 tokens

3,088 tokens

94.5%

Reproduce it with: python -c "from pathlib import Path; from tzero_v3 import TokenReducer,count_tokens_precise; s=Path('tzero_v3.py').read_text(encoding='utf-8'); r=TokenReducer.reduce(s,'tzero_v3.py',mode='ultra'); print(count_tokens_precise(s),count_tokens_precise(r))". This is a single-file, signatures-only comparison, not a whole-repository or answer-quality benchmark; provider tokenizers and MCP response overhead vary. Use balanced or fetch source when implementation details matter.

🔌 Add T-Zero to MCP Clients

T-Zero runs as a local stdio server with full support for Cursor, Claude Desktop, Antigravity IDE, VS Code, Windsurf, Cline, and Roo Code.

🚀 Option 1: 1-Minute Quickstart with pip (Official PyPI — Cross-Platform)

The fastest and standard way to install and run T-Zero on Windows, macOS, or Linux:

pip install tzero-mcp

Once installed, use any of the available interfaces:

  1. Auto-Configure All Detected IDEs (Cursor, Claude, Antigravity, VS Code, Cline):

    tzero-add-mcp
  2. Interactive Terminal Wizard (CLI):

    tzero --cli
  3. Desktop Cyberpunk GUI Dashboard:

    tzero-gui
    # or:
    tzero --gui
  4. Manual MCP Client Configuration: Simply add this stdio block to your client config (mcp_config.json, claude_desktop_config.json, or Cursor settings):

    {
      "mcpServers": {
        "tzero": {
          "command": "tzero-mcp"
        }
      }
    }

🌐 Option 1B: 1-Click Instant Web Installer (Zero Setup)

Windows (PowerShell):

irm https://raw.githubusercontent.com/toprakahmetaydogmus/TZeroAlgorithm/main/install.ps1 | iex

Linux / macOS (Bash / Zsh):

curl -fsSL https://raw.githubusercontent.com/toprakahmetaydogmus/TZeroAlgorithm/main/install.sh | bash

Smithery MCP Registry:

npx -y @smithery/cli install tzero --client cursor

mcpservers.org Listing:
Listed on mcpservers.org
Explore verified listing: https://mcpservers.org/servers/toprakahmetaydogmus/tzeroalgorithm


⚡ Option 2: 1-Click Zero-Dependency Windows Installer (Standalone Binary)

Download AddMCP.exe directly from Latest Release (v3.0.7):

  • GUI Mode: Double-click AddMCP.exe. It automatically detects all installed IDEs on your computer and configures them with a single click.

  • CLI / Headless Mode: Run AddMCP.exe --all (automatically installs to all detected IDEs without a GUI).

  • Zero Requirements: Does not require Python, pip, pipx, or Git. Bundles the standalone TZeroMCP.exe runtime internally.


📦 Option 3: Remote Launch via pipx (Cross-Platform: Windows, macOS, Linux)

The first launch downloads the pinned v3.0.7 package from GitHub without cloning the repo. Install Python 3.9+ and pipx:

Install pipx on Windows

Open PowerShell and run:

py -m pip install --user pipx
py -m pipx ensurepath

Restart the client after installation. The Windows configs below call py -m pipx directly, so they do not depend on pipx.exe being on PATH. For macOS/Linux, install pipx using the official platform instructions and run pipx ensurepath.

Cursor One-Click Install

Choose the link for your operating system, approve the configuration in Cursor, then enable tzero under Settings → MCP or Customize → MCP.

If Cursor does not open the installer, use Settings → MCP → Add Custom MCP and paste the platform-appropriate JSON below.

Windows:

{
  "mcpServers": {
    "tzero": {
      "command": "py",
      "args": ["-m", "pipx", "run", "--spec", "https://github.com/toprakahmetaydogmus/TZeroAlgorithm/archive/refs/tags/v4.1.0.zip", "tzero-mcp"]
    }
  }
}

macOS/Linux:

{
  "mcpServers": {
    "tzero": {
      "command": "pipx",
      "args": ["run", "--spec", "https://github.com/toprakahmetaydogmus/TZeroAlgorithm/archive/refs/tags/v4.1.0.zip", "tzero-mcp"]
    }
  }
}

Claude Desktop

  1. Open Settings → Developer → Edit Config.

  2. Merge the matching Windows or macOS/Linux JSON block above into the existing mcpServers object; keep other server entries.

  3. Save the file and fully quit/reopen Claude Desktop.

  4. Return to Settings → Developer and confirm tzero is running.

Config locations: Windows %APPDATA%\Claude\claude_desktop_config.json; macOS ~/Library/Application Support/Claude/claude_desktop_config.json.

Google Antigravity IDE

  1. Open Settings → Customizations → Installed MCP Servers.

  2. Add MCP opens the Antigravity MCP Store. If T-Zero appears there, select Add; otherwise configure it as a custom stdio server below.

  3. Add the Windows or macOS/Linux tzero entry from the JSON blocks above to Antigravity's mcp_config.json, preserving other mcpServers entries. On Windows, the user config is %USERPROFILE%\.gemini\config\mcp_config.json (or ~/.gemini/antigravity/mcp_config.json).

  4. Save/reload MCP servers and approve the tools when prompted.

⚡ Antigravity Slash Command & Skill (/tzero)

T-Zero includes a native Antigravity skill (.agents/skills/tzero/SKILL.md and ~/.gemini/config/skills/tzero/SKILL.md). Simply type /tzero in the Antigravity chat prompt to view available actions or run:

  • /tzero or /tzero tree — Builds multi-tier context tree with 95% token reduction

  • /tzero audit — Runs AST code smell check and 100% Zero-Leak security audit

  • /tzero arch — Generates ARCHITECTURE.md with live Mermaid diagrams

  • /tzero deps [file] — Traces module dependency topology

  • /tzero impact <symbol> — Computes blast radius score before refactoring

  • /tzero rules — Generates .cursorrules, .clinerules, Copilot instructions

  • /tzero search <query> — Runs 100% private local BM25 semantic code search

  • /tzero savings — Computes developer team token ROI metrics

  • /tzero diff [ref] — Incremental git diff context for PR reviews with downstream blast radius (98%+ token reduction)

See the official Antigravity MCP guide for the current Settings flow and configuration schema.

VS Code Copilot

  1. Run MCP: Add Server from the Command Palette (Ctrl+Shift+P).

  2. Choose Command (stdio), then enter the platform command (py on Windows; pipx on macOS/Linux) and the same arguments shown above.

  3. Save to the workspace .mcp.json or .vscode/mcp.json, then trust/start tzero from the MCP Servers view.

For .vscode/mcp.json, VS Code uses a top-level servers object and requires type: "stdio":

{
  "servers": {
    "tzero": {
      "type": "stdio",
      "command": "py",
      "args": ["-m", "pipx", "run", "--spec", "https://github.com/toprakahmetaydogmus/TZeroAlgorithm/archive/refs/tags/v4.1.0.zip", "tzero-mcp"]
    }
  }
}

Claude Code, Cline, Roo Code, Windsurf, and Other MCP Clients

Open each client's MCP server settings, choose Add/Edit Server, and merge the matching Windows or macOS/Linux mcpServers entry above. Claude Code can use the same entry in a project-root .mcp.json; Cline, Roo Code, and Windsurf provide their own MCP server settings panels. Restart/reload the client and approve the server.

Only Cursor currently provides a verified public one-click install URL for arbitrary local stdio servers. The other clients use their documented settings/config files; the JSON above is ready to paste.

CLI Launch

python tzero_mcp.py
# Or: python main.py --mcp

🐳 Option 4: Docker & Glama Registry

T-Zero MCP is listed and verified on Glama.

Run with Docker directly:

# Build locally
docker build -t tzero-mcp .

# Test stdio handshake
docker run -i --rm tzero-mcp

MCP Client configuration with Docker:

{
  "mcpServers": {
    "tzero": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "tzero-mcp"]
    }
  }
}

🏗 System Architecture

flowchart TD
    A["Source Code Repository"] --> B["CodebaseScanner"]
    B --> C{"Token Reducer"}
    C -->|"Ultra Mode"| D["Function & Class Signatures Only"]
    C -->|"Balanced Mode"| E["Signatures + Control Flow Lines"]
    C -->|"None Mode"| F["Full Original Source Code"]
    
    B --> G["AST Static Code Auditor"]
    G --> H["Code Smells & Complexity Report"]
    
    B --> I["Dependency Analyzer"]
    I --> J["Import Graph & Module Tree"]
    
    B --> K["Workspace Duplicity Finder"]
    K --> L["Clone & Duplicate Code Blocks"]

    D --> M{"Context Generator"}
    J --> M
    L --> M
    M -->|"Offline Dry-Run"| N["Local T-Zero Context Tree"]
    M -->|"AI Provider Mode"| O["LLM Prompt Synthesizer"]
    O --> P["NVIDIA NIM / OpenAI / Gemini / Anthropic / Ollama"]
    P --> Q["High-Fidelity README.md, AGENTS.md, & ARCHITECTURE.md"]

    M --> R["Model Context Protocol (MCP)"]
    R --> S["Cursor / Claude Desktop / Antigravity / Cline"]

🌟 Core Highlights & Capabilities

1. Multi-LLM Provider Engine

  • NVIDIA NIM: deepseek-v4.1-flash, deepseek-coder-6.7b, nemotron-70b, mistral-large-2, llama-3.2-90b-vision

  • OpenAI: gpt-4o, gpt-4o-mini, o3-mini, o1

  • Google Gemini: gemini-2.5-pro, gemini-2.5-flash, gemini-2.0-flash

  • Anthropic: claude-3-7-sonnet-20250219, claude-3-5-sonnet, claude-3-5-haiku

  • OpenRouter: Universal gateway for claude-3.7-sonnet, gpt-4o, deepseek-r1

  • Local Ollama: llama3:latest, mistral:latest, phi3:latest, qwen2.5:latest (100% local, offline, private, and free)

2. AST Token Reducer (Up to 95% Token Savings)

  • Ultra Mode: Strips implementation internals while preserving class hierarchies, decorators, docstrings, type hints, and complete multi-line Python function/class/import headers.

  • Balanced Mode: Retains signatures alongside critical control flow and exception handling statements.

  • None Mode: Preserves 100% of raw source code.

  • Supported languages: Python, JavaScript, TypeScript, JSX/TSX, Swift (iOS), Kotlin (Android), Java, C#, C/C++, Go, Rust, HTML, CSS, Bash, Batch, JSON, YAML.

  • Mobile First AST Engine: Specialized interface signature extraction for Swift (.swift) & Kotlin (.kt, .kts) preserving protocol/class/data class contracts, SwiftUI @State/@Binding/@Observable wrappers, and Jetpack Compose @Composable functions with >60-80% token reduction.

3. Advanced Codebase Analysis Tools

  • AST Class & Method Outliner: Generates a structured hierarchy of every class, method, argument list, and decorator.

  • Static Code Auditor: Instantly flags missing docstrings, functions exceeding 30 lines, routines with 6+ parameters, and usage of the global keyword (supports both synchronous def and asynchronous async def).

  • Dependency Analyzer: Scans AST import statements to compile an external and internal module dependency map.

  • Workspace Duplicity Finder: Identifies identical duplicate blocks of 6+ lines across the entire codebase.

  • AST Refactoring Engine: Performs safe global function and identifier renames across workspace files using AST node transformation.

4. Git VCS Integration & Visual Telemetry

  • Commit History Classifier: Classifies recent commits automatically (Added, Fixed, Refactored, Updated).

  • Color-Coded Git Diff Viewer: Displays real-time uncommitted changes (git diff HEAD) with syntax highlighting.

  • Integrated Git Manager: Stage, commit, and switch branches directly from the GUI.

  • Interactive Dependency Node Graph: Draggable physics-based node visualization of file relationships.

  • Live CPU & RAM Telemetry: Real-time hardware telemetry monitors system resource overhead.

  • Token Donut Canvas Chart: Dynamic visual breakdown of file types, code volume, and token consumption.

5. Futuristic UI, Dynamic Particle FX & Haptic Audio SFX

  • 8 Curated Themes:

    • 🌌 Glass Dark (Frosted cyan accents)

    • ⚡ Neon Cyberpunk (Vibrant hot-pink & electric blue)

    • 🖤 Midnight OLED (100% pure black #000000 for zero eye strain)

    • 🟢 Matrix Terminal (Classic phosphor green #00ff41)

    • 🌆 Synthwave 80s (Laser magenta, neon orange, and retro cyan)

    • ❄️ Nordic Frost (Arctic slate and glacier blue)

    • ☕ Solarized Amber (Warm deep espresso and golden amber)

    • 🕹 Siber Retro (Classic hacker aesthetic)

  • 4-Mode Dynamic Particle Engine:

    • 🌌 Stars: High-speed 3D depth-warping starfield.

    • 🟢 Matrix Rain: Digital cascading green code glyphs.

    • 🌐 Cyber Grid: Retro-perspective horizon wireframe wave.

    • ⬛ Solid Minimal: Distraction-free dark canvas with 0% CPU consumption.

  • Haptic SFX Engine: Non-blocking auditory feedback for actions (scans, copies, exports, errors) with an instant header toggle (🔊 SFX ON / 🔇 SFX OFF).

  • Floating Cyberpunk Toasts: Non-intrusive status banners that inform you of saves and exports without interrupting workflow.

6. Multi-Format Context Export Hub

  • README.md: Comprehensive architectural documentation.

  • AGENTS.md / CLAUDE.md: Specially structured context blueprint for AI coding assistants (Cursor, Antigravity IDE, Claude Code, Cline, Copilot) containing architecture rules, AST summaries, and workspace conventions.

  • ARCHITECTURE.md: System architecture blueprint with auto-generated Mermaid topology diagrams.

  • REPO_MAP.txt: Highly compressed AST symbol token map tailored for pasting directly into LLM chat prompts.

  • README.html: Styled cyberpunk dark-mode HTML documentation that launches in your default web browser with one click.

  • Live Token Budget & USD Cost Estimator: Real-time token counter and estimated API cost per model (OpenAI, Claude, Groq, NVIDIA NIM, Ollama).


📦 Installation & Setup

install_requirements.bat

Automatically provisions Python 3.12 (if not detected), configures a virtual environment, and installs all dependencies without requiring manual setup.

Method 2: Standalone Portable Executable (.exe)

Download TZeroAlgorithm.exe for the desktop app. To add MCP to detected IDEs, run AddMCP.exe; it bundles TZeroMCP.exe, needs no Python or pipx, preserves existing server entries, and backs up config files before changing them. TZeroMCP.exe is also available separately for manual setup.

Method 3: Python Package / pip Installation

# Install from a cloned checkout
git clone https://github.com/toprakahmetaydogmus/TZeroAlgorithm.git
cd TZeroAlgorithm
pip install .
# The package provides the `tzero` and `tzero-mcp` commands.

# After the package is published to PyPI:
pipx install tzero-mcp

The PyPI project name is tzero-mcp; tzero-mcp and tzero are the installed commands. Until the first PyPI upload, use the GitHub pipx run --spec configuration above.

Automatic dependency check: on startup T-Zero verifies its required packages and installs any that are missing or too old (progress goes to stderr, so MCP stdio stays clean). Opt out with TZERO_NO_AUTO_INSTALL=1. Run python main.py --doctor for a full health check. The desktop GUI needs tkinter; the CLI and the MCP server work without it, so headless servers, Docker and CI are fine.


🎮 Usage Guide (GUI & CLI)

1. Graphical User Interface (GUI)

# Launch via Python
python main.py

# Or launch via Windows batch script
run.bat

# Or launch via legacy wrapper
python tzero.py

2. Command Line Interface (CLI)

T-Zero V3 offers a full suite of CLI flags for terminal enthusiasts and automated CI/CD pipelines:

# 1. Start Model Context Protocol (MCP) stdio server
python main.py --mcp

# 2. Scan directory and print metric table
python main.py --scan .

# 3. Audit codebase quality and detect code smells
python main.py --audit .

# 4. Generate offline context tree locally ($0 API cost)
python main.py --dry-run --dir . --output README.md

# 5. Generate AI Agent Rules & Blueprint (AGENTS.md / CLAUDE.md)
python main.py --export-agents AGENTS.md --dir .

# 6. Generate System Architecture Specification (ARCHITECTURE.md)
python main.py --export-arch ARCHITECTURE.md --dir .

# 7. Generate Compressed Token Symbol Map (REPO_MAP.txt)
python main.py --export-repomap REPO_MAP.txt --dir .

# 8. Generate Cyberpunk Styled HTML Preview (README.html)
python main.py --export-html README.html --dir .

# 9. Launch Interactive Terminal Wizard
python main.py --cli

# 10. Print current engine version
python main.py --version

# 11. Analyze blast radius of changing a symbol
python main.py --impact MyClass

# 12. Private local semantic code search (BM25 + TF-IDF)
python main.py --search "retry logic"

# 13. Enforce architecture boundaries in CI (exits 1 on violation)
python main.py --enforce-boundaries

# 14. Token reduction metrics and team ROI
python main.py --savings

# 15. Export native agent rules (.cursorrules, .clinerules, Copilot)
python main.py --export-agent-rules

# 16. Launch local web dashboard (default port 7300)
python main.py --web

# 17. Launch the desktop GUI
python main.py --gui

# 18. Check Python, dependencies, tkinter, git and keyring (installs what is missing)
python main.py --doctor

⌨️ Keyboard Shortcuts

Shortcut

Action

Ctrl+S

Scan Active Workspace Directory

Ctrl+G

Generate / Compile Context Tree

Ctrl+C

Copy Generated Context to Clipboard

Ctrl+R

Refresh Git Log & Branches


📂 Project Structure

TZeroAlgorithm/
├── .mcp.json                    # Claude Code MCP integration
├── .cursor/
│   └── mcp.json                 # Pre-configured Cursor MCP integration
├── .github/
│   └── workflows/
│       ├── ci.yml               # Automated GitHub Actions test workflow
│       └── release.yml          # Builds TZeroAlgorithm.exe, TZeroMCP.exe, AddMCP.exe, and publishes releases
├── tests/
│   ├── __init__.py
│   ├── test_addmcp.py            # Installer config merge/backup and detection tests
│   ├── test_analyzer.py         # AST analysis and code smell unit tests
│   ├── test_cli.py              # CLI integration tests
│   ├── test_config.py           # Configuration & Keyring security tests
│   ├── test_exports.py          # Multi-format exports & token cost tests
│   ├── test_deps.py             # Dependency bootstrap & doctor tests
│   ├── test_features.py         # Feature module tests (impact, rules, search, ROI)
│   ├── test_headless.py         # No-tkinter, MCP output & secret-scan regression tests
│   ├── test_generator.py        # Template engine & context generator tests
│   ├── test_gui.py              # Tkinter GUI headless smoke tests
│   ├── test_mcp.py              # Model Context Protocol (MCP) server tests
│   ├── test_providers.py        # Multi-provider LLM adapter tests
│   └── test_scanner.py          # TokenReducer & CodebaseScanner tests
├── build_exe.bat                # One-click Windows PyInstaller build script
├── compile.py                   # PyInstaller asset packaging pipeline
├── addmcp.py                    # Windows installer for supported IDE MCP configs
├── install_requirements.bat     # Windows automated setup script
├── LICENSE                      # MIT Open Source License
├── main.py                      # Primary execution entrypoint (CLI & GUI)
├── pyproject.toml               # Modern PEP 517/621 packaging metadata
├── README.md                    # Bilingual comprehensive documentation
├── uv.lock                      # Deterministic locked dependencies
├── run.bat                      # Windows quick-launch runner
├── siber_akademi.ico            # High-resolution application icon
├── tzero.py                     # Backward-compatibility API wrapper
├── tzero.rules.json             # T-4 architecture boundary rules
├── tzero_deps.py                # Dependency bootstrap and --doctor
├── tzero_features.py            # Impact analysis, boundary rules, semantic search, ROI, web dashboard
├── tzero_mcp.py                 # Standard Model Context Protocol (MCP) Server
├── tzero_v3.py                  # Monolithic portable T-Zero V3 core engine
└── WALKTHROUGH.md               # Technical architecture walkthrough

🧪 Automated Test Suite & CI/CD

Run all unit and integration tests locally:

python -m unittest discover -s tests -v

Expected output:

Ran 79 tests in ~4s
OK (the GUI smoke test is skipped when no display is available)

GitHub Actions automatically runs this test suite on every push and pull request across Ubuntu and Windows runners under Python 3.10, 3.11, and 3.12.


🛡️ GitHub Action (GitHub Marketplace)

T-Zero is available as an official GitHub Action (action.yml) to audit codebases, enforce architecture boundaries, and prevent secret leaks directly in your CI/CD pipelines:

name: T-Zero Quality Guard

on: [push, pull_request]

jobs:
  audit:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: T-Zero Architecture & Quality Guard
        uses: toprakahmetaydogmus/TZeroAlgorithm@v4.1.0
        with:
          workspace: '.'
          audit: 'true'
          enforce-boundaries: 'false'

📄 License & Credits

This project is licensed under the MIT License. See the LICENSE file for complete terms.

Toprak Ahmet Aydoğmuş — Siber Akademi



🇹🇷 Türkçe

İçindekiler

  1. Şifreli Güvenlik Mimarisi (%100 Zero-Leak Garantisi)

  2. Model Context Protocol (MCP) Sunucusu

  3. Sistem Mimarisi

  4. Öne Çıkan Yetenekler & Özellikler

  5. Kurulum ve Başlangıç

  6. Kullanım Kılavuzu (GUI & CLI)

  7. Klavye Kısayolları

  8. Proje Dizin Ağacı

  9. Otomatik Test Süreci ve CI/CD

  10. Lisans ve Geliştirici Bilgileri


🔒 Şifreli Güvenlik Mimarisi (%100 Zero-Leak Garantisi)

IMPORTANT

T-Zero Algorithm, kod tabanında kesinlikle sabit kodlanmış (hardcoded), şahsi veya umumi hiçbir API anahtarı veya kimlik bilgisi barındırmaz.
Uygulama varsayılan olarak sıfır güven (zero-trust) ilkelerini uygular.

  1. İşletim Sistemi Düzeyinde Kimlik Şifreleme (OS Keyring Motoru):

    • API anahtarları asla düz metin dosyalarında (.env, .json, .txt) veya loglarda saklanmaz.

    • Platformlar arası keyring kütüphanesi üzerinden, işletim sisteminin yerel deposunda saklanır:

    • Windows: Windows Credential Manager

    • macOS: Apple Keychain

    • Linux: Secret Service API (GNOME Keyring / KWallet - DBus üzerinden)

  2. Sıfır Telemetri ve Tam Veri Gizliliği:

    • Kaynak kodlarınız, token verileriniz, dosya hiyerarşiniz veya API anahtarlarınız asla üçüncü taraf telemetri, analitik veya geliştirici sunucularına iletilmez.

    • Tüm giden ağ trafiği yalnızca sizin belirlediğiniz AI sağlayıcısının (NVIDIA, OpenAI, Google, Anthropic, OpenRouter veya yerel Ollama) resmi uç noktasına doğrudan HTTPS üzerinden gerçekleştirilir.

    • İsteğe bağlı yerel web paneli (--web) yalnızca 127.0.0.1 üzerinde çalışır; sayfası tarayıcınızda Google Fonts'tan bir yazı tipi yükler.

  3. Parola Korumalı Yerel Yedekleme (Keyring Backup):

    • API anahtarlarınızı taşımak veya yedeklemek istediğinizde, kullanıcı tanımlı bir parola ile basit tekrarlı anahtar XOR yöntemi uygulanarak ikili .dat dosyası oluşturulur. Bu yöntem tuzsuzdur ve güçlü bir şifreleme değildir; dosyayı gizli tutun ve bir sır gibi muamele edin. Varsayılan olarak git'e eklenmez.

  4. 12-Factor Sistem Ortam Değişkeni Desteği:

    • Sisteminizde tanımlı olan çevre değişkenlerini otomatik olarak algılar ve kullanıma sunar:

      • NVIDIA_API_KEY

      • OPENAI_API_KEY

      • GEMINI_API_KEY

      • OPENROUTER_API_KEY

      • ANTHROPIC_API_KEY

  5. %100 Çevrimdışı (Offline Dry-Run) Modu (0 TL Maliyet):

    • Hiçbir API anahtarına, internet bağlantısına veya yapay zeka aboneliğine gerek kalmadan, tamamen yerel makinenizde tam kapsamlı context ağaçları, AST imza haritaları ve doküman taslakları oluşturabilirsiniz.


🤖 Model Context Protocol (MCP) Sunucusu

T-Zero V3, Anthropic'in standart Model Context Protocol (MCP) SDK'sını kullanarak stdio üzerinden haberleşen yerel bir sunucu (tzero_mcp.py) sunar. Bu sayede Cursor, Claude Desktop, Antigravity IDE ve Cline gibi yapay zeka ajanları, projede herhangi bir kod üretmeden veya değiştirmeden önce projenin hiyerarşik mimarisini, bağımlılık grafiğini ve sınırlarını sorgulayabilir.

🛠 Sunulan MCP Araçları (21 Otonom Araç)

Araç Adı

Parametreler

Görevi ve Amacı

get_project_context_tree

project_root, reduction_mode, max_tokens, include_file_contents

Proje dizinini tarar; T-1 Master Architecture, T-2 Modül Referansları ve T-4 sınır kurallarını PageRank ve Git tazelik önceliğiyle hiyerarşik bağlam olarak döndürür. Token kullanımını %95'e kadar azaltır.

query_module_dependencies

project_root, file_path

Belirli bir dosyanın veya tüm deponun içe/dışa aktarım (import/export), dahili bağlar ve harici paket imza haritasını çeker.

query_architecture_boundaries

project_root, extra_guidance

Yapay zeka ajanları için aktif mimari sınırları (T-4), kuralları ve Zero-Leak kısıtlamalarını sorgular.

generate_architecture_blueprint

project_root

Otomatik Mermaid topoloji şeması içeren sistem mimarisi dokümanı (ARCHITECTURE.md) üretir.

generate_repo_map

project_root, max_tokens

LLM sohbetleri için aşırı sıkıştırılmış AST simge haritası (sınıflar, metotlar, imzalar) üretir.

audit_codebase_quality

project_root, file_path

AST statik kod kokusu analizi ve gizli anahtar/şifre sızıntısı taraması gerçekleştirir (30+ satır fonksiyonlar, global anahtarlar).

find_code_duplicity

project_root, min_lines

Çalışma alanında 6+ satırlık kopya/tekrar kod bloklarını tespit eder.

estimate_token_cost

text, project_root, reduction_mode

Verilen metin veya dizin için OpenAI, Claude, DeepSeek, Gemini ve Ollama ($0) modelleri üzerinden tam token ve USD maliyet tablosu çıkarır.

analyze_change_impact

target_symbol, project_root

Refactoring öncesi AST sembol tanımları, çağıran zincirleri ve 0-100 risk skoru ile etki yarıçapını ve test kapsamı ipuçlarını hesaplar.

enforce_architecture_boundaries

project_root, rules_file

tzero.rules.json kurallarına göre katmanlar arası yasaklı importları denetler ve mimari bozulmayı engeller.

search_codebase_semantic

query, project_root, top_k

%100 yerel ve gizli, bellek içi BM25 + TF-IDF hibrit anlamsal kod arama ve RAG motoru ($0 maliyet, sıfır veri sızıntısı).

export_agent_rules

project_root

Cursor (.cursorrules, .cursor/rules/*.mdc), Cline (.clinerules) ve Copilot kurallarını tek tıkla üretir.

get_token_savings_metrics

project_root, team_size

Nicel token tasarruf oranını, aylık/yıllık maliyet kârını ve ekip bazlı ROI değerlerini hesaplar.

get_incremental_diff_context

base_ref, project_root

PR incelemeleri için değiştirilen sembolleri ve etki yarıçapını içeren aşırı sıkıştırılmış fark bağlamı çıkarır (%98+ token tasarrufu).

prune_code_snippet

code, file_path_or_ext, reduction_mode

Bellek içindeki ham kod bloklarını anında kompakt AST imzalarına budar (%80-95 tasarruf).

verify_zero_leak_security

project_root, target_file, code_snippet

Çalışma alanındaki dosyalarda ve kod parçalarında açıkta kalan API anahtarları ve sırları tarayan %100 Zero-Leak güvenlik denetçisi.

verify_hallucination_guard

proposed_code, target_file, project_root

Kod yazılmadan önce importları ve metot çağrı imzalarını AST sözleşmeleriyle denetler, difflib Did-You-Mean önerileriyle halüsinasyonları önler.

get_smart_skeleton_context

focus_file, focus_symbol, project_root

Odaklanılan fonksiyonu tam gövdeyle, çevresindeki 1. derece bağımlılıkları ise AST arayüz iskeletiyle dinamik olarak sunar.

rank_repository_pagerank

project_root

AST topolojisi üzerinde PageRank algoritması çalıştırarak projenin en kritik omurga modüllerini tespit eder.

trace_symbol_call_chain

symbol_name, project_root, direction

Sembolün yukarı doğru çağıranlarını veya aşağı doğru çağrılanlarını ağaç ve Mermaid grafiği olarak çıkarır.

find_dead_code

project_root

Kod tabanı genelinde kullanılmayan, öksüz kalmış veya referans verilmeyen fonksiyon ve sınıfları tespit eder.

🧭 MCP Yerleşik Promptları

  • tzero_grounding: Cursor / Claude / Antigravity oturumlarına mimari kuralları, modüler sınırları ve %100 Zero-Leak güvenlik direktiflerini enjekte eder.

📊 Token Benchmark (Tek Dosyalık Örnek)

4846dcf commit'indeki tzero_v3.py, projenin count_tokens_precise tahminleyicisiyle ölçülmüştür (yaklaşık karakter / 4):

Girdi

Tam kaynak tahmini

Ultra AST imzaları

Tahmini azalma

tzero_v3.py (224.150 karakter)

56.037 token

3.088 token

%94,5

Tekrar üretmek için: python -c "from pathlib import Path; from tzero_v3 import TokenReducer,count_tokens_precise; s=Path('tzero_v3.py').read_text(encoding='utf-8'); r=TokenReducer.reduce(s,'tzero_v3.py',mode='ultra'); print(count_tokens_precise(s),count_tokens_precise(r))". Bu yalnızca tek dosyanın imza-temelli karşılaştırmasıdır; tüm depo veya yanıt kalitesi ölçümü değildir. Sağlayıcı tokenleştiricileri ve MCP yanıt ek yükü farklılık gösterir. Uygulama ayrıntıları gerektiğinde balanced modunu veya kaynak kodu kullanın.

🔌 T-Zero'yu MCP İstemcilerine Ekle

T-Zero, Cursor, Claude Desktop, Antigravity IDE, VS Code, Windsurf, Cline ve Roo Code için tam destekli yerel bir stdio MCP sunucusu sunar.

🚀 1. Seçenek: pip ile 1 Dakikada En Basit Kurulum (Resmi PyPI Paketi — Çapraz Platform)

Windows, macOS veya Linux üzerinde T-Zero'yu kurmanın ve çalıştırmanın en kolay ve resmi yolu:

pip install tzero-mcp

Kurulum tamamlandıktan sonra dilediğiniz gibi kullanabilirsiniz:

  1. Tüm IDE'lerinize (Cursor, Claude, Antigravity, VS Code, Cline) Tek Tıkla Bağlayın:

    tzero-add-mcp
  2. Terminal Sihirbazını (CLI) Çalıştırın:

    tzero --cli
  3. Masaüstü Görsel Panelini Açın (GUI):

    tzero-gui
    # veya:
    tzero --gui
  4. Manuel MCP Yapılandırması Yapmak İsterseniz: IDE ayar dosyanıza (mcp_config.json, claude_desktop_config.json veya Cursor ayarları):

    {
      "mcpServers": {
        "tzero": {
          "command": "tzero-mcp"
        }
      }
    }

🌐 1B. Seçenek: Tek Satırda Anında Web Kurulumu (Sıfır Kurulum)

Windows (PowerShell):

irm https://raw.githubusercontent.com/toprakahmetaydogmus/TZeroAlgorithm/main/install.ps1 | iex

Linux / macOS (Bash / Zsh):

curl -fsSL https://raw.githubusercontent.com/toprakahmetaydogmus/TZeroAlgorithm/main/install.sh | bash

Smithery MCP Kaydı:

npx -y @smithery/cli install tzero --client cursor

mcpservers.org Kaydı:
Listed on mcpservers.org
Onaylı sunucu sayfası: https://mcpservers.org/servers/toprakahmetaydogmus/tzeroalgorithm


⚡ 2. Seçenek: Tek Tıkla Sıfır Gereksinimli Windows Kurulumu (Bağımsız Binary)

Son Sürüm (v3.0.7) sayfasından doğrudan AddMCP.exe dosyasını indirin:

  • Grafik Arayüz (GUI): AddMCP.exe dosyasına çift tıklayın. Bilgisayarınızda yüklü tüm IDE'leri otomatik tespit eder ve tek tıkla entegrasyonu tamamlar.

  • Terminal / Komut Satırı: AddMCP.exe --all (hiçbir arayüz açmadan algılanan tüm IDE'lere sessizce kurar).

  • Sıfır Gereksinim: Python, pip, pipx veya Git gerektirmez. Bağımsız TZeroMCP.exe çalışma motorunu içinde gömülü olarak taşır.


📦 3. Seçenek: pipx ile Uzaktan Çalıştırma (Çapraz Platform: Windows, macOS, Linux)

İlk başlatmada sabitlenmiş v3.0.7 paketi GitHub'dan otomatik indirilir; depoyu klonlamak gerekmez. Python 3.9+ ve pipx gereklidir:

Windows'ta pipx Kurulumu

PowerShell'i açıp çalıştırın:

py -m pip install --user pipx
py -m pipx ensurepath

Kurulumdan sonra istemciyi yeniden başlatın. Aşağıdaki Windows ayarları py -m pipx komutunu doğrudan çalıştırır; pipx.exe dosyasının PATH'te bulunmasına bağlı değildir. macOS/Linux'ta pipx'i resmi platform yönergeleriyle kurup pipx ensurepath çalıştırın.

Cursor'a Tek Tıkla Kurulum

İşletim sisteminize uygun bağlantıyı açın, Cursor yapılandırmasını onaylayın ve tzero sunucusunu Settings → MCP veya Customize → MCP bölümünden etkinleştirin.

Link açılmazsa Settings → MCP → Add Custom MCP bölümüne girip aşağıdaki platforma uygun JSON'u yapıştırın.

Windows:

{
  "mcpServers": {
    "tzero": {
      "command": "py",
      "args": ["-m", "pipx", "run", "--spec", "https://github.com/toprakahmetaydogmus/TZeroAlgorithm/archive/refs/tags/v3.0.7.zip", "tzero-mcp"]
    }
  }
}

macOS/Linux:

{
  "mcpServers": {
    "tzero": {
      "command": "pipx",
      "args": ["run", "--spec", "https://github.com/toprakahmetaydogmus/TZeroAlgorithm/archive/refs/tags/v3.0.7.zip", "tzero-mcp"]
    }
  }
}

Claude Desktop

  1. Settings → Developer → Edit Config bölümünü açın.

  2. Yukarıdaki Windows veya macOS/Linux JSON bloğunu mevcut mcpServers nesnesine ekleyin; diğer sunucu kayıtlarını silmeyin.

  3. Dosyayı kaydedin, Claude Desktop'ı tamamen kapatıp yeniden açın.

  4. Settings → Developer bölümünde tzero sunucusunun çalıştığını doğrulayın.

Yapılandırma yolları: Windows %APPDATA%\Claude\claude_desktop_config.json; macOS ~/Library/Application Support/Claude/claude_desktop_config.json.

Google Antigravity IDE

  1. Settings → Customizations → Installed MCP Servers bölümünü açın.

  2. Add MCP düğmesi Antigravity MCP Store'u açar. T-Zero listede görünüyorsa Add'e tıklayın; görünmüyorsa aşağıdaki özel stdio ayarını kullanın.

  3. Windows veya macOS/Linux JSON bloğundaki tzero kaydını Antigravity mcp_config.json dosyasına ekleyin; var olan mcpServers kayıtlarını koruyun. Windows'ta kullanıcı config yolu %USERPROFILE%\.gemini\config\mcp_config.json (veya ~/.gemini/antigravity/mcp_config.json).

  4. MCP sunucularını kaydedip/yenileyin ve istendiğinde araçlara izin verin.

⚡ Antigravity Slash Komutu & Yeteneği (/tzero)

T-Zero yerleşik Antigravity Skill desteği sunar (.agents/skills/tzero/SKILL.md ve ~/.gemini/config/skills/tzero/SKILL.md). Antigravity sohbet alanında doğrudan /tzero yazarak komutları listeleyebilir veya çalıştırabilirsiniz:

  • /tzero veya /tzero tree — %95 token tasarruflu çok katmanlı bağlam ağacını üretir

  • /tzero audit — AST kod kokusu ve %100 Zero-Leak güvenlik denetimini çalıştırır

  • /tzero arch — Canlı Mermaid şemalarıyla ARCHITECTURE.md üretir

  • /tzero deps [dosya] — Modül bağımlılık topolojisini analiz eder

  • /tzero impact <sembol> — Refactoring öncesi sembol etki yarıçapı skorunu hesaplar

  • /tzero rules — .cursorrules, .clinerules ve Copilot kurallarını üretir

  • /tzero search <sorgu> — %100 yerel ve gizli BM25 semantik kod aramasını çalıştırır

  • /tzero savings — Ekip bazlı token ROI tasarruf analizini hesaplar

Güncel ayarlar ve yapılandırma şeması için resmi Antigravity MCP kılavuzuna bakın.

VS Code Copilot

  1. Command Palette'i açın (Ctrl+Shift+P) ve MCP: Add Server çalıştırın.

  2. Command (stdio) seçin; Windows'ta py, macOS/Linux'ta pipx komutunu ve yukarıdaki argümanları girin.

  3. .mcp.json veya .vscode/mcp.json dosyasına kaydedin; MCP Servers görünümünden tzero sunucusunu başlatıp güvenin.

.vscode/mcp.json için VS Code üst düzey servers nesnesi ve type: "stdio" kullanır:

{
  "servers": {
    "tzero": {
      "type": "stdio",
      "command": "py",
      "args": ["-m", "pipx", "run", "--spec", "https://github.com/toprakahmetaydogmus/TZeroAlgorithm/archive/refs/tags/v3.0.7.zip", "tzero-mcp"]
    }
  }
}

Claude Code, Cline, Roo Code, Windsurf ve Diğerleri

İstemcinin MCP sunucu ayarlarını açıp Add/Edit Server seçin ve yukarıdaki Windows veya macOS/Linux mcpServers kaydını ekleyin. Claude Code proje kökündeki .mcp.json dosyasını kullanabilir; Cline, Roo Code ve Windsurf kendi MCP ayar panellerini sunar. İstemciyi yeniden başlatıp sunucuyu onaylayın.

Şu anda herhangi bir yerel stdio MCP sunucusunu kuran doğrulanmış public tek-tık URL yalnızca Cursor'da mevcut. Diğer istemciler kendi config dosyasını/panelini kullanır; yukarıdaki JSON'lar doğrudan hazırdır.

Komut Satırından Başlatma

python tzero_mcp.py
# Veya: python main.py --mcp

🐳 4. Seçenek: Docker & Glama Registry (Konteynerize MCP)

T-Zero MCP, Glama üzerinde listelenmiş ve onaylanmıştır.

Doğrudan Docker ile Çalıştırma:

# Yerel imajı derleyin
docker build -t tzero-mcp .

# Stdio el sıkışmasını test edin
docker run -i --rm tzero-mcp

MCP İstemcileri İçin Docker Yapılandırması:

{
  "mcpServers": {
    "tzero": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "tzero-mcp"]
    }
  }
}

🏗 Sistem Mimarisi

flowchart TD
    A["Kaynak Kod Deposu"] --> B["CodebaseScanner"]
    B --> C{"Token Reducer"}
    C -->|"Ultra Mod"| D["Yalnızca Fonksiyon & Sınıf İmzaları"]
    C -->|"Balanced Mod"| E["İmzalar + Temel Kontrol Akışı"]
    C -->|"None Mod"| F["Tam Orijinal Kaynak Kod"]
    
    B --> G["AST Statik Kod Denetçisi"]
    G --> H["Kod Kokuları & Karmaşıklık Raporu"]
    
    B --> I["Bağımlılık Analizörü"]
    I --> J["Import Grafı & Modül Haritası"]
    
    B --> K["Workspace Duplicity Finder"]
    K --> L["Tekrar Eden Kod Blokları"]

    D --> M{"Context Generator"}
    J --> M
    L --> M
    M -->|"Çevrimdışı Dry-Run"| N["Yerel T-Zero Context Ağacı"]
    M -->|"AI API Modu"| O["LLM Prompt Sentezleyici"]
    O --> P["NVIDIA NIM / OpenAI / Gemini / Anthropic / Ollama"]
    P --> Q["Yüksek Sadakatli README.md, AGENTS.md & ARCHITECTURE.md"]

    M --> R["Model Context Protocol (MCP)"]
    R --> S["Cursor / Claude Desktop / Antigravity / Cline"]

🌟 Öne Çıkan Yetenekler & Özellikler

1. Çoklu LLM Sağlayıcı Entegrasyonu

  • NVIDIA NIM: deepseek-v4.1-flash, deepseek-coder-6.7b, nemotron-70b, mistral-large-2, llama-3.2-90b-vision

  • OpenAI: gpt-4o, gpt-4o-mini, o3-mini, o1

  • Google Gemini: gemini-2.5-pro, gemini-2.5-flash, gemini-2.0-flash

  • Anthropic: claude-3-7-sonnet-20250219, claude-3-5-sonnet, claude-3-5-haiku

  • OpenRouter: claude-3.7-sonnet, gpt-4o, deepseek-r1 için evrensel ağ geçidi

  • Local Ollama: llama3:latest, mistral:latest, phi3:latest, qwen2.5:latest (%100 yerel, çevrimdışı, gizli ve ücretsiz)

2. Akıllı AST Token İndirgeyici (%95'e Varan Tasarruf)

  • Ultra Mod: Fonksiyon gövdelerini temizler; sınıf hiyerarşisini, dekoratörleri, docstring'leri, tip ipuçlarını ve çok satırlı Python fonksiyon/sınıf/import başlıklarının tamamını korur.

  • Balanced Mod: İmzalarla birlikte temel kontrol bloklarını (if/try/for) ve istisna yönetimini muhafaza eder.

  • None Mod: Kaynak kodun %100 orijinal halini korur.

  • Desteklenen diller: Python, JavaScript, TypeScript, JSX/TSX, Swift (iOS), Kotlin (Android), Java, C#, C/C++, Go, Rust, HTML, CSS, Bash, Batch, JSON, YAML.

  • Mobil Odaklı AST Motoru: Swift (.swift) ve Kotlin (.kt, .kts) için özel arayüz ve imza çıkarımı; protokol, veri sınıfları, SwiftUI @State/@Binding/@Observable sarmalayıcıları ve Jetpack Compose @Composable fonksiyon sözleşmelerini koruyarak %60-80+ token tasarrufu sağlar.

3. İleri Düzey Kod Tabanı Analiz Araçları

  • AST Sınıf ve Metot Ağacı: Tüm sınıfları, metotları, argüman listelerini ve dekoratörleri hiyerarşik olarak listeler.

  • Statik Kod Denetçisi (Static Code Auditor): Eksik docstring'leri, 30 satırı aşan aşırı karmaşık rutinleri, 6 ve üzeri parametre alan fonksiyonları ve global anahtar kelimesi kullanımını anında tespit eder (hem senkron def hem asenkron async def desteklenir).

  • Bağımlılık Analizi (Dependency Analyzer): AST import düğümlerini inceleyerek projenin iç ve dış modül haritasını çıkarır.

  • Tekrar Kod Bulucu (Duplicity Finder): Çalışma alanı genelinde 6+ satırlık kopya kod bloklarını tespit eder.

  • AST Refactoring Motoru: Güvenli AST dönüşümü kullanarak proje genelinde fonksiyon ve değişken isimlerini otomatik olarak refactor eder.

4. Git Sürüm Kontrolü ve Canlı Görsel Telemetri

  • Commit Geçmişi Sınıflandırıcı: Son commit'leri otomatik etiketler (Added, Fixed, Refactored, Updated).

  • Canlı Renkli Git Diff: Kaydedilmemiş değişiklikleri (git diff HEAD) sözdizimi renklendirmesiyle gösterir.

  • Entegre Git Yöneticisi: GUI üzerinden stage, commit ve dal (branch) değiştirme işlemleri.

  • İnteraktif Bağımlılık Grafı: Dosyalar arasındaki ilişkiyi sürükle-bırak destekli fiziksel düğüm grafiği olarak çizer.

  • Canlı CPU ve RAM Telemetrisi: Sistem kaynak kullanımını gerçek zamanlı takip eder.

  • Token Donut Grafiği: Dosya türü dağılımını, hacmini ve token tüketimini dinamik kanvas üzerinde çizer.

5. Fütüristik GUI, Dinamik Parçacık Animasyonları & Haptik Sesler

  • 8 Özel Tema:

    • 🌌 Glass Dark (Buzlu cam ve camgöbeği vurgular)

    • ⚡ Neon Cyberpunk (Canlı fuşya ve elektrik mavisi)

    • 🖤 Midnight OLED (Sıfır göz yorgunluğu için %100 saf siyah #000000)

    • 🟢 Matrix Terminal (Klasik fosforlu hacker yeşili #00ff41)

    • 🌆 Synthwave 80s (Lazer macenta, neon turuncu ve retro mavi)

    • ❄️ Nordic Frost (Kutup grisi ve buzul mavisi)

    • ☕ Solarized Amber (Derin espresso ve sıcak amber)

    • 🕹 Siber Retro (Klasik Siber Akademi teması)

  • 4-Modlu Dinamik Parçacık FX Motoru:

    • 🌌 Stars: 3D derinlik algılı ve değişken hızlı yıldız tüneli.

    • 🟢 Matrix Rain: Dijital aşağı kayan yeşil kod ve karakter yağmuru.

    • 🌐 Cyber Grid: Ufuk çizgisine uzanan perspektif tel örgü dalgası.

    • ⬛ Solid Minimal: Sıfır CPU tüketimiyle saf minimal koyu zemin.

  • Haptik Ses Motoru (SFX): Tıklamalar, tarama tamamlanması ve bağlam üretiminde sesli geri bildirim sağlar (winsound.Beep arka planda çalışır, arayüzü asla dondurmaz; başlık çubuğundan tek tıkla 🔊 SFX ON / 🔇 SFX OFF yapılabilir).

  • Yüzen Cyberpunk Toast Bildirimleri: Panoya kopyalama ve kaydetme işlemlerinde kullanıcıyı rahatsız etmeden yumuşak bildirimler gösterir.

6. Çoklu Format Dışa Aktarma Paketi (Context Architect Hub)

  • README.md: Ayrıntılı depo ve mimari dokümantasyonu.

  • AGENTS.md / CLAUDE.md: Cursor, Antigravity IDE, Claude Code, Cline ve Copilot gibi yapay zeka kodlama ajanları için özel yapılandırılmış sistem ve kural rehberi.

  • ARCHITECTURE.md: Otomatik üretilen Mermaid şeması ve modül bağımlılık hiyerarşisi içeren mimari spesifikasyonu.

  • REPO_MAP.txt: LLM sohbet pencerelerine doğrudan yapıştırılmak üzere aşırı sıkıştırılmış AST simge haritası.

  • README.html: Cyberpunk koyu temalı, tarayıcıda tek tıkla açılan görsel HTML önizlemesi.

  • Canlı Token Bütçesi ve USD Maliyet Hesaplayıcı: Gerçek zamanlı token sayımı ve seçilen modele göre tahmini API harcama maliyeti.


📦 Kurulum ve Başlangıç

Yöntem 1: Tek Tıkla Kurulum (.bat) — Windows İçin Önerilen

install_requirements.bat

Sisteminizde Python bulunmasa bile Python 3.12'yi otomatik indirir, sanal ortamı kurar ve tüm paketleri eksiksiz yapılandırır.

Yöntem 2: Bağımsız Çalıştırılabilir Dosya (.exe)

Masaüstü uygulaması için TZeroAlgorithm.exe dosyasını indirin. MCP'yi algılanan IDE'lere eklemek için AddMCP.exe dosyasını çalıştırın; TZeroMCP.exe içinde gelir, Python/pipx istemez, mevcut sunucu kayıtlarını korur ve config dosyalarını değiştirmeden önce yedekler. TZeroMCP.exe manuel kurulum için ayrıca sunulur.

Yöntem 3: Python Paketi / pip ile Kurulum

# Klonlanmış depodan kurun
git clone https://github.com/toprakahmetaydogmus/TZeroAlgorithm.git
cd TZeroAlgorithm
pip install .
# `tzero` ve `tzero-mcp` komutları kurulur.

# PyPI yayını yapıldıktan sonra:
pipx install tzero-mcp

PyPI proje adı tzero-mcp, kurulan komutlar ise tzero ve tzero-mcp'dir. İlk PyPI yayınına kadar yukarıdaki GitHub pipx run --spec ayarını kullanın.

Otomatik bağımlılık kontrolü: T-Zero açılışta gerekli paketleri doğrular, eksik veya eski olanları kendisi kurar (çıktı stderr'e gider, MCP stdio bozulmaz). Kapatmak için TZERO_NO_AUTO_INSTALL=1 kullanın. Tam sağlık kontrolü için python main.py --doctor çalıştırın. Masaüstü arayüzü tkinter ister; CLI ve MCP sunucusu onsuz da çalışır, yani sunucu, Docker ve CI ortamları sorunsuzdur.


🎮 Kullanım Kılavuzu (GUI & CLI)

1. Grafiksel Kullanıcı Arayüzü (GUI)

# Python ile çalıştırma
python main.py

# Veya Windows başlatıcı betiği ile
run.bat

# Veya uyumluluk sarmalayıcısı ile
python tzero.py

2. Komut Satırı Arayüzü (CLI)

Terminal geliştiricileri ve CI/CD otomasyonları için gelişmiş komut satırı bayrakları:

# 1. Model Context Protocol (MCP) stdio sunucusunu başlat
python main.py --mcp

# 2. Projeyi tara ve metrik tablosunu ekrana bas
python main.py --scan .

# 3. Kod kalitesini denetle ve code smell raporu al
python main.py --audit .

# 4. Sıfır API maliyetiyle yerel çevrimdışı context ağacı üret
python main.py --dry-run --dir . --output README.md

# 5. Yapay Zeka Ajan Kılavuzu (AGENTS.md / CLAUDE.md) üret
python main.py --export-agents AGENTS.md --dir .

# 6. Mermaid Mimari Şeması (ARCHITECTURE.md) üret
python main.py --export-arch ARCHITECTURE.md --dir .

# 7. Sıkıştırılmış Token Repo Haritası (REPO_MAP.txt) üret
python main.py --export-repomap REPO_MAP.txt --dir .

# 8. Koyu Modlu Görsel HTML Önizlemesi (README.html) üret
python main.py --export-html README.html --dir .

# 9. İnteraktif Terminal Sihirbazını başlat
python main.py --cli

# 10. Sürüm bilgisini görüntüle
python main.py --version

# 11. Bir sembolü değiştirmenin etki alanını analiz et
python main.py --impact MyClass

# 12. Yerel ve gizli anlamsal kod arama (BM25 + TF-IDF)
python main.py --search "retry logic"

# 13. CI'da mimari sınırları denetle (ihlalde 1 ile çıkar)
python main.py --enforce-boundaries

# 14. Token tasarruf metrikleri ve ekip ROI hesabı
python main.py --savings

# 15. Yerel ajan kurallarını üret (.cursorrules, .clinerules, Copilot)
python main.py --export-agent-rules

# 16. Yerel web panelini başlat (varsayılan port 7300)
python main.py --web

# 17. Masaüstü arayüzünü (GUI) başlat
python main.py --gui

# 18. Python, bağımlılıklar, tkinter, git ve keyring kontrolü (eksikleri kurar)
python main.py --doctor

⌨️ Klavye Kısayolları

Kısayol

Eylem

Ctrl+S

Seçili Çalışma Alanını Tara

Ctrl+G

Context Ağacını Derle / Üret

Ctrl+C

Üretilen İçeriği Panoya Kopyala

Ctrl+R

Git Geçmişini ve Dalları Yenile


📂 Proje Dizin Ağacı

TZeroAlgorithm/
├── .mcp.json                    # Claude Code MCP integration
├── .cursor/
│   └── mcp.json                 # Hazır Cursor MCP sunucu yapılandırması
├── .github/
│   └── workflows/
│       ├── ci.yml               # GitHub Actions CI/CD otomatik test boru hattı
│       └── release.yml          # TZeroAlgorithm.exe, TZeroMCP.exe ve AddMCP.exe derler; sürümlerde yayınlar
├── tests/
│   ├── __init__.py
│   ├── test_addmcp.py            # Config merge, backups and client detection tests
│   ├── test_analyzer.py         # AST analiz ve denetim testleri
│   ├── test_cli.py              # CLI komut satırı entegrasyon testleri
│   ├── test_config.py           # Config ve Keyring güvenlik testleri
│   ├── test_exports.py          # Çoklu format dışa aktarım & maliyet testleri
│   ├── test_deps.py             # Bağımlılık kontrolü & doctor testleri
│   ├── test_features.py         # Özellik modülü testleri (etki, kurallar, arama, ROI)
│   ├── test_headless.py         # tkinter'sız çalışma, MCP çıktısı & gizli anahtar taraması testleri
│   ├── test_generator.py        # Şablon motoru ve bağlam derleme testleri
│   ├── test_gui.py              # Tkinter GUI başlatma testleri
│   ├── test_mcp.py              # Model Context Protocol (MCP) sunucu testleri
│   ├── test_providers.py        # 6 AI sağlayıcı adaptör testleri
│   └── test_scanner.py          # TokenReducer ve CodebaseScanner testleri
├── build_exe.bat                # Windows PyInstaller tek tık derleme betiği
├── compile.py                   # PyInstaller asset paketleme boru hattı
├── addmcp.py                    # IDE MCP ayarlarını kuran Windows installer
├── install_requirements.bat     # Windows otomatik ortam kurulum betiği
├── LICENSE                      # MIT Açık Kaynak Lisansı
├── main.py                      # Ana çalıştırma giriş noktası (CLI & GUI)
├── pyproject.toml               # Modern PEP 517/621 paket yapılandırması
├── README.md                    # İki dilli kapsamlı dokümantasyon
├── uv.lock                      # Deterministik kilitli bağımlılıklar
├── run.bat                      # Windows hızlı başlatıcısı
├── siber_akademi.ico            # Yüksek çözünürlüklü uygulama ikonu
├── tzero.py                     # Geriye dönük uyumluluk API sarmalayıcısı
├── tzero.rules.json             # T-4 mimari sınır kuralları
├── tzero_deps.py                # Bağımlılık kontrolü ve --doctor
├── tzero_features.py            # Etki analizi, sınır kuralları, anlamsal arama, ROI, web paneli
├── tzero_mcp.py                 # Standart Model Context Protocol (MCP) Sunucusu
├── tzero_v3.py                  # Bağımsız taşınabilir T-Zero V3 motoru
└── WALKTHROUGH.md               # Detaylı teknik mimari kılavuzu

🧪 Otomatik Test Süreci ve CI/CD

Bütün birim ve entegrasyon testlerini yerel olarak çalıştırmak için:

python -m unittest discover -s tests -v

Beklenen çıktı:

Ran 79 tests in ~4s
OK (the GUI smoke test is skipped when no display is available)

GitHub Actions, depoya yapılan her push ve pull request işleminde Ubuntu ve Windows ortamlarında Python 3.10, 3.11 ve 3.12 ile bu testleri otomatik olarak yürütür.


🛡️ GitHub Action (GitHub Marketplace Entegrasyonu)

T-Zero, CI/CD süreçlerinizde kod kalitesini denetlemek, mimari sınırları korumak ve gizli anahtar sızıntılarını önlemek için GitHub Actions üzerinde de çalışır:

name: T-Zero Quality Guard

on: [push, pull_request]

jobs:
  audit:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: T-Zero Architecture & Quality Guard
        uses: toprakahmetaydogmus/TZeroAlgorithm@v4.1.0
        with:
          workspace: '.'
          audit: 'true'
          enforce-boundaries: 'false'

⭐ Star History

If you find T-Zero helpful for your AI coding workflows, please consider giving it a star on GitHub! It helps more developers discover the project.


📄 Lisans ve Geliştirici Bilgileri

Bu proje MIT Lisansı altında lisanslanmıştır. Detaylar için LICENSE dosyasına bakabilirsiniz.

Toprak Ahmet Aydoğmuş — Siber Akademi

Available Tools

21 tools
analyze_change_impactA

Calculates blast radius score (0-100) and identifies all direct and transitive dependent modules across the codebase before modifying a specific function, class, or symbol.

Behavior:

  • Read-only: AST dependency graph traversal; does not modify source files.

  • Idempotent: Deterministic impact calculation for any given target symbol.

  • 100% Offline: Local AST analysis without remote services.

Usage Guidelines:

  • When to use: Run BEFORE renaming, refactoring, or modifying a function or class to determine which caller modules could break.

  • Sibling Routing: For deep recursive caller/callee trees with visual Mermaid graphs, use 'trace_symbol_call_chain'. For file-level module dependencies, use 'query_module_dependencies'.

Returns: Structured Markdown report with blast radius score, risk tier, direct dependents, and transitive impact paths.

ParametersJSON Schema
NameRequiredDescriptionDefault
project_rootNoWorkspace root directory containing target symbols (default: current directory)..
target_symbolYesName of the function, class, or method to analyze for change blast radius.

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden and does so well: it declares read-only AST traversal, deterministic/idempotent results, and 100% offline local analysis with no remote services. These are exactly the behavioral traits an agent needs before invoking a static-analysis tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core capability, then logically grouped into Behavior, Usage, and Returns with zero filler sentences. Slight deduction because the Returns block restates a structured output that already exists as an output schema, making it mildly redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter read-only analysis tool, the definition covers purpose, safety profile, invocation timing, alternatives, and return shape. With an output schema present, it does not need to explain return values in detail, so nothing material is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and both parameters are documented there (target_symbol as the symbol to analyze, project_root with a default of '.'). The description adds no syntax, format, or constraint detail beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource+scope: calculates a blast radius score (0-100) and finds direct/transitive dependents for a function, class, or symbol. It is immediately distinguishable from siblings like trace_symbol_call_chain and query_module_dependencies by naming them explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a concrete when-to-use trigger ('Run BEFORE renaming, refactoring, or modifying a function or class') and explicit sibling routing for two adjacent alternatives with the condition that selects each (recursive trees/Mermaid vs file-level module deps).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

audit_codebase_qualityA

Performs an AST static code smell audit, cyclomatic complexity check, copy-paste duplicity scan, and 100% Zero-Leak security audit for exposed credentials.

Behavior:

  • Read-only: Evaluates AST nodes and regex patterns; does not modify or delete files.

  • Idempotent: Produces consistent quality diagnostics for the same code.

  • 100% Offline: Fully private local analysis; zero external requests.

Usage Guidelines:

  • When to use: Run as a pre-commit or pre-PR code health audit to identify complex routines (> 30 lines, > 5 args), missing docstrings, architectural boundary violations, and hardcoded secrets.

  • Sibling Routing: If you only need to verify zero hardcoded secrets/API keys, use 'verify_zero_leak_security'. If you only want unused function detection, use 'find_dead_code'. If you only want duplicate logic blocks, use 'find_code_duplicity'.

Returns: Comprehensive diagnostic Markdown report with severity ratings (T-001 Security, T-002 Boundaries, T-003 Contracts, T-004 Complexity), line numbers, and actionable remediation steps.

ParametersJSON Schema
NameRequiredDescriptionDefault
file_pathNoOptional path to a specific file to audit. If empty, audits all code files in the workspace.
project_rootNoRoot directory of the repository to audit (default: current directory)..

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations supplied, the description carries the full burden and does so: read-only ('does not modify or delete files'), idempotent ('consistent quality diagnostics for the same code'), and offline ('zero external requests'). That covers the safety, determinism, and network profile an agent needs before invoking an audit.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded one-line purpose, then labeled Behavior / Usage Guidelines / Returns blocks. The bullets are dense and each carries distinct information; nothing is padded despite the length being justified by a multi-mode tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so the return-value explanation is technically optional, yet the severity taxonomy (T-001 through T-004) adds useful interpretive context. Combined with complete parameter docs and full behavioral disclosure, an agent has everything needed to call this correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and both parameters (file_path, project_root) are already fully documented with defaults in the schema. The description adds scope context ('audits all code files in the workspace') but no syntax, format, or edge-case meaning beyond what the schema provides, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (performs an audit) and enumerates the four distinct analyses it runs: AST code smells, cyclomatic complexity, copy-paste duplicity, and Zero-Leak credential scanning. This clearly separates it from single-purpose siblings like find_code_duplicity or verify_zero_leak_security.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit 'When to use' (pre-commit / pre-PR health audit) plus a 'Sibling Routing' block that names three alternatives and the exact condition under which each should be preferred instead. This leaves nothing to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

enforce_architecture_boundariesA

Enforces T-4 architectural boundary rules (tzero.rules.json), verifying modular separation and detecting unauthorized cross-layer imports.

Behavior:

  • Read-only: Audits import AST statements; does NOT block git, mutate code, or modify configuration files.

  • Idempotent: Yields consistent validation results for any given codebase state.

  • 100% Offline: Local AST validation without external dependencies.

Usage Guidelines:

  • When to use: Run in CI/CD pipelines or before committing to verify that presentation/UI layers do not import internal database/storage modules directly.

  • Sibling Routing: To view active boundary rules without evaluating code, use 'query_architecture_boundaries'. For general code quality smells, use 'audit_codebase_quality'.

Returns: Compliance report detailing pass/fail status, violating file paths, line numbers, layer names, and allowed import directions.

ParametersJSON Schema
NameRequiredDescriptionDefault
rules_fileNoPath to rules JSON file (default: 'tzero.rules.json'). Resolves relative to project_root.tzero.rules.json
project_rootNoWorkspace root to validate against architectural rules (default: current directory)..

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden and does so well: it declares read-only (audits AST, does not block git/mutate/modify config), idempotent, and fully offline. This is strong disclosure. It stops short of noting rate limits, error behavior, or permissions, so not a full 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well-structured with a summary sentence, then Behavior, Usage Guidelines, and Returns sections. Front-loaded purpose, every line earns its place, no redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Complete for a codebase-audit tool: purpose, behavior traits, when-to-use, sibling routing, and return shape are all present. With an output schema existing, the 'Returns' line is a helpful summary rather than a necessity, and the description still covers everything an agent needs to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% for both params (rules_file, project_root), so the schema already documents defaults and resolution. The description mentions tzero.rules.json but adds no parsing detail, path semantics, or fallback behavior beyond what the schema states. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (enforces) and a well-defined resource (T-4 architectural boundary rules from tzero.rules.json), plus what it verifies: modular separation and unauthorized cross-layer imports. Clearly distinguishes from siblings like query_architecture_boundaries (view rules) and audit_codebase_quality (general smells).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit 'when to use' (CI/CD pipelines, before committing, to verify layer isolation) and explicit sibling routing naming two alternatives with the conditions that select them. Nothing left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

estimate_token_costA

Calculates exact token count and estimated API prompting cost (USD) across major LLM providers (OpenAI GPT-4o, Claude 3.7 Sonnet, Groq, NVIDIA NIM, and Ollama $0) for a given text or directory.

Behavior:

  • Read-only: Mathematical cost projection; does NOT invoke provider APIs or incur financial billing.

  • Idempotent: Produces exact calculations for identical token counts.

  • 100% Offline: Uses local pricing tables without external HTTP queries.

Usage Guidelines:

  • When to use: Estimate prompt token volume and dollar costs before sending large codebase context to commercial LLM APIs.

  • Sibling Routing: To track team monthly/annual cumulative ROI savings and compression metrics over time, use 'get_token_savings_metrics'.

Returns: Markdown table comparing per-million token rates and total estimated costs across major models.

ParametersJSON Schema
NameRequiredDescriptionDefault
textNoOptional raw text to estimate. If empty, analyzes context generated from project_root.
project_rootNoProject directory to scan if text is empty (default: current directory)..
reduction_modeNoReduction tier ('ultra', 'balanced', 'none') applied when scanning project_root.ultra

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does so well: it declares read-only status ('does NOT invoke provider APIs or incur financial billing'), idempotency, and 100% offline operation with local pricing tables. It also states the return shape (a Markdown comparison table) and the $0 Ollama case, covering the safety and behavior profile an agent needs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core purpose, then cleanly sectioned into Behavior, Usage Guidelines, and Returns. The labeled sections make it easy to scan, though the multi-line formatting is slightly heavier than strictly necessary for a three-parameter tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with no annotations, this covers everything needed: what it computes, that it is offline/safe/non-billing, when to use it, the sibling alternative, and a brief note on returns (output schema exists, so return detail is not required). Nothing an agent needs to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all three parameters, giving a baseline of 3. The description adds only a light gloss ('for a given text or directory') and does not explain reduction_mode ('ultra', 'balanced', 'none') beyond what the schema already provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('Calculates exact token count and estimated API prompting cost') and scopes it to named providers (OpenAI GPT-4o, Claude 3.7 Sonnet, Groq, NVIDIA NIM, Ollama). It also distinguishes itself from the sibling get_token_savings_metrics, so an agent can route without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Includes an explicit 'When to use' condition (estimating prompt/cost before sending large codebase context to commercial APIs) and an explicit 'Sibling Routing' exclusion pointing to get_token_savings_metrics for cumulative ROI tracking. Both the trigger and the alternative are named directly.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

export_agent_rulesA

Generates and writes standardized AI agent rule specifications (.cursorrules, .cursor/rules/*.mdc, .clinerules, and .github/copilot-instructions.md) into the workspace.

Behavior:

  • Mutating: Creates or updates configuration files in the target workspace directory.

  • Idempotent: Overwrites existing T-Zero agent rule files with current architecture rules without corrupting user customizations.

  • 100% Offline: Generates rule files locally using built-in templates.

Usage Guidelines:

  • When to use: Run when setting up a repository for AI pair-programming with Cursor, Claude Code, Cline, Windsurf, or GitHub Copilot.

  • Sibling Routing: To view architectural boundaries without writing files to disk, use 'query_architecture_boundaries'.

Returns: Confirmation message listing all generated rule file paths.

ParametersJSON Schema
NameRequiredDescriptionDefault
targetNoTarget editor format: 'cursor', 'cline', 'windsurf', or 'all' (default: 'all').all
project_rootNoTarget workspace directory where agent rule files will be created (default: current directory)..

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations present, the description carries the full burden and does so well: it discloses that it is mutating, idempotent (overwrites T-Zero rule files without corrupting user customizations), and 100% offline using built-in templates. These are exactly the behavioral traits an agent needs before invoking a write tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well-structured with labeled sections (Behavior, Usage Guidelines, Returns) and front-loaded purpose. Every line earns its place by conveying behavioral or routing information rather than restating the name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Complete for a file-writing tool: mutation semantics, idempotency, offline behavior, when-to-use, sibling routing, and return value are all covered. An output schema exists, and the description still summarizes the return value, leaving nothing an agent needs missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so both parameters (target, project_root) are already documented including the target's default of 'all'. The description adds no syntax or format detail beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('Generates and writes standardized AI agent rule specifications') and enumerates the exact file formats produced (.cursorrules, .cursor/rules/*.mdc, .clinerules, .github/copilot-instructions.md). This is unambiguous and clearly distinct from siblings like query_architecture_boundaries.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly names when to use it ('setting up a repository for AI pair-programming with Cursor, Claude Code, Cline, Windsurf, or GitHub Copilot') and routes to the alternative ('To view architectural boundaries without writing files to disk, use query_architecture_boundaries'). The write-vs-read distinction is spelled out.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

find_code_duplicityA

Scans the repository to identify duplicate or copy-pasted blocks of code across multiple files to identify refactoring opportunities.

Behavior:

  • Read-only: Hashes and compares source lines; does not modify code.

  • Idempotent: Deterministic duplicate detection for any codebase state.

  • 100% Offline: Fully local execution without network calls.

Usage Guidelines:

  • When to use: Run during refactoring sprints to locate redundant copy-pasted code blocks suitable for extraction into shared utility functions.

  • Sibling Routing: For full codebase quality and complexity audits, use 'audit_codebase_quality'. For unused unreferenced code, use 'find_dead_code'.

Returns: Markdown report detailing duplicate code clusters with file paths, line ranges, and side-by-side code snippets.

ParametersJSON Schema
NameRequiredDescriptionDefault
min_linesNoMinimum identical consecutive lines to classify as a duplicate block (default: 6).
project_rootNoRoot directory of the repository to scan (default: current directory)..

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does so: it discloses read-only behavior (hashes/compares, does not modify), idempotency (deterministic for any state), and 100% offline execution. These are precisely the safety/behavioral traits an agent needs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Sectioned into Behavior, Usage Guidelines, and Returns with the core action stated first. Every line is informative rather than filler, and the structure makes it scannable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only static analysis tool, the description covers purpose, behavior, routing, and even the return format (markdown report with clusters, paths, line ranges, snippets). An output schema exists, so return detail is bonus rather than required.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents both params (min_lines, project_root) with defaults. The description adds no further parameter meaning, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (scans/identifies) and resource (duplicate copy-pasted code blocks across files) with the goal (refactoring opportunities). It explicitly distinguishes itself from siblings 'audit_codebase_quality' and 'find_dead_code', so an agent can route correctly without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides an explicit 'When to use' condition (refactoring sprints to locate redundant blocks) and a 'Sibling Routing' section naming the exact alternatives for adjacent tasks (quality/complexity audits and dead code). Both when-to-use and when-to-use-alternatives are covered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

find_dead_codeA

Finds unused, orphaned, or unreferenced functions and classes across the codebase AST. Excludes all, main, dunder methods, and test functions.

Behavior:

  • Read-only: Computes symbol reference counts; does NOT delete or modify any source code files.

  • Idempotent: Consistent dead code candidate discovery for the same repository state.

  • 100% Offline: Local AST reference analysis.

Usage Guidelines:

  • When to use: Run during technical debt cleanup to locate deprecated, dead, or forgotten functions and classes ready for safe removal.

  • Sibling Routing: For copy-pasted duplicate logic blocks, use 'find_code_duplicity'. For general complexity and linting, use 'audit_codebase_quality'.

Returns: Markdown report listing candidate orphaned symbols with file paths, line numbers, and symbol types.

ParametersJSON Schema
NameRequiredDescriptionDefault
project_rootNoRoot directory of the repository to scan for unreferenced symbols (default: current directory)..

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does so: read-only (no source modification), idempotent, fully offline/local. It also discloses false-positive guards — exclusions for __all__, main, dunder methods, and test functions — which is exactly the behavioral context an agent needs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded one-line purpose followed by clearly labeled Behavior, Usage Guidelines, and Returns sections. Every sentence adds distinct information with no redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, yet the description still usefully previews the return shape (markdown report with file paths, line numbers, symbol types). Combined with the behavior and routing sections, nothing needed to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Single parameter with 100% schema description coverage, including the default of '.'. The description adds nothing beyond what the schema already documents, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb + resource ('Finds unused, orphaned, or unreferenced functions and classes') plus the mechanism (AST). The exclusion list narrows the semantic scope and distinguishes it cleanly from audit_codebase_quality and find_code_duplicity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit 'When to use' context (technical debt cleanup for safe removal) plus named sibling routing: find_code_duplicity for duplicate logic, audit_codebase_quality for complexity/linting. An agent can route without inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

generate_architecture_blueprintA

Generates a complete system architectural specification (ARCHITECTURE.md) including auto-generated Mermaid component topology diagrams, layer boundaries, and module hierarchies.

Behavior:

  • Read-only by default: Returns formatted markdown text. Does NOT write files unless invoked via CLI export.

  • Idempotent: Produces deterministic AST topology when use_ai=False.

  • Cost: 100% free and local by default (use_ai=False). If use_ai=True, uses configured environment API key (e.g. NVIDIA NIM / OpenAI) for enriched architectural narrative.

Usage Guidelines:

  • When to use: Create or update system architecture documentation and visual Mermaid flow diagrams for onboarding or RFC review.

  • Sibling Routing: For checking rule compliance against defined boundaries, use 'enforce_architecture_boundaries'. For basic dependency trees, use 'query_module_dependencies'.

Returns: Comprehensive Markdown document with live Mermaid diagrams, layer classifications, and component interfaces.

ParametersJSON Schema
NameRequiredDescriptionDefault
modelNoOptional model identifier override (e.g. 'deepseek-v4.1-flash', 'gpt-4o') when use_ai is True.
use_aiNoWhen True, uses configured 3rd-party AI or Free AI Cloud to synthesize deep architecture analysis; when False (default), runs 100% offline AST analysis.
project_rootNoRoot directory of the repository to analyze and document (default: current directory)..

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full behavioral burden and does so well: read-only by default (returns markdown, does not write files unless via CLI export), idempotent/deterministic when use_ai=False, and cost/auth implications (free and local by default; uses configured API key when use_ai=True).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the purpose and organized into clear Behavior/Usage/Returns sections with bullets, so it scans well. Slightly verbose and mildly repetitive (the free/local vs AI cost point is restated in Behavior and Returns), keeping it just below a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a zero-required-parameter generation tool with an output schema present, the description is complete: it covers scope, safety/write behavior, cost/auth tradeoffs, sibling routing, and even summarizes returns. Nothing needed to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all three parameters, making 3 the baseline. The description reinforces use_ai's cost/network implications and model's role, adding marginal value but no syntax or format detail beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource: generates a complete system architectural specification (ARCHITECTURE.md) with Mermaid diagrams, layer boundaries, and module hierarchies. This is distinguishable from siblings like generate_repo_map or query_module_dependencies without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly gives when-to-use (create/update architecture docs and diagrams for onboarding or RFC review) and provides Sibling Routing that names two alternatives with the condition selecting each ('enforce_architecture_boundaries' for rule compliance, 'query_module_dependencies' for dependency trees).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

generate_repo_mapA

Generates an ultra-compressed AST symbol token map (classes, methods, functions) tailored for LLM chat prompts and extreme context window savings.

Behavior:

  • Read-only: Extracts AST signatures without writing or modifying files.

  • Idempotent: Deterministic symbol catalog for the same codebase state.

  • 100% Offline: Local AST extraction; zero external API calls.

Usage Guidelines:

  • When to use: Provide the LLM with an immediate high-level index of all classes and functions across the repository in minimal tokens (~5-15 tokens per file).

  • Sibling Routing: For full function signatures with parameter types and docstrings, use 'get_project_context_tree'. For 1st-degree context around a specific focus file, use 'get_smart_skeleton_context'.

Returns: Compact Markdown symbol map indexed by file path.

ParametersJSON Schema
NameRequiredDescriptionDefault
max_tokensNoMaximum token budget for the repo map (default: 4000).
project_rootNoRoot directory of the repository to map (default: current directory)..

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden and does so well: it declares read-only ('without writing or modifying files'), idempotent/deterministic, and 100% offline with zero external API calls. These are exactly the behavioral traits an agent needs before invoking a codebase scan.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded purpose followed by tight categorized bullets; every line is scannable and earns its place. The 'Returns' line is mildly redundant given an output schema exists, keeping this just short of a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given an output schema exists, the description need not explain return values, yet it briefly does so anyway. Purpose, scope, alternatives, behavioral profile, and output shape are all present, leaving no gap for an agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so both parameters (max_tokens, project_root) are already documented in the schema and the description need not repeat them. It adds no format/semantics beyond the schema, which is the correct baseline-3 situation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb+resource+output: 'Generates an ultra-compressed AST symbol token map (classes, methods, functions)'. It also names the exact siblings it differs from (get_project_context_tree, get_smart_skeleton_context), so an agent can distinguish it without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is an explicit 'When to use' condition (give the LLM a high-level index across the repo in minimal tokens) plus explicit 'Sibling Routing' rules that name the alternatives and the condition selecting each. Nothing is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_incremental_diff_contextA

Calculates hyper-compact PR git diff context (changed symbols + downstream blast radius dependents) for 98%+ token savings during code review and debugging.

Behavior:

  • Read-only: Inspects git diff and local AST; does not stage, commit, or revert any git changes.

  • Idempotent: Deterministic for the same git working tree status.

  • 100% Offline: Local git CLI and AST processing.

Usage Guidelines:

  • When to use: Provide focused context during code review, PR description generation, or bug hunting for pending changes with 98%+ token reduction.

  • Sibling Routing: For full repository context, use 'get_project_context_tree'. For single-symbol impact analysis, use 'analyze_change_impact'.

Returns: Structured Markdown diff context with changed symbol signatures, diff hunks, and caller references.

ParametersJSON Schema
NameRequiredDescriptionDefault
base_refNoGit revision or branch to diff against (default: 'HEAD~1').HEAD~1
project_rootNoGit repository root path (default: current directory)..

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full burden — and it does: it discloses read-only semantics ('does not stage, commit, or revert'), idempotency/determinism, and full offline/local-CLI execution. It also sketches the return shape, which is unusually thorough for a tool with zero annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core purpose and cleanly sectioned into Behavior / Usage / Returns, so it scans well. Minor deduction because the '98%+ token savings' claim is repeated in two sections and reads as promotional padding rather than added information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter read-only diff tool, the description covers purpose, routing, behavioral guarantees, and return format. Since an output schema already exists, the inline 'Returns' note is surplus but harmless, and nothing an agent needs to invoke this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and both parameters (base_ref, project_root) carry their own defaults and descriptions, so the schema does the heavy lifting. The description adds no syntax, format, or edge-case guidance for base_ref beyond what the schema already states, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — 'Calculates hyper-compact PR git diff context' — and immediately narrows the output to 'changed symbols + downstream blast radius dependents.' The sibling-routing line makes its boundary against 'get_project_context_tree' and 'analyze_change_impact' explicit, so an agent can distinguish it without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides an explicit 'When to use' condition (code review, PR description generation, bug hunting on pending changes) and names two concrete alternatives with the condition that selects each. Nothing about tool selection is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_project_context_treeA

Scans the target project directory and builds an enterprise-grade multi-tier T-Zero hierarchical context tree (T-1 Master Architecture, T-2 Module References, T-3 AST Signatures, T-4 Agent Boundary Rules).

Behavior:

  • Read-only: Performs static AST analysis without modifying any files on disk.

  • Idempotent: Deterministic output for identical repository states.

  • 100% Offline: Executes locally without network calls, external embeddings, or LLM billing.

Usage Guidelines:

  • When to use: Ingest repository architecture and signatures into prompt context at the start of a coding session or before large refactors (80-95% token savings).

  • Sibling Routing: For a fast single-page class/method symbol index, use 'generate_repo_map'. For full implementation of an active file with 1st-degree caller/callee skeletons, use 'get_smart_skeleton_context'. For arbitrary in-memory snippets, use 'prune_code_snippet'.

Returns: Structured Markdown containing directory tree, module outlines, and AST signatures up to max_tokens.

ParametersJSON Schema
NameRequiredDescriptionDefault
max_tokensNoUpper token budget threshold for returned context. When exceeded, PageRank & Git recency prioritizes critical architectural files.
project_rootNoTarget repository root path to scan (default: current working directory)..
reduction_modeNoAST reduction level: 'ultra' for signatures & docstrings (80-95% reduction), 'balanced' for signatures + control headers, 'none' for verbatim source.ultra
include_file_contentsNoWhen True, includes AST-reduced file bodies; when False, emits only the directory hierarchy and high-level architectural outline.

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations are absent, so the description carries the full burden, and it does so well by disclosing read-only, idempotent, and offline/no-LLM-cost traits. It omits error behavior, handling of unreadable/symlinked directories, and runtime cost characteristics, which leaves modest gaps for a repository-wide scan.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well front-loaded with a one-line purpose followed by labeled Behavior / Usage Guidelines / Returns sections that scan quickly. Some jargon is inflated ('enterprise-grade multi-tier T-Zero', 'T-1 Master Architecture'), which adds words without adding agent-relevant meaning, but the structure is clean.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is moderately complex (4 params, AST scanning) and the description covers behavior, safety profile, usage context, sibling routing, and output shape; with an output schema present it need not detail return values. Nothing an agent needs to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and each parameter (max_tokens, project_root, reduction_mode, include_file_contents) is already well documented in the schema, so the baseline of 3 applies. The description only lightly reinforces this by mentioning 'up to max_tokens' in the Returns line and adds no format details beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ('Scans the target project directory and builds ... hierarchical context tree') and immediately differentiates itself from siblings via an explicit Sibling Routing paragraph that names generate_repo_map, get_smart_skeleton_context, and prune_code_snippet with the conditions that select each. An agent can route correctly without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states precisely when to use it ('start of a coding session or before large refactors') with a quantified benefit, and then provides explicit alternative routing for four distinct sibling scenarios. This is the when/when-not/alternatives pattern executed fully.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_smart_skeleton_contextA

Focus-aware dynamic skeletonizer. Returns the full, unpruned implementation of the focus file (or specific focus symbol), surrounded by ultra-compact T-3 AST signatures for all 1st-degree outbound imports and inbound callers. Solves the 'Lost in the Middle' problem while saving 95%+ tokens.

Behavior:

  • Read-only: Traverses local AST dependencies; does not mutate files.

  • Idempotent: Returns identical focus + skeleton bundles for the same codebase state.

  • 100% Offline: Local AST parsing and signature reduction.

Usage Guidelines:

  • When to use: Run when editing a specific file to provide the LLM with full implementation context plus compact interface skeletons of adjacent modules.

  • Sibling Routing: For repository-wide context, use 'get_project_context_tree'. For symbol index without file contents, use 'generate_repo_map'.

Returns: Structured Markdown with full focus file source code and 1st-degree AST skeletons for imported and caller modules.

ParametersJSON Schema
NameRequiredDescriptionDefault
focus_fileYesTarget file path to focus on and retain with full implementation.
focus_symbolNoOptional specific function or class name within focus_file to isolate.
project_rootNoRoot directory of the repository (default: current directory)..

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does well: it declares read-only, idempotent, and 100% offline behavior, plus the token-efficiency trait. It does not address failure modes (missing file, non-parseable syntax, side effects of the focus_symbol filter), which prevents a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core behavior in the first sentence and organized under Behavior/Usage/Returns headings. Some marketing phrasing ('Lost in the Middle', 'saving 95%+ tokens') adds flavor at the cost of a little density, but overall structure is tight.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so the description needn't explain return values, yet it still summarizes them as structured Markdown. Purpose, usage, siblings, and behavior are all covered; only error/edge-case handling is missing, which is a minor gap for this read-only tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description's parenthetical '(or specific focus symbol)' reinforces the focus_file/focus_symbol relationship, but it adds little syntax or format detail beyond the schema and never addresses the project_root parameter's role.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource: returns the full focus file/symbol plus T-3 AST signatures of its 1st-degree imports and callers. The scope distinction (full implementation vs. compact skeletons) is precise and lets an agent differentiate it from the many other context/repo tools in the sibling list.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides an explicit 'When to use' line (editing a specific file) and a 'Sibling Routing' section that names get_project_context_tree for repo-wide context and generate_repo_map for symbol-only indexes. This is exactly the when/when-not/alternatives structure.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_token_savings_metricsA

Computes quantitative token compression metrics, reduction percentage, and developer team financial ROI savings (USD/month).

Behavior:

  • Read-only: Evaluates codebase file sizes and compressed token counts; does not alter files or call APIs.

  • Idempotent: Deterministic metric calculations for current codebase volume.

  • 100% Offline: Fully local calculation without network access.

Usage Guidelines:

  • When to use: Quantify efficiency gains and financial savings from T-Zero context compression for team reports and engineering leadership.

  • Sibling Routing: For per-model single-prompt cost comparisons (OpenAI vs Anthropic vs Gemini), use 'estimate_token_cost'.

Returns: Markdown executive summary with token reduction percentages, monthly developer cost savings, and annual ROI projections.

ParametersJSON Schema
NameRequiredDescriptionDefault
team_sizeNoNumber of developers in the engineering team used to model monthly ROI savings (default: 5).
project_rootNoTarget workspace directory to measure (default: current directory)..

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden. It discloses read-only, idempotent, and 100% offline behavioral traits, plus indicates the return format. Missing finer details like auth requirements or what happens on invalid project_root, but the core behavioral profile is well covered.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded purpose sentence, then clearly labeled Behavior, Usage Guidelines, and Returns sections. No filler; every line adds information an agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Output schema exists so return values needn't be detailed, yet a brief Returns summary is still helpful. Read-only/idempotent/offline behavior, sibling routing, and usage context are all present; only minor edge-case behavior is absent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% so baseline is 3. The description's Returns section clarifies the output depends on team_size (monthly ROI) and project_root (codebase measurement), adding meaning to how parameters affect results beyond the schema's field-level docs.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (computes) and precise resource (quantitative token compression metrics, reduction percentage, developer team financial ROI savings). Distinguishes itself from the single sibling it could be confused with by naming 'estimate_token_cost' explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit 'When to use' targeting team reports and engineering leadership, plus explicit sibling routing naming 'estimate_token_cost' with its differentiating scope (per-model single-prompt cost comparisons). Covers both when-to-use and when-to-use-something-else.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

prune_code_snippetA

Compresses arbitrary in-memory source code or text into compact AST/interface signatures on-the-fly, returning pruned code and precise token savings percentage (80-95% reduction).

Behavior:

  • Pure in-memory transformation: Does not read or write any files on disk; takes text input and returns pruned text.

  • Idempotent: Deterministic output for identical input code and reduction mode.

  • 100% Offline: Polyglot AST/regex parsers for Python, TypeScript, Go, Rust, Java, C#, C++, Swift, Kotlin.

Usage Guidelines:

  • When to use: Compress in-memory code blocks or clipboard buffers before passing them into LLM chat prompts.

  • Sibling Routing: To scan and compress entire directories or repositories on disk, use 'get_project_context_tree' or 'get_smart_skeleton_context'.

Returns: Markdown fenced code block with pruned signatures and precise token reduction percentage.

ParametersJSON Schema
NameRequiredDescriptionDefault
codeYesRaw source code content to prune.
reduction_modeNoReduction tier: 'ultra' for AST signatures only (80-95% reduction), 'balanced' for signatures + control flow.ultra
file_path_or_extNoFile name or extension (e.g. 'service.ts', 'main.go', 'app.py', '.rs', '.java', '.cs', '.kt', '.swift') indicating language parser.snippet.py

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does it well: it discloses the no-disk-I/O contract, idempotency, offline operation, and the supported language set. The gap is failure behavior — nothing says what happens with an unsupported extension or code the parser cannot handle, which matters for a tool taking arbitrary input plus a language hint.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core purpose in the first sentence, then labeled Behavior / Usage Guidelines / Returns sections that are easy to scan. Slightly verbose — the 80-95% figure appears twice and the language enumeration partially duplicates the schema's extension list.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists so return values need not be spelled out, yet the description still notes the Markdown fenced-block plus token-reduction percentage. Combined with the behavioral and routing detail, an agent has everything needed to call this correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3; the schema already documents code, reduction_mode tiers, and file_path_or_ext extensions. The description's restatement of the ultra/balanced tiers and the language list adds emphasis but no meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Compresses arbitrary in-memory source code or text into compact AST/interface signatures') and pins the transform as on-the-fly/in-memory. That scope qualifier cleanly separates it from disk-scanning siblings like get_project_context_tree before the agent opens any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit 'When to use' names the concrete scenario (compressing in-memory code blocks or clipboard buffers before LLM prompts) and 'Sibling Routing' names the two alternatives for the on-disk case. Both when-to-use and when-not-to-use are covered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

query_architecture_boundariesA

Retrieves active T-4 architectural tier boundary definitions, operational constraints, and zero-leak security rules defined in tzero.rules.json or built-in defaults.

Behavior:

  • Read-only: Reads configuration files; does not modify rules or codebase files.

  • Idempotent: Returns consistent rule definitions for identical configurations.

  • 100% Offline: Local JSON file lookup without remote calls.

Usage Guidelines:

  • When to use: Consult before designing new features or adding imports to understand layer isolation rules (e.g. presentation cannot import database models) and avoid architecture violations.

  • Sibling Routing: To actively validate workspace code against these rules and detect violations, use 'enforce_architecture_boundaries'. To view complete Mermaid topology blueprints, use 'generate_architecture_blueprint'.

Returns: Markdown specification of architectural layers, allowed/forbidden import directions, and security constraints.

ParametersJSON Schema
NameRequiredDescriptionDefault
project_rootNoRoot directory of the repository where tzero.rules.json is located (default: current directory)..
extra_guidanceNoOptional custom rules, architecture styles, or conventions to inject into the boundary definition.

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does so well: it declares read-only behavior, idempotency, and that it is 100% offline with no remote calls, which answers the key safety and side-effect questions. It does not cover error/fallback behavior or permission requirements, so it falls short of the top band.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core purpose and organized into Behavior, Usage Guidelines, and Returns blocks; each line carries useful information. It is somewhat long for a two-parameter read tool, which keeps it out of the top band.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given an output schema exists, return details are optional, yet the description still summarizes the Markdown return shape. Combined with the explicit behavior and routing sections, an agent has everything needed to call the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and both parameters (project_root, extra_guidance) are fully documented in the schema. The description only tangentially reinforces this by mentioning tzero.rules.json lookup, adding little beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (Retrieves) and a precise resource (active T-4 architectural tier boundary definitions, constraints, and zero-leak security rules), including the source of truth (tzero.rules.json or built-in defaults). An agent can distinguish it immediately from sibling tools like enforce_architecture_boundaries and generate_architecture_blueprint.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit 'When to use' clause gives a concrete scenario (before designing features or adding imports to understand layer isolation), and 'Sibling Routing' names two alternatives with the exact conditions that select them. Nothing is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

query_module_dependenciesA

Analyzes import/export dependencies, module relationships, and internal vs external package dependencies across polyglot files (Python, TypeScript, Go, Rust, Java, C#, C++).

Behavior:

  • Read-only: Inspects source syntax trees without modifying or moving files.

  • Idempotent: Deterministic dependency mapping for any scanned repository.

  • 100% Offline: Local regex and AST parsing; zero external network requests.

Usage Guidelines:

  • When to use: Run before refactoring, moving, or removing a module to inspect inbound dependents (who imports this) and outbound dependencies (what this imports).

  • Sibling Routing: For deep recursive function/method call chains (caller -> callee call graph), use 'trace_symbol_call_chain'. To test whether imports violate layer boundary rules, use 'enforce_architecture_boundaries'.

Returns: Markdown report detailing inbound referrers, outbound imports, and the workspace dependency pool.

ParametersJSON Schema
NameRequiredDescriptionDefault
file_pathNoOptional relative or absolute path to a specific file to inspect. If empty, analyzes the whole workspace.
project_rootNoRoot directory of the repository to scan (default: current directory)..

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations supplied, the description carries the burden and largely meets it: read-only, idempotent, and 100% offline with local regex/AST parsing. It does not disclose limits such as scan cost or behavior on very large monorepos, so it falls just short of fully comprehensive behavioral disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well front-loaded with labeled Behavior and Usage Guidelines blocks, and each bullet carries information. The trailing 'Returns:' line is mildly redundant given an output schema exists, but overall it is tightly sized.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter read-only analysis tool with a full output schema and clear sibling routing, nothing an agent needs to select or invoke it correctly is missing. Return-format detail is correctly delegated to the output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% for both parameters, including the empty-means-whole-workspace behavior of file_path, so the baseline is 3. The description adds no syntax, path-resolution, or scoping nuance beyond what the schema already documents.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Analyzes import/export dependencies, module relationships, and internal vs external package dependencies') and scopes it to polyglot source files. It is immediately distinguishable from siblings like trace_symbol_call_chain or enforce_architecture_boundaries, which it names explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides an explicit 'When to use' trigger (before refactoring, moving, or removing a module) and a 'Sibling Routing' block that names two alternatives and the exact condition that selects each (call-chain tracing vs layer-boundary enforcement). This is textbook routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

rank_repository_pagerankA

Identifies the architectural backbone and most critical modules of any repository using graph-theory PageRank centrality over AST import and reference topologies. Ranks modules by inbound/outbound degree and structural criticality.

Behavior:

  • Read-only: Graph centrality computation; does not alter files.

  • Idempotent: Deterministic PageRank convergence for identical import graphs.

  • 100% Offline: Fully local graph traversal without external dependencies.

Usage Guidelines:

  • When to use: Run when exploring an unfamiliar codebase to immediately identify the core architectural modules versus peripheral utilities.

  • Sibling Routing: For direct pairwise dependencies of a file, use 'query_module_dependencies'. For blast radius of a single function, use 'analyze_change_impact'.

Returns: Ranked Markdown table with PageRank centrality scores, inbound/outbound degrees, and architectural significance notes.

ParametersJSON Schema
NameRequiredDescriptionDefault
top_kNoNumber of top central modules to return in the ranking report (default: 15).
project_rootNoRoot directory of the repository to analyze (default: current directory)..

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden and does so: it declares read-only, idempotent/deterministic convergence, and fully offline execution, and explains the ranking semantics (inbound/outbound degree, structural criticality). This is far beyond what a bare tool name would convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded one-sentence purpose, then labeled Behavior / Usage / Returns blocks. Every line carries routing or behavioral information; there is no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so the brief 'Returns' line is a bonus rather than a requirement. Combined with the routing guidance and behavioral notes, an agent has everything needed to select and call this tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so top_k and project_root are already fully documented in the schema. The description adds no syntax or format detail beyond that, so the baseline 3 applies even though nothing is missing.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('identifies the architectural backbone and most critical modules') and names the mechanism (PageRank centrality over AST import/reference topologies). This is unmistakably distinct from siblings like query_module_dependencies or generate_architecture_blueprint.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit 'When to use' condition (exploring an unfamiliar codebase to separate core modules from peripheral utilities) plus a 'Sibling Routing' block that names two alternatives and the exact condition selecting each. Nothing is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

search_codebase_semanticA

100% Private, local hybrid BM25 + TF-IDF semantic code search across workspace AST tokens, function headers, and docstrings without sending code to third-party embedding APIs.

Behavior:

  • Read-only: In-memory inverted index query; does not modify files.

  • Idempotent: Deterministic search ranking for identical query and code states.

  • 100% Offline & Private: Never sends code or embeddings to external APIs; $0 cost and zero data leakage.

Usage Guidelines:

  • When to use: Find functions, classes, or logic snippets using conceptual natural language queries (e.g. 'authentication jwt token verify', 'rate limit algorithm').

  • Sibling Routing: For exact string or regex matches, use IDE grep or ripgrep. For finding unused code, use 'find_dead_code'.

Returns: Ranked Markdown list of matching code snippets with file locations, match scores, and surrounding context.

ParametersJSON Schema
NameRequiredDescriptionDefault
queryYesNatural language or technical keyword query describing the desired code logic.
top_kNoMaximum number of top-matching code snippets to return (default: 5).
project_rootNoWorkspace root directory to index and search (default: current directory)..

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does well: it discloses read-only (in-memory query, no file modification), idempotent/deterministic ranking, and privacy ($0 cost, no external embedding APIs). It does not address latency or indexing cost on large workspaces, a minor gap for a search tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well-structured with front-loaded purpose and clear Behavior/Usage/Returns sections with bullets. It is slightly verbose (the Returns section overlaps the output schema), but every section is scannable and earns most of its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no annotations but an existing output schema, the description covers behavior, usage, and safety/privacy adequately. The Returns description is partly redundant with the output schema, and no latency/scale caveat is given, but an agent has enough to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so all three parameters are already documented in the schema. The description adds value only by clarifying the query is natural-language/conceptual with examples; top_k and project_root receive no added meaning beyond the schema. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb (search) and resource (codebase) with precise scope: hybrid BM25 + TF-IDF semantic search across AST tokens, function headers, and docstrings. It clearly distinguishes itself from siblings by naming grep/ripgrep and find_dead_code as different tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly states when to use the tool ('conceptual natural language queries') with concrete examples, and provides explicit sibling routing: exact/regex matches go to grep/ripgrep, unused-code detection goes to find_dead_code. Nothing is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

trace_symbol_call_chainA

Traces deep execution paths across the codebase AST. Recursively discovers upstream callers (who calls symbol_name) and downstream callees (what symbol_name calls) up to max_depth, rendering an execution tree and Mermaid call diagram.

Behavior:

  • Read-only: Recursively traverses AST function call expressions; does not modify source code.

  • Idempotent: Deterministic call graph traversal.

  • 100% Offline: Local AST analysis without external services.

Usage Guidelines:

  • When to use: Run when debugging execution flows, tracing data paths into a function, or seeing everything a complex method calls recursively.

  • Sibling Routing: For quick single-symbol blast radius scoring (0-100), use 'analyze_change_impact'. For module-level import relations, use 'query_module_dependencies'.

Returns: Markdown report containing recursive ASCII execution tree, caller/callee counts, and copy-pasteable Mermaid flowchart syntax.

ParametersJSON Schema
NameRequiredDescriptionDefault
max_depthNoMaximum recursion depth for the call graph traversal (default: 3).
symbol_nameYesExact function or method name to trace across the codebase call graph.
project_rootNoRoot directory of the repository (default: current directory)..

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden, and it does so well: read-only AST traversal, deterministic/idempotent, fully offline. It stops short of noting practical limits such as cost/complexity at high max_depth on large codebases, so it is strong but not exhaustive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and well-organized under Behavior/Usage/Returns headings; every bullet is relevant. The 'Returns' line slightly duplicates the output schema, which is the only small redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only trace tool with full schema coverage and an output schema, the description covers purpose, behavior, routing, and result shape. Nothing an agent needs to invoke and interpret it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so all three parameters are already documented. The description adds only marginal meaning by framing max_depth as the recursion limit that bounds the rendering and symbol_name as an 'exact' name; the baseline 3 applies when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource: 'Traces deep execution paths across the codebase AST,' then defines both traversal directions (upstream callers, downstream callees). An agent can distinguish it from siblings without opening the schema, and the sibling-routing section reinforces the distinction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit 'When to use' triggers (debugging execution flows, tracing data paths, seeing recursive calls) and explicit alternatives: 'analyze_change_impact' for blast-radius scoring, 'query_module_dependencies' for module imports. Conditions selecting each sibling are named.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

verify_hallucination_guardA

Eliminates AI coding hallucinations before code is written or applied. Parses proposed code and verifies all internal imports and function/method call contracts (argument counts and keyword parameter names) against known workspace AST signatures.

Behavior:

  • Read-only: Compares AST call signatures against local symbol catalog; does not modify source files.

  • Idempotent: Deterministic contract verification.

  • 100% Offline: Uses local AST indices without remote queries.

Usage Guidelines:

  • When to use: Run BEFORE applying AI-generated code to prevent hallucinated module imports, missing functions, or wrong argument counts.

  • Sibling Routing: To enforce layer boundary separation rules, use 'enforce_architecture_boundaries'.

Returns: Verification status report with specific contract mismatches and 'did you mean' fuzzy suggestions.

ParametersJSON Schema
NameRequiredDescriptionDefault
target_fileNoOptional path of the target file being modified to resolve relative imports.
project_rootNoWorkspace root directory providing the ground-truth AST symbol catalog (default: current directory)..
proposed_codeYesPython code proposed to be written or edited.

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does well: it declares read-only ('does not modify source files'), idempotent/deterministic, and 100% offline, and it explains the return content. It stops short of only minor items like how mismatches are ordered or performance bounds.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the core purpose, then uses labeled Behavior/Usage/Returns sections that are easy to scan. Slightly verbose in places (e.g., restating read-only and offline separately), but every line is relevant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a verification tool, the description covers what it checks, how (AST against local symbol catalog), the safety profile, when to run it, sibling routing, and even the return shape. An agent has everything needed to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents proposed_code, target_file, and project_root. The description adds only marginal framing ('against known workspace AST signatures') and doesn't add syntax or format detail beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Parses proposed code and verifies all internal imports and function/method call contracts') with concrete scope (argument counts, keyword parameter names, AST signatures). Clearly distinguishable from siblings like enforce_architecture_boundaries and audit_codebase_quality.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit 'When to use: Run BEFORE applying AI-generated code' with the failure modes it prevents, plus an explicit sibling route ('To enforce layer boundary separation rules, use enforce_architecture_boundaries'). Both when-to-use and alternatives are named.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

verify_zero_leak_securityA

100% Zero-Leak security scanner. Analyzes a file, code snippet, or repository workspace for hardcoded API keys (OpenAI, Anthropic, NVIDIA, Gemini, HuggingFace, GitHub), private keys, JWT tokens, and cloud secrets (100% private, 0 external network calls, $0 cost).

Behavior:

  • Read-only: Pattern matching and entropy analysis; does NOT modify, expose, or upload credentials.

  • Idempotent: Deterministic security findings for identical content.

  • 100% Offline & Private: Never transmits inspected text to any remote server; all secret detections are masked.

Usage Guidelines:

  • When to use: Run before git commit, push, or public release to guarantee zero secret leaks.

  • Sibling Routing: For broad code quality audits including complexity, docstrings, and layer rules, use 'audit_codebase_quality'.

Returns: Security pass/fail report with masked secret snippets, affected file paths, and line numbers.

ParametersJSON Schema
NameRequiredDescriptionDefault
target_fileNoOptional single file path to inspect instead of the full workspace.
code_snippetNoOptional in-memory code string to inspect instead of files on disk.
project_rootNoWorkspace root directory to scan for secret leaks (default: current directory)..

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden and does so well: it declares read-only behavior, idempotency/determinism, fully offline operation with zero network calls, and that detections are masked rather than exposed. It also describes the return shape (pass/fail, masked snippets, paths, line numbers), which is exactly the disclosure a mutation-free scanner needs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core claim and organized under labeled Behavior/Usage/Returns sections, so scanning is fast. Minor redundancy in restating '100%' privacy and zero-cost claims across the opening line and the Offline bullet keeps it just short of optimal.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists so return values need no elaboration, and the description still covers scope, safety profile, determinism, and offline guarantees. Nothing an agent needs to invoke this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3; the description adds marginal but real value by framing the three modes (single file, in-memory snippet, whole workspace) in the opening sentence. It does not, however, clarify precedence when multiple targets are supplied simultaneously.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource (scans file/snippet/workspace for hardcoded secrets) and enumerates the exact secret classes targeted. It explicitly separates itself from the sibling 'audit_codebase_quality', so an agent can route without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a concrete trigger ('run before git commit, push, or public release') and explicit sibling routing to 'audit_codebase_quality' for broader quality audits. Both when-to-use and when-to-use-something-else are covered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 21 tool updatesv0.1.1
    • Changedanalyze_change_impact2 fields changed
      • addedInput schema / properties / project_root / description
        Added value: +"Workspace root directory containing target symbols (default: current directory)."
      • addedInput schema / properties / target_symbol / description
        Added value: +"Name of the function, class, or method to analyze for change blast radius."
    • Changedaudit_codebase_quality2 fields changed
      • addedInput schema / properties / file_path / description
        Added value: +"Optional path to a specific file to audit. If empty, audits all code files in the workspace."
      • addedInput schema / properties / project_root / description
        Added value: +"Root directory of the repository to audit (default: current directory)."
    • Changedenforce_architecture_boundaries2 fields changed
      • addedInput schema / properties / project_root / description
        Added value: +"Workspace root to validate against architectural rules (default: current directory)."
      • addedInput schema / properties / rules_file / description
        Added value: +"Path to rules JSON file (default: 'tzero.rules.json'). Resolves relative to project_root."
    • Changedestimate_token_cost3 fields changed
      • addedInput schema / properties / project_root / description
        Added value: +"Project directory to scan if text is empty (default: current directory)."
      • addedInput schema / properties / reduction_mode / description
        Added value: +"Reduction tier ('ultra', 'balanced', 'none') applied when scanning project_root."
      • addedInput schema / properties / text / description
        Added value: +"Optional raw text to estimate. If empty, analyzes context generated from project_root."
    • Changedexport_agent_rules2 fields changed
      • addedInput schema / properties / project_root / description
        Added value: +"Target workspace directory where agent rule files will be created (default: current directory)."
      • addedInput schema / properties / target / description
        Added value: +"Target editor format: 'cursor', 'cline', 'windsurf', or 'all' (default: 'all')."
    • Changedfind_code_duplicity2 fields changed
      • addedInput schema / properties / min_lines / description
        Added value: +"Minimum identical consecutive lines to classify as a duplicate block (default: 6)."
      • addedInput schema / properties / project_root / description
        Added value: +"Root directory of the repository to scan (default: current directory)."
    • Changedfind_dead_code1 field changed
      • addedInput schema / properties / project_root / description
        Added value: +"Root directory of the repository to scan for unreferenced symbols (default: current directory)."
    • Changedgenerate_architecture_blueprint3 fields changed
      • addedInput schema / properties / model / description
        Added value: +"Optional model identifier override (e.g. 'deepseek-v4.1-flash', 'gpt-4o') when use_ai is True."
      • addedInput schema / properties / project_root / description
        Added value: +"Root directory of the repository to analyze and document (default: current directory)."
      • addedInput schema / properties / use_ai / description
        Added value: +"When True, uses configured 3rd-party AI or Free AI Cloud to synthesize deep architecture analysis; when False (default), runs 100% offline AST analysis."
    • Changedgenerate_repo_map2 fields changed
      • addedInput schema / properties / max_tokens / description
        Added value: +"Maximum token budget for the repo map (default: 4000)."
      • addedInput schema / properties / project_root / description
        Added value: +"Root directory of the repository to map (default: current directory)."
    • Changedget_incremental_diff_context2 fields changed
      • addedInput schema / properties / base_ref / description
        Added value: +"Git revision or branch to diff against (default: 'HEAD~1')."
      • addedInput schema / properties / project_root / description
        Added value: +"Git repository root path (default: current directory)."
    • Changedget_project_context_tree4 fields changed
      • addedInput schema / properties / include_file_contents / description
        Added value: +"When True, includes AST-reduced file bodies; when False, emits only the directory hierarchy and high-level architectural outline."
      • addedInput schema / properties / max_tokens / description
        Added value: +"Upper token budget threshold for returned context. When exceeded, PageRank & Git recency prioritizes critical architectural files."
      • addedInput schema / properties / project_root / description
        Added value: +"Target repository root path to scan (default: current working directory)."
      • addedInput schema / properties / reduction_mode / description
        Added value: +"AST reduction level: 'ultra' for signatures & docstrings (80-95% reduction), 'balanced' for signatures + control headers, 'none' for verbatim source."
    • Changedget_smart_skeleton_context3 fields changed
      • addedInput schema / properties / focus_file / description
        Added value: +"Target file path to focus on and retain with full implementation."
      • addedInput schema / properties / focus_symbol / description
        Added value: +"Optional specific function or class name within focus_file to isolate."
      • addedInput schema / properties / project_root / description
        Added value: +"Root directory of the repository (default: current directory)."
    • Changedget_token_savings_metrics2 fields changed
      • addedInput schema / properties / project_root / description
        Added value: +"Target workspace directory to measure (default: current directory)."
      • addedInput schema / properties / team_size / description
        Added value: +"Number of developers in the engineering team used to model monthly ROI savings (default: 5)."
    • Changedprune_code_snippet3 fields changed
      • addedInput schema / properties / code / description
        Added value: +"Raw source code content to prune."
      • addedInput schema / properties / file_path_or_ext / description
        Added value: +"File name or extension (e.g. 'service.ts', 'main.go', 'app.py', '.rs', '.java', '.cs', '.kt', '.swift') indicating language parser."
      • addedInput schema / properties / reduction_mode / description
        Added value: +"Reduction tier: 'ultra' for AST signatures only (80-95% reduction), 'balanced' for signatures + control flow."
    • Changedquery_architecture_boundaries2 fields changed
      • addedInput schema / properties / extra_guidance / description
        Added value: +"Optional custom rules, architecture styles, or conventions to inject into the boundary definition."
      • addedInput schema / properties / project_root / description
        Added value: +"Root directory of the repository where tzero.rules.json is located (default: current directory)."
    • Changedquery_module_dependencies2 fields changed
      • addedInput schema / properties / file_path / description
        Added value: +"Optional relative or absolute path to a specific file to inspect. If empty, analyzes the whole workspace."
      • addedInput schema / properties / project_root / description
        Added value: +"Root directory of the repository to scan (default: current directory)."
    • Changedrank_repository_pagerank2 fields changed
      • addedInput schema / properties / project_root / description
        Added value: +"Root directory of the repository to analyze (default: current directory)."
      • addedInput schema / properties / top_k / description
        Added value: +"Number of top central modules to return in the ranking report (default: 15)."
    • Changedsearch_codebase_semantic3 fields changed
      • addedInput schema / properties / project_root / description
        Added value: +"Workspace root directory to index and search (default: current directory)."
      • addedInput schema / properties / query / description
        Added value: +"Natural language or technical keyword query describing the desired code logic."
      • addedInput schema / properties / top_k / description
        Added value: +"Maximum number of top-matching code snippets to return (default: 5)."
    • Changedtrace_symbol_call_chain3 fields changed
      • addedInput schema / properties / max_depth / description
        Added value: +"Maximum recursion depth for the call graph traversal (default: 3)."
      • addedInput schema / properties / project_root / description
        Added value: +"Root directory of the repository (default: current directory)."
      • addedInput schema / properties / symbol_name / description
        Added value: +"Exact function or method name to trace across the codebase call graph."
    • Changedverify_hallucination_guard3 fields changed
      • addedInput schema / properties / project_root / description
        Added value: +"Workspace root directory providing the ground-truth AST symbol catalog (default: current directory)."
      • addedInput schema / properties / proposed_code / description
        Added value: +"Python code proposed to be written or edited."
      • addedInput schema / properties / target_file / description
        Added value: +"Optional path of the target file being modified to resolve relative imports."
    • Changedverify_zero_leak_security3 fields changed
      • addedInput schema / properties / code_snippet / description
        Added value: +"Optional in-memory code string to inspect instead of files on disk."
      • addedInput schema / properties / project_root / description
        Added value: +"Workspace root directory to scan for secret leaks (default: current directory)."
      • addedInput schema / properties / target_file / description
        Added value: +"Optional single file path to inspect instead of the full workspace."
  2. 21 tool updatesv0.1.0
    • First observedanalyze_change_impact
    • First observedaudit_codebase_quality
    • First observedenforce_architecture_boundaries
    • First observedestimate_token_cost
    • First observedexport_agent_rules
    • First observedfind_code_duplicity
    • First observedfind_dead_code
    • First observedgenerate_architecture_blueprint
    • First observedgenerate_repo_map
    • First observedget_incremental_diff_context
    • First observedget_project_context_tree
    • First observedget_smart_skeleton_context
    • First observedget_token_savings_metrics
    • First observedprune_code_snippet
    • First observedquery_architecture_boundaries
    • First observedquery_module_dependencies
    • First observedrank_repository_pagerank
    • First observedsearch_codebase_semantic
    • First observedtrace_symbol_call_chain
    • First observedverify_hallucination_guard
    • First observedverify_zero_leak_security

TDQS

A4.3/5.0

Scored across 21 tools

Disambiguation4/5

Tools target distinct code-analysis operations (context generation, dependency graphs, architecture rules, quality audits, token metrics). Sibling Routing guidelines explicitly differentiate overlapping tools like get_project_context_tree vs get_smart_skeleton_context and analyze_change_impact vs trace_symbol_call_chain. However, several graph-analysis tools (query_module_dependencies, analyze_change_impact, trace_symbol_call_chain, rank_repository_pagerank) have adjacent scopes that could still cause occasional misselection.

Naming Consistency5/5

All tool names are snake_case and follow a verb_noun structure (get_*, query_*, generate_*, audit_*, etc.). The specific verbs vary but are semantically appropriate and consistent, with no camelCase or chaotic style.

Tool Count3/5

21 tools is in the heavy range (16-25) for a single server. Although each appears to serve a distinct sub-purpose, the set is large enough that discovery and selection may be cumbersome.

Completeness4/5

The surface covers major static-analysis workflows: context generation, dependency mapping, impact analysis, call tracing, architecture enforcement, security scanning, quality audits, and token metrics. Some gaps exist, such as no direct symbol-by-name lookup beyond semantic search or no runtime/test coverage analysis, but these are minor for the apparent read-only static-analysis domain.

Maintenance

ActivityMaintained
ResponsivenessWithin a week

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Provides intelligent code context and analysis through semantic compression, AST parsing, and multi-language support. Offers 60-80% token reduction while enabling AI assistants to understand codebases through local analysis, OpenAI-enhanced insights, and GitHub repository integration.
    6
    11 npm
    3
    MIT
  • A
    license
    B
    quality
    C
    maintenance
    Enables LLMs to efficiently read, write, and refactor code using precise AST-based operations, reducing token usage and context window waste.
    25
    25 npm
    3
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Make any LLM a codebase expert instantly. Provides deep code intelligence through semantic search, architecture mapping, security analysis, and smart context that fits perfectly in token windows.
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides structured, token-efficient code context for AI assistants by indexing codebases with AST-level analysis, supporting 17+ languages, enabling semantic search, call-site tracking, and PR attribution.
    158 PyPI
    41
    MIT