Skip to content

feat: integrate Codex project workflows - #307

Merged
branover merged 1 commit into
mainfrom
build/codex-agent-integration
Aug 13, 2026
Merged

branover merged 1 commit into
mainfrom
build/codex-agent-integration

Conversation

@branover

Copy link
Copy Markdown
Owner

What

  • add Codex-native project instructions, merge-gate reviewer configuration, and hook metadata while keeping Claude as the shared source of truth
  • expose the existing UX-assessment skill to Codex through the repository-standard .agents/skills location
  • install the generated hexgraph-vr bundle into every detected Claude Code and Codex user-level skill directory after one explicit setup opt-in
  • let just refresh add a missing native Claude/Codex copy after a prior user-level skill opt-in, while preserving project-local behavior
  • document the native manual install paths and add detection, wizard, refresh, and help coverage

Why

HexGraph already supported Codex as an MCP client, but its reusable VR skill lifecycle was Claude-only and the repository's agent workflow was not available to Codex. This keeps one skill source and one project policy while using each client's native discovery path.

Verification

  • python -m pytest -q tests/test_setup_wizard.py tests/test_setup_refresh.py tests/test_mcp.py tests/test_vr_skill.py (122 passed, 1 skipped)
  • Agent Skills validation passed for the emitted hexgraph-vr bundle
  • Agent Skills validation passed for .agents/skills/ux-assessment
  • bash -n .claude/hooks/guard-pr-reviewer.sh
  • hook allow/deny smoke test for pr_reviewer versus a generic reviewer task
  • .codex/hooks.json parsed with jq; .codex/agents/pr-reviewer.toml parsed with tomllib
  • git diff --check

The broader foreground pytest run was stopped after an existing unrelated test made no progress for several minutes. Required CI remains the merge gate.

@branover branover left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

APPROVE

Independent HexGraph merge-gate review for PR #307.

Findings: none.

Correctness and test-quality pass

  • Reviewed both the GitHub PR diff and origin/main...HEAD, including the setup wizard, refresh expansion, native skill paths, Codex hook/custom-agent configuration, shared UX skill symlink, documentation, and tests.
  • The setup wizard retains explicit opt-in, then installs the generated bundle for every detected Claude Code/Codex executable. A missing native user-level copy is added on refresh only after an existing native copy proves prior opt-in; project-local installs remain project-local.
  • Current official OpenAI documentation confirms Codex's $HOME/.agents/skills, repository .agents/skills, project .codex/hooks.json, and .codex/agents/*.toml discovery paths. It also confirms Agent matching for spawn_agent, the tool_input payload, and the PreToolUse deny response used here.
  • Verification: 122 passed, 1 skipped for tests/test_setup_wizard.py, tests/test_setup_refresh.py, tests/test_mcp.py, and tests/test_vr_skill.py; git diff --check passed; Codex JSON/TOML parsed; hook shell syntax and allow/deny payload smoke tests passed; the shared skill is committed as a symlink.

Security and repository-invariant pass

  • The change does not bind a service, process hostile target bytes, execute targets, add network access, rehost firmware, or touch policy seams. The loopback, sandbox, secret-handling, and explicit execution/network/rehosting gates are unchanged.
  • The generated skill and agent configuration contain no secret or real-engagement data. .codex/memories is explicitly ignored, preserving the public-repository confidentiality boundary.
  • User-facing setup/MCP behavior is documented in the README and feature docs. There is no UI behavior or data-model change, so docs/dev/ux-contract.md and a migration are not required.

Required CI was still running when this review was posted; merge must continue to wait for the repository's required checks and thread-resolution gate.

@branover
branover merged commit b1370c5 into main Aug 13, 2026
7 checks passed
@branover
branover deleted the build/codex-agent-integration branch August 13, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant