Skip to content

Evaluate: Should /debug command have dedicated sub-agent? #11

@dean0x

Description

@dean0x

Context

Currently /debug is a 227-line inline command without a dedicated sub-agent. Other commands like /catch-up (29 lines) and /commit (28 lines) delegate to sub-agents that handle the heavy lifting.

Current State

Command: src/claude/commands/devflow/debug.md (227 lines)

  • Full inline workflow implementation
  • Uses: Bash, Read, Write, Edit, Grep, Glob, TodoWrite
  • Handles systematic debugging with issue tracking

No Agent: No corresponding src/claude/agents/devflow/debug.md

Question

Should we create a dedicated debug sub-agent to:

  1. Reduce token usage in command execution
  2. Separate concerns (command = UX, agent = implementation)
  3. Follow pattern used by catch-up, commit, research commands

Trade-offs

Pros of Creating Agent:

  • Consistent pattern with other commands
  • Lower token cost per invocation
  • Easier to maintain debugging logic separately
  • Agent could be reused outside slash command context

Cons of Creating Agent:

  • Debug workflow may need interactive user input (like /release)
  • Additional file/complexity to maintain
  • Current inline approach works fine

Decision Needed

Should /debug follow the simple wrapper pattern (launch agent) or keep inline workflow?

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions