Flow
Policy Controls
Every delegation request is checked against the session policy before proceeding:Allowed Roles
Restrict which roles agents can delegate to:Max Depth
Limit how deep delegation chains can go:max_depth are denied.
Agent Timeout
Set a timeout for sub-agents:Max Delegate Retries
Control how many times a failed delegation can be retried:Role Resolution
When a delegation request arrives:- Fetch role — StrawPot calls
strawhub resolve role <slug>to get the role and all transitive dependencies - Stage dependencies — Skills and roles are symlinked into the agent’s workspace directory
- Build prompt — The role’s
ROLE.mdbody becomes the system prompt, with skill instructions appended
Global Skills
Roles can opt into loading global skills from~/.strawpot/skills/. These are automatically included alongside the role’s declared dependencies, giving agents access to user-wide skill configurations.
Memory Context
If a memory provider is configured, StrawPot retrieves context before spawning each sub-agent:- Call
memory.get()with session ID, agent ID, role, and task - The provider returns context cards and optional control signals
- Context is injected into the agent’s prompt via
--memory-prompt
memory.dump() records the result for future reference.