You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add AGENT=codex environment variable to UNIFIED_EXEC_ENV #13416
What variant of Codex are you using?
CLI (codex-rs)
What feature would you like to see?
Add AGENT=codex to the UNIFIED_EXEC_ENV array in codex-rs/core/src/unified_exec/process_manager.rs, so that spawned processes can detect they are running inside the Codex agent.
Other AI coding agents already follow this convention:
Goose sets AGENT=goose
Amp sets AGENT=amp
This allows downstream tools, scripts, and MCP servers to detect which agent is driving them and adapt behavior accordingly (e.g., adjusting output format, disabling interactive prompts, or collecting telemetry).
Activity
sw-square commentedon Mar 4, 2026
Also CF agentsmd/agents.md#136, which is an attempt to standardize this
etraut-openai commentedon Apr 3, 2026
This feature request hasn't received enough upvotes, so closing.
Setup UX: env-var agent detection, generic AGENTS.md, workflow updates
feat(al-agentic-dev): cross-runtime /al-second-opinion + claude-only …
feat(hooks): add CODEX_CODE_REMOTE guard to install-uv.sh (Closes #616)
feat(hooks): add CODEX_CODE_REMOTE guard to install-uv.sh (Closes #616)
feat(hooks): add CODEX_CODE_REMOTE opt-in to install-uv.sh for Codex …
refactor(telemetry): scope agent detection to cloud/remote runs only
feat(telemetry): detect cloud/remote AI-agent environment and tag eve…