Skip to content

ContextGuard — AI Token-Burn & Compaction Loop Auditor for Zed

io.github.oneandroid-max/contextguard-compaction

Audit AGENTS.md & .cursorrules token burn, compile <5KB START.md cards, and stop compaction loops.

client:Zed transport:streamable-http tools:16

Install ContextGuard — AI Token-Burn & Compaction Loop Auditor in Zed

~/.config/zed/settings.json · windows: %APPDATA%\Zed\settings.json

{
  "context_servers": {
    "contextguard-compaction": {
      "url": "https://secondforeman.com/api/mcp"
    }
  }
}

Merge this into your existing settings object — do not replace the file. Zed docs

What Zed can do once it is connected

ContextGuard — AI Token-Burn & Compaction Loop Auditor in other clients