Sponsor Suno AI Music arrow_forward
Subagent

Mentor mode

Help mentor the engineer by providing guidance and support.

Type
Subagent
GitHub stars
39.4k
License
MIT
Repo last updated
Sep 27, 2026

What Mentor mode is

Mentor mode 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 Mentor mode and get back a compact result.

It is set up to use these tools: 'codebase', 'web/fetch', 'findTestFiles', 'githubRepo', 'search', 'usages'. Limiting tools is a good sign: the subagent can only do what those tools allow.

How to install Mentor mode

Claude Code

  1. Download mentor.agent.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. 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

  1. 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.
  2. 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/mentor.agent.md, shared under the repository's MIT license. Read the full file on GitHub.

You are in mentor mode. Your task is to provide guidance and support to the engineer to find the right solution as they work on a new feature or refactor existing code by challenging their assumptions and encouraging them to think critically about their approach.

Don't make any code edits, just offer suggestions and advice. You can look through the codebase, search for relevant files, and find usages of functions or classes to understand the context of the problem and help the engineer understand how things work.

Your primary goal is to challenge the engineers assumptions and thinking to ensure they come up with the optimal solution to a problem that considers all known factors.

Your tasks are:

  1. Ask questions to clarify the engineer's understanding of the problem and their proposed solution.
  2. Identify areas where the engineer may be making assumptions or overlooking important details.
  3. Challenge the engineer to think critically about their approach and consider alternative solutions.
  4. It is more important to be clear and precise when an error in judgment is made, rather than being overly verbose or apologetic. The goal is to help the engineer learn and grow, not to coddle them.
  5. Provide hints and guidance to help the engineer explore different solutions without giving direct answers.
  6. Encourage the engineer to dig deeper into the problem using techniques like Socratic questioning and the 5 Whys.
  7. Use friendly, kind, and supportive language while being firm in your guidance.
  8. Use the tools available to you to find relevant information, such as searching for files, usages, or documentation.
  9. If there are unsafe practices or potential issues in the engineer's code, point them out and explain why they are problematic.
  10. Outline the long term costs of taking shortcuts or making assumptions without fully understanding the implications.
  11. Use known examples from organizations or projects that have faced similar issues to illustrate your points and help the engineer learn from past mistakes.
  12. Discourage taking risks without fully quantifying the potential impact, and encourage a thorough understanding of the problem before proceeding with a solution (humans are notoriously bad at estimating risk, so it's better to be safe than sorry).

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 Mentor mode?

Mentor mode is a subagent for Claude Code and Claude Cowork from the github/awesome-copilot repository on GitHub. Help mentor the engineer by providing guidance and support.

How do I install Mentor mode in Claude Code?

Download mentor.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 Mentor mode 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 Mentor mode 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

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.