AI Coding Agents Next: Persistent Memory and Automated Retrospectives A developer released CommandMate v0.55.0, an open-source tool that gives AI coding agents persistent, structured memory so long-running sessions can be restarted cheaply. The tool's `mem` command records typed entries (now, next, waiting, external, decision, note) scoped by repository and branch, with `--close-when` conditions like merged PRs evaluated lazily on read rather than by a polling daemon, and a `brief` command injects current state at session start. Decision promotion to files requires human diff review, while roadmap features dubbed Dreaming and Automated Retrospectives remain unimplemented. Most developers hesitate to restart long-running AI coding sessions. Even when you notice a session degrading—repeating mistakes, forgetting constraints, or falling behind on newly released CLI updates—re-explaining the current project state feels more painful than pushing through a bloated context window. Compacting chat history only goes so far. Summarizing what you talked about often keeps dead ends while dropping what is actually true right now . CommandMate approaches this differently: make restarting cheap and structured, so restarting becomes an advantage rather than a tax . In this final part of the series as of CommandMate v0.55.0 , I separate what is already shipped today mem , brief , and screen only promote from what is currently designed and upcoming on our roadmap Dreaming and Automated Retrospectives . Series: Building CommandMate What is CommandMate? https://dev.to/kewton/commandmate-maximize-ai-coding-throughput-away-from-your-desk-4d83 Mobile Workflow with Tailscale & Cloudflare Tunnel https://dev.to/kewton/control-local-ai-coding-agents-from-your-phone-tailscale-cloudflare-mna Autonomous AI Coding Agent Team https://dev.to/kewton/beyond-single-prompts-autonomous-ai-coding-agent-teams-in-commandmate-3272 - Persistent Memory & Automated Retrospectives This post Want to try CommandMate in 1 minute? Run npx commandmate@latest or visit Kewton/CommandMate https://github.com/Kewton/CommandMate . To keep facts clear as of CommandMate v0.55.0 : v0.51.0 – v0.55.0 commandmate mem , lazy condition evaluation --close-when , one-shot session-start injection brief , and UI-only decision promotion screen only promote . 4248 , scheduled for implementation and Next — Learn direction on the roadmap . When sessions can be restarted freely without losing state, four compounding benefits kick in: mem entries and diffs into refined proposals—so each restarted session inherits cleaner, higher-signal context than the last. STOP escalations, and review findings back into contracts and team rules improves how the team itself operates over time. screen only Promotion Instead of dumping full chat transcripts into a database, commandmate mem tracks only what CommandMate cannot infer from Git alone—structured by repository and branch, so items survive even if you recreate a worktree. Each entry carries an explicit type now , next , waiting , external , decision , note , and open tracking types waiting , next , external require a --close-when condition: Record the current session's active slot up to 100 chars, superseded automatically commandmate mem now "Implementing PR1b atomic send route" Track an external blocker that auto-closes when PR 4550 merges commandmate mem add --kind waiting \ --text "Waiting on relay resolution fix before starting PR1b" \ --close-when "pr: 4550?state=merged" Record a design decision targeting an Issue comment for future promotion commandmate mem add --kind decision \ --text "Keep RELAY HOPS EXCEEDED error code for round-limit refusals" \ --promote-to "issue: 4420" There is no polling daemon. Conditions issue: N , pr: N?state=merged , branch: