Agentmanager
Skill by nonightwatch
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/nonightwatch/agentmanagerAgent Manager skill
What this file is for
This file is a concise integration contract for AI tool callers and gateway implementers.
This skill.md is a compact integration guide for Clawhub and other AI clients.
Agent Manager is an orchestration kernel for external AI planners. External AI builds plans, and Agent Manager validates, schedules, executes tools, enforces budgets, and provides replayable telemetry.
Authentication
Use X-Run-Token for owner attribution and optional access control.
REQUIRE_RUN_TOKEN=1enables token enforcement.RUN_TOKENScontains allowed token values.
Example header:
X-Run-Token: tenant-a
Capability discovery and endpoint map
Start with:
GET /v1/capabilitiesGET /v1/provider-adapter/schema
Core endpoints:
POST /v1/plan(validate plus recommendations)POST /v1/plan/validatePOST /v1/plan/generatePOST /v1/runPOST /v1/run/syncGET /v1/run/:idGET /v1/run/:id/events?after=GET /v1/run/:id/streamGET /v1/run/:id/replayGET /v1/run/:id/report(if enabled)GET /v1/runsPOST /v1/run/:id/cancelPOST /v1/run/:id/task/:name/injectPOST /v1/tools/register(only when enabled)
Provider selection
Provider choice follows this order:
task.provider_idrun.options.provider_idDEFAULT_PROVIDER_IDmock
Read provider availability from capabilities.llm_providers.providers and capabilities.llm_providers.default_provider_id.
Recommended client flow
GET /v1/capabilitiesPOST /v1/planwith{ plan, options }POST /v1/run(async) orPOST /v1/run/sync- Stream with
GET /v1/run/:id/streamor pollGET /v1/run/:id/events?after=<seq> - Read final run from
GET /v1/run/:id - Export replay from
GET /v1/run/:id/replay - Use
POST /v1/run/:id/task/:name/injectfor deterministic overrides when needed
Tool-calling protocol rule
When a provider returns tool_calls, Agent Manager appends exactly one role="tool" message for each tool_call_id before the next provider round.
This prevents protocol errors in model APIs.
SSE reliability and resume
GET /v1/run/:id/stream sends event id from event sequence numbers.
- Resume with
Last-Event-IDheader or?after=query. - If idle and run is non-terminal, heartbeat comments are emitted:
: ping
Heartbeat interval uses SSE_HEARTBEAT_MS (default 15000).
Event types
Common emitted event types include:
task_start,task_end,task_retrytool_call_requested,tool_call_start,tool_call_end,tool_call_failed,tool_call_started,tool_call_finishedllm_step_start,llm_step_tool_calls,llm_step_finalllm_round_start,llm_round_tool_calls,llm_round_finalbudget_violation,fallback_start,fallback_endrun_complete,run_cancel_requesteddependency_truncated,artifact_limit
Replay and report data
GET /v1/run/:id/replay returns stable replay JSON:
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-nonightwatch-agentmanager": {
"enabled": true,
"auto_update": true
}
}
}