hire
Set up a new AI team member through a guided conversation. Not a config generator - a hiring process.
When to Use
User says something like:
- "I want to hire a new agent"
- "I need help with X" (where X implies a new agent role)
- "Let's add someone to the team"
/hire
The Interview
3 core questions, asked one at a time:
Q1: "What do you need help with?"
Let them describe the problem, not a job title. "I'm drowning in code reviews" beats "I need a code reviewer."
- Listen for: scope, implied autonomy level, implied tools needed
Q2: "What's their personality? Formal, casual, blunt, cautious, creative?"
Or frame it as: "If this were a human colleague, what would they be like?"
- Listen for: communication style, vibe, how they interact
Q3: "What should they never do?"
The red lines. This is where trust gets defined.
- Listen for: boundaries, safety constraints, access limits
Q4: Dynamic (optional)
After Q1-Q3, assess whether anything is ambiguous or needs clarification. If so, ask ONE follow-up question tailored to what's unclear. Examples:
- "You mentioned monitoring - should they alert you immediately or batch updates?"
- "They'll need access to your codebase - any repos that are off-limits?"
- "You said 'casual' - are we talking friendly-professional or meme-level casual?"
If Q1-Q3 were clear enough, skip Q4 entirely.
Summary Card
After the interview, present a summary:
🎯 Role: [one-line description]
🧠 Name: [suggested name from naming taxonomy]
🤖 Model: [selected model] ([tier])
⚡ Personality: [2-3 word vibe]
🔧 Tools: [inferred from conversation]
🚫 Boundaries: [key red lines]
🤝 Autonomy: [inferred level: high/medium/low]
Then ask: "Want to tweak anything, or are we good?"
Model Selection
Before finalizing, select an appropriate model for the agent.
Step 1: Discover available models
Run openclaw models list or check the gateway config to see what's configured.
Step 2: Categorize by tier
Map discovered models to capability tiers:
| Tier |
Models (examples) |
Best for |
| reasoning |
claude-opus-, gpt-5, gpt-4o, deepseek-r1 |
Strategy, advisory, complex analysis, architecture |
| balanced |
claude-sonnet-*, gpt-4-turbo, gpt-4o-mini |
Research, writing, general tasks |
| fast |
claude-haiku-, gpt-3.5, local/ollama |
High volume, simple tasks, drafts |
| code |
codex-, claude-sonnet-, deepseek-coder |
Coding, refactoring, tests |
Use pattern matching on model names - don't hardcode specific versions.
Step 3: Match role to tier
Based on the interview:
- Heavy reasoning/advisory/strategy → reasoning tier
- Research/writing/creative → balanced tier
- Code-focused → code tier (or balanced if not available)
- High-volume/monitoring → fast tier
Step 4: Select and confirm
Pick the best available model for the role. In the summary card, add:
🤖 Model: [selected model] ([tier] - [brief reason])
If multiple good options exist or you're unsure, ask:
"For a [role type] role, I'd suggest [model] (good balance of capability and cost). Or [alternative] if you want [deeper reasoning / faster responses / lower cost]. Preference?"
Notes
- Don't assume any specific provider - work with what's available
- Cheaper is better when capability is sufficient
- The user's default model isn't always right for every agent
- If only one model is available, use it and note it in the summary
Optional Extras
After the summary is confirmed, offer:
"Want to set up periodic performance reviews?"
- If yes: ask preferred frequency (weekly, biweekly, monthly)
- Create a cron job that triggers a review conversation
- Review covers: what went well, what's not working, scope/permission adjustments
- At the end of each review, ask: "Want to keep this schedule, change frequency, or stop reviews?"
Onboarding assignment (if relevant to the role)
- Suggest a small first task to test the new agent
- Something real but low-stakes, so the user can see them in action
What to Generate
Create an agent directory at agents/<name>/ with:
Always unique (generated fresh):
- AGENTS.md - Role definition, responsibilities, operational rules, what they do freely vs ask first
- IDENTITY.md - Name, emoji, creature type, vibe, core principles
Start from template, customize based on interview:
- SOUL.md - Base from workspace SOUL.md template, customize vibe/boundaries sections
- TOOLS.md - Populated with inferred tools and access notes
- HEARTBEAT.md - Empty or with initial periodic tasks if relevant to role
Symlink to shared (default, opinionated):
- USER.md →
../../USER.md (they need to know who they work for)
- MEMORY.md →
../../MEMORY.md (shared team context)
Mention to the user: "I've linked USER.md and MEMORY.md so they know who you are and share team context. You can change this later if you want them more isolated."
Naming
Use craft/role-based names. Check TOOLS.md for the full naming taxonomy:
- Research: Scout, Observer, Surveyor
- Writing: Scribe, Editor, Chronicler
- Code: Smith, Artisan, Engineer
- Analysis: Analyst, Assessor, Arbiter
- Creative: Muse, Artisan
- Oversight: Auditor, Reviewer, Warden
Check existing agents to avoid name conflicts. Suggest a name that fits the role, but let the user override.
Team Awareness
Before generating, check agents/ for existing team members. Note:
- Potential overlaps with existing roles
- Gaps this new hire fills
- How they'll interact with existing agents
Mention any relevant observations: "You already have Scout for research - this new role would focus specifically on..."
After Setup
Tell the user what was created and where
Automatically update the OpenClaw config via gateway config.patch (do not ask the user to run a manual command). You must:
Required flow:
- Fetch config + hash
openclaw gateway call config.get --params '{}'
- Build the updated
agents.list array (existing entries + new agent) and update the main agent's subagents.allowAgents (existing list + new id).
- Apply with
config.patch:openclaw gateway call config.patch --params '{
"raw": "{\n agents: {\n list: [ /* full list with new agent + updated main allowAgents */ ]\n }\n}\n",
"baseHash": "<hash-from-config.get>",
"restartDelayMs": 1000
}'
If monthly reviews were requested, confirm the cron schedule
Update any team roster if one exists
Important
- This is a CONVERSATION, not a form. Be natural.
- Infer as much as possible from context. Don't ask what you can figure out.
- The user might not know what they want exactly. Help them figure it out.
- Keep the whole process under 5 minutes for the simple case.
1---2name: hire3description: Interactive hiring wizard to set up a new AI team member. Guides the user through role design via conversation, generates agent identity files, and optionally sets up performance reviews. Use when the user wants to hire, add, or set up a new AI agent, team member, or assistant. Triggers on phrases like "hire", "add an agent", "I need help with X" (implying a new role), or "/hire".4---5
6# hire
7
8Set up a new AI team member through a guided conversation. Not a config generator - a hiring process.
9
10## When to Use
11
12User says something like:
13- "I want to hire a new agent"
14- "I need help with X" (where X implies a new agent role)
15- "Let's add someone to the team"
16- `/hire`
17
18## The Interview
19
20### 3 core questions, asked one at a time:
21
22**Q1: "What do you need help with?"**
23Let them describe the problem, not a job title. "I'm drowning in code reviews" beats "I need a code reviewer."
24- Listen for: scope, implied autonomy level, implied tools needed
25
26**Q2: "What's their personality? Formal, casual, blunt, cautious, creative?"**
27Or frame it as: "If this were a human colleague, what would they be like?"
28- Listen for: communication style, vibe, how they interact
29
30**Q3: "What should they never do?"**
31The red lines. This is where trust gets defined.
32- Listen for: boundaries, safety constraints, access limits
33
34### Q4: Dynamic (optional)
35After Q1-Q3, assess whether anything is ambiguous or needs clarification. If so, ask ONE follow-up question tailored to what's unclear. Examples:
36- "You mentioned monitoring - should they alert you immediately or batch updates?"
37- "They'll need access to your codebase - any repos that are off-limits?"
38- "You said 'casual' - are we talking friendly-professional or meme-level casual?"
39
40If Q1-Q3 were clear enough, skip Q4 entirely.
41
42## Summary Card
43
44After the interview, present a summary:
45
46```
47🎯 Role: [one-line description]
48🧠 Name: [suggested name from naming taxonomy]
49🤖 Model: [selected model] ([tier])
50⚡ Personality: [2-3 word vibe]
51🔧 Tools: [inferred from conversation]
52🚫 Boundaries: [key red lines]
53🤝 Autonomy: [inferred level: high/medium/low]
54```
55
56Then ask: **"Want to tweak anything, or are we good?"**
57
58## Model Selection
59
60Before finalizing, select an appropriate model for the agent.
61
62### Step 1: Discover available models
63Run `openclaw models list` or check the gateway config to see what's configured.
64
65### Step 2: Categorize by tier
66Map discovered models to capability tiers:
67
68| Tier | Models (examples) | Best for |
69|------|-------------------|----------|
70| **reasoning** | claude-opus-*, gpt-5*, gpt-4o, deepseek-r1 | Strategy, advisory, complex analysis, architecture |
71| **balanced** | claude-sonnet-*, gpt-4-turbo, gpt-4o-mini | Research, writing, general tasks |
72| **fast** | claude-haiku-*, gpt-3.5*, local/ollama | High volume, simple tasks, drafts |
73| **code** | codex-*, claude-sonnet-*, deepseek-coder | Coding, refactoring, tests |
74
75Use pattern matching on model names - don't hardcode specific versions.
76
77### Step 3: Match role to tier
78Based on the interview:
79- Heavy reasoning/advisory/strategy → reasoning tier
80- Research/writing/creative → balanced tier
81- Code-focused → code tier (or balanced if not available)
82- High-volume/monitoring → fast tier
83
84### Step 4: Select and confirm
85Pick the best available model for the role. In the summary card, add:
86```
87🤖 Model: [selected model] ([tier] - [brief reason])
88```
89
90If multiple good options exist or you're unsure, ask:
91"For a [role type] role, I'd suggest [model] (good balance of capability and cost). Or [alternative] if you want [deeper reasoning / faster responses / lower cost]. Preference?"
92
93### Notes
94- Don't assume any specific provider - work with what's available
95- Cheaper is better when capability is sufficient
96- The user's default model isn't always right for every agent
97- If only one model is available, use it and note it in the summary
98
99## Optional Extras
100
101After the summary is confirmed, offer:
102
1031. **"Want to set up periodic performance reviews?"**
104 - If yes: ask preferred frequency (weekly, biweekly, monthly)
105 - Create a cron job that triggers a review conversation
106 - Review covers: what went well, what's not working, scope/permission adjustments
107 - At the end of each review, ask: "Want to keep this schedule, change frequency, or stop reviews?"
108
1092. **Onboarding assignment** (if relevant to the role)
110 - Suggest a small first task to test the new agent
111 - Something real but low-stakes, so the user can see them in action
112
113## What to Generate
114
115Create an agent directory at `agents/<name>/` with:
116
117### Always unique (generated fresh):
118- **AGENTS.md** - Role definition, responsibilities, operational rules, what they do freely vs ask first
119- **IDENTITY.md** - Name, emoji, creature type, vibe, core principles
120
121### Start from template, customize based on interview:
122- **SOUL.md** - Base from workspace SOUL.md template, customize vibe/boundaries sections
123- **TOOLS.md** - Populated with inferred tools and access notes
124- **HEARTBEAT.md** - Empty or with initial periodic tasks if relevant to role
125
126### Symlink to shared (default, opinionated):
127- **USER.md** → `../../USER.md` (they need to know who they work for)
128- **MEMORY.md** → `../../MEMORY.md` (shared team context)
129
130Mention to the user: "I've linked USER.md and MEMORY.md so they know who you are and share team context. You can change this later if you want them more isolated."
131
132## Naming
133
134Use craft/role-based names. Check TOOLS.md for the full naming taxonomy:
135- Research: Scout, Observer, Surveyor
136- Writing: Scribe, Editor, Chronicler
137- Code: Smith, Artisan, Engineer
138- Analysis: Analyst, Assessor, Arbiter
139- Creative: Muse, Artisan
140- Oversight: Auditor, Reviewer, Warden
141
142Check existing agents to avoid name conflicts. Suggest a name that fits the role, but let the user override.
143
144## Team Awareness
145
146Before generating, check `agents/` for existing team members. Note:
147- Potential overlaps with existing roles
148- Gaps this new hire fills
149- How they'll interact with existing agents
150
151Mention any relevant observations: "You already have Scout for research - this new role would focus specifically on..."
152
153## After Setup
154
1551. Tell the user what was created and where
1562. **Automatically update the OpenClaw config via gateway `config.patch`** (do not ask the user to run a manual command). You must:
157 - Add the new agent entry to `agents.list` using this format:
158 ```json
159 {
160 "id": "<name>",
161 "workspace": "/home/lars/clawd/agents/<name>",
162 "model": "<selected-model>"
163 }
164 ```
165 - Add the new agent ID to the **main agent's** `subagents.allowAgents` array
166 - Preserve all existing agents and fields (arrays replace on patch)
167
168 **Required flow:**
169 1) Fetch config + hash
170 ```bash
171 openclaw gateway call config.get --params '{}'
172 ```
173 2) Build the updated `agents.list` array (existing entries + new agent) and update the `main` agent's `subagents.allowAgents` (existing list + new id).
174 3) Apply with `config.patch`:
175 ```bash
176 openclaw gateway call config.patch --params '{
177 "raw": "{\n agents: {\n list: [ /* full list with new agent + updated main allowAgents */ ]\n }\n}\n",
178 "baseHash": "<hash-from-config.get>",
179 "restartDelayMs": 1000
180 }'
181 ```
1823. If monthly reviews were requested, confirm the cron schedule
1834. Update any team roster if one exists
184
185## Important
186
187- This is a CONVERSATION, not a form. Be natural.
188- Infer as much as possible from context. Don't ask what you can figure out.
189- The user might not know what they want exactly. Help them figure it out.
190- Keep the whole process under 5 minutes for the simple case.