Skip to content

Codex CLI

Connect Codex CLI to Trurlic so code generation follows your architectural decisions.

  • Trurlic installed and .trurlic/ initialized in your project
  • Codex CLI installed

The fastest way:

Terminal window
trurlic install --ide codex

This writes to ~/.codex/config.toml (or $CODEX_HOME/config.toml if set).

Add to your Codex MCP configuration:

{
"mcpServers": {
"trurlic": {
"command": "trurlic",
"args": ["serve"]
}
}
}

Add Trurlic instructions to your project’s agent configuration so Codex queries the decision graph before generating code. See MCP Server for the recommended instruction block.

  1. Start a Codex session in the project directory.
  2. Ask Codex to implement a feature — it should query get_context and follow your recorded decisions.
  3. Check trurlic status for consistency.