Get the FREE Ultimate OpenClaw Setup Guide →
l

Clawctl

Scanned

@lludlow

npx machina-cli add skill @lludlow/clawctl --openclaw
Files (1)
SKILL.md
3.3 KB

Setup

clawctl init                        # create the database
export CLAW_AGENT=your-name         # set identity (falls back to $USER with warning)
export CLAW_DB=~/.openclaw/clawctl.db  # optional, this is the default

Operational Rhythm

Follow this pattern every session:

  1. clawctl checkin — register presence, see unread count
  2. clawctl inbox --unread — read messages before picking up work
  3. clawctl next — find highest-priority actionable task (or clawctl list --mine)
  4. clawctl claim <id> then clawctl start <id> — take ownership and begin
  5. clawctl msg <agent> "update" --task <id> — coordinate during work
  6. clawctl done <id> -m "what I did" then clawctl next — complete and move on

Only claim tasks assigned to you or matching your role. Completing an already-done task is a safe no-op.

Decision Tree

SituationCommand
New taskclawctl add "Subject" -d "Details"
Find workclawctl next then clawctl claim <id>
Blockedclawctl block <id> --by <blocker-id> and notify via clawctl msg
Finishedclawctl done <id> -m "Result"
Hand offclawctl msg <agent> "Ready for you" --task <id> --type handoff
Ready for reviewclawctl review <id>
Catch upclawctl feed --last 20 or clawctl summary
Link artifactsAdd --meta '{"note":"path/to/file"}' to done, claim, start, or block

Task Statuses

pending → claimed → in_progress → done
                  ↘ blocked ↗    ↘ cancelled
                  ↘ review  ↗

list excludes done/cancelled by default. Use --all for history (newest first).

Commands

Tasks

CommandDescription
add SUBJECTCreate task. -d desc, -p 0|1|2 priority, --for AGENT assign, --parent ID
listActive tasks. --mine, --status STATUS, --owner AGENT, --all
nextHighest-priority actionable task for current agent
claim IDClaim task. --force overrides ownership, --meta JSON
start IDBegin work (in_progress). --meta JSON
done IDComplete. -m note, --force, --meta JSON
review IDMark ready for review. --meta JSON
cancel IDCancel task. --meta JSON
block ID --by OTHERMark blocked. --meta JSON
boardKanban board grouped by status

Messages

CommandDescription
msg AGENT BODYSend message. --task ID, --type TYPE (comment, status, handoff, question, answer, alert)
broadcast BODYAlert all agents
inboxRead messages. --unread for unread only

Fleet

CommandDescription
checkinHeartbeat — update presence, report unread count
register NAMERegister agent. --role TEXT
fleetAll agents with status and current task
whoamiIdentity, role, and DB path

Monitoring

CommandDescription
feedActivity log. --last N, --agent NAME, --meta
summaryFleet overview with counts and recent events
dashboardWeb UI. --port INT, --stop, --verbose

Source

git clone https://clawhub.ai/lludlow/clawctlView on GitHub

Overview

Clawctl provides a central coordination layer for an OpenClaw agent fleet, handling tasks, messaging, activity feed, and a web dashboard. It standardizes how agents check in, claim and work on tasks, communicate status, and review outcomes, improving transparency and throughput.

How This Skill Works

Clawctl runs as a CLI tool backed by a local database. Agents initialize with clawctl init and identify themselves via CLAW_AGENT, then follow a session rhythm: checkin, inbox, next, claim/start, and done, with messages during work. Tasks move through statuses: pending, claimed, in_progress, done, with blockers and review states tracked in the feed and dashboard.

When to Use It

  • New task creation and assignment
  • Finding the next actionable task for the agent
  • Handling blocked tasks and blockers with handoff
  • Completing work and moving to review
  • Reviewing or handing off completed work

Quick Start

  1. Step 1: clawctl init; export CLAW_AGENT=your-name; export CLAW_DB=path/to/db
  2. Step 2: Daily workflow — clawctl checkin; clawctl inbox --unread; clawctl next; clawctl claim <id>; clawctl start <id>; clawctl msg <agent> update --task <id>; clawctl done <id> -m 'what I did'
  3. Step 3: Optional UI — clawctl dashboard --port 8080

Best Practices

  • Check in and read unread messages before choosing work
  • Only claim tasks assigned to you or matching your role
  • Coordinate with explicit messages during work and use handoff/review flows
  • Attach artifacts by adding --meta with a JSON payload to relevant commands
  • Use the dashboard and fleet feed to stay aligned and monitor progress

Example Use Cases

  • An agent checks in, reviews unread inbox, uses next to pick a high-priority task, claims and starts, communicates updates via msg, then uses done with a summary and moves on
  • When a task blocks, the agent runs block with --by and notifies the team via msg
  • Upon partial completion, the agent uses handoff messaging to hand the task off to the next agent
  • Artifacts are linked by adding --meta '{"note":"path/to/file"}' to the done command
  • To stay up to date, the agent runs feed --last 20 or summary to see fleet activity

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers