Commit Graph

681 Commits

Author SHA1 Message Date
Trevin Chow 0edecdb394 fix(legacy-cleanup): add web-researcher to stale agent cleanup list
Without this, upgrades from pre-rename installs that contain the old
`web-researcher` agent artifact leave the stale file alongside the new
`ce-web-researcher`, producing duplicate entries on Codex/OpenCode/etc.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 15:38:27 -07:00
Trevin Chow a90cbedb19 refactor(review): rename compound-engineering agents to .agent.md 2026-04-18 15:38:27 -07:00
Trevin Chow 4648a17a98 refactor(cli): harden .agent.md source parsing and cleanup indexing 2026-04-18 15:38:27 -07:00
Trevin Chow 30e0ff3638 fix(ce-prefix-rename): clean up stale refs missed in rebase
Update remaining stale references to skill/agent names after rebase:
- AGENTS.md cross-platform reference example uses ce-doc-review
- ce-compound/SKILL.md internal /compound heading and session-historian ref
- ce-code-review/references/resolve-base.sh header comment
- pi converter and codex-agents tool mapping use ce-todo-create
- pi-converter test assertion matches converter output
- release preview/components tests use ce-plan (non-beta)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 15:38:27 -07:00
Trevin Chow 7ed29869b1 fix: address PR review feedback (#503)
- Remove stray merge markers in ce-ideate/references/post-ideation-workflow.md
  that survived the last rebase. Kept the upstream v2 quality-bar bullets
  (persistence opt-in, mode defaults) and dropped the stale pre-v2 line.

- Scope isLegacyPromptWrapper to compound-owned wrappers. Body-instruction
  fingerprint alone was too permissive — renderPrompt emits the same
  boilerplate for every plugin, so a shared ~/.codex/prompts/ with a
  sibling plugin's ce-plan.md would have been deleted. Now requires
  BOTH signals: body matches the plugin-generated boilerplate AND
  description matches either the current shipped ce-* description or
  a historical alias in LEGACY_PROMPT_DESCRIPTION_ALIASES. Seeded
  alias map from shipped releases for ce-plan, ce-work, ce-work-beta,
  ce-brainstorm, ce-ideate, ce-compound, ce-compound-refresh, ce-review.
  Added regression test: foreign plugin's same-named wrapper is preserved.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 15:38:27 -07:00
Trevin Chow 4cc07c5906 fix(ce-ideate): update stale ce:/compound-engineering refs from v2 merge
Upstream PR #588 added mode-aware v2 ideation with a new web-researcher
agent and restructured post-ideation-workflow. Files included several
stale refs from the pre-rename era:

- agents/research/web-researcher.md was introduced without ce- prefix;
  renamed file to ce-web-researcher.md, updated frontmatter name, and
  fixed its in-prose skill refs (ce:brainstorm, ce:plan, and the stray
  compound-engineering:ce-ideate) to match our naming convention
- ce-ideate/SKILL.md: /ce:ideate -> /ce-ideate, and all compound-
  engineering:research:<agent> refs simplified to <category>:ce-<agent>
- ce-ideate/references/universal-ideation.md: ce:ideate, ce:brainstorm,
  ce:plan, ce:work refs updated to hyphenated form
- README.md: ce-web-researcher added to Research agent table
  alongside our existing ce- prefixed agents

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 15:38:27 -07:00
Trevin Chow 44b3029396 fix(legacy-cleanup): use body fingerprint for Codex prompt wrapper ownership
The exact-description match in isLegacyPromptWrapper keeps missing real
upgrade paths because skill description text drifts (different wording
across shipped plugin versions). Two prior rounds on this file patched
the symptom by adding ce:->ce- normalization, then per-file description
aliases — but ce-plan drifted again when HEAD added a trailing
"prefer ce-brainstorm first" sentence that no shipped version contains.

Swap prompt-ownership detection to a body-instruction fingerprint:
"Use the $<skill> skill for this command and follow its instructions."
(plus pre-rename workflow-style variants). The Codex converter writes
this boilerplate deterministically and has since v2.39.0. The skill
name is embedded by reference, so the fingerprint stays accurate
across description rewordings.

Added two regression tests: drifted-description wrapper is removed,
user-authored file with the same path but a different body is preserved.

Resolves #503 review feedback on legacy-cleanup.ts:404.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 15:38:27 -07:00
Trevin Chow c0f52046c6 fix(ce-release-notes): align new skill with ce- hyphen naming convention
Upstream PR #589 introduced the ce-release-notes skill with frontmatter
name ce:release-notes (old colon format) and two in-content references
to /ce:release-notes. Aligned all three to the new ce-release-notes
hyphen convention this branch standardizes on.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 15:38:27 -07:00
Trevin Chow f873024f80 fix(ce-prefix-rename): address PR review feedback
- Unify ce-code-review artifact directory path: fixed 5 remaining stale
  references to .context/compound-engineering/ce-review/<run-id> in
  SKILL.md (Stage 4 run-id mkdir, persona dispatch, per-agent JSON write,
  Stage 6 detail-enrichment read) and the subagent-template.md output
  contract. Announced path and actual write path now match.

- Close legacy-cleanup fingerprint gap for stale names without ce-*
  counterpart: loadLegacyFingerprints previously skipped any legacy name
  whose mapped current file was missing, leaving isLegacyPluginOwned
  unable to verify ownership of orphaned entries (4 skills, 2 agents).
  Added LEGACY_ONLY_SKILL_DESCRIPTIONS and LEGACY_ONLY_AGENT_DESCRIPTIONS
  maps sourced from last-shipped frontmatter, wired as fallback. Content-
  match safety preserved — user files with same names are still protected.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 15:38:27 -07:00
Trevin Chow 538c6f78c5 fix(ce-prefix-rename): update stale git-commit-push-pr refs absorbed from upstream
ce-pr-description and ce-demo-reel skills referenced the pre-rename
`git-commit-push-pr` name in their prose. Updated to `ce-commit-push-pr`
and removed the now-stale "sibling git-* skills will rename later" line
from the ce-pr-description naming rationale (the rename has happened).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 15:38:27 -07:00
Trevin Chow 0633defbac test(ce-prefix-rename): update test assertions to new ce-doc-review name
Two pipeline-review-contract tests still expected the old `document-review`
skill name. Updated to `ce-doc-review` to match the rename applied in
ce-brainstorm/references/handoff.md and ce-plan/references/plan-handoff.md.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 15:38:27 -07:00
Trevin Chow b5d6ef1a90 fix(ce-prefix-rename): update stale ce:/compound-engineering refs absorbed from upstream
Recent upstream changes introduced new content (ce-polish-beta, ce-optimize)
and added updates to existing skills (ce-plan, ce-brainstorm, ce-code-review,
ce-ideate, ce-compound, ce-session-historian) that still used the old
ce:<skill> and compound-engineering:<category>:<agent> formats.

Aligned all of them to the new ce-<skill> and <category>:ce-<agent> conventions.
Also fixed ce-polish-beta frontmatter name from ce:polish-beta to ce-polish-beta.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 15:38:27 -07:00
Trevin Chow 506181792e fix(ce-prefix-rename): update stale 3-segment agent refs absorbed from upstream
Agent references in ce-compound, ce-optimize, and ce-sessions still used
the old compound-engineering:research:* format after rebases absorbed
upstream changes. Updated to the new category:ce-agent format.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-18 15:38:00 -07:00
Trevin Chow e655ca2ac0 test(legacy-cleanup): update stale agent fixtures 2026-04-18 15:38:00 -07:00
Trevin Chow f7477decf1 fix(ce-debug): align handoff references with ce prefix 2026-04-18 15:38:00 -07:00
Trevin Chow cdf7eeff81 fix(work-beta): align delegation contract test with renamed skills
Update the pipeline contract assertions to match the current hyphenated
ce-work-beta and ce-frontend-design skill references used by the skill docs.
2026-04-18 15:38:00 -07:00
Trevin Chow a15712910d fix(ce-work-beta): keep hyphenated workflow names 2026-04-18 15:38:00 -07:00
Trevin Chow 4b33abb0cd fix(ce-slack-research): dispatch renamed Slack research agent
Update the live skill dispatch to use research:ce-slack-researcher so the
command resolves the renamed agent at runtime.
2026-04-18 15:38:00 -07:00
Trevin Chow fe7faef1ca fix(cleanup): address PR review feedback (#503)
- scope Kiro stale agent cleanup to compound fingerprints
- clean legacy Codex workflow wrappers across pre- and post-rename formats
- remove stale OpenClaw agent-* directories during upgrades
- cover session-historian and slack-researcher cleanup regressions
2026-04-18 15:38:00 -07:00
Trevin Chow d26d714665 fix(session-historian): add missing ce prefix
Align the rebased session history agent with the plugin's ce- naming
convention and update the README plus skill dispatch references to match.
2026-04-18 15:38:00 -07:00
Trevin Chow 39a948b771 docs(slack-researcher): align rebased artifacts with ce naming 2026-04-18 15:38:00 -07:00
Trevin Chow 04b01bd438 fix(cleanup): scope stale codex prompt cleanup to legacy wrappers 2026-04-18 15:38:00 -07:00
Trevin Chow cb2f8f7aca fix(cleanup): preserve legacy setup and Kiro agent migration
Teach stale cleanup about the historical setup skill description and Kiro's legacy JSON/prompt agent formats so rename cleanup still works after later wording changes and on Kiro installs.
2026-04-18 15:38:00 -07:00
Trevin Chow cca5b08f40 fix(gemini): clean legacy generated agent skills on install
Remove pre-rename agent skill directories from Gemini installs before writing generated skills so stale unprefixed agents do not remain discoverable after the ce- rename.
2026-04-18 15:38:00 -07:00
Trevin Chow 4288eee961 fix(cleanup): scope stale rename cleanup to legacy compound files
Make stale skill and agent removal fingerprint-aware so shared install roots keep user-owned files with overlapping names.

Also move Qwen cleanup ahead of agent writes and clean Pi legacy agent directories from skills/ instead of prompts, with regression tests for both cases.
2026-04-18 15:38:00 -07:00
Trevin Chow 46df827816 fix(ce-test-xcode): correct renamed usage examples 2026-04-18 15:38:00 -07:00
Trevin Chow 1fb8ec5274 test(legacy-cleanup): add tests for stale file cleanup
Covers skill dir removal, agent file removal (flat .md, .agent.md,
and directory formats), prompt wrapper removal, preservation of
non-stale files, and idempotency.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-18 15:38:00 -07:00
Trevin Chow 2dc0b313a3 fix(targets): clean up stale skill/agent files from pre-rename installs
Users who previously ran `install --to codex` (or any target) have old
skill dirs (git-commit/, setup/, document-review/) and agent files
(adversarial-reviewer.md, etc.) that would coexist with the new ce-*
names after re-installing. This causes duplicate/conflicting entries
at runtime.

Add a one-time legacy cleanup module that removes known stale paths
before writing new content. Wired into all 10 target writers. Handles:
- 31 stale skill dirs (29 renamed + ce-review, ce-document-review)
- 49 stale agent files/dirs (all agents gained ce- prefix)
- 8 stale Codex prompt wrappers (removed in this release)

Cleanup is idempotent and marked with TODO(cleanup) for removal after
the v3 transition window.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-18 15:38:00 -07:00
Trevin Chow cb41b673d7 fix(tests): fix CLI test agent path — fixture uses original name, bundled plugin uses ce- prefix
The fixture's agent-one.md has `name: repo-research-analyst` (no ce-
prefix), so fixture-based tests check for `repo-research-analyst.md`.
The bundled plugin test checks for `ce-repo-research-analyst.md`.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-18 15:38:00 -07:00
Trevin Chow 9904a85d10 fix(converters): address PR review feedback — stale skill refs, alias mapping, OpenCode 2-segment rewrite
- Update ce-work and ce-work-beta to reference `ce-commit-push-pr` and
  `ce-commit` instead of old `git-commit-push-pr`/`git-commit` names
- Add WORKFLOW_ALIAS_OVERRIDES map so `workflows:review` correctly
  resolves to `ce-code-review` instead of non-existent `ce-review`
- Add 2-segment `category:ce-agent` rewrite to OpenCode transform so
  refs like `review:ce-correctness-reviewer` flatten to `ce-correctness-reviewer`

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-18 15:38:00 -07:00
Trevin Chow 9c3954a46a refactor!: rename all skills and agents to consistent ce- prefix
Standardize all 37 compound-engineering skills and 49 agents on a
`ce-` hyphen prefix, eliminating namespace collisions with other
plugins and removing the colon character that required filesystem
sanitization.

Key changes:
- `ce:plan` → `ce-plan`, `git-commit` → `ce-commit`, etc. (29 skill
  directory renames + 8 frontmatter-only updates)
- `adversarial-reviewer` → `ce-adversarial-reviewer`, etc. (49 agent
  file renames + frontmatter updates)
- `ce-review` → `ce-code-review` (clearer purpose)
- `ce-document-review` → `ce-doc-review` (more concise)
- Agent references simplified: `compound-engineering:review:X` → `review:ce-X`
- All bare agent names in prose now carry `ce-` prefix
- Codex converter: remove workflow prompt wrappers (skills are directly
  invocable), replace `isCanonicalCodexWorkflowSkill` prefix check with
  direct skill copying, map deprecated `workflows:*` aliases to skill
  targets instead of dead prompt targets
- Remove `codexPrompt` field from types/parser (no longer needed)
- Path sanitization tests use non-CE examples to preserve colon coverage
- New invariant test: no CE skill name contains a colon

BREAKING CHANGE: All skill and agent names changed. `/ce:plan` is now
`/ce-plan`, `/ce:review` is now `/ce-code-review`, agent references use
`<category>:ce-<name>` format instead of `compound-engineering:<category>:<name>`.

Closes #337

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-18 15:37:59 -07:00
Trevin Chow 49249d7317 fix(ce-plan): run ambiguity gate before the non-software catch-all (#598)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 15:31:38 -07:00
Trevin Chow d8e87c1790 fix(ce-plan): close exit gates and honor user-named resources (#597)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 15:19:04 -07:00
Trevin Chow 27cbaf8161 feat(ce-review): add per-finding judgment loop to Interactive mode (#590)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-18 13:09:03 -07:00
github-actions[bot] dfcaddf345 chore: release main (#592)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
cli-v2.68.1 compound-engineering-v2.68.1
2026-04-18 02:44:29 -07:00
Trevin Chow 1afd63cc76 fix(git-commit-push-pr): apply PR description after delegate hand-off (#594) 2026-04-18 02:42:00 -07:00
Trevin Chow cc78551e7c fix(ce-pr-description): mark return block as hand-off (#593) 2026-04-18 01:55:09 -07:00
Trevin Chow 821c69c567 fix(ce-compound-refresh): restore ce:compound hand-off (#591) 2026-04-18 01:47:05 -07:00
github-actions[bot] 7924f5ccc9 chore: release main (#586)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
compound-engineering-v2.68.0 cli-v2.68.0
2026-04-17 11:42:41 -07:00
Trevin Chow 12aaad31eb feat(ce-ideate): mode-aware v2 ideation (#588)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-17 11:40:54 -07:00
Trevin Chow 59dbaef376 feat(ce-release-notes): add skill for browsing plugin release history (#589)
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-17 02:00:37 -07:00
Trevin Chow e7cf0ae957 feat(proof, ce-brainstorm, ce-plan, ce-ideate): HITL review-loop mode (#580)
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-16 23:14:33 -07:00
github-actions[bot] d8af513a0a chore: release main (#584)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
cli-v2.67.0 compound-engineering-v2.67.0
2026-04-16 22:59:10 -07:00
Trevin Chow f6465c8d94 chore: pin next release to 2.67.0 (#585) 2026-04-16 22:52:28 -07:00
Trevin Chow c89f18a115 fix(ce-pr-description): hand off PR body via temp file (#581)
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-16 22:47:49 -07:00
Trevin Chow 729fa191b6 chore: undo accidental breaking marker on #578 (#583) 2026-04-16 22:43:15 -07:00
Trevin Chow 4ccadcfd3f fix(resolve-pr-feedback): unblock /loop scheduling (#582) 2026-04-16 22:28:52 -07:00
Trevin Chow 1995e3d790 chore(claude-permissions-optimizer)!: remove skill (#578) 2026-04-16 16:46:29 -07:00
Kieran Klaassen 070092d997 feat(ce-polish-beta): human-in-the-loop polish phase between /ce:review and merge (#568)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-16 17:55:10 -05:00
Trevin Chow 3d96c0f074 fix(ce-plan, ce-brainstorm): reliable interactive handoff menus (#575) 2026-04-16 12:04:19 -07:00