Post-task reflection: captures what worked, what failed, and new learnings to memory files. Use when the user says "retro", "reflect", "what did we learn", or "/retro". Reads session activity log, analyzes the conversation, and selectively updates error-patterns.md, patterns.md, and debugging.md. Designed to feel fast, not ceremonial.
Analyze this session's work and capture useful learnings. Only write to files when there's something genuinely new -- don't pad.
~/.claude/cache/session-activity.log if it exists -- shows git commits and pushes from this sessionCategorize findings into:
For each category, check the existing file to avoid duplicating what's already captured.
All memory files live in the configured memory directory (from agent-os.config.json).
Only add entries for NEW error patterns. Follow the existing format exactly:
### [Short descriptive title]
**What happened:** [Specific error message or scenario]
**Rule:** [What to do instead, stated as a directive]
Place under the appropriate existing section (Tool Errors, MCP / API Errors, Workflow Patterns, Platform-Specific).
Only add entries for genuinely useful new patterns. Format:
### [Pattern Name]
**Context:** [When this pattern applies]
**Approach:** [What to do]
**Why it works:** [Brief explanation]
Place under the appropriate section (File Operations, Architecture Decisions, Session Management, Debugging Approaches).
Only add entries if actual debugging occurred this session. Format:
### [Symptom description]
**Root Cause:** [What actually caused it]
**Fix:** [What resolved it]
**Prevention:** [How to avoid it next time]
Place under the appropriate section (Tool & Environment Issues, Code Issues, Integration Issues).
Ask the user: "Want me to save a session note to the vault?" If yes, create a note in <vaultPath>/Sessions/YYYY-MM-DD-retro.md with frontmatter:
---
date: YYYY-MM-DD
tags: [session, retro, {project-tag}]
project: {vault-folder-name}
---
The project: field must match the vault folder name exactly. Check ~/.claude/cache/session-context.json for detectedProject if unsure. Use "general" if no specific project applies.
Retro Summary
Work Done:
- [brief bullets of what happened this session]
Captured:
- error-patterns.md: [Added N patterns / No new patterns]
- patterns.md: [Added N patterns / No new patterns]
- debugging.md: [Added N entries / No debugging this session]
Activity Log: [N commits, N pushes / No activity logged]
Save session note to vault? (y/n)
~/.claude/cache/session-activity.logSearch for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer