Skip to content

[bot] Add /worktree, /every, /after, model aliases, and agent session-scope note#169

Merged
DanWahlin merged 2 commits into
mainfrom
update/copilot-cli-june-2026-7678b7474fb75d47
Jun 24, 2026
Merged

[bot] Add /worktree, /every, /after, model aliases, and agent session-scope note#169
DanWahlin merged 2 commits into
mainfrom
update/copilot-cli-june-2026-7678b7474fb75d47

Conversation

@DanWahlin

Copy link
Copy Markdown
Collaborator

What's new in the Copilot CLI (June 2026)

This PR updates course chapters 01 and 04 based on Copilot CLI releases from the past 7 days (v1.0.63 stable + v1.0.64-x pre-releases).


New features found

Feature Version Beginner-relevant?
/worktree command — create a git worktree and switch into it v1.0.61 ✅ Yes
/every, /after scheduling commands; /loop alias v1.0.61–v1.0.62 ✅ Yes
Model family aliases (opus, sonnet, haiku, gpt, gemini) v1.0.64-1 (pre-release) ✅ Yes
Agent mode is now tracked per session (no longer carries over) v1.0.63 ✅ Yes

Sections updated

Chapter 01 — Setup and First Steps (01-setup-and-first-steps/README.md)

  • Added /worktree [name] to the Code commands table with a plain-language description
  • Added /every <interval> <prompt> and /after <time> <prompt> (plus the /loop alias) to the Session commands table with examples
  • Added a tip to the Switching Models section about model family shortcut aliases (opus, sonnet, haiku, gpt, gemini)

Chapter 04 — Agents and Custom Instructions (04-agents-custom-instructions/README.md)

  • Added a tip note next to the existing "Switching agents" callout clarifying that agent mode is session-scoped — it resets on /new, /clear, or a fresh terminal. This prevents a common beginner confusion where they expect the previous session's agent to still be active.

Source announcements

Generated by Course Updater · ● 1.5M ·

…pe note

- Add /every, /after, /loop commands to Session table in Ch01 (v1.0.61+)
- Add /worktree command to Code table in Ch01 (v1.0.61)
- Add model family aliases tip (opus/sonnet/haiku/gpt/gemini) in Ch01 (v1.0.64-1)
- Add agent mode session-scoped note to Ch04 (v1.0.63)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
GitHub Advanced Security started work on behalf of DanWahlin June 24, 2026 17:23 View session
GitHub Advanced Security finished work on behalf of DanWahlin June 24, 2026 17:23
@DanWahlin DanWahlin marked this pull request as ready for review June 24, 2026 17:24
Copilot AI review requested due to automatic review settings June 24, 2026 17:24
@DanWahlin DanWahlin merged commit c1f58df into main Jun 24, 2026
6 of 7 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates beginner-facing course documentation to reflect recent GitHub Copilot CLI changes around session scheduling commands, model selection shortcuts, and agent/session behavior.

Changes:

  • Adds /every and /after scheduling commands (and /loop alias) to the Chapter 01 Session commands table.
  • Adds a “model family shortcuts” tip (e.g., opus, sonnet, haiku, gpt, gemini) to Chapter 01’s model switching section.
  • Adds a clarification note in Chapter 04 about agent behavior across sessions.
Show a summary per file
File Description
01-setup-and-first-steps/README.md Documents new scheduling commands and model alias shortcuts in the getting-started chapter.
04-agents-custom-instructions/README.md Adds a note clarifying agent/session behavior to reduce beginner confusion.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 3

Comment on lines +462 to +463
| `/every <interval> <prompt>` | Schedule a prompt to run on a recurring interval (e.g., `/every 1h summarize new commits`). Use natural language for the interval. `/loop` is an alias for `/every`. |
| `/after <time> <prompt>` | Schedule a prompt to run once after a delay (e.g., `/after 30m run tests`). Use natural language for the time. |

> 💡 **Not sure which model to pick?** Select **`Auto`** from the model picker to let Copilot automatically choose the best available model for each session. This is a great default if you're just getting started and don't want to think about model selection.

> 💡 **Model family shortcuts**: You can also type a short family alias — like `opus`, `sonnet`, `haiku`, `gpt`, or `gemini` — directly in the `/model` picker instead of scrolling through the full list. Copilot will pick the best available model in that family for you.

> 💡 **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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants