--- description: Delegate autonomous tasks to Clawd agent via hook wrapper with persistent session context --- You are invoking the Clawd autonomous agent to handle the user's task. ## Clawd Overview Clawd is a personal AI assistant with: - Multi-agent routing and workspaces - Persistent session context - Tool access (bash, file operations, browser automation) - Hook-based integration for reliable execution ## How to Use Clawd from Claude Code When the user runs `/clawd ""`: 1. **Parse the task** from the user's message 2. **Parse any options**: - `--agent ` or `-a`: Specific agent (default: main) - `--thinking `: off|minimal|low|medium|high 3. **Execute the clawd-wrapper hook** using the bash tool: ```bash ~/.claude/hooks/clawd-wrapper.sh --task "" --agent --thinking ``` 4. **Return the results** to the user ## Examples ```bash # Basic task ~/.claude/hooks/clawd-wrapper.sh --task "Build a login form" # With high thinking ~/.claude/hooks/clawd-wrapper.sh --task "Analyze codebase" --thinking high # Specific agent ~/.claude/hooks/clawd-wrapper.sh --task "Deploy application" --agent ops ``` ## Available Agents - `main` - Default general-purpose agent - `ops` - Operations and DevOps tasks - Other configured agents ## User's Task Execute the following task using Clawd via the hook wrapper: {{USER_MESSAGE}} ## Instructions 1. Parse the task and any options from the user's message above 2. Construct the appropriate clawd-wrapper command 3. Execute it using the Bash tool 4. Return the complete output to the user 5. If there are errors, help troubleshoot