Commands

  • Agents support In-built and custom commands

Claude Code

/init # generate starter CLAUDE.md
/mcp # setup mcp server
/agents # setup sub-agent
/plan # plan mode
/tasks # see running tasks
/clear # to start fresh task
/btw # ask a quick question
/new # start a new conversation
/compact # summarize to reduce context window
/context # current state of context window
/usage # show usage
/rewind # rewind last turn and revert file changes
/plan # switches to plan mode
/model # switch model
/theme # change theme
/skills # manage skills
/plugins # manage plugins
/memory # toggle memory across sessions

Custom Commands

GitHub Copilot

/init # generate copilot instructions
/mcp # manage mcp servers
/agent # manage sub-agents
/tasks # see running tasks
/clear # abandon session and start fresh
/btw # ask a quick question
/new # start a new conversation
/compact # summarize to reduce context window
/context # current state of context window
/usage # show usage
/rewind # rewind last turn and revert file changes
/plan # create implementation plan
/model # switch model
/theme # change theme
/skills # manage skills
/plugins # manage plugins
/memory # toggle memory across sessions
/session # manage sessions
/fleet # Fleet mode
/research # perform deep research
/autopilot # toogle autopilot mode
/delegate # send to GitHub to create a PR
/pr # manage PR

Custom Commands

---
agent: 'agent'
description: 'Generate a clear code explanation with examples'
---
 
Explain the following code in a clear, beginner-friendly way:
 
Code to explain: ${input:code:Paste your code here}
Target audience: ${input:audience:Who is this explanation for? (e.g., beginners, intermediate developers, etc.)}
 
Please provide:
 
* A brief overview of what the code does
* A step-by-step breakdown of the main parts
* Explanation of any key concepts or terminology
* A simple example showing how it works
* Common use cases or when you might use this approach
 
Use clear, simple language and avoid unnecessary jargon.
  • You can invoke via custom command /explain-code
  • Copilot will ask you to input code and audience and execute the prompt