codex-exec
SolidRun autonomous task execution using the codex CLI. Use when the user asks to "codex exec", "run codex exec", "execute a task with codex", or "delegate to codex".
AI & Automation 335 stars
26 forks Updated 5 days ago MIT
Install
Quality Score: 89/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# Codex Exec
Autonomous task execution via the codex CLI. Runs non-interactively. Progress streams to stderr; final result on stdout.
```bash
codex exec "task description" < /dev/null
```
For large context, pipe it via stdin. The prompt stays as the argument, context is passed as `<stdin>` automatically:
```bash
cat context.txt | codex exec "question about the context"
```
## Sandbox
**All `codex` Bash calls require `dangerouslyDisableSandbox: true`** (network access to OpenAI API). Without it, codex crashes with an `Operation not permitted` panic from the `system-configuration` crate before the model runs.
## Stdin Gotcha
Codex reads from stdin whenever stdin is non-TTY (per `codex exec --help`: "If stdin is piped and a prompt is also provided, stdin is appended as a `<stdin>` block"). In subagent and subprocess contexts the harness leaves stdin connected to a pipe that never EOFs, so a bare `codex exec "..."` hangs forever, printing only `Reading additional input from stdin...`.
Always redirect stdin on non-piped invocations:
```bash
codex exec "task description" < /dev/null
```
The piped form (`cat context.txt | codex exec "..."`) is safe — `cat` closes the pipe after the file, sending EOF.
## Permission Levels
| Level | Flag | When to Use |
|-------|------|-------------|
| Read-only (default) | *(none)* | Analysis, code reading, generating reports |
| Workspace write | `--sandbox workspace-write` | Editing files within the project |
| Full access | `--sandbox...
Details
- Author
- tobihagemann
- Repository
- tobihagemann/turbo
- Created
- 3 months ago
- Last Updated
- 5 days ago
- Language
- Python
- License
- MIT
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Solid
codex
Use when the user asks to run Codex CLI (codex exec, codex resume) or references OpenAI Codex for code analysis, refactoring, or automated editing
204 Updated 2 days ago
majiayu000 AI & Automation Listed
codex
Delegate coding tasks (features, refactors, PR reviews) to the OpenAI Codex CLI from bash; use when offloading coding work to the standalone codex agent.
0 Updated yesterday
aashutosh396 AI & Automation Listed
codex
Use when the user asks to run Codex CLI (codex exec, codex resume) or references OpenAI Codex for code analysis, refactoring, or automated editing
72 Updated 2 weeks ago
majiayu000