run_command
Run verification commands (tests, build, typecheck) in a project. Read-only commands execute directly; risky commands are routed to Codex auto-review for risk-gated execution.
Instructions
Run a verification command (tests, build, typecheck) in a project. Read-only commands run directly (free). Risky commands (writes, network, git mutations, interpreter one-liners) are delegated to Codex, which runs them under its auto-review approval (Codex's own risk assessment decides — never full access, no user interruption). No shell — pass the executable and args separately.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Arguments, e.g. ["test"]. | |
| command | Yes | Executable to run, e.g. "npm". | |
| project | No | Project path the user named in chat (armed via init). Pass it explicitly on every call. If no project has been named, ask the user; never guess. | |
| timeout_sec | No | Timeout in seconds for read-only commands (default 120). | |
| session_token | No | Session token returned by init (or create_project). Required for every project tool call in this chat. A new chat must be re-armed. |