Synopsis
aigon feature-open <ID> [agent] [--all] [--terminal=<type>]Shortcuts
/afo(slash command) ·aigon afo(CLI)
Flags
| Flag | Description |
|---|---|
[agent] | Target a specific agent’s worktree (e.g. cc, ag) |
--all | Open all Fleet agent worktrees simultaneously |
--terminal=<type> | Override the terminal preference from config |
Description
feature-open reopens an agent terminal for a feature that already has a worktree — the go-to command when an agent session crashes, is accidentally closed, or needs to be manually relaunched. It reads the user’s terminal preference from ~/.aigon/config.json, opens the worktree directory in that terminal, and pre-loads the agent CLI with the feature-do <ID> command.
feature-start already opens agent terminals automatically when a workspace is created. Use feature-open only when you need to re-open an existing session, not to start a new workspace from scratch.
What it does
- Finds the matching worktree for the feature (and optional agent) in the worktrees directory
- Opens the configured terminal (Warp, iTerm2, etc.) as a new tab
- Navigates to the worktree directory
- Pre-loads the agent CLI with its
feature-doinvocation for that ID (/aigon:feature-do 42for Claude Code,/aigon-feature-do 42for Cursor and GitHub Copilot CLI, and so on)
Agent mappings
| Code | Agent | Launch command |
|---|---|---|
cc | Claude Code | claude --permission-mode acceptEdits |
ag | Antigravity | agy --dangerously-skip-permissions |
cx | Codex | codex --full-auto |
cu | Cursor | agent --force |
cp | GitHub Copilot CLI | copilot --allow-all --interactive |
Other installed agents (op, km, am) launch from the same registry metadata — see the Agents reference.
Examples
# Re-open the most recent worktree for feature 42
aigon feature-open 42
# Re-open a specific agent's worktree
aigon feature-open 42 cc
# Open all Fleet agents side-by-side
aigon feature-open 42 --allRelated
feature-start— creates the workspace and opens agents for the first timefeature-do— the command agents run inside the opened worktreesessions-close— kill running sessions before re-opening
Last updated on