From 1e94b99f2c435f9c281d7b5240019bf3e1bd0e84 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 28 Jun 2026 21:07:21 +0000 Subject: [PATCH] docs(learning-hub): add /every, /loop, /after scheduling commands Document the /every (and its /loop alias added in v1.0.64) and /after scheduling commands in copilot-configuration-basics.md. These commands allow scheduling recurring prompts at fixed intervals or one-shot delayed prompts within a CLI session, but were missing from the Learning Hub reference. - copilot-configuration-basics: add /every, /loop, /after section in CLI Session Commands with examples, duration syntax, and a note that these are experimental features (v1.0.62+, /loop alias v1.0.64+) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../learning-hub/copilot-configuration-basics.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/website/src/content/docs/learning-hub/copilot-configuration-basics.md b/website/src/content/docs/learning-hub/copilot-configuration-basics.md index 1ceadc805..ea1d47c0a 100644 --- a/website/src/content/docs/learning-hub/copilot-configuration-basics.md +++ b/website/src/content/docs/learning-hub/copilot-configuration-basics.md @@ -3,7 +3,7 @@ title: 'Copilot Configuration Basics' description: 'Learn how to configure GitHub Copilot at user, workspace, and repository levels to optimize your AI-assisted development experience.' authors: - GitHub Copilot Learning Hub Team -lastUpdated: 2026-06-25 +lastUpdated: 2026-06-28 estimatedReadingTime: '10 minutes' tags: - configuration @@ -601,6 +601,18 @@ The `/autopilot` command (v1.0.45+) is a quick in-session toggle that switches b Use `/autopilot` when you want to flip between supervised and unsupervised operation mid-session without typing out the full `/allow-all on` or `/allow-all off` commands. +The `/every` command (also aliased `/loop` since v1.0.64) schedules a recurring prompt at a fixed interval within the current session. The `/after` command runs a prompt once after a specified delay: + +``` +/every 1h Summarize what I've accomplished and suggest next steps +/loop 30m Check if any tests are failing and fix them # /loop is an alias for /every (v1.0.64+) +/after 2h /compact # compact the session after 2 hours +``` + +Both commands accept human-readable durations (e.g., `30m`, `1h`, `2h30m`) and can invoke other slash commands as their payload. For example, `/every 1d /chronicle standup` triggers a standup report once a day. Use these for long-running sessions where you want Copilot to check in, run status reports, or manage context automatically. + +> **Experimental**: `/every`, `/loop`, and `/after` are in the experimental feature set. They appear in the `/experimental` slash command list — enable experimental features if they are not already visible in your current session. + > **Read-only `gh` CLI commands (v1.0.46+)**: Read-only `gh` commands — such as `gh issue list`, `gh pr view`, `gh run status`, and other commands that don't write to GitHub — are **automatically approved** without a permission prompt. Only commands that write to GitHub (like creating issues, merging PRs) still require explicit approval. This reduces friction during exploratory sessions where you frequently check issue or PR status. The `--effort` flag (shorthand for `--reasoning-effort`) controls how much computational reasoning the model applies to a request: