Skip to content
Built 26/04/17 09:08commit f8ff6f9

Codex Non-Interactive Mode

中文 | English

Summary

This source defines codex exec as the scriptable surface for Codex: it narrows interactive behavior into a pipeline-friendly command that can stream events, enforce output schemas, resume sessions, and run under explicit permission boundaries.

Source

Key Contributions

  • Defines when codex exec belongs in CI, scheduled jobs, and shell pipelines.
  • Documents JSONL output, schema-constrained final responses, and resumable non-interactive sessions.
  • Connects permission choices directly to automation safety.
  • Preserves Git-repository checks as a guardrail against destructive operation in the wrong directory.

Strongest Claims

  • The non-interactive surface should stay narrow and deterministic enough for scripts to consume.
  • Automation should default to the least permissions needed and preserve machine-readable evidence.
  • CI auth should prefer explicit API keys unless there is a concrete reason to reuse interactive account auth.