Skip to Content

Synopsis

aigon feature-open <ID> [agent] [--all] [--terminal=<type>]

Shortcuts

  • /afo (slash command) · aigon afo (CLI)

Flags

FlagDescription
[agent]Target a specific agent’s worktree (e.g. cc, ag)
--allOpen 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

  1. Finds the matching worktree for the feature (and optional agent) in the worktrees directory
  2. Opens the configured terminal (Warp, iTerm2, etc.) as a new tab
  3. Navigates to the worktree directory
  4. Pre-loads the agent CLI with its feature-do invocation for that ID (/aigon:feature-do 42 for Claude Code, /aigon-feature-do 42 for Cursor and GitHub Copilot CLI, and so on)

Agent mappings

CodeAgentLaunch command
ccClaude Codeclaude --permission-mode acceptEdits
agAntigravityagy --dangerously-skip-permissions
cxCodexcodex --full-auto
cuCursoragent --force
cpGitHub Copilot CLIcopilot --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 --all
  • feature-start — creates the workspace and opens agents for the first time
  • feature-do — the command agents run inside the opened worktree
  • sessions-close — kill running sessions before re-opening
Last updated on