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 — 输入框上方的当前文件上下文胶囊:一键附带当前编辑器路径与光标行号
- ⌥⌘L — 在终端、编辑器或任意面板按 ⌥⌘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.
委派给子代理
把一段独立的工作交给子代理,主对话继续推进。子代理在自己的对话记录上运行,运行期间你可以改变它的方向,而不用杀掉重来:
- 用 imux_spawn_subagent 工具派出。prompt 要能独立成立——子代理看不到你的对话,所以要写清路径、目标和完成标准。
- 中途改方向。子代理工作期间输入 steer,它会在子代理下一次模型调用前注入,模型把它当作新上下文而不是工具结果。排队的 steer 只投递一次,送达后标记为已生效。
- 方向彻底错了就停下。steer 用于纠偏;如果任务本身判断错了,停掉子代理、用更好的 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.