Skip to content
The AI Agent Factory

13.11 How today's tools realize it

Approved by
Panaversity ·
8 min read

In everyday life. Three driving schools teach the same rules of the road in different cars. Two cars come with a brake on the instructor's side, and in the third the instructor fits one before the first lesson. You are the instructor in every car.

What you will learn. Where Claude Code, Codex and OpenCode differ when they run a command, reach the network, plan a change and review it, as of October 30, 2026.

Why it matters. The products differ in what runs without asking. Your part does not: you guess, the agent runs it, and you read what really happened.

How to use this page. This page holds only what differs by tool. Pick your tool once, and every strip on this page follows.

How does each agent ask before it acts?

In these tabs, a sandbox is not the throwaway machine of 12.3. It is a set of limits on your own computer, like a contractor who works in your house but may change only one room, and asks before going out for supplies.

  • In Manual mode Claude Code asks before every shell command, a command run in a terminal, except a built-in set of read-only ones.1 Use Manual for this page.
  • Choose Ask for approval, the mode OpenAI recommends.2 Under it, a sandbox limits what commands can do. In the sandbox's workspace-write setting, the usual one for local work, the agent can write inside the project,3 and network access is off by default.4
  • Before your first message, put an opencode.jsonc file in this folder that sets edits and shell commands to ask, as in Lab 12. Its rules allow, ask or deny each action, such as edit or shell, and the last matching rule wins. With no rules, almost everything is allowed.5

What happens when a tool comes from the internet?

The two type checkers come from the internet the first time, through npx and uvx. This is where the three products differ most:

A local session has no network limit by default, so the agent can install a package once you approve the command. The optional sandbox, turned on with /sandbox, routes commands through a proxy, a checkpoint for network traffic, that allows only the domains, or web addresses, you list.6

Codex asks for approval before a command that needs the network, such as npm install or uv add, which installs a Python package. Tests that need no network, such as npm test, run inside the sandbox.4 So expect it to ask before the first npx and uvx.

OpenCode does not sandbox the agent, and its permission prompts are not built to isolate it. Its security policy says to run it in a container or virtual machine if you need isolation.7 With your opencode.jsonc set to ask, it asks before each command, and each command runs with your own rights.

How does each agent plan without editing?

Plan mode reads files and proposes a plan, and edits nothing until you approve. Switch to it with Shift+Tab, or start a prompt with /plan.1

/plan asks for a plan first.8

OpenCode's plan agent explores and plans without editing project files, and the build agent edits and runs commands.9

How does each agent review a change?

/code-review reviews your branch's commits and your uncommitted changes for bugs and reports findings, without changing files unless you ask it to fix them.10

/review reviews your uncommitted changes, or your branch against a base branch, and reports findings by priority without changing your files.11

OpenCode's version 2 documentation names no built-in review command.9 Desktop's review panel shows the session's changed files and diffs, and git diff works everywhere.12

The differences that change a decision

  1. Who can install a package without a prompt. OpenCode can, if your rules do not say ask. Claude Code reaches the network freely once you approve a command. Codex's sandbox blocks the network by default and asks. On your laptop, approve each install only after you have read the package name.
  2. Where tests run. Codex runs commands on your computer, inside a sandbox that limits writes to the project. Claude Code runs them with your full rights unless you turn on its sandbox. OpenCode always runs them with your rights. So read each command before you approve it: outside a sandbox, it can change any file you can.
  3. Review built in. Claude Code and Codex have review commands, and OpenCode's Desktop has a review panel. On every product, an agent's review is a second worker checking the first. Chapter 6 says that is not the review, so the review is yours.

Check yourself

Question 1 / 8

0 answered

What does Claude Code's Plan mode do before you approve the plan?

  1. Permission modes, Anthropic.↑↑2
  2. Permission modes, OpenAI.↑
  3. Sandboxing, OpenAI.↑
Owner
Panaversity