Single-Agent Workflow
Even in single-agent environments, Decapod provides a rigorous structure that prevents common agentic errors and ensures high-quality delivery (see Agent-First Architecture).
The Standard Loop
- Orientation: The agent reads
AGENTS.mdand initializes its session (see CLI Reference).decapod session acquire
- Intent Capture: The agent identifies its task and formalizes the intent (see Explicit Intent).
decapod todo claim --id <id>update specs/INTENT.md(see Artifacts Reference)
- Workspace Entry: The agent moves into an isolated environment (see Workspace Sandboxing).
decapod workspace ensure
- Implementation: The agent performs the work within the workspace.
- Validation and Recovery: The agent verifies the change against project policy. If a gate fails and remediation is supported, the agent corrects the violated artifact or state and re-runs validation.
decapod validate
- Publication and Completion: After required gates pass, the agent publishes through the governed workspace path, records proof, and marks the task as done (see Proof & Validation).
decapod workspace publishdecapod todo done --id <id> --validated
Key Benefits
- Safe Iteration: The agent works on a dedicated branch, meaning it can't accidentally break the main build while experimenting.
- Visible Interpretation: Agent-authored living specifications make the intended outcome and repository understanding reviewable before publication.
- Verifiable Outcome: The human operator receives a PR with identified validation and evidence instead of relying on an agent completion claim.