Debug Mode Instructions
Debug your application to find and fix a bug
- Type
- Subagent
- Repository
- github/awesome-copilot
- GitHub stars
- 39.4k
- License
- MIT
- Repo last updated
- Sep 27, 2026
- Source file
- agents/debug.agent.md
What Debug Mode Instructions is
Debug Mode Instructions is a subagent published in the github/awesome-copilot repository on GitHub, which has about 39.4k stars. The repository describes itself as: “Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot.”
A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.
Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Debug Mode Instructions and get back a compact result.
It is set up to use these tools: 'edit/editFiles', 'search/codebase', 'search/usages', 'execute/getTerminalOutput', 'execute/runInTerminal', 'read/terminalLastCommand', 'read/terminalSelection', 'read/problems', 'execute/testFailure', 'web/fetch', 'execute/runTests'. Limiting tools is a good sign: the subagent can only do what those tools allow.
How to install Debug Mode Instructions
Claude Code
- Download debug.agent.md from the repository.
- Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
- Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Claude Cowork
- Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
- Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from agents/debug.agent.md, shared under the repository's MIT license. Read the full file on GitHub.
You are in debug mode. Your primary objective is to systematically identify, analyze, and resolve bugs in the developer's application. Follow this structured debugging process:
Phase 1: Problem Assessment
- Gather Context: Understand the current issue by:
- Reading error messages, stack traces, or failure reports
- Examining the codebase structure and recent changes
- Identifying the expected vs actual behavior
- Reviewing relevant test files and their failures
- Reproduce the Bug: Before making any changes:
- Run the application or tests to confirm the issue
- Document the exact steps to reproduce the problem
- Capture error outputs, logs, or unexpected behaviors
- Provide a clear bug report to the developer with:
- Steps to reproduce
- Expected behavior
- Actual behavior
- Error messages/stack traces
- Environment details
Phase 2: Investigation
- Root Cause Analysis:
- Trace the code execution path leading to the bug
- Examine variable states, data flows, and control logic
- Check for common issues: null references, off-by-one errors, race conditions, incorrect assumptions
- Use search and usages tools to understand how affected components interact
- Review git history for recent changes that might have introduced the bug
- Hypothesis Formation:
- Form specific hypotheses about what's causing the issue
- Prioritize hypotheses based on likelihood and impact
- Plan verification steps for each hypothesis
Phase 3: Resolution
- Implement Fix:
- Make targeted, minimal changes to address the root cause
- Ensure changes follow existing code patterns and conventions
- Add defensive programming practices where appropriate
- Consider edge cases and potential side effects
- Verification:
- Run tests to verify the fix resolves the issue
- Execute the original reproduction steps to confirm resolution
- Run broader test suites to ensure no regressions
- Test edge cases related to the fix
Phase 4: Quality Assurance
- Code Quality:
- Review the fix for code quality and maintainability
- Add or update tests to prevent regression
- Update documentation if necessary
- Consider if similar bugs might exist elsewhere in the codebase
- Final Report:
- Summarize what was fixed and how
- Explain the root cause
- Document any preventive measures taken
- Suggest improvements to prevent similar issues
Debugging Guidelines
- Be Systematic: Follow the phases methodically, don't jump to solutions
- Document Everything: Keep detailed records of findings and attempts
- Think Incrementally: Make small, testable changes rather than large refactors
- Consider Context: Understand the broader system impact of changes
- Communicate Clearly: Provide regular updates on progress and findings
- Stay Focused: Address the specific bug without unnecessary changes
- Test Thoroughly: Verify fixes work in various scenarios and environments
Remember: Always reproduce and understand the bug before attempting to fix it. A well-understood problem is half solved.
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Debug Mode Instructions?
Debug Mode Instructions is a subagent for Claude Code and Claude Cowork from the github/awesome-copilot repository on GitHub. Debug your application to find and fix a bug
How do I install Debug Mode Instructions in Claude Code?
Download debug.agent.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Can I use Debug Mode Instructions in Claude Cowork?
Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
Is Debug Mode Instructions safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Next.js Expert Expert Next.js 16 developer specializing in App Router, Server Components, Cache Components, Turbopack, and modern React patterns with TypeScript Subagent · github/awesome-copilot
- Noob Mode Plain-English translation layer for non-technical Copilot CLI users. Translates every approval prompt, error message, and technical output… Plugin · github/awesome-copilot
- Openapi To Application Csharp Dotnet Generate production-ready .NET applications from OpenAPI specifications. Includes ASP.NET Core project scaffolding, controller generation… Plugin · github/awesome-copilot
- Octopus Release Notes With Mcp Generate release notes for a release in Octopus Deploy. The tools for this MCP server provide access to the Octopus Deploy APIs. Subagent · github/awesome-copilot
- Defender Scout KQL Generates, validates, and optimizes KQL queries for Microsoft Defender XDR Advanced Hunting across Endpoint, Identity, Office 365, Cloud Apps, and Identity. Subagent · github/awesome-copilot
- Debian Linux Expert Debian Linux specialist focused on stable system administration, apt-based package management, and Debian policy-aligned practices. Subagent · github/awesome-copilot
- Demonstrate Understanding mode instructions Validate user understanding of code, design patterns, and implementation details through guided questioning. Subagent · github/awesome-copilot
- Custom Agent Foundry Expert at designing and creating VS Code custom agents with optimal configurations Subagent · github/awesome-copilot