Summary
FEATURE — Subagent Workspace Override
───
Add an agents.list[].subagents.workspace config option that specifies the workspace directory for child sub-agents spawned by that agent. This would allow parent agents to isolate their default sub-agents without requiring each sub-agent to have its own agent profile.
Problem to solve
Use Case
Currently, default sub-agents (spawned without agentId) inherit the parent agent's workspace. If the parent's workspace contains sensitive files, all default sub-agents have access to that content via bootstrap file injection.
Proposed solution
Proposed Config
{
agents: {
list: [
{
id: "main",
workspace: "~/.openclaw/workspace",
subagents: {
workspace: "/opt/subagent",
allowAgents: ["worker", "research"]
}
}
]
}
}
This way, default sub-agents spawned by main would use /opt/subagent instead of inheriting ~/.openclaw/workspace.
Alternatives considered
No response
Impact
Benefits
• Clean workspace isolation for default sub-agents without extra agent profiles
• Reduces config complexity in multi-tier setups
• Prevents accidental exposure of parent workspace files to sub-agents
Evidence/examples
No response
Additional information
Environment
OpenClaw version: 2026.2.26
Summary
FEATURE — Subagent Workspace Override
───
Add an agents.list[].subagents.workspace config option that specifies the workspace directory for child sub-agents spawned by that agent. This would allow parent agents to isolate their default sub-agents without requiring each sub-agent to have its own agent profile.
Problem to solve
Use Case
Currently, default sub-agents (spawned without agentId) inherit the parent agent's workspace. If the parent's workspace contains sensitive files, all default sub-agents have access to that content via bootstrap file injection.
Proposed solution
Proposed Config
{
agents: {
list: [
{
id: "main",
workspace: "~/.openclaw/workspace",
subagents: {
workspace: "/opt/subagent",
allowAgents: ["worker", "research"]
}
}
]
}
}
This way, default sub-agents spawned by main would use /opt/subagent instead of inheriting ~/.openclaw/workspace.
Alternatives considered
No response
Impact
Benefits
• Clean workspace isolation for default sub-agents without extra agent profiles
• Reduces config complexity in multi-tier setups
• Prevents accidental exposure of parent workspace files to sub-agents
Evidence/examples
No response
Additional information
Environment
OpenClaw version: 2026.2.26