Harness your team · a coaching harness for Claude Code

Your best session should be your normal one.

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.

terminal
$ claude plugin marketplace add MohammedMoataz/ai-coach
$ claude plugin install ai-coach@ai-coach

Node 22.16+ or 24 · MIT · your data lives in ~/.ai-coach/ and survives uninstalling

One shared memory connecting you today, you tomorrow, and your teammatesmemory~/.ai-coachyou · todayyou · tomorrowteammateteammateteammate

Why

Every session starts cold.

You re-explain

The same constraint, every session, to a model that knew it yesterday.

You rediscover

The same trap, hit twice, because the moment it went wrong is the moment nothing recorded.

You lose a teammate's work

Whatever they worked out on the branch you just checked out stays in their head.

What happens on its own

The engine runs without being asked.

Hooks and a local SQLite database in your home directory. Every coach reads and writes through it.

A session brief

Capped and ranked, with the reason each line is there: branch, global, from a teammate, distilled.

Corrections recorded

When a failure surfaces, that fact is kept. The richest signal in a session, and the one nothing else captures.

Session-end distillation

One Haiku call turns a session into 0–3 learnings, marked distilled. Unrecalled for 90 days, they are pruned.

A snapshot before compaction

Which files you were in, what broke last, what is still open — handed back once, then deleted.

Prompt hints

At most two, shown to you and never to the model. Exploratory questions are exempt.

Injection check

Fetched pages and outside files are scanned for injection markers. Warn-only, and honest that it is a pre-filter, not a gate.

Secrets guard — off by default

Turn it on and real credentials are blocked outright. It ships off, so a default install does no credential blocking. Said plainly.

Inside the engine

How a turn runs

Every coach has a step in the loop.

The engine and all 11 coaches, placed where they enter one turn of Claude Code: on their own, typed by you, called by Claude, or run as a subagent.

SessionstartYour promptModel turnPre-toolTool runsPost-toolTurn andsession endthe result returns to the model: the loopOn its ownenginesession-startenginepromptpairmentions-nudgeengineguarddesignartifact-lintengineobserve,spotlight,observe (fail)designartifact-nudgeenginenotice,precompact,session-endYou type itall at yourpromptbundle/start, /wrap,/sitrepinvestigation/investigatestrategyfeatureanalysiselicit,insight, storyatlasresearch,market, ingest,translatesecurityscan, audit,triagepromptprompt, scope,prompt-statsharnesscontext,partnerspairpairshipcommitClaudecalls itall at modelturnmemoryrecall,debrief,handoff, rosterinvestigationonboard, map,studystrategyblueprintpromptdispatchdesignartifact-stylepairmentionsA subagentall at toolrunsinvestigationscoutanalysiscriticatlasresearcher,verifier,readersecurityexaminer

See the full map, with every hook, skill and special case

The coaches

11 coaches, one install.

29 skills you call and 6 agents they spawn, each coach with one focus. The bundle installs every one of them with the engine.

Memory coach

Search what was already learned, publish what you concluded, hand it to a teammate, and say who is on the team.

/debrief/handoff/recall/roster
4 skills

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.

/dispatch/prompt-stats/prompt/scope
4 skills

Security coach

Injection defence for content you are about to trust, OWASP-grounded audits of code you ship, and pentest findings tracked to closure.

/audit/scan/triage
3 skills · 1 agent

Harness coach

What is installed next to the coach, and what is filling this session.

/context/partners
2 skills

Investigation coach

Onboard anyone onto the project: evidence-cited docs, an architecture map you can open in Obsidian or draw.io, and study material.

/map/onboard/study
3 skills · 1 agent

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.

/ingest/market/research/translate
4 skills · 3 agents

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.

/blueprint/feature
2 skills

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.

/elicit/insight/story
3 skills · 1 agent

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.

/artifact-style
1 skill

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.

/mentions/pair
2 skills

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.

/commit
1 skill

Evidence, not etiquette

No claim without the evidence for it.

The house rule, applied to the product as much as to its output.

  • A memory says who wrote it, and whether a person or a model did.
  • A verdict carries its command output.
  • A performance number was measured, or it is not printed.
  • What could not be determined is a required field, not an omission.
~2,050

tokens of always-loaded context per session

Expected, not re-probed: a live probe measured ~700 before v1.14; the rest is arithmetic on nine new skill descriptions. User-only skills cost nothing until you type them.

29skills
11model-invocable
6agents
4commands

Counted from the repo at build time, not typed in.

Beyond Claude Code

One memory, whichever harness opened the session.

Live memory travels over MCP and the workflows compile to each harness's own rules format. A Cursor session and a Claude Code session on one machine share one ~/.ai-coach/.

Claude Code

Native: plugins, hooks, skills and agents, the full automatic layer.

Cursor

MCP memory, compiled .mdc rules, and a lifecycle shim for recording, the guard and distillation.

Windsurf · Antigravity

MCP memory, rules directory, and the same lifecycle shim in their own hook dialect.

opencode

MCP memory, an AGENTS.md index, and a native plugin for recording and the guard.

Codex CLI · anything MCP

MCP memory, including a memory_brief tool, plus the AGENTS.md workflow index.

What stays Claude Code's: context injection. No other harness lets a session-start hook hand text to the model, so elsewhere the memory brief is your first move, not automatic.

Commands

The sequences, typed once.

User-only: they cost nothing until you type them.

/ai-coach:sitrep

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

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.

[--run] [--feature <name>] [--with-blueprint] [--diagrams drawio]
/ai-coach:wrap

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.

[--name <label>] [--encrypt]
/investigation-coach:investigate

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.

[--project] [--feature <name>] [--full] [--diagrams drawio]

Get started

Two commands. Then your next session starts warm.

terminal
$ claude plugin marketplace add MohammedMoataz/ai-coach
$ claude plugin install ai-coach@ai-coach

Want only part of it? Install a single coach, or read the source on GitHub.