Managing shared context, memory, and state across multiple agents.
30
22%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./claude-plugin/design-agent-orchestration/skills/state-management/SKILL.mdIn a multi-agent system, state is the shared truth about what's happened, what's in progress, and what's been decided. Without state management, agents work with stale or conflicting information — and the user pays the cost in repeated questions, contradictory answers, and lost progress.
State management is the plumbing skill of multi-agent design. Get it wrong and every other skill in this plugin gets harder.
Users have expectations about what the system remembers:
context-window-design instead.decision-state only.handoff-protocols — context transfer between agents uses the state architecture; design them together.observability-design — state mutations are the most useful traces. Design what's logged at the same time as what's stored.consent-and-agency — cross-session and cross-agent state is consent-laden by default.task-decomposition — task-state schema is determined by the decomposition shape; co-design.Worked example — task state for a multi-agent customer support flow:
{
"task_id": "tk_8b2",
"owner_agent": "router", // who currently holds the task
"status": "in_progress | escalated | done",
"subtasks": [
{"id": "verify_account", "status": "done", "result_ref": "ctx_a91"},
{"id": "check_refund_eligibility", "status": "in_progress", "owner": "billing_agent"}
],
"user_state_ref": "us_482", // pointer, not embedded copy
"decisions": [
{"at": "...", "by": "router", "choice": "billing_agent", "rejected": ["faq_agent"], "why": "intent: refund"}
],
"errors": [],
"version": 7 // increments on every write; readers check before acting
}The version field is the simplest defence against the stale-context bug. The decisions log with rejected makes the routing legible to humans during incident review.
Adapted from work on shared mental models in multi-agent systems and distributed-systems consistency literature (Lamport on logical clocks; the actor model on isolated state).
0e565c2
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.