# AI Coach > A coaching harness for Claude Code. AI Coach keeps what a session learned and puts it in front of you next time, with who learned it. It shapes a vague ask until someone else could act on it, argues with a finding before it reaches you, and tracks a security finding until it is closed. Version 1.21.0. MIT. Source: https://github.com/MohammedMoataz/ai-coach Install in Claude Code: claude plugin marketplace add MohammedMoataz/ai-coach claude plugin install ai-coach@ai-coach ## Pages - [Install](https://ai-coach-harness.vercel.app/install): requirements, single-coach installs, and setup for Cursor, Codex, opencode and other MCP harnesses - [How it works](https://ai-coach-harness.vercel.app/how-it-works): Claude Code's agent loop, step by step, with every hook, skill, command and agent at the step where it acts, and the special cases - [The engine](https://ai-coach-harness.vercel.app/engine): The part that runs without being asked. Every coach reads and writes through it. ## Coaches - [Memory coach](https://ai-coach-harness.vercel.app/coaches/memory-coach): Search what was already learned, publish what you concluded, hand it to a teammate, and say who is on the team. - [/memory-coach:debrief](https://ai-coach-harness.vercel.app/coaches/memory-coach): Publishes what you concluded — business outcome, technical decision, evidence, and what is still unknown — so a teammate can pick the work up; also lists and reads theirs. Use when the user explicitly asks ("/debrief", "publish my conclusions", "what did the team conclude"), or when /ai-coach:wrap chains it; never proactively, and never past its own approval gate — the draft is shown and confirmed before anything is published. - [/memory-coach:handoff](https://ai-coach-harness.vercel.app/coaches/memory-coach): Package this project's memory for a teammate, or load theirs. Use when the user explicitly asks ("hand this off", "share what I learned", "/handoff import"), or when /ai-coach:wrap chains it after a debrief; never proactively, and never past its own gate — it states what will travel and waits for a yes before writing an export file others will import. - [/memory-coach:recall](https://ai-coach-harness.vercel.app/coaches/memory-coach): Searches this project's memory for what was already learned, and reports on the memory's own health. Use for "did we hit this before", "what do we know about X", "/recall", "check my memory". Not for editing the roster (see roster). - [/memory-coach:roster](https://ai-coach-harness.vercel.app/coaches/memory-coach): Who is on this project and whom you trust, and which repositories belong to one product. Use when the user explicitly asks ("/roster", "add me to the team", "trust this teammate", "group these repos", "declare the project"), or when /ai-coach:wrap chains it to close an identity gap; never proactively. Not for searching memory (see recall). - [Prompt coach](https://ai-coach-harness.vercel.app/coaches/prompt-coach): Write prompts that land, shape a big scope before you send it, see which habits cost you, and brief a context that cannot ask you a follow-up. - [/prompt-coach:dispatch](https://ai-coach-harness.vercel.app/coaches/prompt-coach): The four rules for a prompt whose reader cannot ask you anything — a subagent, a fresh session after a reset, a workflow stage, or a teammate. Use before dispatching an agent, writing a plan spec, splitting work across contexts, or handing a task to another context. - [/prompt-coach:prompt-stats](https://ai-coach-harness.vercel.app/coaches/prompt-coach): Which of your prompt habits actually correlate with sessions going wrong. Use for "/prompt-stats", "how are my prompts". - [/prompt-coach:prompt](https://ai-coach-harness.vercel.app/coaches/prompt-coach): Templates and a review for prompts you are about to send. Use for "/prompt", "help me write this prompt", "review my prompt". - [/prompt-coach:scope](https://ai-coach-harness.vercel.app/coaches/prompt-coach): Turns a big vague scope into one prompt that can actually be executed - a walk through the eight dimensions a fresh context cannot recover, questions carrying example answers, and a readiness gate that says whether planning is done. Use for "/scope", "help me plan this big change", "spec this out before I start", "is this ready to hand off". Do NOT use for a single-file change, which is /prompt-coach:prompt, or for a product feature that needs a committed document, which is /strategy-coach:feature. - [Security coach](https://ai-coach-harness.vercel.app/coaches/security-coach): Injection defence for content you are about to trust, OWASP-grounded audits of code you ship, and pentest findings tracked to closure. - [/security-coach:audit](https://ai-coach-harness.vercel.app/coaches/security-coach): Run the security scanners you already have (SAST, dependencies, secrets) and read the results against OWASP 2025. Use for "/audit", "security audit", "check dependencies for CVEs", "OWASP check". - [/security-coach:scan](https://ai-coach-harness.vercel.app/coaches/security-coach): Deep prompt-injection scan of files or content you are about to trust. Use for "/scan", "check this for prompt injection", "is this safe to feed the model". - [/security-coach:triage](https://ai-coach-harness.vercel.app/coaches/security-coach): Turn a pentest or security report into tracked findings with owners and status, and produce the team report. Use for "/triage", "we got a pentest report", "security findings status". - [agent security-coach:examiner](https://ai-coach-harness.vercel.app/coaches/security-coach): Quarantine reader for suspected prompt-injection content - Read and Grep only, no shell, no network, no writes. Returns a verdict per hit (benign-quote / suspicious / hostile) with the shortest quote that proves it. Use for /scan's judgment step and anything the spotlight hook flagged. - [Harness coach](https://ai-coach-harness.vercel.app/coaches/harness-coach): What is installed next to the coach, and what is filling this session. - [/harness-coach:context](https://ai-coach-harness.vercel.app/coaches/harness-coach): What is filling this session's context, what it costs, and whether to clear or compact. Use for "/context", "why is my context full", "should I clear or compact", "what is my context budget", "audit my plugin token cost". Not for searching memory (see memory-coach:recall). - [/harness-coach:partners](https://ai-coach-harness.vercel.app/coaches/harness-coach): Detect which of the ten curated companion tools are already installed, then install only the ones the user picks. Use for "/partners", "what tools do you recommend", "set up recommended tools". - [Investigation coach](https://ai-coach-harness.vercel.app/coaches/investigation-coach): Onboard anyone onto the project: evidence-cited docs, an architecture map you can open in Obsidian or draw.io, and study material. - [/investigation-coach:map](https://ai-coach-harness.vercel.app/coaches/investigation-coach): Map the architecture — services, components, who calls whom — as an artifact page, markdown diagrams, one Obsidian note per component, a canvas, and optionally draw.io. Use when the user explicitly asks ("/map", "architecture diagram", "how do the services connect"), or when onboard --tour or /ai-coach:start --run chains it; never proactively, it reads a lot of code and writes files. - [/investigation-coach:onboard](https://ai-coach-harness.vercel.app/coaches/investigation-coach): Generates onboarding docs — core features, setup, rules, stack, patterns, all evidence-cited — into docs/onboarding/. Use when the user explicitly asks ("/onboard", "onboard a new team member", "document this project for newcomers"), or when /ai-coach:start --run chains it; never proactively, it reads a lot of code and writes files. Not for the business or a feature spec (see strategy-coach). - [/investigation-coach:study](https://ai-coach-harness.vercel.app/coaches/investigation-coach): Write study material explaining this project's patterns and technologies, the why rather than the how-to, into docs/study/. Use when the user explicitly asks ("/study", "help me study this codebase", "explain the patterns here"), or when onboard --tour or /ai-coach:start --run chains it; never proactively, it reads a lot of code and writes files. - [agent investigation-coach:scout](https://ai-coach-harness.vercel.app/coaches/investigation-coach): Read-only repo sweep in an isolated context - an evidence-cited brief, max 500 words, every claim file:line or INFERRED, never file dumps. Use for /onboard, /map and /study sweeps, and any survey where the caller needs conclusions without paying for the reading. - [Atlas coach](https://ai-coach-harness.vercel.app/coaches/atlas-coach): Everything outside the repo: verified web research, documents in and markdown out, competitor and industry analysis, and docs turned into code in your idiom. - [/atlas-coach:ingest](https://ai-coach-harness.vercel.app/coaches/atlas-coach): Documents in, markdown out — converts files (docx, pdf, html, md) and web pages into ./docs with source provenance, indexes them, and reports what the corpus covers. Use for "/ingest", "convert this PDF", "import these docs", "what do our docs cover". - [/atlas-coach:market](https://ai-coach-harness.vercel.app/coaches/atlas-coach): Look outward — competitors and where the gap is, the industry's rules and conventions, and how that industry already solved a gap you are stuck on. Use for "/market", "competitor analysis", "gap analysis", "industry rules", "how do others solve this". - [/atlas-coach:research](https://ai-coach-harness.vercel.app/coaches/atlas-coach): Web research with an adversarial claim gate - parallel researchers, verified citations, a report the team can trust. Use for "/research", "research X", "compare A and B", "what's the current state of Y". - [/atlas-coach:translate](https://ai-coach-harness.vercel.app/coaches/atlas-coach): Turns documentation, a spec or an upstream example into a code stub in this project's idiom, with the runnable check that proves it. Use for "/translate", "turn these docs into code", "port this example into our codebase". Not for checking whether a claim is true (see research). - [agent atlas-coach:reader](https://ai-coach-harness.vercel.app/coaches/atlas-coach): Batched document reader for /ingest's model-read route - reads an unconvertible document 20 pages per call in its own context and hands faithful markdown to INGEST write, so the pages never enter the calling session. Use when the ingest plan says model-read. - [agent atlas-coach:researcher](https://ai-coach-harness.vercel.app/coaches/atlas-coach): Isolated research agent - seed from memory, expand across sources, prune weak paths, return a dense cited brief (max 600 words), never file dumps. Use for /research sub-questions and prior-art scans. - [agent atlas-coach:verifier](https://ai-coach-harness.vercel.app/coaches/atlas-coach): Adversarial verification in a fresh context - tries to REFUTE a claim, diff, or finding and demands evidence. Use as /research's claim gate, for verifying a single claim, and before declaring work done. - [Strategy coach](https://ai-coach-harness.vercel.app/coaches/strategy-coach): Document what the business is, mapped to the code that implements it, and specify what comes next with a checkable definition of done. - [/strategy-coach:blueprint](https://ai-coach-harness.vercel.app/coaches/strategy-coach): Documents the business — actors, processes, rules, glossary — mapped to the code that implements it, as Obsidian notes plus diagrams, scaffolding docs/ on the way in. Use when the user explicitly asks ("/blueprint", "document the business", "map the processes", "set up the docs vault"), or when /ai-coach:start --run --with-blueprint chains it; never proactively, it asks questions and writes files. Not for how the code works (see investigation-coach). - [/strategy-coach:feature](https://ai-coach-harness.vercel.app/coaches/strategy-coach): Turn a feature request into a spec, a definition of done whose every line is checkable, and an execution plan a cheap model can run in a fresh session. Use for "/feature", "spec this feature", "plan feature X", "write the requirements". - [Analysis coach](https://ai-coach-harness.vercel.app/coaches/analysis-coach): The business-analyst half: requirements nobody can argue about later, data turned into an analysis that has already been argued with, and the version an executive reads. - [/analysis-coach:elicit](https://ai-coach-harness.vercel.app/coaches/analysis-coach): Elicits requirements — stakeholders, the question each one alone can answer, user stories, and acceptance criteria that can be checked. Use for "/elicit", "gather requirements", "write acceptance criteria", "turn this into user stories". Not for specifying an agreed feature (see strategy-coach:feature). - [/analysis-coach:insight](https://ai-coach-harness.vercel.app/coaches/analysis-coach): Turns a dataset or query result into an analysis that survives argument: the domain named first, several readings generated, then critiqued in writing before you see it. Use for "/insight", "analyse this data", "what does this data say", "what should we chart". Not for market research (see atlas-coach:market). - [/analysis-coach:story](https://ai-coach-harness.vercel.app/coaches/analysis-coach): Turns an analysis, requirements document or debrief into the short version a decision-maker reads: the finding first, its evidence, and the ask. Use for "/story", "write this up for the exec", "make this readable for leadership". Not for producing the analysis (see analysis-coach:insight). - [agent analysis-coach:critic](https://ai-coach-harness.vercel.app/coaches/analysis-coach): Fresh-context review of a work product against its own rubric - sees the work and the standard, never the reasoning behind them; returns per-item verdicts with evidence and ranked revision demands. Use for /insight's critique pass and /blueprint's scoring. - [Design coach](https://ai-coach-harness.vercel.app/coaches/design-coach): How a published page should look, made checkable: text that stays in its box, zoomable diagrams, the project's own fonts and palette, and WCAG contrast in both themes. - [/design-coach:artifact-style](https://ai-coach-harness.vercel.app/coaches/design-coach): Checkable design rules for an Artifact page — text that never escapes its box, every SVG and mermaid diagram in a zoomable scrollable wrapper, the project's own fonts and palette when detectable (IBM Plex and a teal scale only as fallback), WCAG contrast in both themes, and a zero-dependency lint. Use before writing or publishing any Artifact HTML, alongside the native artifact-design skill; /investigation-coach:map and /strategy-coach:blueprint chain it, and a hook suggests it after a native artifact skill loads. Reads at most six project files, writes only the page, never fires unprompted. - [Pair coach](https://ai-coach-harness.vercel.app/coaches/pair-coach): Talk to Claude through the code: write // @claude to ask or instruct, and the answer or the change lands inline, addressed to you by your own git name. - [/pair-coach:mentions](https://ai-coach-harness.vercel.app/coaches/pair-coach): Answers the open @coach comment threads in the code, inline: a question gets a reply under it, an instruction gets done plus a one-line reply, an unclear one gets a question back, each addressed to the developer by their own git name. Use when the user asks (/pair-coach:mentions, "answer my @coach comments"), or when a pair-coach line in this turn's context reported open threads; never unprompted otherwise. Asks before acting on a line someone else committed. - [/pair-coach:pair](https://ai-coach-harness.vercel.app/coaches/pair-coach): Builds a task with the developer instead of for them - Claude writes the scaffolding, boilerplate and tests, and leaves one to three stubs addressed to the developer where the choice is genuinely theirs (a business rule, a trade-off, domain knowledge), each failing loudly until written. Use when the user types /pair-coach:pair with a task; user-only, never chained. - [Ship coach](https://ai-coach-harness.vercel.app/coaches/ship-coach): A finished change to a commit, a branch and a PR that closes its issue, drafted on Haiku in your repo's own style, after one look at the whole plan. - [/ship-coach:commit](https://ai-coach-harness.vercel.app/coaches/ship-coach): Commits the current change with a message drafted on a small model at low effort in this repository's own style, then optionally pushes a branch and opens a PR that closes an issue - after one confirmation of the whole plan. Use when the user types /ship-coach:commit; user-only, because it writes their git history and can publish. ## Commands - [/ai-coach:sitrep](https://ai-coach-harness.vercel.app/#commands): The morning read - what the engine's own numbers say about memory, security and failures, one page, worst first, read-only. Points at the two deep dives it deliberately does not perform. - [/ai-coach:start](https://ai-coach-harness.vercel.app/#commands): Day one on a project - detect what is already set up, then either hand over the exact invocations for what is not, or run them with --run. A tailored checklist, and now a way to act on it. - [/ai-coach:wrap](https://ai-coach-harness.vercel.app/#commands): Finish a piece of work properly - find what is missing, ask for it once, then publish the debrief and export the seed. One command, one review, no sequence to remember. - [/investigation-coach:investigate](https://ai-coach-harness.vercel.app/#commands): The whole investigation in one command - onboard, then map, then study, each reading what the last one wrote. Says the cost first and stops wherever you tell it to.