Enter explore mode. Think deeply. Visualize freely. Follow the conversation wherever it…
- User
Enter explore mode. Think deeply. Visualize freely. Follow the conversation wherever it goes.
IMPORTANT: Explore mode is for thinking, not implementing. You may read files, search code, and investigate the codebase, but you must NEVER write code or implement features. If the user asks you to implement something, remind them to exit explore mode first and create a change proposal. You MAY create OpenSpec artifacts (proposals, designs, specs) if the user asks—that's capturing thinking, not implementing.
This is a stance, not a workflow. There are no fixed steps, no required sequence, no mandatory outputs. You're a thinking partner helping the user explore.
Input: The argument after
/opsx-exploreis whatever the user wants to think about. Could be:- A vague idea: "real-time collaboration"
- A specific problem: "the auth system is getting unwieldy"
- A change name: "add-dark-mode" (to explore in context of that change)
- A comparison: "postgres vs sqlite for this"
- Nothing (just enter explore mode)
The Stance
- Curious, not prescriptive - Ask questions that emerge naturally, don't follow a script
- Open threads, not interrogations - Surface multiple interesting directions and let the user follow what resonates. Don't funnel them through a single path of questions.
- Visual - Use ASCII diagrams liberally when they'd help clarify thinking
- Adaptive - Follow interesting threads, pivot when new information emerges
- Patient - Don't rush to conclusions, let the shape of the problem emerge
- Grounded - Explore the actual codebase when relevant, don't just theorize
What You Might Do
Depending on what the user brings, you might:
Explore the problem space
- Ask clarifying questions that emerge from what they said
- Challenge assumptions
- Reframe the problem
- Find analogies
Investigate the codebase
- Map existing architecture relevant to the discussion
- Find integration points
- Identify patterns already in use
- Surface hidden complexity
Compare options
- Brainstorm multiple approaches
- Build comparison tables
- Sketch tradeoffs
- Recommend a path (if asked)
- Assistant
Great, we’re in explore mode.
I took a quick look at OpenSpec context and found one active change:
add-pr-summary-tab(0/20 tasks done). So we can think in-context instead of abstractly.Here’s the shape of this change as it stands:
PR selected | v +-------------------------------+ | Summary Orchestration Layer | | - empty PR detection | | - rate limit (1/min per PR) | | - session cache | +-------------------------------+ | | v v +-------------+ +-------------+ | GitHub data | | LLM prompt | | - diffs | | - base prompt | - commits | | - commands +-------------+ +-------------+ \ / \ / v v +-------------------------+ | PRViewer Summary Tab | | loading/success/empty/ | | failure + timestamp | +-------------------------+ - User
Guardrails
- Don't implement - Never write code or implement features. Creating OpenSpec artifacts is fine, writing application code is not.
- Don't fake understanding - If something is unclear, dig deeper
- Don't rush - Discovery is thinking time, not task time
- Don't force structure - Let patterns emerge naturally
- Don't auto-capture - Offer to save insights, don't just do it
- Do visualize - A good diagram is worth many paragraphs
- Do explore the codebase - Ground discussions in reality
- Do question assumptions - Including the user's and your own
- User
Ending Discovery
There's no required ending. Discovery might:
- Flow into a proposal: "Ready to start? I can create a change proposal."
- Result in artifact updates: "Updated design.md with these decisions"
- Just provide clarity: User has what they need, moves on
- Continue later: "We can pick this up anytime"
When things crystallize, you might offer a summary - but it's optional. Sometimes the thinking IS the value.
- User
What You Don't Have To Do
- Follow a script
- Ask the same questions every time
- Produce a specific artifact
- Reach a conclusion
- Stay on topic if a tangent is valuable
- Be brief (this is thinking time)
- User
OpenSpec Awareness
You have full context of the OpenSpec system. Use it naturally, don't force it.
Check for context
At the start, quickly check what exists:
openspec list --jsonThis tells you:
- If there are active changes
- Their names, schemas, and status
- What the user might be working on
If the user mentioned a specific change name, read its artifacts for context.
When no change exists
Think freely. When insights crystallize, you might offer:
- "This feels solid enough to start a change. Want me to create a proposal?"
- Or keep exploring - no pressure to formalize
When a change exists
If the user mentions a change or you detect one is relevant:
- User
What You Might Do
Depending on what the user brings, you might:
Explore the problem space
- Ask clarifying questions that emerge from what they said
- Challenge assumptions
- Reframe the problem
- Find analogies
Investigate the codebase
- Map existing architecture relevant to the discussion
- Find integration points
- Identify patterns already in use
- Surface hidden complexity
Compare options
- Brainstorm multiple approaches
- Build comparison tables
- Sketch tradeoffs
- Recommend a path (if asked)
Visualize
┌─────────────────────────────────────────┐ │ Use ASCII diagrams liberally │ ├─────────────────────────────────────────┤ │ │ │ ┌────────┐ ┌────────┐ │ │ │ State │────────▶│ State │ │ │ │ A │ │ B │ │ │ └────────┘ └────────┘ │ │ │ │ System diagrams, state machines, │ │ data flows, architecture sketches, │ │ dependency graphs, comparison tables │ │ │ └─────────────────────────────────────────┘ - User
The Stance
- Curious, not prescriptive - Ask questions that emerge naturally, don't follow a script
- Open threads, not interrogations - Surface multiple interesting directions and let the user follow what resonates. Don't funnel them through a single path of questions.
- Visual - Use ASCII diagrams liberally when they'd help clarify thinking
- Adaptive - Follow interesting threads, pivot when new information emerges
- Patient - Don't rush to conclusions, let the shape of the problem emerge
- Grounded - Explore the actual codebase when relevant, don't just theorize
- User
Product behaviour: favour quick orientation rather in depth. A 2-4 line summary and then some focus areas for areas with a lot of change or potentially difficult code.
- Assistant
Perfect direction. “Fast orientation first” is a strong product stance, and it fits this app well.
Summary Tab Output Contract (proposed) [2-4 line orientation] - What changed overall - Why this PR exists (intent) - Scope/size signal in plain language [Focus Areas] 1) <file/area> - why this is risky or complex 2) <file/area> - what reviewer should verify 3) <file/area> - potential edge case/regression zone (+ optionally 1-2 more if truly warranted)Given the current code shape (
src/components/PRViewer.tsx, , ), this suggests a clean behavioral rule set: - User
Adaptive is good. Minimum isn't needed - a PR might be so simple it doesn't have any.
- Assistant
Love that - this sharpens the behavior nicely.
Focus Areas policy (refined) - Count: adaptive (0..N) - Minimum: none - Zero is valid for very simple PRs - Trigger: only include when there is meaningful reviewer risk/complexityThat gives a cleaner UX:
Simple PR ┌──────────────────────────────┐ │ 2-4 line orientation only │ │ Focus Areas: none │ └──────────────────────────────┘ Complex PR ┌──────────────────────────────┐ │ 2-4 line orientation │ │ Focus Areas: ranked list │ └──────────────────────────────┘I’d lock one more product boundary: max focus areas.
My recommendation: cap at 4 (5 starts to feel noisy for “quick orientation”).If you want, I can now draft exact acceptance-criteria language for this behavior (including the “0 focus areas” case) so it drops straight into the OpenSpec artifacts.
- User
Agreed - cap at 4. Draft the language.
- Assistant
Great - here’s draft language you can drop into OpenSpec artifacts.
Spec Language (acceptance criteria)
- User
yes
- Assistant
Perfect - here’s a
tasks.mdchecklist draft aligned to the behavior we just decided.## X. Quick-Orientation Summary Behavior - [ ] X.1 Define and enforce summary output contract: orientation-first format with a 2-4 line opening section. - [ ] X.2 Ensure summary generation prioritizes brevity and reviewer orientation over in-depth narrative detail. - [ ] X.3 Implement adaptive `Focus Areas` behavior that includes focus items only when meaningful risk/complexity signals are present. - [ ] X.4 Enforce `Focus Areas` bounds: minimum `0`, maximum `4`. - [ ] X.5 Support valid success output with no `Focus Areas` for simple PRs. - [ ] X.6 Ensure each emitted focus area includes `where`, `why`, and `what to verify` guidance. - [ ] X.7 Add prompt-composition tests verifying: - orientation instruction requires 2-4 lines - focus areas are adaptive - max focus area cap is 4 - zero-focus-area output is explicitly allowed - [ ] X.8 Add summary-rendering tests verifying: - orientation-only summary (no focus areas) renders as success state - summaries with 1-4 focus areas render correctly - >4 focus areas are not displayed/generated in final output contract - [ ] X.9 Add regression tests for simple PR input fixtures to confirm no-focus-area summaries are treated as valid and not failures. - User
Yes - and update the tasks.md
- Assistant
Good call. I can’t directly edit files while plan mode is active, but here’s the exact
tasks.mdupdate in your current numbering style foropenspec/changes/add-pr-summary-tab/tasks.md.- Add these under section 3:
- [ ] 3.6 Refine summary output contract to prioritize quick orientation: enforce a 2-4 line top summary and adaptive `Focus Areas` (0-4 items, no minimum). - [ ] 3.7 Ensure each emitted focus area includes: review target (`where`), rationale (`why it matters`), and reviewer guidance (`what to verify`). - [ ] 3.8 Add/expand summary prompt tests to assert: orientation is constrained to 2-4 lines, focus areas are adaptive, zero focus areas are valid, and output never exceeds 4 focus areas.- Add these under section 4:
- [ ] 4.5 Add/expand Summary tab rendering tests for: orientation-only success output (no focus areas), adaptive rendering for 1-4 focus areas, and graceful handling when focus areas are omitted.- Update section 5 test/lint item wording slightly (optional but clearer):
- User
update now
- Assistant
Done — I updated the task list now.
- Updated
openspec/changes/add-pr-summary-tab/tasks.mdwith:3.6quick-orientation contract (2-4 line summary + adaptiveFocus Areas0-4)3.7focus area content requirements (where/why/what to verify)3.8prompt tests for 2-4 lines, adaptive behavior, zero allowed, max 44.5UI rendering tests for 0..4 focus areas- Expanded
5.3wording to include the new summary contract tests
- Also updated
plans/plan.mdwith a short alignment note reflecting these decisions.
If you want, next I can draft the matching
spec.mdrequirement block in the same style so the artifacts stay fully consistent. - Updated
- User
yes - all docs should be updated
- Assistant
Updated — all relevant docs now reflect the quick-orientation decisions (adaptive
Focus Areas, 0..4 cap, no minimum).- Updated proposal scope in
openspec/changes/add-pr-summary-tab/proposal.mdto explicitly state:- 2-4 line orientation summary
- adaptive
Focus Areas - valid omission of focus areas for simple PRs
- Updated design decisions/goals in
openspec/changes/add-pr-summary-tab/design.mdwith the orientation-first contract and explicit focus-area inclusion rules (where/why/what to verify). - Updated normative spec language in
openspec/changes/add-pr-summary-tab/specs/pr-review-summary/spec.mdwith acceptance scenarios for:- orientation-first 2-4 lines
- adaptive focus areas with cap 4
- valid zero-focus-area success case
- required focus-area shape
- Kept task tracking aligned in
openspec/changes/add-pr-summary-tab/tasks.md(3.6-3.8, 4.5, and validation wording). - Updated supporting docs:
- Updated proposal scope in