oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

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):

  1. 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?
  2. Usage. Per-turn input, cached input and output tokens, and model, in the stream? Cumulative or per turn?
  3. Account binding. Run with an explicit CLAUDE_CONFIG_DIR / CODEX_HOME and 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.
  4. Tools per run. Can the run be given our own MCP server for that run only (--mcp-config for Claude; config override or profile for Codex)? Build a trivial stdio MCP server under $TMPDIR and show the agent calling it.
  5. Questions and permissions. Can a program answer the agent's permission requests and questions? Claude: --permission-prompt-tool via an MCP tool, --permission-mode. Codex: approval policy in exec, or app-server approval requests. Show one approved and one denied.
  6. Read isolation. Claude: settings.sandbox with filesystem.denyRead and failIfUnavailable, passed per run (--settings). Codex: a named permission profile with filesystem deny passed per run (-p/-c). Place a nonsecret sentinel file under $TMPDIR/outside and show the agent cannot read it with shell cat or its native read tool, while a workspace file stays readable.
  7. 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 detached setsid sleep 600. Show the scope's cgroup lists every process including the detached one, that systemctl --user kill/stop on 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.
  8. Version and effective config. Report --version for both, and whether the effective settings for a run can be read back (or are exactly what we passed).
  9. 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 $TMPDIR as 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.