dashclaw

v3.1.11
io.github.ucsandman/dashclaw Checked 6 hours ago Published 5 days ago

Policy checks, approvals, records, and governed HTTP capabilities for unattended agents.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

dashclaw_guard

Evaluate DashClaw governance policies before taking a risky action. Call this BEFORE any action that modifies external systems, deploys code, sends messages, or touches production data. Returns a decision: "allow" (proceed), "warn" (proceed with caution), "block" (stop), or "require_approval". On "require_approval" the server opens the approval request itself when it can: if the response has "recorded": true, call dashclaw_wait_for_approval with the returned action_id and do not record the action again. If "recorded" is missing or false (an older server, or no agent id), call dashclaw_record w…

ParameterTypeDescription
action_type *stringCategory of action (e.g., deploy, send_email, database_write, api_call)
declared_goal *stringWhat you intend to do, in plain language
risk_score *integerEstimated risk 0-100. Use 70+ for production systems.
actobjectEvidence-first guard: attach the actual act being evaluated so the server classifies it and folds the derived risk in, instead of trusting only the declared action_type/risk_score above. Shape: { kind…
agent_idstringFallback identity when no server-level agent id is configured (the configured id wins). With a configured id you may name a sub-agent under it as "<configured id>/<name>" (e.g. claude-desktop/nightly-…
approval_wait_secondsintegerHow long you will poll dashclaw_wait_for_approval if the decision is require_approval (default 300; the approval expires after this window + a retry grace)
confidenceintegerYour honest 0-100 confidence, stated BEFORE acting, that this action completes without a human stepping in. Stored on the action record and scored against the real outcome on /decisions (Predicted vs…
contentstringOutbound content excerpt (file content, message body) so secret-scan and content policies can evaluate it
reversiblebooleanWhether the action can be undone
systems_touchedarraySystems affected (e.g., production, database, email)
targetstringPrimary file path, URL, or resource the action touches (lets protected-path policies match)
tool_namestringName of the tool that will perform the action (e.g., Write, Bash, send_email)
write_pathsarrayFile paths the action will write or modify (protected-path policy matching)

dashclaw_record

Record a governed action in DashClaw's audit trail. Use this to log significant decisions, completed tasks, or notable outcomes. Every important action the agent takes should be recorded for governance visibility in the Approvals inbox and the Decisions ledger.

ParameterTypeDescription
action_type *stringCategory (e.g., research, analysis, code_change, deploy)
declared_goal *stringWhat was accomplished
status *stringOutcome status
actobjectThe actual act this record covers — pass the SAME act object you sent to dashclaw_guard. For status pending_approval the server stamps a content hash from it, binding the operator's approval to this…
action_idstringClose an EXISTING record instead of creating one: the action_id returned by an earlier dashclaw_record (status running). A dashclaw_guard decision_id is not an action record and cannot be closed here.…
agent_idstringFallback identity when no server-level agent id is configured (the configured id wins). With a configured id you may name a sub-agent under it as "<configured id>/<name>" (e.g. claude-desktop/nightly-…
approval_wait_secondsintegerFor status pending_approval: how long you will poll for the decision (default 300; the approval expires after this window + a retry grace)
confidenceintegerYour honest 0-100 confidence, stated BEFORE acting, that this action completes without a human stepping in. Scored against the real outcome on /decisions (Predicted vs actual). State it on dashclaw_gu…
cost_estimatenumberEstimated cost in USD
deviation_notestringOptional deviation self-report: how and why this action departed from the approved plan. Recorded as an agent-reported claim (never suppresses or downgrades the server's own deviation detection).
error_messagestringFor status failed: what went wrong (applied on the action_id close path; ignored otherwise)
modelstringModel used
output_summarystringBrief summary of what was produced
plan_step_idstringOptional deviation self-report: the plan step (ps_...) this action was supposed to fulfil, when you knowingly departed from it.
reasoningstringWhy this action was chosen
reversiblebooleanWhether the action can be undone
risk_scoreintegerRisk level 0-100 (default 30)
session_idstringSession to attribute this action to. Defaults to the session started via dashclaw_session_start in this connection.
systems_touchedarraySystems affected
tokens_inintegerInput tokens consumed
tokens_outintegerOutput tokens produced

dashclaw_invoke

Invoke a DashClaw-governed capability (external API). The capability is guarded (policy check), executed (HTTP call), and recorded (audit trail) automatically. Use this instead of making direct HTTP calls when the target API is registered as a DashClaw capability. Call dashclaw_capabilities_list first to discover available capability IDs.

ParameterTypeDescription
capability_id *stringThe capability ID (e.g., cap_abc123)
declared_goal *stringWhat you're trying to accomplish
agent_idstringFallback identity when no server-level agent id is configured (the configured id wins). With a configured id you may name a sub-agent under it as "<configured id>/<name>" (e.g. claude-desktop/nightly-…
payloadobjectRequest payload for the capability

dashclaw_capabilities_list

List available capabilities registered in DashClaw. Use this to discover what external APIs and tools are available before invoking them. Returns capability IDs, names, health status, and risk levels. Filter by category, risk level, or search term.

ParameterTypeDescription
categorystringFilter by category: external_api, webhook, function
limitintegerMax results (default 50)
risk_levelstringFilter: low, medium, high, critical
searchstringSearch by name or description

dashclaw_policies_list

List active governance policies. Use this to understand what rules govern your actions before taking them. Helps calibrate risk scores and know which action types require approval. Optionally filter to policies applying to a specific agent.

ParameterTypeDescription
agent_idstringFilter to policies applying to a specific agent
limitintegerMax results (default 50)

dashclaw_wait_for_approval

Wait for a human to approve or deny a pending action in the DashClaw Approvals inbox. Call this after a guard decision returns "require_approval" or after recording an action with status "pending_approval". Polls the action status until it changes. Default timeout is 300 seconds (5 minutes).

ParameterTypeDescription
action_id *stringThe action ID to wait on (e.g., act_abc123)
poll_interval_secondsnumberPolling frequency (default 3)
timeout_secondsnumberMax wait time (default 300)

dashclaw_session_start

Register this agent session with DashClaw. Creates a session record that groups all subsequent actions for tracking and observability. Call this at the beginning of a task to establish a governance boundary.

ParameterTypeDescription
agent_id *stringAgent identifier (required)
branchstringGit branch or task branch
workspacestringWorkspace or project context

dashclaw_session_end

Close a DashClaw session and update its status. Call this when the task is complete or if the session needs to be marked as failed. Provides a clean lifecycle boundary for governance reporting in the Approvals inbox.

ParameterTypeDescription
session_id *stringSession ID from dashclaw_session_start
status *stringFinal session status
summarystringBrief description of what was accomplished

dashclaw_session_retro

Fetch the per-session defensibility retro ("was I manipulated?"): injected-content flags, actions outside the declared goal, spend anomalies, and shield hits, composed into a clean/review/flagged posture with evidenced findings. Read-only. Defaults to the active session — call it before dashclaw_session_end, or pass session_id explicitly afterwards (ending a session clears the active default).

ParameterTypeDescription
session_idstringSession ID (sess_*). Defaults to the session started by dashclaw_session_start.

dashclaw_task_create

Create a Team Task — one record per multi-agent /team run. Groups the inter-agent event timeline (delegations, replies, approvals) for governance visibility on the Team Tasks page. Call once per task, from the receiving agent.

ParameterTypeDescription
instruction *stringThe full task instruction (required)
lead_agent *stringLead agent id, e.g. claude | openclaw | moltfire (lowercase slug, required)
origin *stringOrigin surface: telegram | claude-code | company-loop (required)
task_id *stringLedger task id, e.g. team-20260710-0912-slug (required)
max_exchangesintegerRound-trip cap (default 10)
statusstringInitial status (default open)
stop_conditionstringWhen the task is considered complete

dashclaw_task_event

Append one event to a Team Task timeline (delegation, reply, status, approval_needed, result, error, done, lead_assigned). Log from your OWN identity only; never include secrets in summary or body.

ParameterTypeDescription
from_agent *stringSender agent id, e.g. claude | openclaw | moltfire (lowercase slug, required)
summary *stringOne-line summary (required)
task_id *stringTeam task id (required)
to_agent *stringRecipient agent id, e.g. claude | openclaw | wes | forge (lowercase slug, required)
type *stringEvent type (required)
action_idstringDashClaw action id this event corresponds to
bodystringOptional detail
tsstringISO 8601 timestamp (defaults to server time)

dashclaw_task_update

Update a Team Task: status transitions (open → in_progress → awaiting_approval → done | failed | abandoned) and stored transport session ids.

ParameterTypeDescription
task_id *stringTeam task id (required)
claude_session_idstringclaude -p session id for --resume
openclaw_session_keystringOpenClaw session key
statusstringNew status

dashclaw_assumption_record

Record an assumption you are acting on — something you treat as true but have not verified (e.g. "staging tests passed", "no active legal hold on this record"). Attach it to the action whose decision rests on it so operators can later validate or refute it and staleness drift is tracked. Call right after the action that depends on the belief.

ParameterTypeDescription
action_id *stringParent action id the assumption underpins (from dashclaw_record)
assumption *stringThe belief being treated as true
basisstringWhy you believe it (optional)

dashclaw_decisions_recent

Query the guardrail decisions ledger for recent governed actions. Filter by agent, action type, decision verdict, or time window. Use for in-session retrospection — "what have I done recently?"

ParameterTypeDescription
action_typestring
agent_idstring
decisionstring
limitintegerMax results (default 20)
sincestringISO timestamp lower bound

dashclaw_pair

Enroll this agent's cryptographic identity with DashClaw (operator pairing requests ask for exactly this). Generates an RSA-2048 keypair locally, stores the PRIVATE key on this machine only (~/.dashclaw/identity/<agent_id>.pem — never logged, never sent), and POSTs the public key to /api/pairings. An admin then approves the pairing, which creates the agent identity and lets your recorded actions be signature-verified. Set wait:true to poll until approved/expired (max 5 min).

ParameterTypeDescription
agent_idstringFallback identity when no server-level agent id is configured (the configured id wins). With a configured id you may name a sub-agent under it as "<configured id>/<name>" (e.g. claude-desktop/nightly-…
agent_namestringHuman-readable agent name shown to the approving admin.
waitbooleanPoll the pairing until approved/expired (default false).

dashclaw_plan_submit

Submit a preflight plan — an ordered list of intended steps — for one-card operator review BEFORE executing. Each step is dry-run through the guard pipeline server-side; approved steps become single-use execution authorities. Claim-aware paths such as dashclaw_invoke, governed SDK callbacks, and supported hooks can claim a matching step and consume it with one attempt. Bare dashclaw_guard/record/wait calls remain cooperative policy and audit and do not consume plan authority. Off-plan actions fall back to normal per-action governance.

ParameterTypeDescription
declared_goal *stringThe mission-level goal of the plan (required)
steps *arrayOrdered steps: [{ action_type, step_goal, act?, declared_paths?, declared_systems? }] (required)
agent_idstringFallback identity when no server-level agent id is configured (the configured id wins). With a configured id you may name a sub-agent under it as "<configured id>/<name>" (e.g. claude-desktop/nightly-…
ttl_minutesintegerRequested grant TTL after approval (server-clamped; default 60)

dashclaw_plan_status

Check a submitted plan: overall status (pending | approved | partially_approved | denied | expired | revoked) and per-step grant status (approved / denied / consumed). Poll this after dashclaw_plan_submit to learn the operator verdict before executing.

ParameterTypeDescription
plan_id *stringPlan id from dashclaw_plan_submit, e.g. pa_1234... (required)

dashclaw_status DashClaw status

Check DashClaw authoritative gate configuration and reachability.

export_dashclaw_evidence Export DashClaw evidence

Export local audit entries that include DashClaw guard/evidence metadata.

ParameterTypeDescription
environmentstring
limitinteger
projectstring
providerstring