Add a new agentd agent subcommand group to Omni/Agentd.hs (the CLI module). This is the foundation that other tasks build on.
Commands to implement:
1. agentd agent create <name> --provider <p> --model <m> --cwd <dir> [--thinking <level>] [--extra-args "..."]
2. agentd agent list
3. agentd agent status [name]
New data type in Daemon.hs:
data AgentConfig = AgentConfig
{ acName :: Text
, acProvider :: Text
, acModel :: Text
, acCwd :: FilePath
, acThinking :: Text
, acExtraArgs :: Maybe Text
, acExtraEnv :: Map Text Text
}
The env file format must match what pi-agent-exec expects:
PI_PROVIDER=anthropic
PI_MODEL=claude-opus-4-20250514
PI_CWD=/home/ben/omni/intent
PI_THINKING=high
PI_EXTRA_ARGS=
Use optparse-applicative for CLI parsing. Add to the existing Command ADT in Omni/Agentd.hs.
Files to modify:
Ava verified: 'agentd agent' subcommand group is live in production agentd CLI. agent create/list/status/start/stop/restart/send/logs/rm/purge all present and functional. Moving to Verified.