1.6 KiB
1.6 KiB
Create a New DisClaw Agent
Help me create a new agent workspace directly from the command line (without going through Discord).
What I need from you
- Ask me for the agent name (lowercase, letters/numbers/hyphens, e.g.
frontend-dev) - Ask me for the role description (e.g. "Frontend developer for the React web application")
- Ask me for the Discord channel ID where this agent should listen (I can provide this later)
What to do
Once I provide the name and role:
- Create the workspace directory at
workspaces/<agent-name>/ - Create
workspaces/<agent-name>/agent.yamlwith the DisClaw metadata:name: <agent-name> display_name: <Agent Name> role: <role description> channel_id: <channel-id or "pending"> - Create
workspaces/<agent-name>/CLAUDE.mdwith a rich identity file that includes:- Agent name and role
- Personality traits
- Guidelines for behavior
- Placeholder for workspace-specific context
- Create
workspaces/<agent-name>/.claude/commands/directory - Create
workspaces/<agent-name>/.claude/settings.jsonwith default permissions
Important notes
- The agent name must match the pattern:
^[a-z0-9][a-z0-9-]{0,30}[a-z0-9]$ - If a channel ID is not provided, use "pending" -- the user can update it later or use the Discord
/new-agentcommand which handles channel creation automatically - The CLAUDE.md file is the primary identity mechanism -- make it detailed and useful
- After creation, remind the user that they need to either:
- Map this workspace to a Discord channel in the database, OR
- Use the
/new-agentDiscord command instead for automatic channel setup