Codex|Execution layer
Best for working inside a repository: reading files, editing code, adding tests, running commands, and summarizing pull requests. Treat it as an implementation specialist.
This page is for people who already use AI coding tools and want a cleaner operating model: Codex implements, Claude Code reasons and reviews, and Hermes keeps workflows memorable, schedulable, and auditable.
Use Codex for a narrow patch, then finish with tests and diff review.
Use Claude Code or Hermes to plan the risk and scope before implementation.
Convert the proven workflow into a Hermes skill, cron job, or handoff routine.
01 / Blueprint
Many teams install Codex, Claude Code, Cursor, and Hermes, yet still paste the same context every day. The advanced move is to divide the system into execution, judgment, and operations.
Best for working inside a repository: reading files, editing code, adding tests, running commands, and summarizing pull requests. Treat it as an implementation specialist.
Best for long reasoning, architecture tradeoffs, requirement breakdowns, interactive code review, subagents, hooks, and MCP workflows. Treat it as a senior reviewer or architect.
Best for durable preferences, reusable skills, Telegram / CLI / API triggered work, scheduled checks, handoffs, and turning successful work into repeatable procedures. Treat it as the agent operating system.
02 / Division of Labor
03 / Shared Memory
The practical lesson from official docs and community practice is consistent: advanced agent workflows are not powered by magical prompts. They work because the project has durable context. Codex reads AGENTS.md, Claude Code reads CLAUDE.md, and Hermes uses skills, memory, and session handoff.
Store repository structure, startup commands, tests, definition of done, and hard limits. Keep the root file short and link to docs for details.
Store interaction habits, architecture principles, common commands, and review standards. Claude Code also supports memory, hooks, subagents, and MCP.
Save repeatable procedures as skills, long-term preferences as memory, and task progress as handoff so Telegram, CLI, and cron can continue the work.
your-project/
├─ AGENTS.md # Codex / general coding-agent rules
├─ CLAUDE.md # Claude Code interaction and architecture rules
├─ docs/agent/
│ ├─ architecture.md # system architecture and data flow
│ ├─ testing.md # test, lint, and build commands
│ └─ release.md # deploy, rollback, and human-approval gates
└─ .hermes/plans/ # optional: Hermes plans / handoffs04 / Recipes
Ask Claude Code or Hermes for a concise plan, let Codex implement in an isolated branch or worktree, then finish with artifact-only review. This works well for small features, bug fixes, and documentation changes.
Please do not edit files yet.
1. Read AGENTS.md / CLAUDE.md / docs/agent/* first.
2. Propose a plan in 3 steps or fewer.
3. List files to change and how to verify them.
4. Wait for confirmation before implementation.Community workflows often expose Codex CLI through MCP so Claude Code can call Codex as an implementation specialist. This is an advanced pattern; command names may change, so verify your installed version with official docs and --help.
# 1. Install and sign in to Codex
codex
# 2. If your version supports it, start the MCP server
codex mcp-server
# 3. Register it in Claude Code
claude mcp add --transport stdio codex -- codex mcp-server
# 4. Check it inside Claude Code
/mcpClaude Code and Codex are strongest inside the current session. Hermes is strongest across sessions: memory, cron, Telegram / Discord gateway, skills, and handoff. Use it for daily checks, PR summaries, release checklists, and issue triage.
Please turn this repository release process into a Hermes skill:
- trigger conditions
- files to read first
- verification commands to run
- actions requiring human approval
- handoff / report to leave at completion05 / Templates
# Project Agent Guide
## What this project is
One-sentence product, user, and data-flow summary.
## Commands
- Install: `...`
- Dev: `...`
- Test: `...`
- Build: `...`
## Conventions
- Main language / framework
- File placement rules
- Naming and error-handling principles
## Definition of Done
- Tests and lint pass
- Human-readable summary exists
- Major changes include rollback notes
## Never do
- Do not read or print secrets
- Do not deploy production directly
- Do not run destructive database changesPlease review only; do not edit files.
Check this diff for:
1. compliance with AGENTS.md / CLAUDE.md
2. security, data-loss, permission, or migration risk
3. unverified assumptions
4. missing tests
Classify findings as Critical / Major / Minor.Use when preparing or reviewing a production release:
- inspect current git diff and deployment config
- verify tests, build, and smoke checks
- identify human-approval gates
- produce release handoff and rollback notes
Do not deploy unless explicitly approved.## Agent Handoff
- Goal:
- In scope / out of scope:
- Files changed:
- Commands actually run:
- Test / build result:
- Risks:
- Human approval needed:
- Next best action:06 / Guardrails
AGENTS.md, CLAUDE.md, and prompts are still text. Real safety comes from environment isolation, permission boundaries, and verification gates.
07 / Sources
This guide is based on public documentation and community practices. Use community posts for patterns and inspiration, but verify exact commands against each tool's current official documentation and --help.