Skip to content

Feat/debug-agent#14214

Closed
devinat1 wants to merge 6 commits into
anomalyco:devfrom
devinat1:feat/debug-agent
Closed

Feat/debug-agent#14214
devinat1 wants to merge 6 commits into
anomalyco:devfrom
devinat1:feat/debug-agent

Conversation

@devinat1

Copy link
Copy Markdown
  • 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

Issue for this PR

Closes #

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

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

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

devinat1 and others added 6 commits February 18, 2026 14:53
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>
@github-actions

Copy link
Copy Markdown
Contributor

Hey! Your PR title Feat/debug-agent doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Feb 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • No "Type of change" checkbox is checked. Please select at least one.
  • No issue referenced. Please add Closes #<number> linking to the relevant issue.
  • "How did you verify your code works?" section is empty. Please explain how you tested.
  • Not all checklist items are checked. Please confirm you have tested locally and have not included unrelated changes.

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.

@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

One potential related PR was found:

PR #8994 - feat(core): Debug mode
#8994

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.

@devinat1 devinat1 closed this Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs:compliance This means the issue will auto-close after 2 hours. needs:title

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant