Codex setup - Anchor Docs
Configure Anchor for Codex with .codex/config.toml and a managed AGENTS.md instruction block.
Codex needs a local MCP server entry and a clear rule to use repo evidence before non-trivial edits.
- Adds an Anchor MCP server block to .codex/config.toml.
- Adds managed AGENTS.md instructions for context, strict mode, and prompt-injection safety.
- Preserves existing Codex MCP servers and non-Anchor instructions.
anchor init --target codex
anchor index-code
anchor doctor --target codex