Skip to content

Codex Plugin

OpenLogos provides a native plugin for OpenAI Codex CLI, upgrading from the basic “AGENTS.md compatibility mode” to a “plugin-first + docs fallback” dual-track mechanism.

Mode A: Compatibility Mode (always available)

Section titled “Mode A: Compatibility Mode (always available)”
  • Input: AGENTS.md + logos/skills/*/SKILL.md
  • When: Plugin not installed or plugin fails
  • Experience: Zero extra installation, basic functionality
  • Input: Auto-generated .codex-plugin/plugin.json, .codex-plugin/hooks/session-start.sh, .codex/config.toml
  • When: Full experience with SessionStart phase injection, auto-loaded Skills, unified workflow control
  • Experience: Enhanced, easy to distribute and version

After openlogos init --ai-tool codex or openlogos init --ai-tool all:

project-root/
├── .codex-plugin/
│ ├── plugin.json # Plugin manifest
│ └── hooks/
│ └── session-start.sh # SessionStart hook script
├── .codex/
│ └── config.toml # Plugin and hook configuration
├── .agents/
│ └── skills/ # Codex-native Skill files
│ ├── prd-writer/SKILL.md
│ ├── scenario-architect/SKILL.md
│ └── ... # 16 Skills total
└── AGENTS.md # Fallback instructions

.codex-plugin/plugin.json:

{
"name": "openlogos",
"version": "0.10.3",
"description": "OpenLogos methodology plugin for Codex CLI",
"hooks": {
"session-start": "./hooks/session-start.sh"
}
}

The hook script (session-start.sh) runs at the beginning of each Codex session and injects:

  1. Current project phase (detected via openlogos detect)
  2. Active change proposal status
  3. Suggested next step
  4. Language policy reminder

This gives Codex the same phase-aware context that Claude Code gets via its native plugin system.

Codex requires YAML frontmatter in Skill files. OpenLogos automatically converts each Skill during deployment:

---
name: prd-writer
description: "Write scenario-driven requirements with GIVEN/WHEN/THEN acceptance criteria"
---
# Skill: PRD Writer
...

Without this frontmatter, Codex shows missing YAML frontmatter warnings and skips the Skill.

Codex may show hook needs review before it can run on first launch after plugin deployment. This is Codex’s standard hook security review:

  1. Open /hooks in Codex
  2. Review .codex-plugin/hooks/session-start.sh
  3. Approve to enable OpenLogos phase context injection

.codex/config.toml is merged (not overwritten) during deployment:

[plugins]
openlogos = { path = ".codex-plugin" }
[hooks]
session-start = ".codex-plugin/hooks/session-start.sh"
DimensionClaude CodeOpenCodeCodex
Plugin mechanism.claude/ native plugin.opencode/plugins/ JS.codex-plugin/ + hooks
SessionStartsettings.json hookPlugin JS hookshell hook script
Skill locationlogos/skills/logos/skills/.agents/skills/
Slash commands.claude/commands/.opencode/commands/N/A (AGENTS.md)
FallbackCLAUDE.mdAGENTS.mdAGENTS.md
Terminal window
# Deploy Codex plugin for an existing project
openlogos init --ai-tool codex
# Deploy all tool targets
openlogos init --ai-tool all
# Refresh after updates
openlogos sync