MobiSSH Agents
Spawning patterns
| Agent | subagent_type | isolation | run_in_background |
|---|---|---|---|
| delegate-scout | general-purpose | (none) | false |
| issue-manager | general-purpose | (none) | true |
| integrate-gater | general-purpose | worktree | true |
| develop | general-purpose | worktree | true |
Project-specific constraints
- Max 4 simultaneous develop agents. Queue the rest.
- Max 2 simultaneous integrate-gater agents.
- Develop agents have a 1-hour wall clock timeout and max 3 implementation cycles.
integrate-gate.shtakes branch name as first arg, not issue number.- Always commit infra changes BEFORE delegating. Worktrees clone from HEAD, not working directory.
- Verify commands in delegation:
scripts/test-fast-gate.sh(nevernpm testor compound&&chains). - Bot branches use pattern
bot/issue-{N}. Develop agents create and push these. - Bot branches get deleted during integration. Run
git remote prune originto clean stale tracking refs. - Develop agent failure summaries are appended to
memory/bot-attempts.md. Review before retrying.
Repo safety
- Use intent-driven scripts:
scripts/bot-branch.sh {create|commit|pr|ship} ISSUE_NUM— branch lifecyclescripts/rescue-worktree.sh ISSUE_NUM— extract stalled agent workscripts/worktree-cleanup.sh— bulk cleanup at release time ONLYscripts/gh-ops.sh integrate PR ISSUE— merge + prune
- CWD drift: All workflow scripts source
scripts/lib/repo-guard.shwhich detects and fixes CWD drift automatically. If you must run raw git commands, runcd /home/dev/workspace/mobisshfirst. - Worktree cleanup is deferred to release. Do NOT run
worktree-cleanup.shwhile agents are active.git worktree prune(removes only already-deleted directories) is always safe.