# Loop Coach: Session Retros for Claude Code & Codex

> Reviews your Claude Code and Codex sessions, finds where a /goal, /loop, schedule or verification skill would have saved you turns, and keeps a running HTML report.

Loop Coach: Session Retros for Claude Code & Codex is a free AI agent skill on Agensi by Maulik Sompura, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Maulik Sompura](https://www.agensi.io/creators/maulik-sompura)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Uses: 1
- Version: 1.0
- Last updated: 2026-10-15
- Security: scan passed (2026-10-15); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/loop-coach-session-retros-for-claude-code-codex
- Tags: ai-agents, automation, productivity, claude-code, codex, agent-loops, retrospective, verification

## About this skill

Most agent sessions have one stretch where you were the bottleneck. You re-ran a check by hand, asked for CI status every few minutes, or reopened a task the agent had called done. Loop Coach reads your local Claude Code and Codex transcripts and finds those stretches.

It scores each session against four loop types.

- **Turn-based.** Hand off the check with a custom verification skill.
- **Goal-based.** Hand off the stop condition with `/goal` and a turn cap.
- **Time-based.** Hand off the trigger with `/loop` or `/schedule`.
- **Proactive.** Hand off the prompt with a routine that runs without you.

Every suggestion cites the turns and quotes behind it, and comes with a copy-paste setup and a guardrail. A clean one-off session gets a one-line "no loop needed" instead of an invented suggestion. The report ends with the one skill or routine that would help the most sessions at once.

A bundled helper, `loopcoach.py`, does the deterministic work. It finds transcripts, filters injected noise, pre-computes loop signals, and keeps a store in `~/.loop-coach/`. The model spends its tokens on judgment instead of parsing JSONL.

The store makes it state-aware. Dismiss a suggestion and it stays dismissed. Adopt one and it moves to "loops you now run". See the same pattern again and its counter goes up instead of creating a duplicate. A running HTML report shows all of it, in light or dark mode.

Run it on demand ("loop coach", "review my sessions"), or put it on a daily local schedule. The skill gives you the exact prompt to schedule, and it recognizes and skips its own scheduled runs so it never reviews itself.

## Requires

- Python 3

## Known limitations

Its signals are heuristics over transcript text, so the model makes the final call and can miss a loop or suggest a weak one. It reads only local transcripts, so a scheduled run must run on the same machine, not in a cloud routine. It suggests loops and writes no code in your projects. The /goal, /loop and /schedule commands it recommends are Claude Code features, and the verification skills work in any agent.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Loop Coach: Session Retros for Claude Code & Codex skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Does it send my transcripts anywhere?

No. The helper reads files on your machine and writes the store and report to ~/.loop-coach. The only model that sees your sessions is the agent you run it in.

### Will it nag me about suggestions I already rejected?

No. Dismissed suggestions stay dismissed even if the same pattern shows up again, and adopted ones move to a separate list. The state rules live in the helper script, not just in the prompt.

### How do I run it every day?

Use any local scheduler, such as the Claude desktop app's scheduled tasks, a Codex automation, or cron. The skill gives you the exact prompt. A cloud routine cannot read your local transcripts.

### Does it need the Loop Coach plugin?

No. This listing is the standalone skill, a SKILL.md plus one Python file. It has no hooks, slash commands or other skills to install.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
