Feat/debug-agent#14214
Conversation
Implements DebugPhase namespace with typed state machine for guiding debug sessions through PLANNING -> CODING -> BREAKPOINTING -> DEBUGGING -> EXPLAINING -> CONFIRMING phases. Includes phase-specific tool allowlists, in-memory session state storage, and transition validation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Make VALID_TRANSITIONS and PHASE_TOOLS private to the namespace - Use Readonly types to prevent accidental mutation - Return copies from toolsForPhase() to protect internal arrays - Add documentation comment on in-memory store lifecycle Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Register TransitionPhaseTool in tool registry - Filter tools by debug phase in resolveTools() - Add phase safety net in session processor tool-call handler - Fix transition-phase.ts metadata types for typecheck compatibility Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Defines the debug agent as a primary agent with: - Build/fix/explain modes - Phase workflow instructions (PLANNING through CONFIRMING) - Rules for step-by-step debugging discipline - TS/JS-specific breakpoint guidance - Model: anthropic/claude-sonnet-4-6, temp: 0.2, 40 steps Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Update .gitignore to include VS Code settings while preserving extensions.json - Add debugger configuration to opencode.jsonc for local debugging - Revise debug.md to improve clarity on debugging steps and modes - Introduce VS Code extension recommendations for improved development experience - Create launch.json for Python debugging setup - Refactor debug-phase.ts to align tool names with the new debugger commands - Update tests to reflect changes in tool names and ensure consistency Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
|
The following comment was made by an LLM, it may be inaccurate: One potential related PR was found: PR #8994 - feat(core): Debug mode This PR appears to be related as it also addresses debugging functionality. You may want to check if it covers similar ground regarding debug mode implementation or if it's already been merged/closed. All other results were either the current PR (#14214) itself or unrelated features. |
Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com
Issue for this PR
Closes #
Type of change
What does this PR do?
Please provide a description of the issue, the changes you made to fix it, and why they work. It is expected that you understand why your changes work and if you do not understand why at least say as much so a maintainer knows how much to value the PR.
If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!
How did you verify your code works?
Screenshots / recordings
If this is a UI change, please include a screenshot or recording.
Checklist
If you do not follow this template your PR will be automatically rejected.