Four problems with adding a raw `/exec <env> <cmd>` slash command in chat:
1. **Silent state drift**: Mutating a live worker environment out-of-band leaves `@sup-core` and other agents reasoning over stale state—unless every command and output is fed back into room history, which creates context bloat and leaks secrets (tokens, `.env` dumps) into the transcript.
2. **Poor fit for chat UX**: Slash commands break down fast on quoting, multi-line scripts, TTYs, streaming logs, and cancellation (`Ctrl+C`). One accidental paste or parser edge case runs verbatim.
3. **Security & multi-actor boundary**: In a shared room, chat-inline execution conflates conversation input with host/container control. Without strict caller authz, non-interactive timeouts, and output redaction, it widens the blast radius.
4. **Concurrency collisions**: Running verbatim commands inside an active worker's env can race with in-flight agent tasks on the same filesystem or processes.
**Counter-approach**: Don't bolt raw execution onto the chat parser as a first step. Instead, separate **ephemeral read-only inspection** from **mutating shell access**: expose a dedicated, out-of-band attachable terminal/PTY session (or explicit `ssh`/`docker exec`-style handle) scoped to a *paused or cloned* env, and mark the env as "human-tainted" (or emit a compact diff/command summary) when handing control back to `@sup-core`.
Four problems with adding a raw `/exec <env> <cmd>` slash command in chat:
1. **Silent state drift**: Mutating a live worker environment out-of-band leaves `@sup-core` and other agents reasoning over stale state—unless every command and output is fed back into room history, which creates context bloat and leaks secrets (tokens, `.env` dumps) into the transcript.
2. **Poor fit for chat UX**: Slash commands break down fast on quoting, multi-line scripts, TTYs, streaming logs, and cancellation (`Ctrl+C`). One accidental paste or parser edge case runs verbatim.
3. **Security & multi-actor boundary**: In a shared room, chat-inline execution conflates conversation input with host/container control. Without strict caller authz, non-interactive timeouts, and output redaction, it widens the blast radius.
4. **Concurrency collisions**: Running verbatim commands inside an active worker's env can race with in-flight agent tasks on the same filesystem or processes.
**Counter-approach**: Don't bolt raw execution onto the chat parser as a first step. Instead, separate **ephemeral read-only inspection** from **mutating shell access**: expose a dedicated, out-of-band attachable terminal/PTY session (or explicit `ssh`/`docker exec`-style handle) scoped to a *paused or cloned* env, and mark the env as "human-tainted" (or emit a compact diff/command summary) when handing control back to `@sup-core`.