Agent harness

From OpenLAIR/dr-claw · View interactive version

Agent harness is an AI agent skill from the GitHub repository OpenLAIR/dr-claw. Dr. Claw workspace skill for project lookup, session inspection, TaskMaster progress, OpenClaw structured schema, and event-driven reporting

How to use this skill

Skill file

Dr. Claw Research Skill

Use this skill when the user asks about Dr. Claw projects, wants to inspect Claude/Cursor/Codex/Gemini sessions, needs task progress pushed to OpenClaw/mobile, or wants structured OpenClaw-ready JSON outputs.

Setup check

Before using Dr. Claw, verify the server is reachable:

drclaw server status

If needed, start it:

drclaw server on

Project discovery

drclaw --json projects list

Project references accepted by the CLI:

If a path exists locally but is not registered yet:

drclaw projects add /absolute/path/to/project --name "Display Name"

Session workflows

List sessions:

drclaw --json sessions list <project-ref>
drclaw --json sessions list <project-ref> --provider cursor

Fetch messages:

drclaw --json sessions messages <project-ref> <session-id> --provider claude --limit 100

Send Claude a message:

drclaw --json chat send --project <project-ref> --message "<user message>"

Reply to an existing session with structured OpenClaw output:

drclaw --json chat reply --project <project-ref> --session <session-id> -m "<user message>"

List active sessions across projects:

drclaw --json chat sessions

TaskMaster workflows

Check whether TaskMaster is present:

drclaw --json taskmaster detect <project-ref>

Get progress and next action:

drclaw --json taskmaster summary <project-ref>
drclaw --json taskmaster next-guidance <project-ref>

Initialize .pipeline for a project if needed:

drclaw taskmaster init <project-ref>

OpenClaw / mobile reporting

Configure the default push channel once:

drclaw openclaw configure --push-channel feishu:<chat_id>

Preview a mobile report:

drclaw --json openclaw report --project <project-ref> --dry-run

Send it:

drclaw openclaw report --project <project-ref>

Start the event-driven watcher daemon:

drclaw --json openclaw-watch on --to feishu:<chat_id>
drclaw --json openclaw-watch status
drclaw --json openclaw-watch off

The watcher is now a useful notification pipeline rather than raw websocket forwarding. It:

Current attention-worthy signals include:

Watcher runtime files:

Structured OpenClaw schema

Major JSON commands now include a top-level openclaw field with a stable versioned schema for mobile / voice clients.

Current schema families:

Practical client rules:

Formal contract:

cat agent-harness/cli_anything/drclaw/SCHEMA.md

Recommended operating flow

  1. If the user did not specify a project, run projects list and resolve the project first.
  2. For freeform project questions, use chat send or chat reply, and prefer the openclaw schema field over parsing raw reply text.
  3. For status/progress questions, prefer workflow status, digest project, digest portfolio, and taskmaster next-guidance.
  4. For proactive mobile updates, use openclaw report.
  5. For background attention monitoring, use openclaw-watch on instead of polling digest commands manually.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.