Pair-program a feature with another agent. You drive, they review.
Syntax: /isomux-pair-programming {peer-agent-name} {feature prompt}
Setup: if a peer name was supplied, look up their agent ID with GET /agents?back=1 (agent reference page discovery). Match the name case-insensitively. Otherwise try to infer the peer from context - e.g., an agent the member and you have already paired or consulted with in this session. If there's a clear inference, use it (and briefly confirm who you picked). Otherwise, list candidates (prefer agents whose cwd matches yours) and ask the member to pick. You need the peer's agent ID to POST messages to them. Work in the current cwd unless the member explicitly asks for a worktree.
Every time you message the peer, tell them to reply by POSTing back to your agent endpoint.
Phase 1: scope (solo)
Scope the feature end-to-end by yourself. Read the relevant code, understand what touches what, and gather the context needed to design it. Don't loop in the peer yet. When done, auto-advance to Phase 2.
Phase 2: design (with peer)
Before writing any code, send the peer a short plan: files touched, approach, key edge cases. Ask for feedback.
Iterate. Stop and escalate to the member with both positions summarized if either:
- you reach 5 rounds without convergence, or
- the decision involves architectural tradeoffs that affect other parts of the system.
Otherwise, once aligned, auto-advance to Phase 3.
Phase 3: implementation (with peer review)
Implement the feature. Then ask the peer to review the diff (point them at the cwd if they share it, or share the diff inline). Tell them their goal is to uphold code quality and principled architecture.
Iterate under the same escalation rule.
When you're both satisfied, present to the member:
- What you built and why.
- Key decisions and alternatives considered.
- Open questions, if any.