How to Set Up Sub-Agents with Separate Workspaces in OpenClaw

A member of the OpenClaw community has discovered an elegant solution to a common problem: how to run sub-agents with entirely separate workspaces and different models.
The Problem
Many users have reported that default.subagents.model doesn't work as expected. This is because the schema for subagent defaults differs from the AgentEntity schema used in the agents list.
The Solution
The trick is to define your "main" agent in the agents list and use allowAgents to connect it to other agents you define. Each agent can have its own workspace and model configuration.
Example Configuration
"agents": {
"defaults": {
"model": {
"primary": "openai/gpt-5.2",
"fallbacks": []
},
"workspace": "/home/linux/.openclaw/workspace",
"maxConcurrent": 4,
"subagents": {
"maxConcurrent": 8
}
},
"list": [
{
"id": "main",
"name": "Main Agent",
"subagents": {
"allowAgents": ["developer-agent"]
}
},
{
"id": "developer-agent",
"name": "Developer Agent",
"workspace": "/home/linux/.openclaw/workspace.developer",
"model": {
"primary": "openai/gpt-5.2-codex"
}
}
]
}
Key Benefits
- Each sub-agent gets its own isolated workspace
- Different models can be assigned to different agents
- Clean separation between main and specialized tasks
- Explicit control over which agents can spawn which sub-agents
Source: r/openclaw community
📖 Read the full source: www.reddit.com
👀 See Also

Reddit Post: Developers Need Better AI Coding Practices, Not Just Better Tools
A Reddit post argues that developers' dissatisfaction with AI coding tools stems from poor prompting practices, specifically 'raw prompting' without context or structure. The author recommends using scaffolding like CLAUDE.md and structured workflows to get production-ready code from Claude.

Practical Review: 3 Essential Clawhub Skills and 3 to Avoid
A developer tested Clawhub skills for weeks and found three worth installing: web-search (Brave), daily-brief, and memory-search. Three others—food-order, multi-agent orchestrators, and humanizer—waste tokens and add unnecessary complexity.

Anthropic releases free official learning platform for Claude AI
Anthropic has launched a free learning platform with structured courses covering Claude basics, API integration, agent skills, and specialized tracks for different user groups.

Claude Code v2.1.36: Fast Mode Now Available for Opus 4.6
Anthropic releases Claude Code v2.1.36 with Fast Mode support for the latest Opus 4.6 model, enabling significantly faster code generation and analysis.