> **Download Free CLAUDE.md ($0)**: https://pulse-forge.io/api/launch-kit/free-claude-md?repo=zed-industries/zed | **1-Click Drop-In Config Pack ($4.99)**: https://pulse-forge.io/buy/micro_pass?repo=zed-industries/zed&source=md_stack | **Complete 9-File BOM .ZIP ($9.99)**: https://pulse-forge.io/buy/repo_pass_999?repo=zed-industries/zed&source=md_stack_999

# ADR-2026-AI-STACK: Production AI Architecture Decision Record for `zed-industries/zed`
- **Status**: PROPOSED (Curated via PulseForge 12-Slot Deterministic BOM Engine)
- **Team & Workload Profile**: `1` Engineers | `50,000` Monthly Agent Sessions | Mode: `STANDARD`
- **Configured Stack Slots**: `6` Active Layers | `6` Intentionally Omitted Layers (Lean YAGNI Setup)
- **Total Monthly TCO**: `$102.50/mo` (vs. `$207.20/mo` Unoptimized Baseline -> **Saves `$104.70/mo`**)
- **Concurrent Local RAM Footprint:** `459 MB` | **Cumulative p50 Overhead:** `14.7 ms` | **Min Local VRAM:** `0.0 GB`

## 1. Curated Active Bill of Materials (BOM) & License Audit
| Slot # | Architectural Layer | Selected Tool (`owner/repo`) | License | Cloud Egress | p50 Overhead | RAM (50 Agents) | Est. Monthly Cost |
|---:|---|---|---|---|---:|---:|---:|
| 1 | **AI Coding IDE & Editor** | `zed-industries/zed` (Zed AI (Rust Native BYOK)) | `GPL-3.0-only` | Zero-Egress Local/Self-Host | `4.2 ms` | `140 MB` | `$27.50/mo` |
| 2 | **Autonomous Terminal & SWE Agent** | `anomalyco/opencode` (OpenCode Terminal Agent) | `MIT` | Zero-Egress Local/Self-Host | `6.4 ms` | `110 MB` | `$40.00/mo` |
| 3 | **Agent Harness & Context OS** | `affaan-m/ECC` (ECC v2.2 (Everything Claude Code Harness)) | `MIT` | Zero-Egress Local/Self-Host | `1.8 ms` | `45 MB` | `$7.50/mo` |
| 4 | **LLM Gateway, KV-Cache & FinOps Router** | `tensorzero/tensorzero` (TensorZero (Rust 0.8ms Gateway)) | `Apache-2.0` | Zero-Egress Local/Self-Host | `0.8 ms` | `64 MB` | `$16.00/mo` |
| 6 | **Structured Output & Schema Compiler** | `BoundaryML/baml` (BAML (Rust Schema-Aligned Parser)) | `Apache-2.0` | Zero-Egress Local/Self-Host | `0.9 ms` | `55 MB` | `$9.00/mo` |
| 10 | **50-Probe OWASP Red-Team & Regression CI Gate** | `gitleaks/gitleaks` (Gitleaks Pre-Commit Secret Gate) | `MIT` | Zero-Egress Local/Self-Host | `0.6 ms` | `45 MB` | `$2.50/mo` |

## 1B. Intentionally Omitted Layers (Lean YAGNI Justification)
- **Slot 05 (Multi-Agent Orchestration & State Graph)**: `OMITTED BY DESIGN` - Single-agent tool loop suffices; omitting orchestration graph avoids 3.2x cyclic token chatter and 1,450MB RAM.
- **Slot 07 (Agent Memory, Vector & Hybrid RAG Engine)**: `OMITTED BY DESIGN` - 200k prompt-cached KV window + AST RepoMap suffices; omitting Vector DB saves 420-1,850MB RAM.
- **Slot 08 (Code Sandbox, MicroVM & Browser Runtime)**: `OMITTED BY DESIGN` - No untrusted remote code execution or headless browser automation required for this workload.
- **Slot 09 (MCP Server Runtime & Tool-Poisoning Firewall)**: `OMITTED BY DESIGN` - No external third-party MCP servers mounted; MCP firewall layer omitted.
- **Slot 11 (Voice, WebRTC & Realtime Multimodal Agent)**: `OMITTED BY DESIGN` - Text/code-only workload; WebRTC voice & realtime audio pipeline not required.
- **Slot 12 (Local Inference & QLoRA / GRPO Fine-Tune Engine)**: `OMITTED BY DESIGN` - Using routed frontier API models; dedicated local GPU/VRAM inference & QLoRA fine-tuning not required.
