oficina / equipo Public

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

Plain git — no account needed to clone.

Download

Download this file

1# Brief: can Equipo's runner drive Claude Code and Codex directly?
2
3Find out, by running it on this machine (docs-t1), whether Equipo's runner
4can launch provider CLIs itself instead of through Paseo, and get every
5property the runner needs. Read first: the Paseo probe
6`docs/superpowers/specs/2026-11-01-paseo-probe.md` (same questions, other
7substrate), spec section 6.9, and equipo discussion 3
8(`amadan discuss show oficina/equipo 3`) for the six gaps Paseo left.
9
10Installed: Claude Code 2.1.312 (`claude`), Codex CLI 0.165.0 (`codex`).
11Read `claude --help`, `codex --help`, `codex exec --help`, and their
12documentation where installed. Official docs you may cite:
13[https://code.claude.com/docs/en/headless](https://code.claude.com/docs/en/headless),
14[https://code.claude.com/docs/en/settings-reference](https://code.claude.com/docs/en/settings-reference),
15[https://code.claude.com/docs/en/sandboxing](https://code.claude.com/docs/en/sandboxing),
16[https://learn.chatgpt.com/docs/permissions](https://learn.chatgpt.com/docs/permissions).
17
18## Questions, each answered with the exact command and trimmed output
19
20For **Claude Code headless** (`claude -p --output-format stream-json`,
21`--input-format stream-json` if useful) and **Codex** (`codex exec --json`,
22and the app-server if `codex app-server` exists):
23
241. **Structured events.** Is every event machine-readable JSON (start,
25 tool use, assistant text, completion, errors)? Is there a session ID?
26 Can a turn be resumed into the same session (`--resume`, `codex exec
27 resume`) and the next prompt sent?
282. **Usage.** Per-turn input, cached input and output tokens, and model,
29 in the stream? Cumulative or per turn?
303. **Account binding.** Run with an explicit `CLAUDE_CONFIG_DIR` /
31 `CODEX_HOME` and confirm which account was used (from the stream or a
32 status command). Is there any automatic failover to another account?
33 Do not sign in to anything new: use the existing signed-in homes
34 (list them, do not print secrets), and say what a second account would
35 need.
364. **Tools per run.** Can the run be given our own MCP server for that run
37 only (`--mcp-config` for Claude; config override or profile for Codex)?
38 Build a trivial stdio MCP server under `$TMPDIR` and show the agent
39 calling it.
405. **Questions and permissions.** Can a program answer the agent's
41 permission requests and questions? Claude: `--permission-prompt-tool`
42 via an MCP tool, `--permission-mode`. Codex: approval policy in exec,
43 or app-server approval requests. Show one approved and one denied.
446. **Read isolation.** Claude: `settings.sandbox` with `filesystem.denyRead`
45 and `failIfUnavailable`, passed per run (`--settings`). Codex: a named
46 permission profile with filesystem `deny` passed per run (`-p`/`-c`).
47 Place a nonsecret sentinel file under `$TMPDIR/outside` and show the
48 agent cannot read it with shell `cat` or its native read tool, while a
49 workspace file stays readable.
507. **Containment.** Launch each CLI inside a transient systemd user scope
51 (`systemd-run --user --scope --unit=equipo-probe-<n> ...` or
52 `--property=...`). Have the agent start a detached `setsid sleep 600`.
53 Show the scope's cgroup lists every process including the detached one,
54 that `systemctl --user kill/stop` on the scope ends them all, and that
55 the cgroup is then empty. Note whether a process can move itself out of
56 the scope (try writing its PID to another user cgroup) and what that
57 means.
588. **Version and effective config.** Report `--version` for both, and
59 whether the effective settings for a run can be read back (or are
60 exactly what we passed).
619. **Recovery.** If the runner restarts mid-turn, what survives: the
62 session on disk, the ability to resume, the events? Where are session
63 files kept per config home?
64
65## How to run it safely
66
67- Throwaway git repo under `$TMPDIR` as the workspace; tiny prompts ("create
68 hello.txt containing hi"). Cheapest models: a Haiku- or Sonnet-class
69 Claude model, the smallest Codex model. At most eight agent runs in all.
70- Do not change any user-level config (`~/.claude/settings.json`,
71 `~/.codex/config.toml`); pass everything per run. Do not touch Paseo, its
72 daemon, or any other session's agents, scopes or files.
73- Stop every scope and process you start; remove scratch at the end.
74- Do not spawn Anthropic-model reviewers or other helper agents beyond the
75 probe runs. No `.claude/HANDOFF.md`. Do not commit or push.
76
77## Output
78
79Write `docs/superpowers/specs/2026-11-03-direct-cli-probe.md`: one section
80per question with the verdict per CLI (yes / no / partly) and evidence. Then
81a table mapping each of the six gaps in discussion 3, plus Codex read
82isolation, to "solved directly / still open / needs X". End with a
83recommendation: replace the Paseo layer or not, and what the runner would
84need. Print a five-line summary.
85