Skip to content

Commit 1c46a09

Browse files
author
@aegntic
committed
feat: add autonomous task workflow with checkpoints and rollback
Add /autonomous command for managing autonomous task execution with: - Task-based checkpoints (created on task completion) - Automatic continuation when autonomous mode is enabled - Rollback capability to any checkpoint - Task queue management (add, list, start, done) Commands: - opencode autonomous init Initialize system - opencode autonomous enable Enable autonomous mode - opencode autonomous add <task> Add task to queue - opencode autonomous start Start next task - opencode autonomous done Complete task + checkpoint - opencode autonomous checkpoints List checkpoints - opencode autonomous rollback Rollback to checkpoint Fixes anomalyco#19384
1 parent ad33ccf commit 1c46a09

4 files changed

Lines changed: 435 additions & 0 deletions

File tree

‎.claude/skills/autonomous/SKILL.md‎

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
---
2+
name: Autonomous Workflow
3+
description: Enable autonomous task continuation with task-based checkpoints and rollback capability
4+
---
5+
6+
# Autonomous Workflow Skill
7+
8+
Enable OpenCode to work autonomously with automatic task continuation, checkpoints, and rollback.
9+
10+
## Usage
11+
12+
```
13+
/autonomous init # Initialize the autonomous system
14+
/autonomous enable # Enable autonomous mode
15+
/autonomous add # Add task to queue
16+
/autonomous next # Show/execute next task
17+
/autonomous done # Mark task complete
18+
/autonomous checkpoints # List checkpoints
19+
/autonomous rollback # Rollback to checkpoint
20+
```
21+
22+
## Commands
23+
24+
### `/autonomous init`
25+
Initialize the autonomous workflow system for the current session.
26+
27+
### `/autonomous enable`
28+
Enable autonomous mode. When enabled, completing a task automatically shows the next task.
29+
30+
### `/autonomous add <task>`
31+
Add a task to the queue. Tasks are executed sequentially.
32+
33+
### `/autonomous next`
34+
Show the next task in the queue. In autonomous mode, this executes automatically after task completion.
35+
36+
### `/autonomous done`
37+
Mark the current task as complete. Creates a checkpoint and shows the next task (if autonomous mode is enabled).
38+
39+
### `/autonomous checkpoints`
40+
List all task-based checkpoints. Each checkpoint captures the workspace state.
41+
42+
### `/autonomous rollback <checkpoint-id>`
43+
Rollback to a specific checkpoint. Restores workspace and task queue.
44+
45+
### `/autonomous rollback-last-good`
46+
Rollback to the last successful checkpoint.
47+
48+
## How It Works
49+
50+
1. **Task-based checkpoints**: Snapshots are created when tasks complete, not on a timer
51+
2. **Automatic continuation**: Next suggested step becomes the next prompt
52+
3. **Rollback capability**: Revert to any checkpoint when things go wrong
53+
54+
## Examples
55+
56+
### Feature Development
57+
```
58+
/autonomous init
59+
/autonomous enable
60+
/autonomous add "Create database schema"
61+
/autonomous add "Build API endpoints"
62+
/autonomous add "Write tests"
63+
/autonomous next # Start first task
64+
```
65+
66+
### Bug Fix Flow
67+
```
68+
/autonomous init
69+
/autonomous add "Reproduce the bug"
70+
/autonomous add "Identify root cause"
71+
/autonomous add "Implement fix"
72+
/autonomous add "Verify fix works"
73+
```

‎bun.lock‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)