prompts/squad/skills/autonomous-agent-harness/SKILL.md
Provide a task queue, scheduler, and persistent memory system for autonomous multi-agent loops. Track task state, monitor agent progress, retry on failure, and persist decisions across sessions. Use this in the Orchestrator parallel path when running an autonomous PRD-driven loop without human gates.
npx skillsauth add imabusyman/CodebrewRouter autonomous-agent-harnessInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
A runtime framework for fully autonomous agent workflows (no human gates). Manages task queues, agent scheduling, persistent decision logs, and failure recovery.
/agent squad gate).Initial state (from PRD):
Queue:
[pending] Task 1: Implement Provider X (assigned: Coder)
[pending] Task 2: Unit test Provider X (assigned: Tester)
[pending] Task 3: Wire Provider X in AppHost (assigned: Infra)
State transitions:
pending → assigned → in_progress → done / blocked / failed → (retry or skip)
[DONE] or [BLOCKED]).Append-only decision log under Docs/squad/runs/<ts>/:
## 2026-04-20T15:45:00Z — scheduler — MEDIUM
Decision: Task 2 (tests) was skipped due to missing implementation.
Rationale: Quality gate requires tests to run after impl completes.
Evidence: Task 1 still in [in_progress]; Task 2 moved to [queued].
Recovery across sessions: On restart, read the log, resume from the last checkpoint.
[blocked] + emit alert. Orchestrator decides: retry, skip, or abort.[in_progress], loop back to agent with fixes needed.The Orchestrator (Conductor's parallel-path sibling) drives the harness:
[DONE] or [BLOCKED].[done], trigger Reviewer + Security-Review.harness:
max_retries: 3
task_timeout: 1h # per task
session_timeout: 8h # total runtime before auto-checkpoint
priority_rules:
- "Architect tasks (ADRs) run first"
- "Coder tasks (impl) run before Tester"
- "Infra tasks (config) run last"
failure_mode: "retry_once_then_block" # or "fail_fast"
loop-operator — supervise the autonomous loop, detect stalls, safe interventions.subagent-driven-development — structure subagent delegation.dispatching-parallel-agents — compute task sets from plan.development
Generate a Product Requirements Document from a task description, user intent, or PRD outline. Structure the PRD with sections: Overview, Problem Statement, Goals, Scope, Features, Acceptance Criteria, Metrics. Use this when the Planner or Orchestrator needs to formalize requirements before decomposing into implementation steps.
development
Compose parallel teams of specialized agents for a multi-faceted task. Map subtasks to agent roles, balance workload, and validate team composition. Use this when breaking a task into parallel streams that require different expertise (Coder, Tester, Infra, etc.).
development
Delegate implementation work to specialized subagent instances, each inheriting a task scope and constraints from the parent. Emit structured handoffs, monitor completion signals, aggregate results. Use this in the Orchestrator parallel path when spawning independent Coder/Tester/Infra subagents from a single coordinator.
testing
Maintain the append-only reasoning log and write handoff envelopes for every squad delegation. Use this when the Conductor delegates to a specialist or when a specialist records a non-trivial decision.