acc-error-memory
Error pattern tracking for AI agents. Detects corrections, escalates recurring mistakes, learns mitigations. The 'something's off' detector from the AI Brain series.
Why use this skill?
Enhance your AI agent's reliability with acc-error-memory. Track patterns, escalate recurring mistakes, and enable continuous learning for better agent performance.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/impkind/acc-error-memoryWhat This Skill Does
The acc-error-memory skill acts as an AI agent's internal monitor, analogous to the anterior cingulate cortex in the human brain. It is designed to track error patterns, escalate recurring mistakes, and learn effective mitigations over time. By providing a structured framework for logging failures—such as tone mismatches, hallucinations, or context loss—this skill ensures that your agent evolves through persistent memory across sessions. It employs a sophisticated severity ranking system where errors are classified as normal, warning, or critical based on frequency, eventually triggering automated maintenance to keep your agent's performance optimized.
Installation
To integrate this skill, navigate to your OpenClaw workspace and execute the installation script. Open your terminal and run:
cd ~/.openclaw/workspace/skills/anterior-cingulate-memory
./install.sh --with-cron
This process initializes the necessary acc-state.json file for tracking and configures a cron job to run pattern analysis three times daily (4 AM, 12 PM, and 8 PM). Ensure your ACC_MODELS environment variable is configured to define the LLM screening hierarchy, allowing the system to use models like Claude, OpenAI, or Ollama for error classification.
Use Cases
This skill is essential for agents operating in long-running projects where consistency is paramount. It is ideal for debugging persistent logic errors in coding agents, maintaining brand-consistent tone in customer support bots, and preventing recurrent factual inaccuracies in research agents. By tracking "something's off" moments, developers can identify the specific scenarios where their agent consistently fails and apply targeted mitigations.
Example Prompts
- "OpenClaw, I noticed you keep misremembering the project framework version. Please log this as a recurring factual error for the acc-error-memory skill and suggest a mitigation strategy."
- "Run the load-state script to show me which error patterns have been escalated to critical severity in the last 24 hours."
- "Resolve the 'tone_mismatch' error pattern, as I've adjusted the system prompt to handle that context correctly moving forward."
Tips & Limitations
- Model Selection: Use high-reasoning models (like Sonnet or GPT-4o) in your
ACC_MODELSlist for the best classification accuracy. Using lower-tier models for screening may result in false positives. - Resolution: Patterns clear automatically after 30 days of inactivity, but manual intervention is recommended if you have implemented a fix to prevent the agent from over-correcting.
- Persistence: Ensure that your environment variable for
ACC_MODELSis exported in your shell profile so that background cron jobs can access the models successfully.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-impkind-acc-error-memory": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, external-api
Related Skills
vta-memory
Reward and motivation system for AI agents. Dopamine-like wanting, not just doing. Part of the AI Brain series.
whisper-mlx-local
Free local speech-to-text for Telegram and WhatsApp using MLX Whisper on Apple Silicon. Private, no API costs.
amygdala-memory
Emotional processing layer for AI agents. Persistent emotional states that influence behavior and responses. Part of the AI Brain series.
anterior-cingulate-memory
Conflict detection and error monitoring for AI agents. The 'something's off' detector. Part of the AI Brain series.
basal-ganglia-memory
Habit formation and procedural learning for AI agents. Develop preferences and shortcuts through repetition. Part of the AI Brain series.