Synopsis
aigon sessions-close <ID>Description
sessions-close terminates every agent session associated with a given feature or research ID — including agent processes (SIGTERM, then SIGKILL for stragglers), tmux sessions, preview dashboard processes, and Warp arena tabs. It is the targeted kill switch for running agents without touching branches, worktrees, or spec state.
This command is automatically called as the first step of feature-reset. Use it directly when you want to stop all agents for a feature but keep the worktrees and branches intact — for example, to restart agents with different parameters after pausing.
What it does
- Sends SIGTERM to agent processes matching the feature/research ID
- Waits briefly, then sends SIGKILL to any that haven’t stopped
- Closes tmux sessions for the feature (both implementation and review sessions)
- Closes preview dashboard processes registered for the feature
- Closes Warp arena tabs for the feature ID (if Warp is in use)
Examples
# Kill all agents for feature 42
aigon sessions-close 42
# Kill agents for research 7
aigon sessions-close 7When to use which command
| Goal | Command |
|---|---|
| Kill agents and immediately restart | sessions-close <ID> then feature-open <ID> |
| Abandon work and start over entirely | feature-reset <ID> (calls sessions-close internally) |
| GC worktrees/branches after close | feature-cleanup <ID> |
Related
feature-reset— full reset: sessions + worktrees + branches + engine statefeature-open— re-open agent terminals after closing sessionsfeature-cleanup— remove worktrees and branches (does not kill sessions)
Last updated on