Skip to content

Using Contral

Agent mode: use your own agent

Work with Claude Code, Codex, Cursor, OpenCode, Gemini CLI or Copilot CLI inside Contral, with work checks, teaching and one-click undo.

Last updated

Agent mode lets you work with a coding agent you already use, such as Claude Code or OpenAI Codex, inside Contral. The agent does the work with its own tools and your own account. Contral shows its work step by step, checks the result against what you asked for, explains every change, and lets you undo a turn in one click.

Agent mode is in Contral IDE 1.1 and the Contral extension 1.0.

Agents you can use in Agent mode#

AgentInstallSign in
Claude Code (your Claude plan)See Anthropic's Claude Code docsclaude auth login
OpenAI Codexnpm install -g @openai/codexcodex login
Cursorcurl https://cursor.com/install -fsS | bashcursor-agent login
OpenCodecurl -fsSL https://opencode.ai/install | bashopencode auth login
Gemini CLInpm install -g @google/gemini-clirun gemini
GitHub Copilot CLInpm install -g @github/copilotrun copilot

Open Accounts & keys in Contral to see which agents are installed and signed in. Each card has the install and sign-in steps. Contral uses the agent that's on your computer and the account it's signed in to. It never asks for your password, and the agent's provider bills you as usual.

Starting a thread in Agent mode#

  1. Open the Contral panel and switch Build to Agent mode.
  2. Pick the agent, the model and, where the agent supports it, the effort. The model list comes from the agent itself, so new models appear without a Contral update.
  3. Describe what you want and send it.

Each conversation is a thread. You can keep several threads, rename them and come back to them later.

What you see while the agent works#

  • Work groups. The agent's steps (reading files, running commands, editing) are grouped into one row that opens while it works and folds away when it's done.
  • Approvals. When the agent wants to run a command or change a file, approve, deny or always allow it right in the conversation.
  • Changed files. Every file the agent changed is listed with its diff. Click one to open the diff in the editor.
  • Teaching cards. Each change gets a teaching card that explains what changed and why, and Defense mode can check that you understand it.

Contral checks the agent's work#

When a turn ends, Contral compares the result with your request. It looks for:

  • nothing changed when you asked for a change;
  • a file rewritten with exactly the same content;
  • a name you asked for (a function, class or file) that isn't there;
  • the agent saying it did something it didn't;
  • a file that no longer parses, or placeholder code such as TODO: implement;
  • changes to files you didn't mention (shown as a note, not a failure).

If something's missing, Contral sends the agent a specific correction on its own: up to 2 tries for smaller and free models, 1 for others. For Claude Code, Contral never sends a message you didn't start, so instead you get an Ask Claude Code to fix it button with the correction ready to send.

With smaller and free models, Contral also turns your request into a short checklist before sending it, which helps them finish the whole task.

To turn the check off, set contral.agentMode.checkWork to false.

Undo an agent's turn#

After a turn, the changed-files row has Undo. It puts back every file the agent created, changed or deleted in that turn, including files it didn't report, and removes empty folders it created. Contral tells the agent about the undo the next time you write to it, so it doesn't assume its changes are still there.

Undo skips dependency, build and version-control folders such as node_modules, dist and .git, and files larger than 512 KB. Files it can't restore are listed instead of being touched.

Agent mode and your Contral plan#

Every message you send in Agent mode counts as one BYOK message on your Contral plan. The agent's own usage is billed by its provider, as usual.

PlanAgent mode and BYOK messages
Free30 per day
Pro, Pro+, TeamsUnlimited
AppSumo lifetime (every tier)Unlimited

Corrections Contral sends after its work check don't count. When you reach the Free limit, the conversation shows See plans; the count resets daily. Agent mode needs you to be signed in to Contral. See Plans & pricing.

Still stuck? Ask the support assistant in the corner of this page, or open a support ticket.

Agent mode: use your own agent · Contral Docs