Run one agent on Claude Code and Codex
Run Acme's changelog agent, github.com/acme/changelog@v2.0.0, on Claude Code with a strong model by default, and compare it with Codex now and then. You end with three targets, a default, one agent that overrides it, and a flag that switches harness for one run.
Define the targets
A target names a harness and, optionally, a model:
pandra config target set claude --harness claude-code
pandra config target set claude-opus --harness claude-code \
--model claude-opus-5-5
pandra config target set codex --harness codexPull the agent
Pull the agent and approve it once (what to check first). An agent's settings need the agent in the store, so pull it before you choose its target:
pandra pull github.com/acme/changelog@v2.0.0
pandra agent trust github.com/acme/changelog@v2.0.0Choose the defaults
pandra config target use claude makes claude the default target, which every agent uses unless its own settings name another. The second command gives this agent its own target, claude-opus:
pandra config target use claude
pandra config target use claude-opus --agent github.com/acme/changelogTogether, the commands write these tables:
[defaults]
target = "claude"
[targets.claude]
harness = "claude-code"
[targets.claude-opus]
harness = "claude-code"
model = "claude-opus-5-5"
[targets.codex]
harness = "codex"
[agents."github.com/acme/changelog"]
target = "claude-opus"Run it
Check with --dry-run which harness and model a run would use:
pandra run github.com/acme/changelog@v2.0.0 --dry-run \
--prompt "Draft the changelog for v3.4."Run plan for github.com/acme/changelog@v2.0.0 (nothing was started)
Agent github.com/acme/changelog (sha256:461dc2ec30ad) approved 2026-11-15
Harness claude-code target claude-opus
Backend host
Target claude-opus agent settings
Model claude-opus-5-5 target claude-opus
...
Ready to run.The agent's own target, claude-opus, wins over the default. Run it, with Claude Code's existing login:
pandra run github.com/acme/changelog@v2.0.0 \
--prompt "Draft the changelog for v3.4." > claude.mdCompare it on Codex
--target picks another target for one run:
pandra run github.com/acme/changelog@v2.0.0 --target codex \
--prompt "Draft the changelog for v3.4." > codex.mdPandra reuses the login Codex already has (Codex). If Codex is not installed, a run without a terminal fails before anything starts, and --dry-run shows the problem and the fix:
Would not start (1 problem):
codex is not installed
To install it:
pandra harness install codexBefore starting, Pandra also checks that the harness can provide what the run needs, such as a server's transport, and fails instead of running a degraded agent.