Native coding agents: Codex and Claude Code

AI → Agent Conversations… runs a coding conversation with the Codex or Claude Code program installed on your machine, inside Vix. Both use their own login and settings; Vix never asks for or stores an API key for them. The same conversation panel works in the terminal and in every desktop GUI.
This is an opt-in build feature, not part of the released binaries.
Set it up
-
Install the provider you want and sign in once in a terminal:
codex(thencodex login) orclaude(then/login). -
Build Vix with the feature:
cargo run --release --features ai-agentsFor a desktop window, use any GUI package with the same feature, for example
cargo run --manifest-path gui/Cargo.toml -p vix-egui --features ai-agents. -
Keep the AI menu on (
ai = "on", the default).ai = "off"hides it, this item included.
Use it
- Open a local folder and choose AI → Agent Conversations…. The first time in a folder, Vix asks whether you trust it; accept, then choose the menu item again. Remote (SSH) folders are not supported.
- Pick New conversation · Codex, New conversation · Claude Code, or one of your earlier conversations in this folder (newest first, titled by your first prompt). Opening the list or an old conversation sends nothing.
- Type a prompt and press Enter. Replies appear as they arrive, with one line for each tool the agent starts.
- When the agent asks to run a command or change a file, the panel shows the whole request. Scroll it with the arrow keys, then press Ctrl+Y to allow that one request, or N or Esc to decline it.
- To stop a reply in progress, press Esc twice. With nothing running, Esc closes the panel (closing Vix also stops a running agent). Reopen the conversation from the same menu to continue where you left off; the agent resumes its own session.
Give a conversation its own Git worktree
In a Git repository with at least one commit, pick New worktree conversation for Codex or Claude Code (the rows are missing in a folder that is not committed yet). The first prompt starts a new branch at your current commit. Uncommitted edits, untracked files and unsaved Vix buffers stay in your original checkout. If you opened a subfolder, the provider starts in its counterpart in the new worktree. The ordinary New conversation rows use the current folder.
The conversation panel shows its vix-agent-<UUID> branch. Close the panel
and select its saved conversation in the original workspace to continue with
the same files. Use Git → Worktree → List… or git worktree list to find
the checkout and review or commit edits there. Merge the branch when ready.
The checkout persists until you remove it. Removing it or switching its
branch prevents further turns in that conversation.
Worktrees require the default git feature alongside ai-agents. The
checkout lives beside the private conversation file, outside the repository.
Queue follow-ups
While Codex or Claude Code is working, type another prompt and press Enter. You can add several. While prompts are waiting, Enter adds to the end of the line even when the agent is idle, so a new prompt never jumps ahead. The panel shows how many are waiting and the first one in line. Each runs in the same conversation and checkout after the preceding turn finishes successfully. You can keep typing a separate draft.
Press Ctrl+P to pause or resume delivery. To change or cancel the next waiting prompt, press Ctrl+U with an empty composer. This withdraws it into the composer. Edit and submit it again, or discard it. After a stop, failure, or restart, review the waiting queue and press Ctrl+P to continue.
If priorities change, press Ctrl+L to pause delivery and see the queue. Select a prompt with the arrows. Alt+↑ or Alt+↓ (Option on a Mac) moves it earlier or later; Ctrl+↑ and Ctrl+↓ work too where the system leaves them free (macOS uses them for Mission Control). Delete removes it. Enter recalls it into an empty composer, including any additional lines. Esc returns to the conversation. Press Ctrl+P when you want the remaining prompts to run.
Hand a plan or review to another agent
Open the receiving conversation, for example Codex after planning with
Claude Code. Type any instructions you want to add, then press Ctrl+R
and pick a saved conversation from this workspace. Use the arrows or page
keys to review the prompt, then Ctrl+Y to send or Esc to keep editing
your original draft. Vix includes up to eight recent messages from the source, each line quoted
with > , and leaves out invisible characters, so what you review is what
the receiving agent gets. Read it before sending: a reply can contain
instructions the source agent picked up from a file. The recipient works in
its own checkout with its own permissions. A handoff transfers text only:
no files, approvals, session or queued prompts. Opening the list pauses
waiting follow-ups; press Ctrl+P to resume them.
What to know
- The agent can change your files. It runs in the folder with its own sandbox and permission rules, from your Codex config and your Claude Code settings; Vix sends none of its own. Vix shows each request it is asked about and never answers one for you.
- Sessions are per provider. Each provider resumes its own conversation. Use a handoff to share the relevant messages with a different provider.
- Where it is stored. Your prompts, the visible replies, waiting follow-ups and the provider’s resume ID are kept in private files beside Vix’s session file, one folder per workspace. The agent keeps its own full history in its own directory, as it does in a terminal.
- One window at a time. A conversation open in one Vix cannot be opened in another until the first closes it.
See also
- Agent panel for ACP agents (AI → Start Agent).
- MCP server to give an agent a read-only view of a workspace.
- Threat model.
- The specification:
spec/ai-agents, with pages on follow-ups, handoffs, worktrees and security.
Vix™ and Vix IDE™ are trademarks.