oficina / equipo Public
Brief: can Equipo's runner drive Claude Code and Codex directly?
Find out, by running it on this machine (docs-t1), whether Equipo's runner can launch provider CLIs itself instead of through Paseo, and get every property the runner needs. Read first: the Paseo probe docs/superpowers/specs/2026-11-01-paseo-probe.md (same questions, other substrate), spec section 6.9, and equipo discussion 3 (amadan discuss show oficina/equipo 3) for the six gaps Paseo left.
Installed: Claude Code 2.1.312 (claude), Codex CLI 0.165.0 (codex). Read claude --help, codex --help, codex exec --help, and their documentation where installed. Official docs you may cite: https://code.claude.com/docs/en/headless, https://code.claude.com/docs/en/settings-reference, https://code.claude.com/docs/en/sandboxing, https://learn.chatgpt.com/docs/permissions.
Questions, each answered with the exact command and trimmed output
For Claude Code headless (claude -p --output-format stream-json, --input-format stream-json if useful) and Codex (codex exec --json, and the app-server if codex app-server exists):
- Structured events. Is every event machine-readable JSON (start, tool use, assistant text, completion, errors)? Is there a session ID? Can a turn be resumed into the same session (
--resume,codex exec resume) and the next prompt sent? - Usage. Per-turn input, cached input and output tokens, and model, in the stream? Cumulative or per turn?
- Account binding. Run with an explicit
CLAUDE_CONFIG_DIR/CODEX_HOMEand confirm which account was used (from the stream or a status command). Is there any automatic failover to another account? Do not sign in to anything new: use the existing signed-in homes (list them, do not print secrets), and say what a second account would need. - Tools per run. Can the run be given our own MCP server for that run only (
--mcp-configfor Claude; config override or profile for Codex)? Build a trivial stdio MCP server under$TMPDIRand show the agent calling it. - Questions and permissions. Can a program answer the agent's permission requests and questions? Claude:
--permission-prompt-toolvia an MCP tool,--permission-mode. Codex: approval policy in exec, or app-server approval requests. Show one approved and one denied. - Read isolation. Claude:
settings.sandboxwithfilesystem.denyReadandfailIfUnavailable, passed per run (--settings). Codex: a named permission profile with filesystemdenypassed per run (-p/-c). Place a nonsecret sentinel file under$TMPDIR/outsideand show the agent cannot read it with shellcator its native read tool, while a workspace file stays readable. - Containment. Launch each CLI inside a transient systemd user scope (
systemd-run --user --scope --unit=equipo-probe-<n> ...or--property=...). Have the agent start a detachedsetsid sleep 600. Show the scope's cgroup lists every process including the detached one, thatsystemctl --user kill/stopon the scope ends them all, and that the cgroup is then empty. Note whether a process can move itself out of the scope (try writing its PID to another user cgroup) and what that means. - Version and effective config. Report
--versionfor both, and whether the effective settings for a run can be read back (or are exactly what we passed). - Recovery. If the runner restarts mid-turn, what survives: the session on disk, the ability to resume, the events? Where are session files kept per config home?
How to run it safely
- Throwaway git repo under
$TMPDIRas the workspace; tiny prompts ("create hello.txt containing hi"). Cheapest models: a Haiku- or Sonnet-class Claude model, the smallest Codex model. At most eight agent runs in all. - Do not change any user-level config (
~/.claude/settings.json,~/.codex/config.toml); pass everything per run. Do not touch Paseo, its daemon, or any other session's agents, scopes or files. - Stop every scope and process you start; remove scratch at the end.
- Do not spawn Anthropic-model reviewers or other helper agents beyond the probe runs. No
.claude/HANDOFF.md. Do not commit or push.
Output
Write docs/superpowers/specs/2026-11-03-direct-cli-probe.md: one section per question with the verdict per CLI (yes / no / partly) and evidence. Then a table mapping each of the six gaps in discussion 3, plus Codex read isolation, to "solved directly / still open / needs X". End with a recommendation: replace the Paseo layer or not, and what the runner would need. Print a five-line summary.