wshobson/agents/session-guard
Use when working on complex multi-step tasks, when a session is getting long (40+ tool calls), when the agent starts ignoring rules it followed earlier, when conventions drift, when output quality seems to degrade, or after any context compaction event. Prevents long-session corruption AND context compaction amnesia through behavioral self-enforcement.
Agent skill · version 0.0.0-main.1794313586.g9c61ab2 · from wshobson/agents
Install
npx yarkr-cli add skill:wshobson/agents/session-guardWithout Node.js, on macOS and Linux (curl or wget):
curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:wshobson/agents/session-guard
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:wshobson/agents/session-guardOn Windows, in PowerShell:
irm https://yarkr.com/install.ps1 | iex; yarkr add skill:wshobson/agents/session-guardWorks with Claude Code, Codex, opencode, Cursor, any harness over MCP.