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, gg) |
--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
/aigon:feature-do <ID>
Agent mappings
| Code | Agent | Launch command |
|---|---|---|
cc | Claude Code | claude --permission-mode acceptEdits |
gg | Gemini | gemini --yolo |
cx | Codex | codex --full-auto |
cu | Cursor | agent --force |
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