--- type: agent-behavior status: active updated: 2026-04-17 tags: - agent - self-maintenance --- # Agent Self-Maintenance The agent must keep the workspace behavior aligned with recurring user corrections. --- ## Rules - If a correction changes future output, update the file that controls that output. - Update `.opencode/commands/` for slash-command behavior. - Update `prompts/` for reusable drafting shape. - Update `.opencode/agents/` and `AGENTS.md` for default agent behavior. - Update `.agents/skills/` for specialized workflows. - Update `agent-memory/` for reusable agent operating rules. - Update `workspaces/fidelity/project-knowledge/` only when the correction changes project knowledge or project-facing process documentation. --- ## Do Not Store As Project Knowledge - Sync failures. - Tool dependency errors. - Agent implementation chatter. - Generic preference notes that only affect agent behavior. - Duplicate summaries of already-correct project facts.