Codex Explain Code
codex_explain_codeExplains code, logic, or architecture in depth. Helps understand unfamiliar codebases, onboards new developers, and documents complex systems.
Instructions
Ask Codex to deeply explain code, logic, or architecture. Useful for understanding unfamiliar code, onboarding, or documenting complex systems.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Depth of explanation: overview, detailed, or full execution trace | detailed |
| target | Yes | What to explain: file path, function name, module, or code snippet | |
| context | No | Additional context about the codebase | |
| threadKey | No | Optional key enabling multi-turn continuity. Calls sharing a key use the same harness conversation and are serialized. Omit it for independent one-shot calls, including parallel reviews. | |
| workingDirectory | No |