/teammates:save-state-all [--tail=<n>]from teammates
Snapshot every teammate on the active team; write a manifest for /restore-state.
Ships in teammates. Installing the plugin adds it to Claude Code.
Snapshot every teammate on the active team and write a manifest that
/restore-state can consume. Each member's state file conforms to
templates/state.schema.json; the manifest shape is documented in
docs/state-schema.md.
No deferred tools are used, so no ToolSearch phase is required.
<arguments>$ARGUMENTS</arguments>:
$tail (OPTIONAL) — --tail=<n>, default 20, hard-capped at
20. Clamp silently../.claudius/teammates/team.json. Abort on missing or
unparsable file.$team = team.name, $config = team.config,
$members = teammates[].$members is empty, abort with
"team <$team> has no teammates; nothing to save".$ts = $(date -u +%s) once; reuse for every member so all
state files share the same batch timestamp.For each member in $members, build the state file using the same
logic as save-state.md Phase 2 (this duplication is intentional —
no Agent dispatch is used; state-building is cheap and sequential
keeps the code linear):
state_id = "<$team>-<member.name>-<$ts>".captured_at = ISO-8601 UTC now (recomputed per member so the
timestamp reflects actual capture time).team.name / team.config from team.json.teammate.agent_file = member.agent_file (MAY be null).teammate.agent_file_sha256:
sha256sum "<path>" | awk '{print $1}'), else the empty-string
sha256
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.teammate.spawn_source = member.spawn_source.teammate.last_status = latest // teammate-status block from
./.claudius/teammates/logs/<member.name>.log, or null.teammate.recent_messages = tail of $tail envelope-v1 objects
from the same log, or [].teammate.scratch.agent_body = full file text, or "".Persist each state file atomically:
mkdir -p ./.claudius/teammates/state
# Write JSON to ./.claudius/teammates/state/<state_id>.json.tmp
mv ./.claudius/teammates/state/<state_id>.json.tmp \
./.claudius/teammates/state/<state_id>.json
Collect ($memberName, $stateId) pairs into $manifestMembers.
Build the manifest object:
{
"schema_version": 1,
"manifest_id": "<$team>-<$ts>",
"captured_at": "<ISO-8601 UTC now>",
"team": "<$team>",
"members": [
{ "name": "<member-name>", "state_id": "<state-id>" }
]
}
Write atomically to
./.claudius/teammates/state/<$team>-<$ts>.manifest.json:
# Write JSON to <manifest-path>.tmp
mv ./.claudius/teammates/state/<$team>-<$ts>.manifest.json.tmp \
./.claudius/teammates/state/<$team>-<$ts>.manifest.json
Emit:
## Team State Saved
- **Team**: <$team>
- **Manifest**: ./.claudius/teammates/state/<$team>-<$ts>.manifest.json
- **Members**: <N>
| Teammate | State ID |
|----------|----------|
| <name> | <state_id> |
### Next Steps
`/restore-state <$team>-<$ts>` (manifest id — restores the whole team)
`/restore-state <state_id>` (single teammate)
What the command file sets; muted values are Claude Code's defaults
sonnet7-day visitors to each command page
npx claudepluginhub jaodsilv/claudius --plugin teammates21 commands in this plugin
/broadcastPhase 1 — Load toolsSend the same message to every teammate on the active team; report per-recipient results./config-teamPhase 1 — Parse argsInspect or update teammates-plugin project config (gitignore, team.json defaults)./create-teamPhase 1 — Load toolsCreate a new teammate team, optionally bootstrapped from a preset./create-teammatePhase 1 — Load toolsGenerate a new teammate agent file (with baked-in conventions) and spawn it on the active team./find-bottleneckPhase 1 — Load dataIdentify teammates blocking team progress by age of blocked/long-running/error status./inspectPhase 1 — PreflightShow a teammate's latest status, last messages, and agent-file metadata.