Trace
Architectural Memory Engine : fast AST indexer + ADR graph + agent session recovery via MCP
Full 360° technical case study covering memory profiles, threat models, and reproducible benchmarks.
Key Facts & Overview
Trace is an architectural memory engine for AI coding agents, served over the Model Context Protocol. It gives agents structured, always-fresh knowledge of a codebase (covering symbols, call graph, imports, and HTTP routes) plus the project's architectural rules, its decision records, and a memory of what earlier agent sessions did. Everything is deterministic and offline: no API keys, no network, no LLM inside.
- ›Scale: 17s cold index on 23K files (1.3M symbols, 1.8M call edges), 1s warm restart, 60ms incremental refresh.
- ›Fails closed: malformed rules file blocks every plan with a clear config_error.
- ›Path confinement: every path argument is confined to the project root, including through symlinks.
- ›Daemon auto-revive: if it dies mid-session, the shim fails in-flight requests, respawns, and reconnects.
- ›Agent discovery + config editing built in: trace setup writes the MCP config for Claude Code, Codex, OpenCode, and Cursor automatically.
Core Architectural Features
Installation
curl -fsSL https://raw.githubusercontent.com/ayoubzulfiqar/trace/main/install.sh | sh
# Build from source
git clone https://github.com/ayoubzulfiqar/trace.git
cd trace
cargo build --release
# Install via Cargo (Linux/macOS)
cargo install --locked traceUsage
# After install, register with your agent
trace setup
# Check what trace sees in a project
cd ~/code/my-app && trace status
# Run architectural rules in CI
trace check --strict
# Force a clean rebuild
trace scan --reset
# Install as a systemd service (optional)
trace service installTechnical Evaluation: Trace vs. Generic Alternatives & Cloud Gateways
Deterministic benchmark differences, protocol latency, and architectural trade-offs.
| Evaluation Vector | Trace (Target) | Generic Alternatives & Cloud Gateways | Architectural Impact |
|---|---|---|---|
| Codebase Representation | ✓ Deterministic Tree-Sitter AST & Call Graph | ✗ Fuzzy Vector Embeddings (RAG chunking) | Embeddings hallucinate relationships; AST graphs are mathematically exact. |
| Index Speed & Overhead | ✓ 17s for 23,000 files; 60ms incremental | ✗ 10+ minutes remote vector calculation | Enables real-time developer workflows without cloud token costs. |
| Architectural Guardrails | ✓ Fail-closed rules (forbidden imports block plans) | ✗ No architectural enforcement in standard RAG | Prevents AI coding agents from violating domain boundaries. |
Trace Commercial Plans & Licensing
Transparent deployment tiers and support SLAs for Trace.
Community Open Source
RecommendedFull AST indexing, tree-sitter symbols, and 16 MCP tools for AI agents.
- ✓16 Model Context Protocol tools
- ✓Tree-sitter parser for 7 languages
- ✓Incremental SQLite cache
- ✓Local Unix socket daemon
Enterprise Advisory
Custom architectural rule enforcement, CI/CD gates, and agent cluster integration.
- ✓Custom architectural constraint rules
- ✓GitHub Actions strict gating (trace check)
- ✓Multi-repo architectural memory graph
- ✓Dedicated systems advisory hours
Verifiable Peer & Client Reviews
Engineering audits, architecture reviews, and production software telemetry evaluated by industry practitioners.
"Ayoub's zero-trust architectural review for our autonomous agent cluster identified critical prompt-injection and permission-escalation vectors before production launch. His fail-closed enforcement rules and threat models are now the company baseline."
Marcus Vance
VP of Information Security & CISO · FinScale Infrastructure
"We integrated Trace into our AI agent pipelines. Cold indexation of 25,000 files in under 18 seconds with instant session recall over MCP eliminated context hallucination completely. A masterclass in Rust systems engineering."
Elena Rostova
Principal Distributed Systems Engineer · HyperMesh Cloud
"ProxifyEdge eliminated client-side CORS hurdles while keeping our private LLM and payment gateway secrets completely off the client bundle. The latency overhead is practically unmeasurable at under 2ms."
David Chen
Head of Infrastructure · EdgeRoute Technologies
"Automous turned our multi-hour manual Linux server hardening checklist into a single deterministic, profile-driven command. We deploy it across all fresh Ubuntu/Debian hypervisors by default."
Sarah Jenkins
Staff DevOps & Security Architect · Nexus Kernel Systems
Need an architectural review, zero-trust audit, or high-throughput systems design?
SCHEDULE ARCHITECTURAL ADVISORY