AI Agent Workflows
imux hosts AI work on a terminal-first command center. Prefer real agent CLIs in the terminal for heavy coding loops; use Agent Chat for bounded in-app turns; use Supervisor only after a charter exists. Keep the full loop inside imux.
Which surface should I use?
Pick one primary surface per task:
- Terminal agent CLI — Claude Code, Codex, Aider, Cursor Agent CLI, shell tools. Best for long runs and tools you already trust.
- Agent Chat — streaming conversation, @file/@symbol, slash commands, apply-with-review diffs. Best for focused, short cycles.
- Supervisor — charters, handoffs, loops, evidence. Best for multi-panel orchestration after the goal is clear.
Replacing VS Code / Cursor
Run agents, tests, remotes, browser verification, and Git evidence in imux as the primary workbench. Use agent CLIs and Agent Chat for generation loops; keep files and SCM visible on the same surface.
Slash Commands
Type a slash command in Agent Chat to invoke specific AI actions. Each command targets the current workspace context:
- /review — AI-powered code review of staged changes, pull requests, or selected files. The agent reads the diff and provides inline feedback on logic, style, and potential issues.
- /fix — AI-assisted bug fixing. Describe the issue or point the agent at failing output, and it proposes targeted changes with diffs you can review and apply.
- /explain — AI explanation of code, error messages, stack traces, or architectural decisions. Helps you understand unfamiliar code or debug complex failures.
- /test — AI-generated tests for selected code or functions. Produces test cases with appropriate coverage and edge-case handling.
즉시 로컬 슬래시 명령 및 활성 파일 컨텍스트
모델 프롬프트 템플릿(/review, /fix, /explain, /test) 외에도 Agent Chat은 즉시 실행되는 로컬 제어 명령과 현재 편집 파일 컨텍스트 칩을 제공합니다.
- /status — 모델 토큰 소모 없이 워크스페이스·활성 파일·모드·모델 설정을 로컬에서 즉시 출력
- /new · /clear — 새 스레드 시작 또는 초기화. /agent와 /ask로 실행 모드 즉시 전환
- + file :line — 입력창 상단 활성 파일 칩으로 열려 있는 파일과 커서 줄 번호를 원클릭 첨부
- Opt+Cmd+L — 어느 패널에서나 Agent Chat을 열고 입력창으로 즉시 포커스 이동
- /workflow — 다단계 워크플로 프리셋 실행 및 /review, /fix 내 @file 멘션 결합 지원
Diff Application
Agents often produce code changes as diffs. imux makes it easy to review and apply those changes:
- Agent output containing code blocks with diff syntax is automatically detected and presented with a preview.
- Review each change inline before applying it to your working files.
- Apply accepted diffs directly into the workspace file tree, keeping Git history clean and auditable.
Context Mentions
Share workspace context with the agent using @mentions. Type @ in Agent Chat to see available context sources:
- @file — Mention a file from the workspace to include its contents as agent context. Useful for targeting specific modules or configurations.
- @symbol — Mention a symbol (function, class, type) to focus the agent on a specific code unit. Resolved from the workspace source tree.
- @pr — Mention a pull request to bring its diff, description, and discussion into the agent context for review or follow-up work.
Agent Chat
Open Agent Chat to start a streaming, multi-turn conversation with your AI agent directly in the workspace:
- Launch with Cmd+Option+B. The chat panel appears inline within the workspace, keeping your terminal and files visible.
- Streaming replies: watch the agent's response build in real time, so you can interrupt or redirect mid-generation.
- Multi-turn conversations: ask follow-up questions, refine the output, and build context across multiple exchanges.
Delegating to a Subagent
Hand a self-contained chunk of work to a subagent and keep the main conversation moving. The subagent runs on its own transcript, and you can redirect it while it runs instead of killing it and starting over:
- Spawn with the imux_spawn_subagent tool. Give it a prompt that stands alone — the subagent does not see your conversation, so state the paths, the goal, and what done looks like.
- Steer it mid-run. Type a redirect while the subagent works; it is injected before the subagent's next model call, so the model reads it as new context rather than as a tool result. A queued steer is delivered once and then marked applied.
- Stop it when it is wrong for good. Steering is for course corrections; if the task itself was misjudged, stop the subagent and re-delegate with a better prompt.
Skills System
Extend Agent Chat with custom slash commands defined in your repository or home directory:
- Create a .clavue/commands/ directory in your project or home folder to define custom slash commands.
- Each command is a markdown file with frontmatter that describes what the command does and how the agent should respond.
- Custom commands appear alongside built-in slash commands in Agent Chat, scoped to the active workspace.