Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(ce-review): add headless mode for programmatic callers#430

Merged
tmchow merged 7 commits into
mainfrom
feat/ce-review-headless-mode
Mar 28, 2026
Merged

feat(ce-review): add headless mode for programmatic callers#430
tmchow merged 7 commits into
mainfrom
feat/ce-review-headless-mode

Conversation

@tmchow
Copy link
Copy Markdown
Collaborator

@tmchow tmchow commented Mar 28, 2026

Summary

  • Add mode:headless as a fourth explicit mode to ce:review for skill-to-skill invocation
  • Headless applies safe_auto fixes in a single pass, returns structured text output with findings envelope, writes run artifacts, and emits "Review complete" signal
  • No interactive prompts, no todos, no checkout switching, no commit/push/PR
  • Follows document-review's headless pattern (feat(document-review): add headless mode for programmatic callers #425) adapted for ce:review's richer findings schema

Changes

  • SKILL.md: Headless token in argument parsing, mode detection table, headless rules section, Stage 1 checkout/untracked guards, Stage 2 intent handling, headless output envelope format, post-review flow (Steps 2/4/5)
  • review-output-template.md: Headless mode format documentation
  • review-skill-contract.test.ts: 13 new assertions for headless contract invariants
  • docs/brainstorms/: Requirements doc from brainstorm session
  • docs/plans/: Implementation plan (completed)

Also: added mode:headless to argument-hint in both ce-review and document-review for human discoverability, and reordered document-review's argument-hint to modes-first ([mode:headless] [path]) for consistency with ce-review's [flags] [target] convention.

Test plan

  • bun test tests/review-skill-contract.test.ts — 9 tests, 112 assertions pass
  • bun test — 498 pass, 0 fail
  • Manual: invoke mode:headless from another skill and verify structured output

🤖 Generated with Claude Opus 4.6 via Claude Code + Compound Engineering v2.58.1

tmchow and others added 3 commits March 28, 2026 15:33
Add mode:headless as a fourth explicit mode for skill-to-skill invocation.
Headless applies safe_auto fixes in a single pass, returns structured text
output with the full findings envelope, writes run artifacts, and emits
"Review complete" as a terminal signal. No interactive prompts, no todos,
no checkout switching.

Follows the pattern established by document-review's headless mode (#425),
adapted for ce:review's richer findings schema (autofix_class, owner,
requires_verification, evidence[], pre_existing).

🤖 Generated with Claude Opus 4.6 via [Claude Code](https://claude.com/claude-code) + Compound Engineering v2.58.1

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
- Add "Review complete" terminal signal to headless output template
- Add cross-platform question tool names to headless rules
- Add CE agent sections to headless envelope (Learnings, Agent-Native,
  Schema Drift, Deployment Notes)
- Generalize conflicting mode flags error for all mode combinations
- Add contract test assertions for no-commit/push/PR and single-pass

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d66799a99e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread plugins/compound-engineering/skills/ce-review/SKILL.md
Comment thread plugins/compound-engineering/skills/ce-review/SKILL.md Outdated
tmchow and others added 3 commits March 28, 2026 15:46
Add severity and why_it_matters to pre-existing findings in the headless
output so programmatic callers can parse them consistently.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Advertise headless mode in the argument-hint frontmatter for both skills
so humans reading the skill definition know the mode exists and can think
about utility-skill usage patterns.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…onsistency

Both ce-review and document-review now use modes-first ordering in
argument-hint, matching the standard [flags] [target] convention.
Updated the two example invocations in Phase 0 to match.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cd847abbbb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread plugins/compound-engineering/skills/ce-review/SKILL.md Outdated
Comment thread plugins/compound-engineering/skills/ce-review/SKILL.md
Comment thread plugins/compound-engineering/skills/ce-review/SKILL.md Outdated
- Use headless error envelope when mode:headless is a conflicting flag
- Add Coverage section to headless output envelope (suppressed counts,
  untracked file exclusions, failed reviewers)
- Add routing metadata to pre-existing findings in headless envelope

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@tmchow tmchow merged commit 3706a97 into main Mar 28, 2026
2 checks passed
@github-actions github-actions Bot mentioned this pull request Mar 28, 2026
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