Loading...
Loading...
Multi-agent management workflow — task delegation, progress monitoring, quality verification with regression testing, feedback delivery, and cross-review orchestration. Use this skill when coordinating multiple agents on a shared task, monitoring delegated work, ensuring quality across agent outputs, or implementing a multi-phase plan (3+ phases or 10+ file changes).
npx skill4agent add s-hiraoku/synapse-a2a synapse-managersynapse sendsynapse tasks create "<task>" -d "<description>"synapse tasks assign <id> <agent>synapse send <agent> "..." --forceplugins/synapse-a2a/skills/sync-plugin-skillssynapse list --jsonsynapse spawn claude --worktree --name Impl --role "feature implementation"
synapse spawn gemini -w --name Tester --role "test writer"cd plugins/synapse-a2a/skills/synapse-manager
scripts/wait_ready.sh Impl 30
scripts/wait_ready.sh Tester 30
# Synced copy example
cd .agents/skills/synapse-manager
scripts/wait_ready.sh Impl 30references/auto-approve-flags.mdsynapse tasks create "Write auth tests" \
-d "Create tests/spec for valid login, invalid credentials, token expiry, refresh flow" \
--priority 5
# Returns: 3f2a1b4c (displayed prefix of a UUID such as 3f2a1b4c-1111-2222-3333-444444444444)
synapse tasks create "Implement auth module" \
-d "Add OAuth2 with JWT in synapse/auth.py after tests/spec are confirmed. Follow patterns in synapse/server.py." \
--priority 4 \
--blocked-by 3f2a1b4c
# Returns: 7a9d2e10 (displayed prefix of a UUID such as 7a9d2e10-5555-6666-7777-888888888888)synapse tasks create--blocked-bysynapse tasks assignsynapse tasks complete--blocked-by 3f2a1b4c3f2a1b4cTESTS_ID=3f2a1b4c
IMPL_ID=7a9d2e10
synapse tasks assign "$TESTS_ID" Tester
synapse send Tester "Write the tests first and confirm the spec for task $TESTS_ID (Write auth tests).
- Cover valid login, invalid credentials, token expiry, refresh flow
- Report any scope gaps before implementation starts" --attach synapse/server.py --force --wait--attach--wait--silent--notifysynapse tasks createsynapse tasks assignsynapse tasks completesynapse tasks failsynapse tasks assign "$IMPL_ID" Impl
synapse send Impl "Implement auth module — tests/spec are confirmed in task $TESTS_ID (Write auth tests).
- Add OAuth2 flow in synapse/auth.py
- Follow existing patterns" --attach synapse/server.py --force --silent--task-Tsynapse send Impl "Implement auth module" --task --attach synapse/server.py --force --silentsynapse list --json # AI-safe snapshot
synapse tasks list # Task board progress and dependencies
synapse history list --agent Impl # Completed workcd plugins/synapse-a2a/skills/synapse-manager && scripts/check_team_status.shsynapse interrupt Impl "Status update — what is your current progress?" --forcesynapse approve <task_id>
synapse reject <task_id> --reason "Use refresh tokens instead of long-lived JWTs."# Accept a plan card and register its steps as task board tasks
synapse tasks accept-plan <plan_id>
# Sync task board progress back to the plan card
synapse tasks sync-plan <plan_id># After approve — keep the approved plan moving via assignment/delegation.
# The task board changes at lifecycle checkpoints (assign, complete, fail, reopen).
# After reject — mark for rework
synapse tasks reopen <task_id># New tests first (fast feedback)
pytest tests/test_auth.py -v
# Full regression (catches cross-module breakage)
pytest --tb=short -qcd plugins/synapse-a2a/skills/synapse-manager && scripts/regression_triage.sh tests/test_failing_module.py -vsynapse tasks complete <task_id>
synapse tasks fail <task_id> --reason "test_refresh_token fails — TypeError on line 42"synapse send Impl "Issues found — please fix:
1. FAILING TEST: test_token_expiry (tests/test_auth.py)
ERROR: TypeError: cannot unpack non-iterable NoneType object
FIX: Add None guard at the top of validate_token()
2. REGRESSION: test_existing_endpoint broke
ERROR: expected 200, got 401
CAUSE: auth middleware intercepts all routes
FIX: Exclude health-check endpoints from auth" --force --silentsynapse memory save auth-middleware-pattern \
"Auth middleware must exclude /status and /.well-known/* endpoints" \
--tags auth,middleware --notifysynapse tasks reopen <task_id>synapse send Tester "Review implementation. Focus on: correctness, edge cases" --force \
--attach synapse/auth.py --wait
synapse send Impl "Review test coverage. Focus on: missing cases, assertion quality" --force \
--attach tests/test_auth.py --waitpytest --tb=short -q # All tests pass
synapse tasks list # Confirm the UUID prefixes before completion
synapse tasks complete "$TESTS_ID"
synapse tasks complete "$IMPL_ID"
synapse kill Impl -f && synapse kill Tester -f
synapse list --json # Verify cleanup
synapse tasks purge --status completed # Clean up finished tasks
synapse tasks purge --older-than 7d # Clean up old tasks
synapse tasks purge --dry-run # Preview what would be deleted| Situation | Action |
|---|---|
| Agent stuck PROCESSING >5min | |
| Check all agents at once | |
| New test fails | Feedback with error + suggested fix (Step 6) |
| Regression test fails | |
| Agent READY but no output | Check |
| Agent submits a plan | |
| Agent posts a plan card | |
| Discovered a reusable pattern | |
| Cross-review finds issue | Send fix request with |
| Delegating work to an agent | |
| All tests pass, reviews clean | Complete tasks, kill agents, report done |
| Reference | Contents |
|---|---|
| Per-CLI permission skip flags |
| Worker agent responsibilities and communication patterns |
| A2A features with commands |
| All manager-relevant commands |
| Poll until agent reaches READY status |
| Aggregate team status (agents + task board) |
| Classify test failure as regression or pre-existing |