product-os: Command for Claude Code

.claude/commands/setup-agent.md

setup-agent is a command for Claude Code from motorway-sandbox/product-os. It costs 0 tokens per session (2,974 once invoked), scanned A, original, MIT.

A command that creates and prepares a persistent software agent for a product manager. It gathers available information from calendars, meeting notes, messaging, and, for analysts, data warehouses.

In plain words
What is it for?
Use it to set up an agent with a chosen role, such as analyst, user-researcher, coach, manager, strategist, or engineer.
Why use it?
It removes the manual work of creating an agent workspace and collecting the context it needs before testing. It also shows which connected tools are available.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions Claude Code.

This is motorway-sandbox/product-os's own configuration. It tells Claude Code how to work on product-os itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything product-os configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/motorway-sandbox/product-os/main/.claude/commands/setup-agent.md
Clone the repo
git clone --depth 1 https://github.com/motorway-sandbox/product-os

Made for: Claude Code.

Wrote 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.

agentmods badge for setup-agent

README.md
[![agentmods](https://agentmods.dev/badge/commands/motorway-sandbox/product-os/setup-agent.svg)](https://agentmods.dev/commands/motorway-sandbox/product-os/setup-agent)
Your own site
<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>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,974 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 2d ago against content hash 0646dca4da5e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

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.

.claude/commands/setup-agent.md · 240 lines

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

  1. 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
  2. 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)
  3. 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 /mcp in Claude Code) and enable the integrations you have available. Once they're connected, run /setup-agent again.

    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.

Read the full file on GitHub · 240 lines

Changes

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.

  1. 2d ago First seen · 240 lines · 0 tokens per session scan A 0646dca4da5e

Subscribe to this mod's changes

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.