agent-agent-mistakes
Build agent memory patterns that prevent the same mistakes — using session replay, error tracking, and a self-correcting knowledge base.
Skill by jleechanorg
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/jleechanorg-agent-agent-mistakes
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/agent-agent-mistakes
What's inside
- Skill name
agent-agent-mistakes- Description
- Build agent memory patterns that prevent the same mistakes — using session replay, error tracking, and a self-correcting knowledge base.
- License
- MIT
- Instructions
- 70 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- 2026-06-25-verify-before-upstream-claim.md · references/
SKILL.md (first lines)
# Agent-Agent Mistakes — Stop Agents Repeating Errors Build a self-correcting memory system so your agent never makes the same mistake twice. Based on Garry Tan's framework for agent error prevention. ## Goal Agents accumulate error patterns, learn from session failures, and consult a mistake memory before repeating actions. ## Inputs - `$agent_name`: Name of the agent to instrument (e.g. "hermes", "ao-primary") - `$error_sources`: Comma-separated sources to monitor for errors (e.g. "session_replays, cron_outputs, slack_threads") ## Steps ### 1. Set Up Error Capture Create a memory file at `memory/agent-errors.md` tracking all agent mistakes. **Success criteria**: `memory/agent-errors.md` exists and is git-tracked. **Why this works despite `.gitignore` ignoring `memory/`**: the repo's `.gitignore` ignores `memory/` as a whole (it's machine-specific runtime), but `memory/agent-errors.md` is allow-listed with `!memory/agent-errors.md` so `git add memory/agent-errors.md` works normally. The exception is intentional: this file is the cross-machine mistake registry, not a runtime artifact — losing it loses the whole skill's value. Do not generalize the exception to other `memory/*` files; they remain machine-specific. ### 2. Instrument Session Replay After every agent session, extract error patterns: - Failed tool calls (timeout, permission denied, not found) - User corrections (things the agent had to be steered on) - Context-ceiling spirals (long sessions that produced no output) - Fabricated responses (confabulated IDs, fake confirmations) **Success criteria**: Session logs are being reviewed and patterns extracted. ### 3. Build the Error Memory For each unique error pattern, add an entry to `memory/agent-errors.md`: ```markdown ## Error: [short name] **First seen**: YYYY-MM-DD **Occurrences**: N **Root cause**: What the agent got wrong **Prevention**: What the agent should do instead **Trigger phrase**: Phrases that indicate this error is happening again ``` **Success criteria**: At least 3 error patterns documented. ### 4. Pre-Action Verify (verify-before-upstream-claim gate) Before any claim that involves: - An upstream repo's current state (language, file layout, branch, default branch, CI status) - A local path on this machine (file, directory, binary, command output) - A thread, channel, or message on a connected platform **run the actual verification command in the same turn and cite its output.** Do not fill the gap from training-data memory of what the project used to be in a prior architecture, and do not say "I can't fetch that" for tools the runtime exposes (Slack MCP, Playwright MCP, `gh api`, `web_extract`). See `references/2026-06-25-verify-before-upstream-claim.md` for the worked example, the three failure modes from that thread, and the paste-able pre-flight gate. ### 5. Track Error Recurrence If an error from the memory is repeated, increment its occurrence count and add a new timeline entry. **Success criteria**: `memory/agent-errors.md` shows decreasing recurrence for documented errors. ## Anti-Patterns (worked examples in references/) - **2026-06-25 verify-before-upstream-claim** — three failures in one Slack thread: hallucinated a `~/.smartclaw/agent-orchestrator/` Python folder that didn't exist, assumed upstream's TS→Go rewrite also rewrote the user's TS fork, and said "I can't fetch Slack URLs" when `mcp_slack_conversations_replies` was sitting right there. See `references/2026-06-25-verify-before-upstream-claim.md`.
From jleechanorg/jleechanbrain, MIT.
More from jleechanorg/jleechanbrain
- 0.559score
ao-babysit
jleechanorg
Babysit an active AO worker tmux session — poll it, detect stalls/deaths, steer it back on track, post progress to Slack.
SkillBFreshness: B★ 2Claude Code +9 - 0.557score
claw-dispatch
jleechanorg
Use when dispatching work through the Hermes gateway with /claw, especially when the task may resolve slash commands or hand off into AO worker orchestration.
SkillBFreshness: B★ 2Claude Code +9 - 0.557score
advice
jleechanorg
Token-efficient second opinion slash command /advice.
SkillBFreshness: B★ 2Claude Code +9 - 0.554score
social-poster
jleechanorg
Draft, stage, and publish social-media posts for Reddit, Hacker News, Twitter/X, Mastodon, LinkedIn, Threads, Facebook, Instagram, and Dev.to.
SkillBFreshness: B★ 2Claude Code +9 - 0.553score
ao-dispatch-mechanics
jleechanorg
AO spawn flags, model-switch, partial-work recovery.
SkillBFreshness: B★ 2Claude Code +9 - 0.553score
agent-autonomy-failure-classes
jleechanorg
Catalog of agent autonomy failures with SOUL.md fixes.
SkillBFreshness: B★ 2Claude Code +9 - 0.553score
half-stop-user-re-ping-signal
jleechanorg
Detect when user re-sends their own prior message verbatim.
SkillBFreshness: B★ 2Claude Code +9 - 0.550score
hermes-harness
jleechanorg
jleechanbrain / Hermes-specific harness — gateway, canary, deploy, lane backlog, staging vs prod.
SkillBFreshness: B★ 2Claude Code +9 - 0.549score
agent-pipeline-render
jleechanorg
Render artifacts from agent-swarm repos without LLM.
SkillBFreshness: B★ 2Claude Code +9 - 0.544score
agento
jleechanorg
Delegate coding change tasks to Agent-Orchestrator (AO).
SkillBFreshness: B★ 2Claude Code +9 - 0.543score
hermes-single-dir-pipeline
jleechanorg
Operate Hermes after the single-directory runtime migration.
SkillBFreshness: B★ 2Claude Code +9 - 0.507score
antigravity-computer-use
jleechanorg
Use when asked to control, automate, click/type in, or manage Google Antigravity from Hermes.
SkillCFreshness: C★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 0
- Open issues
- 1
- Last commit (this folder)
- Sep 19, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/jleechanorg/jleechanbrain
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from jleechanorg
- 0.559score
ao-babysit
jleechanorg
Babysit an active AO worker tmux session — poll it, detect stalls/deaths, steer it back on track, post progress to Slack.
SkillBFreshness: B★ 2Claude Code +9 - 0.557score
claw-dispatch
jleechanorg
Use when dispatching work through the Hermes gateway with /claw, especially when the task may resolve slash commands or hand off into AO worker orchestration.
SkillBFreshness: B★ 2Claude Code +9 - 0.557score
advice
jleechanorg
Token-efficient second opinion slash command /advice.
SkillBFreshness: B★ 2Claude Code +9 - 0.554score
disk-root-cause
jleechanorg
Use when diagnosing why a disk is full, what consumes its capacity, what grew over time, or what may be safely reclaimed.
SkillAFreshness: AClaude Code +9 - 0.554score
social-poster
jleechanorg
Draft, stage, and publish social-media posts for Reddit, Hacker News, Twitter/X, Mastodon, LinkedIn, Threads, Facebook, Instagram, and Dev.to.
SkillBFreshness: B★ 2Claude Code +9 - 0.553score
half-stop-user-re-ping-signal
jleechanorg
Detect when user re-sends their own prior message verbatim.
SkillBFreshness: B★ 2Claude Code +9
Cite this page
agent-agent-mistakes skill. Agent Mart. https://agentmart.dev/skills/jleechanorg-agent-agent-mistakes (last updated 2026-10-24)