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.
Operating Modes
Section titled “Operating Modes”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
Mode B: Native Plugin Mode (recommended)
Section titled “Mode B: Native Plugin Mode (recommended)”- 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
Plugin Structure
Section titled “Plugin Structure”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 instructionsPlugin Manifest
Section titled “Plugin Manifest”.codex-plugin/plugin.json:
{ "name": "openlogos", "version": "0.10.3", "description": "OpenLogos methodology plugin for Codex CLI", "hooks": { "session-start": "./hooks/session-start.sh" }}SessionStart Hook
Section titled “SessionStart Hook”The hook script (session-start.sh) runs at the beginning of each Codex session and injects:
- Current project phase (detected via
openlogos detect) - Active change proposal status
- Suggested next step
- Language policy reminder
This gives Codex the same phase-aware context that Claude Code gets via its native plugin system.
Skill Format for Codex
Section titled “Skill Format for Codex”Codex requires YAML frontmatter in Skill files. OpenLogos automatically converts each Skill during deployment:
---name: prd-writerdescription: "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.
Hook Security Review
Section titled “Hook Security Review”Codex may show hook needs review before it can run on first launch after plugin deployment. This is Codex’s standard hook security review:
- Open
/hooksin Codex - Review
.codex-plugin/hooks/session-start.sh - Approve to enable OpenLogos phase context injection
Configuration
Section titled “Configuration”.codex/config.toml is merged (not overwritten) during deployment:
[plugins]openlogos = { path = ".codex-plugin" }
[hooks]session-start = ".codex-plugin/hooks/session-start.sh"Comparison with Other Platforms
Section titled “Comparison with Other Platforms”| Dimension | Claude Code | OpenCode | Codex |
|---|---|---|---|
| Plugin mechanism | .claude/ native plugin | .opencode/plugins/ JS | .codex-plugin/ + hooks |
| SessionStart | settings.json hook | Plugin JS hook | shell hook script |
| Skill location | logos/skills/ | logos/skills/ | .agents/skills/ |
| Slash commands | .claude/commands/ | .opencode/commands/ | N/A (AGENTS.md) |
| Fallback | CLAUDE.md | AGENTS.md | AGENTS.md |
Deployment
Section titled “Deployment”# Deploy Codex plugin for an existing projectopenlogos init --ai-tool codex
# Deploy all tool targetsopenlogos init --ai-tool all
# Refresh after updatesopenlogos syncRelated
Section titled “Related”- OpenCode Plugin — OpenCode integration specification
- AGENTS.md — Universal AI instruction file (fallback for all tools)
- Project Structure — Standard directory layout