返回顶部
a

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.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
1,091
下载量
免费
免费
4
收藏
概述
安装方式
版本历史

acc-error-memory

Anterior Cingulate Memory ⚡

Conflict detection and error monitoring for AI agents. Part of the AI Brain series.

The anterior cingulate cortex (ACC) monitors for errors and conflicts. This skill gives your AI agent the ability to learn from mistakes — tracking error patterns over time and becoming more careful in contexts where it historically fails.

The Problem

AI agents make mistakes:

  • - Misunderstand user intent
  • Give wrong information
  • Use the wrong tone
  • Miss context from earlier in conversation

Without tracking, the same mistakes repeat. The ACC detects and logs these errors, building awareness that persists across sessions.

The Solution

Track error patterns with:

  • - Pattern detection — recurring error types get escalated
  • Severity levels — normal (1x), warning (2x), critical (3+)
  • Resolution tracking — patterns clear after 30+ days
  • Watermark system — incremental processing, no re-analysis

Configuration

ACC_MODELS (Model Agnostic)

The LLM screening and calibration scripts are model-agnostic. Set ACC_MODELS to use any CLI-accessible model:

CODEBLOCK0

Format: Comma-separated CLI commands. Each command is invoked with the prompt appended as the final argument. Models are tried in order — if the first fails/times out (45s), the next is used as fallback.

Scripts that use ACC_MODELS:

  • - haiku-screen.sh — LLM confirmation of regex-filtered error candidates
  • INLINECODE2 — Pattern calibration via LLM classification

Quick Start

1. Install

CODEBLOCK1

This will:

  • - Create memory/acc-state.json with empty patterns
  • Generate ACC_STATE.md for session context
  • Set up cron for analysis 3x daily (4 AM, 12 PM, 8 PM)

2. Check current state

CODEBLOCK2

3. Manual error logging

CODEBLOCK3

4. Check for resolved patterns

CODEBLOCK4

Scripts

ScriptPurpose
INLINECODE5Extract user+assistant exchanges since watermark
INLINECODE6
Run full preprocessing pipeline | | log-error.sh | Log an error with pattern, context, mitigation | | load-state.sh | Human-readable state for session context | | resolve-check.sh | Check for patterns ready to resolve (30+ days) | | update-watermark.sh | Update processing watermark | | sync-state.sh | Generate ACC_STATE.md from acc-state.json | | log-event.sh | Log events for brain analytics |

How It Works

1. Preprocessing Pipeline

The encode-pipeline.sh extracts exchanges from session transcripts:

CODEBLOCK5

Output: pending-errors.json with user+assistant pairs:
CODEBLOCK6

2. Error Analysis (via Cron Agent)

An LLM (configured via ACC_MODELS) analyzes each exchange for:

  • - Direct corrections ("no", "wrong", "that's not right")
  • Implicit corrections ("actually...", "I meant...")
  • Frustration signals ("you're not understanding")
  • User confusion caused by the agent

3. Pattern Tracking

Errors are logged with pattern names:
CODEBLOCK7

Patterns escalate with repetition:

  • - 1x → normal (noted)
  • 2x → warning (watch for this)
  • 3+ → critical (actively avoid!)

4. Resolution

Patterns not seen for 30+ days move to resolved:
CODEBLOCK8

Cron Schedule

Default: 3x daily for faster feedback loop

CODEBLOCK9

State File Format

CODEBLOCK10

Event Logging

Track ACC activity over time:

CODEBLOCK11

Events append to ~/.openclaw/workspace/memory/brain-events.jsonl:
CODEBLOCK12

Integration with OpenClaw

Add to session startup (AGENTS.md)

CODEBLOCK13

Behavior Guidelines

When you see patterns in ACC state:

  • - 🔴 Critical (3+) — actively verify before responding in this area
  • ⚠️ Warning (2x) — be extra careful
  • Resolved — lesson learned, don't repeat

Future: Amygdala Integration

Planned: Connect ACC to amygdala so errors affect emotional state:

  • - Errors → lower valence, higher alertness
  • Clean runs → maintain positive state
  • Pattern resolution → sense of accomplishment

AI Brain Series

PartFunctionStatus
hippocampusMemory formation, decay, reinforcement✅ Live
amygdala-memory
Emotional processing | ✅ Live | | vta-memory | Reward and motivation | ✅ Live | | anterior-cingulate-memory | Conflict detection, error monitoring | ✅ Live | | basal-ganglia-memory | Habit formation | 🚧 Development | | insula-memory | Internal state awareness | 🚧 Development |

Philosophy

The ACC in the human brain creates that "something's off" feeling — the pre-conscious awareness that you've made an error. This skill gives AI agents a similar capability: persistent awareness of mistake patterns that influences future behavior.

Mistakes aren't failures. They're data. The ACC turns that data into learning.



Built with ⚡ by the OpenClaw community

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 acc-error-memory-1776419933 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 acc-error-memory-1776419933 技能

通过命令行安装

skillhub install acc-error-memory-1776419933

下载

⬇ 下载 acc-error-memory v1.0.0(免费)

文件大小: 29.81 KB | 发布时间: 2026-4-17 19:22

v1.0.0 最新 2026-4-17 19:22
Initial release: watermark-based error detection, 3-tier cost optimization (regex→Haiku→Opus), self-improving regex calibration, model-agnostic config

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部