1.8 KiB
1.8 KiB
name, description
| name | description |
|---|---|
| recruitment | Onboard new agents into OpenClaw. Use when creating a new agent, adding an agent to the system, or setting up a new agent workspace. Triggers on requests like "new agent", "add agent", "create agent", "recruit agent", "onboard agent". |
Recruitment Skill
Onboard new agents into OpenClaw with binding configuration.
Usage
new-agent --type openclaw --agent-id <agent-id> [--model <primary-model>]
new-agent --type contractor --contractor-provider <claude|gemini> --agent-id <agent-id>
Workflow
The new-agent script executes these steps:
-
Register agent:
openclaw: runsopenclaw agents add {agent-id} --model {primary-model} --workspace ~/.openclaw/workspace/workspace-{agent-id} --non-interactivecontractor: requirescontractor-agentplugin; runsopenclaw contractor-agents add --agent-id {agent-id} --workspace ~/.openclaw/workspace/workspace-{agent-id} --contractor {contractor-provider}
-
Wait for bindings:
- Poll
openclaw config get bindingsevery 10s untilintervieweeaccountId is no longer present - Check
~/.openclaw/states/bindings.lockexists → wait every 10s until it disappears
- Poll
-
Set bindings:
- Create
~/.openclaw/states/bindings.lock - Fetch current bindings, append entry:
{ "agentId": "{agent-id}", "match": { "channel": "discord", "accountId": "interviewee" } } - Write back with
openclaw config set - Delete
bindings.lock
- Create
-
Configure interviewee account:
openclaw config set channels.discord.accounts.interviewee { "enabled": true, "token": "<secret-mgr get-secret --key interviewee-discord-token>", "groupPolicy": "open", "streaming": { "mode": "off" } }