Codex Notes
VRDex has historically used OpenCode for long-running local agent work. Codex should reuse the same durable playbooks while mapping OpenCode-specific tools to Codex capabilities.
Startup Context
- Read
AGENTS.mdfirst, andAGENTS.local.mdwhen present. - Use
docs/agentic/README.mdfor the core software-factory docs. - Use
.codex/skills/*/SKILL.mdas thin Codex entry points when repo-local skills are available. - Do not work directly in the protected
mainmirror except for explicitly requested mirror maintenance.
Worktree Policy
Current local convention:
- Protected main mirror:
D:/bench/VRDex - Active worktree root:
D:/bench/VRDex-wt - Feature worktrees:
D:/bench/VRDex-wt/<name>
The protected mirror should stay on main and clean. Routine implementation,
review recycle work, and Codex parity changes should happen in named worktrees
under D:/bench/VRDex-wt.
The root package scripts run scripts/guard-main-worktree.mjs before local
development, build, lint, test, and verification commands. The guard blocks
those commands on main unless one of these is true:
- CI is running.
GITHUB_ACTIONS=trueis set.VERCELis set to a truthy value.VRDEX_ALLOW_PROTECTED_WORKTREE=1is set for intentional mirror maintenance.
Skills
The OpenCode source skills live under .opencode/skills/<name>/SKILL.md.
Codex wrappers live under .codex/skills/<name>/SKILL.md. Each wrapper keeps
Codex-valid frontmatter and points back to the OpenCode source skill. If a
Codex session does not auto-discover repo-local skills, open the wrapper or
source skill by path.
New repository skills use the documented .agents/skills/<name>/SKILL.md location. The cloud startup entry is .agents/skills/vrdex-cloud-start/SKILL.md, backed by the startup guide. Existing .codex/skills wrappers remain compatibility routes; filesystem reads do not establish cloud catalog discovery.
Current wrappers:
vrdex-feature-designvrdex-manual-profile-opsvrcdnvrdex-parallel-worktree-deliveryvrdex-onboarding
Keep .opencode/skills as the detailed source of truth. Keep .codex/skills
as thin compatibility shims, not duplicated long playbooks.
Tool Mapping
- OpenCode plugins under
.opencode/pluginsare not Codex tools unless the active Codex tool list explicitly exposes equivalent functions. - The OpenCode
/supervisorcommand and.opencode/plugins/supervisor-loop.*remain OpenCode experiments. In Codex, use thread coordination tools only when they are explicitly available in the active tool list. - For GitHub and PR review loops, prefer a GitHub connector when available;
otherwise use
ghand manual polling. - For frontend verification, use the Codex Browser plugin for local targets when available, plus screenshot evidence for meaningful UI changes.
- For library, SDK, CLI, and cloud-service docs, use Codex documentation tools such as Context7 when available, or primary-source web docs when required.
- For reminders, monitors, or later follow-ups, use Codex automations only when the user asks for that behavior.
MCP Config
Codex project MCP defaults live at .codex/config.toml. They are separate from
OpenCode's .opencode/opencode.json defaults.
| Server | Fresh-checkout default | Preferred route |
|---|---|---|
playwright | Enabled | Configured browser MCP |
vercel_vrdex | Parked | Connected native Vercel plugin or Vercel CLI |
convex | Enabled | Configured Convex MCP or the project's Convex CLI |
aws_docs | Parked | Available AWS documentation tools or official AWS docs |
aws_iac | Parked | AWS CLI and CloudFormation tooling |
aws_terraform | Parked | Terraform CLI and provider documentation |
aws_mcp | Parked | Connected BASIC AWS machine plugin with the intended account and machine role |
daytona | Parked | Deliberate reactivation when Daytona is needed |
The six parked entries have enabled = false to avoid starting redundant or
unused transports in each checkout. Their launch and account settings remain
available for recovery. Missing parked tools are expected, not a setup failure.
A native plugin or CLI must be available and authenticated for the intended task;
its presence does not prove every MCP operation is covered.
For a required operation that the preferred route cannot provide, deliberately
set enabled = true in that server's existing project table. Trust the intended
checkout, confirm the declared runtime and account/region, then refresh the chat
and verify the required operation. Preserve the other profile fields and approval
rules. Return it to enabled = false when the temporary need is finished; do not
make routine recovery a global registration.
For AWS, discover BASIC AWS machine first and verify the intended account and
basic-aws-mcp-operator role before resource operations. The retained AWS MCP
selects the explicit account-admin SSO recovery profile. Reactivate it only after
reporting a native operation gap and verifying a fresh SSO identity. Expired or
missing SSO must fail visibly. Do not select default, root credentials, or an
unspecified AWS Core connection as a substitute.
Cloud CLI and Terraform authentication are separate from the native MCP. Use an explicitly configured workload identity or approved named profile, verify its identity, and report missing setup. Native MCP access does not supply CLI credentials, and CLI availability does not establish authenticated access.
Keep project-specific tools in repo-local config. Global Codex MCP entries should be reserved for tools needed across repositories. Project commands should be PATH-resolved where possible; personal absolute paths and account-specific environment values belong in personal configuration, not committed defaults.
For other missing tools, use the documented CLI fallback (vercel, aws,
npx convex, gh) or report the capability gap. Production data,
infrastructure, billing, or secret mutations still require the normal approval
and escalation workflow.