Skip to content

Agent Rule tzero context

Toprak Ahmet Aydoğmuş edited this page Nov 30, 2026 · 2 revisions

Repository source: .agents/rules/tzero-context.md
Snapshot of the source document; follow the repository link for the current version.


CLAUDE.md — Architecture & Operational Directives (Generated by tzero sync)

Workspace: TZeroAlgorithm | Engine: T-Zero Context Architect | Security: best-effort controls; no zero-leak certification

Executive Mission

Execute all coding, refactoring, and debugging tasks with minimal blast radius, zero regressions, and maximum token efficiency.

Quickstart & Verification Pipeline

# 1. Run Complete Test Suite
python -m unittest discover tests -v

# 2. Run T-Zero Security & AST Audit
tzero audit .

# 3. Synchronize AI Context
tzero sync

Ground-Truth Architecture Symbols

  • Active Modules: 366 core files
  • Primary Classes:
    • ClientTarget (addmcp.py)
    • AddMCPApp (addmcp.py)
    • ASTContextArchitect (app.py)
    • AuditFinding (app.py)
    • SecurityQualityAuditor (app.py)
    • ROIEstimator (app.py)
    • ZeroCostSemanticCache (tzero_gateway.py)
    • ZeroLeakShield (tzero_gateway.py)
    • CustomHandler (benchmark-site/serve.py)
    • MockZeroGPU (huggingface-space/app.py)
    • ASTContextArchitect (huggingface-space/app.py)
    • ClientTarget (installers/npm/src/addmcp.py)
    • AddMCPApp (installers/npm/src/addmcp.py)
    • ASTContextArchitect (installers/npm/src/app.py)
    • AuditFinding (installers/npm/src/app.py)
  • Primary Public Functions:
    • build_client_targets() (addmcp.py)
    • server_entry() (addmcp.py)
    • merge_server_config() (addmcp.py)
    • resolve_and_install_server() (addmcp.py)
    • install_targets() (addmcp.py)
    • run_cli() (addmcp.py)
    • run_init() (addmcp.py)
    • main() (addmcp.py)
    • process_code_compression() (app.py)
    • run_security_audit_controller() (app.py)
    • calculate_roi_controller() (app.py)
    • generate_mcp_config_controller() (app.py)
    • build_tzero_gradio_app() (app.py)
    • load_metrics() (tzero_gateway.py)
    • save_metrics() (tzero_gateway.py)
    • count_approx_tokens() (tzero_gateway.py)
    • prune_message_content() (tzero_gateway.py)
    • root() (tzero_gateway.py)
    • list_models() (tzero_gateway.py)
    • api_compress() (tzero_gateway.py)

Security & Zero-Leak Policy

  • All secrets, API keys, and sensitive database credentials must be kept out of commits.
  • Hardcoded secrets will be intercepted and blocked by the T-Zero Git Pre-Commit Guard.

Clone this wiki locally