feat: Codex second opinion in /office-hours (v0.11.4.0)#353
Merged
Conversation
New generateCodexSecondOpinion resolver that adds an opt-in cross-model cold read between premise challenge and alternatives generation. Codex independently reviews the session's problem statement, answers, and premises without seeing Claude's reasoning. Includes: temp file prompt assembly (shell injection safe), two mode- specific prompt variants (startup/builder), cross-model synthesis, premise revision check, and 7 unit tests.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/office-hours— opt-in Codex cold read after premise challenge, before alternatives generationHow it works
After Phase 3 (Premise Challenge), if Codex CLI is installed, Claude offers a second opinion. Codex gets a structured summary of the session (problem, Q&A answers, landscape findings, premises) written to a temp file (shell injection safe). Codex independently reviews without seeing Claude's reasoning — a true cold read.
Two mode-specific prompts:
Test Coverage
All new code paths have test coverage:
CODEX_SECOND_OPINIONresolverPre-Landing Review
No issues found.
Test plan
bun run gen:skill-docsregenerates successfully🤖 Generated with Claude Code