diff --git a/website/src/content/docs/learning-hub/cli-for-beginners/04-agents-and-custom-instructions.md b/website/src/content/docs/learning-hub/cli-for-beginners/04-agents-and-custom-instructions.md index 088b120c1..f47313945 100644 --- a/website/src/content/docs/learning-hub/cli-for-beginners/04-agents-and-custom-instructions.md +++ b/website/src/content/docs/learning-hub/cli-for-beginners/04-agents-and-custom-instructions.md @@ -3,10 +3,7 @@ title: '04 ยท Create Specialized AI Assistants' description: 'Mirror the source chapter on custom agents and custom instructions for GitHub Copilot CLI.' authors: - GitHub Copilot Learning Hub Team -lastUpdated: 2026-06-19 ---- - -![Chapter 04: Agents and Custom Instructions](/images/learning-hub/copilot-cli-for-beginners/04/chapter-header.png) +lastUpdated: 2026-06-26(/images/learning-hub/copilot-cli-for-beginners/04/chapter-header.png) > **What if you could hire a Python code reviewer, testing expert, and security reviewer... all in one tool?** @@ -193,6 +190,8 @@ copilot --agent python-reviewer > ๐Ÿ’ก **Switching agents**: You can switch to a different agent at any time by using `/agent` or `--agent` again. To return to the standard Copilot CLI experience, use `/agent` and select **no agent**. +> ๐Ÿ’ก **Agent mode is session-scoped**: The agent you select applies only to the current session. When you start a new session with `/new`, `/clear`, or by opening a fresh terminal, Copilot returns to its default mode โ€” your agent selection does not carry over automatically. This means each session starts with a clean slate, which is a good habit to keep your work focused. + --- # Going Deeper with Agents