DevTeam Reset Command
Development community intermediate
Description
**Command:** `/devteam:reset [options]` Reset state, clear stuck sessions, and recover from errors.
Installation
Terminal
claude install-skill https://github.com/michael-harris/devteam README
DevTeam Reset Command
**Command:** `/devteam:reset [options]`
Reset state, clear stuck sessions, and recover from errors.
Usage
# Abort current session and reset state
/devteam:reset
# Abort with specific reason
/devteam:reset --reason "Changing approach"
# Clear all session history (keep plans)
/devteam:reset --clear-history
# Full reset (clear everything except config)
/devteam:reset --full
# Reset specific session
/devteam:reset --session session-20260129-103045-abc123
# Dry run (show what would be reset)
/devteam:reset --dry-run
Options
| Option | Description |
|---|---|
--reason |
Reason for reset (logged) |
--clear-history |
Clear all session history |
--full |
Full reset (sessions, history, temp files) |
--session |
Reset specific session |
--dry-run |
Show what would be reset without doing it |
--force |
Skip confirmation prompts |
Your Process
Basic Reset (Abort Current Session)
source scripts/state.sh
source scripts/events.sh
# Check for running session
if is_session_running; then
SESSION_ID=$(get_current_session_id)
# Log the abort
log_event "session_aborted" "system" "User initiated reset" \
"{\"reason\": \"$REASON\"}"
# End session
end_session "aborted" "${REASON:-User reset}"
echo "Session $SESSION_ID aborted."
else
echo "No active session to reset."
fi
# Reset circuit breaker state
sqlite3 "$DB_FILE" "
UPDATE sessions
SET circuit_breaker_state = 'closed',
consecutive_failures = 0
WHERE status = 'running';
"
Clear History
if [[ "$CLEAR_HISTORY" == "true" ]]; then
# Confirm
if [[ "$FORCE" != "true" ]]; then
read -p "Clear all session history? This cannot be undone. [y/N] " confirm
if [[ "$confirm" != "y" && "$confirm" != "Y" ]]; then
echo "Cancelled."
exit 0
fi
fi
# Clear history tables
sqlite3 "$DB_FILE" "
DELETE FROM events;
DELETE FROM agent_runs;
DELETE FROM gate_results;
DELETE FROM escalations;
DELETE FROM interviews;
DELETE FROM interview_questions;
DELETE FROM research_sessions;
DELETE FROM research_findings;
DELETE FROM sessions WHERE status != 'running';
"
echo "Session history cleared."
fi
Full Reset
if [[ "$FULL_RESET" == "true" ]]; then
# Confirm
if [[ "$FORCE" != "true" ]]; then
read -p "Full reset? This will clear all sessions and history. Plans will be preserved. [y/N] " confirm
if [[ "$confirm" != "y" && "$confirm" != "Y" ]]; then
echo "Cancelled."
exit 0
fi
fi
# Backup database first
BACKUP_FILE="${DB_FILE}.backup-$(date +%Y%m%d-%H%M%S)"
cp "$DB_FILE" "$BACKUP_FILE"
echo "Backup created: $BACKUP_FILE"
# Clear all session-related data
sqlite3 "$DB_FILE" "
DELETE FROM events;
D
Related Agents
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
Development community src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11
Development community Cavecrew Builder
>
Development community Cavecrew Investigator
>
Development community Cavecrew Reviewer
>
Development community Contributing to nanobot
Thank you for being here. nanobot is built with a simple belief: good tools should feel calm, clear, and humane. We care deeply about useful features, but we also believe in achieving more with less:
Development community