Skip to content

Overview

OpenAI Codex is an AI coding assistant that helps developers write, modify, and understand code using natural language instructions.

Codex can assist with tasks such as:

  • Generating code from prompts
  • Refactoring existing code
  • Writing tests
  • Explaining unfamiliar code
  • Automating repetitive development tasks
  • Generating documentation

Codex is designed to augment developer workflows, not replace engineering judgment. All AI-generated code must be reviewed and validated through standard development practices, including testing and peer review.

Within the development workflow, Codex can be used for:

  • Bootstrapping new functions or modules
  • Exploring alternative implementations
  • Generating boilerplate code
  • Converting pseudocode into working implementations
  • Assisting with debugging and troubleshooting
  • Generating documentation and comments
  • Performing code reviews

Codex should not be relied upon for:

  • Security-sensitive implementations without review
  • Production code that has not been validated by a developer
  • Architectural decisions without human oversight

Codex can be used through several interfaces depending on the workflow:

  • Codex CLI - Terminal-based AI assistant for interacting with repositories and development tasks
  • VS Code Extension - Integrated development experience within VS Code

When using Codex:

  • Do not provide credentials, secrets, or sensitive data in prompts.
  • Review generated code for security and correctness.
  • Ensure output follows project coding standards and architecture guidelines.

Refer to the related pages for setup instructions and recommended workflows.