Skip to content

feat: /implement — delegate reviewed plan → code to OpenAI Codex#1833

Closed
merit-blake wants to merge 2 commits into
garrytan:mainfrom
merit-blake:implement-rehome
Closed

feat: /implement — delegate reviewed plan → code to OpenAI Codex#1833
merit-blake wants to merge 2 commits into
garrytan:mainfrom
merit-blake:implement-rehome

Conversation

@merit-blake

Copy link
Copy Markdown

What this adds

Re-homes the /implement skill onto current main. /implement is a
Claude-host-only skill that takes a reviewed plan (from /plan-eng-review or
/autoplan) and hands implementation to OpenAI Codex via codex exec running
in the background on a cc worktree. It polls Codex's JSONL progress stream, then
auto-runs /codex review + /review as an independent gate before handing back.
P1 findings boomerang back to Codex for a fix pass, capped at 3.

  • Operating model: Codex runs with -s danger-full-access; the cc worktree
    is the safety boundary (branch-isolated, throwaway). The filesystem-boundary
    instruction in the prompt keeps Codex from reading agent skill files.
  • State: logs, prompts, summary, and decisions live under
    ~/.gstack/projects/$SLUG/implement/$BRANCH/ — branch-scoped, survives the
    worktree being deleted, gbrain-sync'd.
  • Host-gating: skipped from all non-Claude hosts (codex, factory, gbrain,
    hermes, openclaw, kiro, opencode, cursor, slate) via skipSkills, same
    pattern as /codex.

How it was built

Re-homed onto current main from a stale reference worktree (~39 commits
behind). Only the skill source (implement/SKILL.md.tmpl) and host-gating
intent were ported; the stale branch was not merged. Generated docs were
produced by the current bun run gen:skill-docs pipeline, not copied from the
stale branch.

Commits are bisected:

  1. feat: — skill template, host-gating, test exclusion lists, hand-maintained
    registries (README / docs/skills.md / AGENTS.md).
  2. chore: — regenerated implement/SKILL.md, gstack/llms.txt,
    scripts/proactive-suggestions.json.

Tests

  • bun test → exits 0. Targeted: skill-validation + gen-skill-docs =
    719 pass, 0 fail.
  • A pre-existing Cannot find package 'sharp' warning surfaces in
    browse/test/screenshot-size-guard.test.ts (missing dev dependency in this
    worktree); unrelated to these changes and does not fail the suite.

Notes

  • VERSION bump + CHANGELOG entry intentionally deferred to /ship (per the
    repo's "write the CHANGELOG at ship time" rule).
  • This PR is from a fork (merit-blake/gstack) because the author lacks write
    on the base repo. Fork PRs don't receive base-repo secrets, so the eval/E2E
    CI jobs will fail with empty-env auth; check-freshness, workflow-lint, and
    windows-tests should still pass. To get eval CI, a maintainer can push the
    branch to the base repo and re-target.

🤖 Generated with Claude Code

merit-blake and others added 2 commits June 1, 2026 17:18
Adds /implement, a Claude-host-only skill that takes a reviewed plan
(from /plan-eng-review or /autoplan) and hands implementation to OpenAI
Codex via `codex exec` running in the background on a cc worktree. Polls
codex's JSONL stream for progress, then auto-runs /codex review + /review
as an independent gate before handing back. P1 findings boomerang back to
codex for a fix pass (capped at 3).

Operating model: codex runs with -s danger-full-access. The cc worktree is
the safety boundary (branch-isolated, throwaway via git worktree remove);
the filesystem-boundary instruction in the prompt does the meaningful work
(stops codex from reading agent skill files under ~/.claude, ~/.codex, etc).

State (logs, prompts, summary, decisions) lives at
~/.gstack/projects/$SLUG/implement/$BRANCH/ — branch-scoped so concurrent
runs on sibling worktrees don't collide, survives the worktree being
deleted, gets gbrain-sync'd. Plan discovery walks gstack project dir,
ceo-plans, ~/.claude/plans, ~/.codex/plans, .gstack/plans, plans/. Plan
clearance uses gstack-review-read (the mechanism /ship uses).

Skipped from non-Claude hosts (codex, factory, gbrain, hermes, openclaw,
kiro, opencode, cursor, slate) — same pattern as /codex, since this is a
Claude wrapper around codex exec. Hand-maintained registries (README,
docs/skills.md, AGENTS.md) and test exclusion lists updated to match.

Re-homed onto current main from a stale reference branch (~39 commits
behind); only the skill source and host-gating intent were ported.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Output of `bun run gen:skill-docs` after adding implement/SKILL.md.tmpl:
the generated implement/SKILL.md, the /implement entry in gstack/llms.txt,
and the routing block in scripts/proactive-suggestions.json. No other
generated files drifted (root SKILL.md and AGENTS.md registry untouched).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@merit-blake

Copy link
Copy Markdown
Author

Closing — opened in error, reverting.

@merit-blake merit-blake closed this Jun 2, 2026
@merit-blake merit-blake deleted the implement-rehome branch June 2, 2026 13:47
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