Skip to content

feat: Codex second opinion in /office-hours (v0.11.4.0)#353

Merged
garrytan merged 4 commits intomainfrom
garrytan/codex-in-office-hours
Mar 23, 2026
Merged

feat: Codex second opinion in /office-hours (v0.11.4.0)#353
garrytan merged 4 commits intomainfrom
garrytan/codex-in-office-hours

Conversation

@garrytan
Copy link
Owner

Summary

  • Phase 3.5 Cross-Model Second Opinion in /office-hours — opt-in Codex cold read after premise challenge, before alternatives generation
  • Cross-Model Perspective section in design doc templates (both Startup and Builder modes)
  • Founder signal for defending premises with reasoning against cross-model challenge
  • Phase 4 prose nudge to use Codex's prototype idea as creative/lateral approach starting point

How 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:

  • Startup: steelman, most revealing answer, premise challenge, 48-hour prototype
  • Builder: coolest unexplored version, excitement signal, 50%-there OSS tool, weekend build

Test Coverage

All new code paths have test coverage:

  • 7 new tests for CODEX_SECOND_OPINION resolver
  • Phase 3.5 presence, codex exec invocation, opt-in text, synthesis, premise revision, error handling, codex host stripping
  • Tests: 544 pass, 0 fail (2,476 assertions)

Pre-Landing Review

No issues found.

Test plan

  • All skill validation tests pass (544 tests, 0 failures)
  • bun run gen:skill-docs regenerates successfully
  • Phase 3.5 appears in claude host, stripped from codex host
  • Codex plan review: 9 issues raised, 3 real, all resolved (shell injection, consent text, founder signal logic)

🤖 Generated with Claude Code

garrytan and others added 4 commits March 22, 2026 20:50
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>
@garrytan garrytan merged commit 5aee6db into main Mar 23, 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