aimux is a CLI for managing multiple AI coding agent sessions (Claude, Codex). This manifest teaches agents how to compose aimux commands into workflows.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of aimux — Agent Skill Manifest?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/zanetworker-aimux-agent-skill-manifest)
# aimux — Agent Skill Manifest
aimux is a CLI for managing multiple AI coding agent sessions (Claude, Codex). This manifest teaches agents how to compose aimux commands into workflows.
## Introspection
Call once per session to learn the full CLI contract:
```bash
aimux agent-context
```
Returns every command, flag, type, default, and valid enum as JSON.
## Discovering running agents
```bash
aimux agents --json
```
Returns a list of active agent sessions with PID, provider, status, project, and model. Use `--limit` and `--fields` to control output size.
## Searching past sessions
```bash
aimux sessions --list --json --limit 10
aimux sessions "search query" --list --json
aimux sessions --list --json --fields id,project,cost
aimux sessions --export
```
The `--export` flag outputs JSONL (one JSON object per line) for pipeline consumption.
## Resuming a session
```bash
aimux resume <session-id> --dry-run --json
aimux resume <session-id>
```
Use `--dry-run` first to verify the command before executing.
## Jumping to a running session
```bash
aimux jump <session-id|prefix|pid> --json
```
Brings the iTerm2 window, tab and pane running that session to the front; use it instead of `resume` when the session is already live. Returns `{session_id, pid, tty, focused, where}`. It exits 1 when no running agent matches, when a prefix matches several (the error lists them), or when the agent has no iTerm2 pane; for agents in tmux the JSON carries a `hint` with the attach command.
## Spawning agents
```bash
aimux spawn claude --dir ./project --json
aimux spawn claude --dir ./project --model opus --wait --json
aimux spawn claude --dry-run --json
aimux spawn --profile research --dry-run --json # a sandbox profile: --json only with --dry-run; a real start attaches a terminal, no tmux
```
Valid providers: `claude`, `codex`. Use `--wait` to block until the session finishes (it follows a tmux session, so it is refused with `--session iterm`). Use `--dry-run` to preview without executing. With `--json`, `--wait` or `--deliver`, or with no terminal, the session starts detached in tmux; typed by a person at a terminal with none of them it starts in that terminal, so always pass `--json` from an agent.
## Delivering output
```bash
aimux spawn claude --json --deliver=file:./result.json
aimux spawn claude --json --deliver=webhook:https://hooks.example.com/agents
```
Valid schemes: `stdout`, `file:<path>`, `webhook:<url>`.
## Using profiles
Start a session from a profile that runs on the host (`aimux profile list` shows `runs`):
```bash
aimux spawn --profile coding # your settings, on this machine
aimux spawn --profile base --dry-run --json # a clean start; lists what the host does not enforce
```
A profile that pins no agent (`coding`, `base`) runs under the provider you type, or Claude Code when you type none: `aimux spawn codex --profile coding`. Codex can run `coding`; `base` needs a clean start, which only Claude Code has, and a Codex launch returns no `session_id`. A provider or `--model` that contradicts the profile is rejected, not applied over it, and a profile that runs in a sandbox (`research`) starts a session in a fresh sandbox of its own, attached to this terminal: it needs the model proxy's sandbox entrance on and a terminal, takes `--mode` and `--dry-run` (`--json` only with `--dry-run`), and refuses the other launch flags by name. Profiles that run as Wingman's turns (`page`, `research-with-work`) start through `aimux remote serve`. A v1 bundle (`aimux profile save mysetup --provider claude --model opus --dir ~/project`) must be converted first with `aimux profile migrate`. Manage saved profiles (`aimux profile list` lists the v2 profiles, showing a profile that does not resolve with digest `-` and the reason on stderr, and still exits 0; `aimux profile check <name>` exits 1 when the profile does not resolve, its sandbox name is invalid, or a role it names does not check (a missing or invalid target, a `planner` that is not a `runs: sandbox` profile without `web`, or a `writer` that is not a `runs: acp` profile without tools or `web`); `aimux profile migrate` converts the saved ones):
```bash
aimux profile get mysetup --json
aimux profile delete mysetup
```
## Reporting feedback
```bash
aimux feedback "the --limit flag silently ignores values over 100"
```
Writes to `~/.aimux/feedback.jsonl` for maintainer review.
## Starring sessions
Pin important sessions so they survive cleanup and are easy to find:
```bash
# Sessions with starred=true sort to the top in --json output
aimux sessions --list --json | jq '[.sessions[] | select(.starred)]'
```
In the TUI, press `*` on any agent or session to pin/unpin. Press `B` to open the starred tab.
## Reviewing code changes
The web UI has a "Diffs" tab in the right panel showing PR-style diff review:
- Hierarchical file tree with collapsible directories
- Line-numbered diffs with green/red coloring
- Per-file and total +/- stats
In the Session tab, click "Review Diffs" to see changes alongside the live terminal.
## Workflow: parallel agents
1. `aimux spawn claude --dir ./frontend --json` (returns immediately)
2. `aimux spawn codex --dir ./backend --json` (returns immediately)
3. `aimux agents --json` (monitor both)
4. `aimux sessions --list --json --dir ./frontend` (check results)
## Workflow: spawn and wait
1. `aimux spawn claude --dir ./project --wait --json`
2. Command blocks until the agent finishes
3. Returns duration and final status
## Error handling
All errors include valid values when applicable:
```bash
aimux spawn gpt
# Error: invalid provider "gpt" (must be one of: claude, codex)
```
Exit codes: 0=success, 1=error, 2=usage, 3=not-found, 4=config. `aimux chat`, `aimux jump`, `aimux remote serve`, `aimux mcp proxy`, `aimux browser`, `aimux cost`, `aimux timeline`, `aimux findings`, `aimux profile`, `aimux tools`, `aimux servers`, `aimux sandbox`, `aimux router`, `aimux setup`, `aimux engine`, `aimux enable`, `aimux disable` and `aimux doctor` return 1 for every failure, including missing arguments, an unknown session and a bad setting. Status commands exit 0 and report problems on stderr, except that `aimux mcp proxy status` reports its findings on stdout (exit 0 when the proxy is stopped) and exits 1 when the proxy takes the connection but gives no valid status (with `--json` too: plain text on stderr, no JSON on stdout); `aimux doctor` exits 1 only when a check fails; `aimux status` prints its findings on stdout, as text or with `--json`, and exits 1 when a service needs attention, 0 otherwise.
With `--json`, errors go to stderr as structured JSON (except `aimux chat`, whose `--json` covers the event stream; its errors stay plain text):
```json
{"error": "...", "code": 2, "valid_values": ["claude", "codex"]}
```
## Non-interactive mode
When stdin is not a TTY, `aimux sessions` automatically uses `--list` mode instead of launching the interactive picker.