/agent:service install|status|uninstall|logsfrom ClawCode
Installs Claude Code as a background daemon via launchd (macOS) or systemd (Linux) for 24/7 operation of HTTP bridge, webhooks, and crons.
Ships in ClawCode. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Wrap Claude Code (with ClawCode) in the OS's service manager so the agent keeps running after the terminal closes. This is what makes the HTTP bridge, WebChat, webhooks, and crons work 24/7.
This is an OPTIONAL feature. See docs/service.md for the full reference, risks, and how to add messaging-channel flags.
Installing the service runs Claude Code with --dangerously-skip-permissions in the background. That flag:
This is an irrevocable trust decision for this workspace. Only run /agent:service install if you understand that.
Always prompt the user to confirm before installing. Quote the flag by name in the confirmation. If the user hesitates or asks questions, stop and explain.
Parse the action and call service_plan with it.
| User says | Action argument |
|---|---|
/agent:service install | install |
/agent:service status (or no arg) | status |
/agent:service uninstall | uninstall |
/agent:service logs | logs |
claude binary: Bash(which claude). Trim output. If empty, abort with: "Can't find claude in PATH. Install Claude Code or point me at it manually."channels_detect as supporting evidence; do not replace an existing launcher with a guessed command. If Live is configured, run live_setup_status and follow /agent:live for any setup changes first. Call service_plan({ action: "install", claudeBin: <path>, extraArgs: <existing arguments> }). The plan adds ClawCode's Live channel when opted in and the wrapper supplies the managed web environment; it does not add or authorize WhatsApp or permission flags on behalf of the operator.error (unsupported OS), print the error and stop.~/.claude/settings.json (prevents the most common install hang — see docs/service.md "Heads-up" note):
Read(~/.claude/settings.json). If it doesn't exist or is empty, treat as {}.skipDangerousModePermissionPrompt is already true, skip to the next sub-step.~/.claude/settings.json is missing \"skipDangerousModePermissionPrompt\": true. Without it, the service will show a 'Bypass Permissions — Do you accept?' dialog at startup that no daemon (launchd / systemd) can answer, and the install will appear to succeed but the service will hang silently. Add it now? [y/N]"jq via Bash (preserves any other keys, atomic write):
Bash: jq '. + {"skipDangerousModePermissionPrompt": true}' ~/.claude/settings.json > ~/.claude/settings.json.tmp && mv ~/.claude/settings.json.tmp ~/.claude/settings.json
(If the file did not exist, first run Bash: echo '{}' > ~/.claude/settings.json so jq has something to merge into.) Confirm with one line: "Added skipDangerousModePermissionPrompt: true to ~/.claude/settings.json."no, abort with a neutral acknowledgement and do not write any service files. On yes, proceed and let the user deal with it.plan.extraFiles is present, for each entry: ensure the parent dir exists (Bash(mkdir -p <dirname>)), then Write(file.path, file.content), then Bash(chmod <octal> <file.path>) using file.mode (default 0o644 when omitted). These are auxiliary scripts the unit file needs to exist before start — e.g. the resume-on-restart wrapper.Write(filePath, fileContent) — the plan tells you the pathplan.commands in order with Bash, printing the label before eachuninstall to clean up)<plan.label>. Log: <plan.logPath>. Run /agent:service status to verify."service_plan({ action: "status" })plan.commands with Bashservice_plan({ action: "uninstall" })<plan.label> service? [y/N]"plan.commandsservice_plan({ action: "logs" })tail command and print output directly./tmp/clawcode-<slug>.log directly" instead.launchctl or systemctl commands that aren't in the plan returned by service_plan — the tool is the source of truth./agent:service install with the existing and updated flags supplied as extraArgs. Preserve its other options and explicit service consent.docs/service.md — full doc, risks, channel-flag customizationlib/service-generator.ts — pure generatorsdocs/INDEX.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub crisandrews/clawcode --plugin agent21 skills in this plugin
/aboutShow the plugin source — name, version, and repo URL. Works from CLI or messaging. Triggers on /about, /version, /agent:about, /agent:version, "qué versión", "what version", "about the plugin", "about clawcode"./channelsShow messaging channel status (WhatsApp, Telegram, Discord, iMessage, Slack, Fakechat) and the launch command to load them. Triggers on /agent:channels, /agent:channels list, /agent:channels status, /agent:channels launch, "ver canales", "estado de canales", "cómo lanzo con whatsapp", "channel status", "messaging status"./compactFlush important session context to daily log (manual memory flush). Does NOT invoke native /compact. Triggers on /compact, /agent:compact, /flush, "guarda memoria", "flush"./createCreate a new agent in the current directory with personality files and bootstrap ritual. Triggers on /agent:create, "crear agente", "nuevo agente", "new agent", "create agent"./cronsManage scheduled reminders (crons) — list, add, delete, pause, resume, reconcile, or import from OpenClaw. Triggers on /agent:crons, /agent:reminders; listing ("list reminders", "show crons", "recordatorios", "mis crons", "mis recordatorios"); creating from natural language via any channel ("recordame", "recuérdame", "me recuerdas", "hazme acordar", "agendame", "agéndame", "avísame", "remind me", "remind me in", "reminder in", "schedule a reminder", "set a reminder", "wake me at", "every day at", "todos los días a las", "every monday|tuesday|...", "todos los lunes|martes|...", "cada N minutos|horas"); importing ("import crons", "importar crons", "traer crons")./doctorRun diagnostic checks on the agent workspace. Triggers on /agent:doctor, "diagnóstico", "diagnostico", "doctor", "health check", "agent health", "checkup", "revisar agente", "agent broken", "fix agent", "revisa el agente".Other plugins' skills for the same job