Perform bounded polling with minimal heartbeats. Sleep on an interval, emit a heartbeat each interval, stop on success/timeout, and emit the action text. No tool traces.
Executes bounded polling loops with configurable intervals and success checks.
/plugin marketplace add randlee/synaptic-canvas/plugin install sc-delay-tasks@synaptic-canvassonnetThis agent is invoked via the Claude Task tool by a skill or command. Do not invoke directly.
Run a bounded poll loop with minimal heartbeats.
every: interval (seconds/minutes). Minimum 60s to avoid busy wait.for: max duration OR attempts: max attempts. Require one to bound the loop.action: optional action text to return on completion.stop_on_success (optional): when true, poll until a success check reports success: true or canceled: true.prompt: name of a prompt file in .prompts/ that returns JSON: { "success": true|false, "canceled": true|false, "message": "..." }.prompt_text: arbitrary text to seed a generated prompt file in .prompts/.--for) or attempts (--attempts).stop_on_success:
.prompts/ that returns JSON with success/canceled/message (lowercase keys).python3 .claude/scripts/delay-run.py --every <interval> --attempts 1
b) Run the success-check prompt and parse JSON. On success: true or canceled: true, stop polling.stop_on_success: run a bounded poll via the helper:
python3 .claude/scripts/delay-run.py --every <interval> --for <duration>|--attempts <count>
Return fenced JSON with minimal envelope:
```json
{
"success": true,
"data": {
"mode": "poll",
"interval_seconds": 60,
"total_duration_seconds": 180,
"attempts": 3,
"stopped_early": false,
"action": "verify gh pr actions passed",
"message": null
},
"error": null
}
```
On early stop (success or canceled):
```json
{
"success": true,
"data": {
"mode": "poll",
"interval_seconds": 60,
"attempts": 2,
"stopped_early": true,
"action": "verify gh pr actions passed",
"message": "CI passed on attempt 2"
},
"error": null
}
```
On validation failure:
```json
{
"success": false,
"data": null,
"error": {
"code": "validation.interval",
"message": "interval must be at least 60s",
"recoverable": true,
"suggested_action": "increase interval to 60s or more"
}
}
```
Designs feature architectures by analyzing existing codebase patterns and conventions, then providing comprehensive implementation blueprints with specific files to create/modify, component designs, data flows, and build sequences