| name | reset |
| description | Resets workflow artifacts (.otto/ directory). Removes sessions, tasks, and specs. Use when starting over. Destructive - requires confirmation. |
| model-invokable | false |
| arguments | [{"name":"targets","description":"Subdirectories to clear: tasks, specs, sessions, or all (default: all). Docs are preserved.","required":false}] |
Reset workflow data. Selectively or fully clears the .otto/ directory.
Available Targets
| Target | Directory | Contents |
|---|
tasks | .otto/tasks/ | Task lists |
specs | .otto/specs/ | Specifications |
sessions | .otto/sessions/ | Browser sessions |
all | Above targets | Everything except docs (default) |
Usage Examples
reset - Clear everything (prompts for confirmation)
reset tasks - Clear only task lists
reset specs tasks - Clear specs and tasks
reset sessions - Clear browser sessions only
reset all - Explicit full reset
Workflow
1. Check for .otto/
if [[ ! -d ".otto" ]]; then
echo "No .otto/ directory found. Nothing to reset."
exit 0
fi
If no .otto/ exists, report and stop.
2. Parse Arguments
Map targets to directories:
tasks -> .otto/tasks/
specs -> .otto/specs/
sessions -> .otto/sessions/
all -> tasks + specs + sessions (NOT docs)
If no arguments or all specified, target tasks, specs, and sessions. Docs are always preserved.
3. Preview Removal
Show what will be removed with sizes:
du -sh <target_dirs> 2>/dev/null
Display to user:
Will remove:
.otto/tasks/ (4K)
.otto/specs/ (8K)
4. Confirm
Prompt the user to confirm before proceeding:
"This will delete the selected workflow data. Continue?"
Options: "Yes, reset" / "Cancel"
5. Remove
After confirmation, remove only the targeted directories:
rm -rf <target_dirs>
For all, remove tasks, specs, and sessions (preserving docs):
rm -rf .otto/tasks .otto/specs .otto/sessions .otto/otto
7. Report
Reset complete. Cleared: tasks, specs
Run otto or spec to continue.