Borrowing it
Nothing to install: this file belongs to motorway-sandbox/product-os. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/motorway-sandbox/product-os/main/.claude/commands/setup-agent.mdgit clone --depth 1 https://github.com/motorway-sandbox/product-osWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/motorway-sandbox/product-os/setup-agent)<a href="https://agentmods.dev/commands/motorway-sandbox/product-os/setup-agent"><img src="https://agentmods.dev/badge/commands/motorway-sandbox/product-os/setup-agent.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.02974 |
| Opus 5 | $0.00000 | $0.01487 |
| Sonnet 5 | $0.00000 | $0.00595 |
| Haiku 4.5 | $0.00000 | $0.00297 |
Grade A, and why
setup-agent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 240 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Set Up Persistent Agent
Set up a new persistent agent for a PM. This command creates the full workspace, personalises the agent definition, and bootstraps context from every available source — so the PM gets a working agent they can start testing immediately.
Arguments: {initials}, {name}, {agent} where agent is one of: cos, analyst, uxr, coach, manager, strategist, engineer
Example: /setup-agent SJ, Steve, cos
Instructions
Phase 1: Validate inputs and check tools
-
Parse the arguments. If any are missing, ask for them:
- Initials (e.g. SJ)
- Full first name (e.g. Steve)
- Agent type — must be one of:
cos,analyst,uxr,coach,manager,strategist,engineer
-
Check which MCP integrations are available by testing each one silently (don't show errors to the user, just note which work):
- Calendar (e.g. Google Calendar) — try to list today's events
- Meeting notes (e.g. Granola, Otter) — try to list recent meetings
- Messaging (e.g. Slack) — try to read a channel
- Data warehouse (e.g. BigQuery, Snowflake) — try a simple query (only if agent is
analyst)
-
Tell the user which tools are connected and which aren't. Then decide what to do based on coverage:
If the critical MCPs for this agent are connected (see table below), report the status briefly and continue to Phase 2:
Tools connected: Calendar, Meeting notes, Messaging Not available: Data warehouse (not needed for COS)
If critical MCPs are missing, pause and explain why they matter before continuing. Use this framing:
Tools connected: Messaging Not connected: Calendar, Meeting notes
I can set up your agent now, but I'd recommend connecting Calendar and Meeting notes first. Here's why:
- Calendar — without it, I can't see who you meet, how often, or when. I'll have to create blank meeting context files that you fill in manually instead of pre-populated ones with real people and topics.
- Meeting notes — without it, I can't read your meeting transcripts to find action items, decisions, or standing topics. Your todo list and state file will be based on team priorities only, not your actual work.
The difference is significant: with these tools, your first test output will reference your real meetings, real people, and real priorities. Without them, it'll be generic and you'll spend much longer correcting it.
To connect them: open Claude Code settings (type
/mcpin Claude Code) and enable the integrations you have available. Once they're connected, run/setup-agentagain.Or if you'd rather continue now with what's available, just say "continue" and I'll do the best I can with local files.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 240 lines · 0 tokens per session scan A 0646dca4da5e
setup-agent is a command published in the GitHub repository motorway-sandbox/product-os (9 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,974 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.
Other commands, from other repositories
template
Manage issue templates for streamlined issue creation.
sync-linear
Sync current work with Linear ticket status.
add-note
Add an internal or external note to a ConnectWise PSA ticket.
fest-show
Show festival progression (in-progress tasks, roadmap, and dependency view).
dispatcher
Pick the next-best repo to work on across the portfolio — rank free repos, recommend one, claim its lease atomically, and route to the entry command.
workpm
A project-management workflow for coordinating multiple AI workers through five stages. It includes task assignment, shared activity logs, worker replacement, and final checks.