Register Task
register_taskCreates a monitored coding-agent task record so an independent watchdog can resume interrupted work from the same session or checkpoint.
Instructions
Register a coding-agent task for monitoring and automatic recovery. The agent (or its launcher) calls this when starting a task so the watchdog can resume it after interruptions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes | Unique task identifier | |
| adapterId | Yes | Adapter id, e.g. 'opencode', 'claude-code' | |
| agentType | No | Agent type label (defaults to adapterId) | |
| sessionId | No | Existing agent session id to resume, when known | |
| processPid | No | Agent process id, when launched by the caller | |
| description | Yes | Original task description used as recovery context | |
| maxAttempts | No | Recovery attempt budget (default from configuration) | |
| workingDirectory | Yes | Absolute working directory the agent runs in |