⏰ Copilot Scheduler

Schedule recurring or one-time AI prompts in VS Code.
Stable And Pre-release
Copilot Scheduler is published on two Marketplace channels with the same extension ID (yamapan.copilot-scheduler) and the same task storage.
| Channel |
What it offers |
| Stable |
Agent and model selection. Detailed model options and new legacy thinking-effort choices are not offered; saved task values are retained. |
| Pre-release |
Stable plus experimental detailed model options on supported hosts (VS Code 1.141 or later). Needs a one-time runtime-arguments setup and a full VS Code restart (see below). |
To switch channels, open this extension's details page in VS Code (the task form's channel button opens it) and choose Switch to Pre-Release Version or Switch to Release Version. Switching replaces the extension in that profile and both channels share the same saved tasks, so a separate test profile is recommended. From the command line, code --install-extension yamapan.copilot-scheduler --pre-release --force installs the Pre-release version and code --install-extension yamapan.copilot-scheduler --force returns to Stable. Saved detailed overrides are not cleared when you return to Stable; they stay read-only until you explicitly choose to inherit shared settings.
Stable mutation tools reject new explicit detailed overrides before model resolution or persistence. Echoing the same saved map with unchanged model binding is a no-op; changing its values or binding requires the Pre-release version. Unrelated edits preserve existing overrides; an explicit empty override map clears only task overrides and inherits shared settings. The Pre-release version still accepts detailed selections.
For detailed model options, the Pre-release version adds Scheduler to enable-proposed-api in argv.json at startup (setting copilotScheduler.autoEnableProposedApi, on by default). Then fully quit and restart VS Code; reloading the window is not enough. Installing the Pre-release version does not grant permission by itself, and provider-model consent is separate. Details are in Dynamic Model Options below.
📥 Install from VS Code Marketplace
Japanese / 日本語版はこちら
🎬 Demo

✨ Features
🗓️ Cron and One-Time Scheduling - Run recurring prompts with cron or dispatch a task once at a specified date and time
🤖 Agent & Model Selection - Choose from built-in agents (@workspace, @terminal) and AI models (GPT-4o, Claude Sonnet 4), including runtime quality or experimental quality variants when available
🌐 Multi-language Support - English and Japanese UI with auto-detection
📊 Sidebar TreeView - Manage all scheduled tasks with human-readable schedule summaries
🖥️ Webview GUI - Easy-to-use graphical interface for creating and editing tasks
🛠️ Copilot Chat Tools - Query, create, update, delete, enable/disable, and run scheduled tasks once from agent mode using Language Model Tools
📎 Attachments - Attach instructions, prompts, skills, or any workspace file to a task so they are sent with the prompt
In the task panel, Tab focuses the selected tab. Left/Right arrows switch tabs, Home/End select the first/last tab, and Tab moves into the selected panel. Enter/Space retain normal button activation.
⏰ Cron Expression Examples
| Expression |
Description |
0 9 * * 1-5 |
Weekdays at 9:00 AM |
0 18 * * 1-5 |
Weekdays at 6:00 PM |
0 9 * * * |
Every day at 9:00 AM |
0 9 * * 1 |
Every Monday at 9:00 AM |
*/30 * * * * |
Every 30 minutes |
0 * * * * |
Every hour |
The friendly cron builder applies your selected frequency, interval, time, weekday, or day-of-month to the cron expression as soon as you change the helper controls. The Generate button remains available as an explicit re-apply action, but you do not need to press it before saving.
For a single execution, select Run once at in the task form and choose a date and time. The task is reserved and disabled before execution to prevent another window from dispatching the same occurrence. If reservation cannot be saved, it is not dispatched. Choose Delete task (keep history) to remove it after a successful run and history save; failed, uncertain, or skipped runs remain disabled. Missed one-time schedules follow the configured catch-up/skip policy. A reserved task must be assigned a new runAt before it can be enabled again.
The friendly cron builder only offers interval choices that can be represented exactly with standard cron. Intervals such as 40 or 90 minutes are generated as multiple cron lines instead of inaccurate expressions like */40 * * * *. All generated lines belong to the same task, and the scheduler runs the task at the earliest matching next time across those lines.
Monthly friendly schedules default to days 1-28 so the task can run every month. Use a custom cron expression if you intentionally want a schedule such as the 31st that only runs in months where that day exists.
📋 Commands
| Command |
Description |
Copilot Scheduler: Create Scheduled Prompt |
Create a new task (CLI) |
Copilot Scheduler: Create Scheduled Prompt (GUI) |
Create a new task (GUI) |
Copilot Scheduler: List Scheduled Tasks |
View all tasks |
Copilot Scheduler: Edit Task |
Edit an existing task |
Copilot Scheduler: Delete Task |
Delete a task |
Copilot Scheduler: Toggle Task (Enable/Disable) |
Enable/disable a task |
Copilot Scheduler: Enable Task |
Enable a task |
Copilot Scheduler: Disable Task |
Disable a task |
Copilot Scheduler: Run Now |
Execute a task immediately |
Copilot Scheduler: Copy Prompt to Clipboard |
Copy prompt to clipboard |
Copilot Scheduler: Duplicate Task |
Duplicate a task |
Copilot Scheduler: Move Task to Current Workspace |
Move a workspace task here |
Copilot Scheduler: Open Settings |
Open extension settings |
Copilot Scheduler: Show Version |
Show extension version |
Copilot Scheduler: Show Execution History |
View recent run history, including prompt source, path, hash, resolution time, and fallback reason when available |
Copilot Scheduler: Dump Model Catalog Diagnostics |
Dump model diagnostics |
Execution history shows scheduled time, delay, attachment count, prompt source, path, hash, resolution time, and fallback reason when available. Existing-chat tasks are labeled Queued once Agent Host acknowledges that specific request (an acknowledgement of an earlier request for the same task is ignored); they do not interrupt an active turn. The chat route is labeled Dispatched; a normal Agent Host run with a completion signal is labeled Turn completed. Agent Host history also distinguishes failure, cancellation, and an unknown result, and indicates whether response text was observed. It does not store the response text. A completed turn does not prove that the requested work succeeded.
Execution warnings that offer Copy Prompt also identify the saved task and offer Open Task Settings to open that task's editor directly. Preflight warnings for missing attachments, unavailable prompt files, and unavailable skills offer the same editor action without copying an unused prompt. Repeated automatic warnings for the same preflight failure are suppressed until the failure changes or the task succeeds; a manual retry shows the action again. If another form has unsaved changes, Scheduler asks before discarding them; opening the same task preserves its current form. Opening the editor does not save changes or retry the run. If the task has since been deleted, Scheduler reports that it was not found. Unsaved prompt tests keep the copy action without a task settings button.
In Copilot Chat agent mode, use the scheduler tools with # references:
| Tool |
Description |
#scheduler_query |
Read-only query. kind=list_sessions discovers existing Copilot chats and opaque binding IDs without returning chat content or internal URIs. |
#scheduler_manage |
Create, update, delete, run, enable or disable a task using an explicit action. |
scheduler_manage accepts { "action": "create", "task": { ... } }, { "action": "update", "id": "...", "updates": { ... } }, { "action": "delete" | "run", "id": "..." }, or { "action": "enable", "id": "...", "enabled": true | false }. Update cannot change enabled. Enabling still requires first-run consent.
Breaking change: replace the old scheduler_create_task, scheduler_update_task, scheduler_delete_task, scheduler_run_task, and scheduler_set_task_enabled references in instructions and automations with scheduler_manage and the matching action. The old tool IDs are no longer registered. VS Code's saved approval for scheduler_manage may apply to all actions, including run and delete; old per-tool approvals are not transferred. Scheduler's confirmation settings and VS Code policies still apply.
For recurring tasks, prefer a /<skill-name> prompt whose skill uses disable-model-invocation: true. Create/update return skillResolution, reporting whether Scheduler found a matching skill and whether it is explicit-only. The result covers only Scheduler's scanned roots; an unmatched slash command may be a built-in command or a skill from another location. Incomplete discovery is reported as unknown, not as proof of absence. A diagnostic failure does not undo a saved task.
For a successful one-time manual run, the tool reports enabledStateChanged and taskDeleted. A completed one-time task returns oneTimeCompleted with instructions to set a new run time; no second dispatch is attempted.
For kind=history, the response includes total, returned count, hasMore, statusSemantics, and newest-first entries. status: "success" means the prompt was dispatched or accepted into a chat queue. When available, turnOutcome records the Agent Host observation (queued, completed, failed, cancelled, or unknown), and responseText records observed, not_observed, or unknown for a completed turn. modelExecution distinguishes the route, requested ID, reported ID, and reported_match, reported_mismatch, or unverified; a matching report does not verify the backend or account. An absent field means it was not recorded, including for older history. Legacy malformed timestamps are preserved or omitted without inventing audit times and are marked with executedAtInvalid / nextRunAtInvalid when applicable.
Create a one-time task by sending runAt as an ISO 8601 date-time with an explicit offset (for example, 2030-09-26T21:00:00+09:00) instead of cronExpression, and optionally afterRun: "disable" | "delete". Update accepts the same fields; to switch back to a recurring schedule, set runAt: "" and provide cronExpression. kind=list / kind=get return these settings, and kind=history retains the task name and runAt even after automatic deletion. The Webview time picker uses the machine's local timezone; tools can specify any explicit offset.
kind=list returns task metadata with a short promptPreview and promptLength instead of the prompt body, because a local or global task stores a snapshot of the whole prompt file. The write tools return the same shape in their success payloads. Use kind=get when the full prompt is needed; a preview must never be written back to a task.
kind=list_models returns the selectable model ids together with supportedReasoningEfforts, and kind=list_agents returns the selectable agent ids without exposing file paths. kind=list_skills returns the Agent Skills a task prompt can run as /<name> <arguments> (name, scope, description, argumentHint, explicitOnly) without folder paths. kind=list_sessions returns Copilot chat titles, workspace names, and opaque bindingIds; it omits chat content, internal URIs, and absolute workspace paths. To bind a task, use a returned bindingId as targetChatId; workspace-scoped tasks are accepted only when the target chat has exactly that task workspace. Agent Host revalidates the binding at dispatch and queues messages without interrupting an active turn. An unavailable or changed target blocks the run without sending it through another route. Unless overlapping runs are enabled, a pending message is coalesced per task; a result that cannot be confirmed must not be retried automatically. Bound tasks cannot use Copilot CLI. Create/update also accept model (plus optional modelReasoningEffort), agent, and the execution controls autoMode, jitterSeconds, maxExecutionsPerDay, allowedTimeStart, allowedTimeEnd, and allowOverlappingRuns. A model id that is not in the model list is rejected with the list of valid ids instead of silently falling back to the default model; passing an empty model clears the selection and returns the task to the default model. When the Language Model API is unavailable and only the built-in fallback catalog is known, the requested model is saved with a warning instead of being rejected.
Auto and internal utility model ids remain selectable but do not inherit reasoning-effort options from the model named in their metadata.
VS Code plans to remove its legacy Local harness in February 2027, not the Chat view. The default Copilot harness runs through Agent Host. The shared model selector remains relevant to Chat, the CLI, and Agent Host options.
Models registered with VS Code Chat by additional providers, including Codex Bridge, BYOK and local LLM providers, are available alongside Copilot models. The model picker groups models by provider, then offers their quality variants separately. kind=list_models returns each model's vendor; create/update accept modelVendor to disambiguate identical model ids across providers. Exact ids are preferred over normalized aliases; ambiguous id, alias or name matches across providers require modelVendor. Saved provider identities are preserved during model resolution. A failed Copilot-only catalog lookup does not prevent discovery of other providers, and a failed full-catalog lookup retains successfully discovered Copilot models.
For Agent Host execution of an external model, select the shared model and explicitly choose its full Agent Host model ID. The task editor loads the live Host catalog when opened; use Refresh to retry. Check that the selected Host ID corresponds to the source model: Scheduler cannot verify that relationship automatically. The catalog depends on the running host and may be empty during startup. The ID is rechecked before dispatch; an unresolved legacy BYOK selection stops and asks for an explicit choice, even if only one candidate exists. scheduler_query with kind=list_agent_host_models lists the same IDs; scheduler_manage create/update accept agentHostModelId. Changing the source model clears the old binding unless a new ID is explicitly supplied. The ID specifies what Scheduler requests from the Host; it cannot prove which backend or account actually serves the request.
For an explicitly selected additional provider, an unavailable model or a rejected Chat dispatch blocks the run rather than retrying with the default model or another provider. Provider authentication, connectivity and support for the selected Chat/Agent mode are still required. A successful dispatch does not prove that the provider completed its response. Native Claude/Codex agent-harness scheduling is not part of this integration.
Codex Bridge 1.0.0 GPT 6 Luna (openai-codex, <profile>::gpt-6-luna) has experimental per-task Default / Low / High choices. The public API does not expose live reasoning capabilities, so this is a scoped compatibility rule, not automatic support for other models. Unmigrated explicit legacy choices update Chat's shared per-model settings while preserving speed, context options and other profiles. Default removes the task's reasoning override and inherits current shared settings without clearing or resetting them. A missing/ambiguous profile, unknown setting format or failed settings write blocks dispatch. Configure other models/providers through their own controls. On 2026-10-09, the candidate on isolated VS Code 1.141.0 verified real Low/High responses and Bridge request logs in Ask mode at normal speed. Live Default/Fast inference, other models and other environments remain unverified.
Dynamic Model Options (Experimental)
The task form and scheduler_query kind=list_models discover per-model enum values and labels from VS Code's internal vscode://schemas/language-models document. Recognized properties are mode, reasoningEffort, speedMode, and contextSize; numeric values remain numbers. Fast and context choices appear only when the selected model advertises them. Unsupported or unavailable schemas do not produce guessed options, and unavailable saved choices remain visible. This internal schema contract may change with VS Code updates.
In the Pre-release version, detailed inputs require host support (VS Code 1.141 or later), effective System API permission and advertised options; task options appear directly without an enable checkbox, and each unset option inherits the current shared Chat setting. Without effective permission, detailed inputs are not editable and saved overrides remain read-only with explicit repair. Stable hides new detailed and legacy reasoning choices and retains saved overrides read-only. Legacy shared-setting compatibility is separate from native overrides; unsupported explicit values are never silently reset. A reasoning-preview notice appears only for available legacy choices.
On VS Code 1.141 or later, model-catalog healing, saves and execution migrate legacy selections when the schema confirms equivalence. An unset legacy effort becomes inherited settings. An explicit effort becomes the identical advertised reasoningEffort only with effective System API permission; without it, the saved legacy choice remains unchanged instead of becoming an unusable native override. Existing explicit maps remain unchanged. Compound mode values are not guessed from an effort alone, and unmatched legacy settings or older hosts retain the legacy path. Startup healing persists successful migrations through the normal task-store write path.
New tasks use modelConfiguration: {} to inherit current shared Chat settings without changing them. Omission on update preserves the task's map; {} clears only task overrides, not settings left by the user or the legacy shared-setting path. VS Code 1.141 or later is necessary but not sufficient for explicit dynamic execution. Agent system instructions require effective languageModelSystem API permission for Scheduler. The picker enables detailed editing only when the host supports dynamic execution and that permission is effective; saved overrides remain visible and are not cleared automatically. Without effective System permission, native Chat/Agent overrides stop before dispatch while model selection with inherited settings remains available.
The Stable manifest does not declare languageModelSystem; changing runtime arguments alone cannot enable detailed options in Stable. The Pre-release manifest declares it, but declaration and installation alone do not grant permission. The Pre-release version requires the runtime-arguments entry described below, a full VS Code restart and separate provider-model consent.
For models advertising detailed options, the task form explains missing prerequisites in a few lines. On a supported, declared but unenabled build, Add Automatically adds yamapan.copilot-scheduler to enable-proposed-api in argv.json after a confirmation (existing entries and comments are kept; the file is created if missing), Open Runtime Arguments opens VS Code's runtime-arguments editor without writing anything, and Learn more opens the copilotScheduler.autoEnableProposedApi setting. Pre-release builds do the same at startup unless that setting is off. Either way, fully quit and restart VS Code; reloading the window does not apply the change. Undeclared builds and unsupported hosts show their respective limitations instead of an activation button. Existing task overrides are retained.
The System-role proposal originated in [Language model access API #206265](https://github.com/microsoft/vscode/issues/206265), opened by Johannes Rieken (jrieken), and was split into its own proposal in [PR #212082](https://github.com/microsoft/vscode/pull/212082) on May 6, 2024. The stated reasons were API design and Responsible AI considerations; model-access consent is a separate mechanism.
If the selected model's option schema is unavailable or invalid, the reason remains visible even after API activation, but no guessed inputs are added. Activation instructions appear only when the API is not enabled. A valid schema confirming no options hides the unnecessary setup action. Enabling the API does not guarantee that a model advertises detailed options.
Before Marketplace publication, run node scripts/verify-vsix-contents.js <candidate.vsix> --verify-marketplace. For Stable, the release workflow checks the packaged manifest and rejects any proposed API declaration before publishing. Pre-release publication adds --allow-proposed-apis languageModelSystem, the only approved exception; it does not grant runtime permission. Local proposed-API candidates can still use --verify-build; that check alone does not establish Marketplace eligibility.
API permission and provider-model access approval are different. A first-use dialog asking whether Scheduler may access GitHub Copilot or another provider must be approved for the requested access. This model-access approval does not grant proposed API permission. Scheduler cannot grant itself VS Code API permission: a compatible build and legitimate host authorization are required, and a launch flag alone does not add an API declaration missing from the extension. Proposed API use also has distribution restrictions.
VS Code or provider API changes can make detailed options unavailable even in an environment that previously worked. In that case only model selection and current-setting inheritance may be available. Explicit saved options are retained and blocked with an explanation instead of silently inherited, reset or sent using another model. Supported options remain fixed per request without rewriting shared settings.
Compatible Chat routes use immutable task-configured models with User/Assistant messages, tool calls/results, streamed responses and cancellation. System is forwarded unchanged only when effective API permission is present; unsupported roles are rejected before source lookup, request forwarding or token counting. No System instruction is removed or converted to User text. Runtime authorization does not certify every provider, option or native agent harness. Missing models, changed/invalid options, failed authorization and rejected dispatch stop without default-model fallback or automatic resend. Legacy selections that migrate into nonempty dynamic maps are subject to the same execution restrictions.
Configuration maps survive ordinary edits, duplication and reload. Changing the model clears its dynamic overrides. Do not save these tasks in older Scheduler versions: unknown fields may be lost. Selected fields are fixed per request; unselected fields still inherit source-model settings. The schema URI and request-configuration adapter are internal VS Code compatibility contracts; older hosts reject explicit dynamic execution while retaining legacy/inherited behavior. The internal configured models are hidden from task selection. An isolated VS Code 1.141.1 test with an unprivileged relay reproduced System-role rejection before source invocation, while User/Assistant/tool forwarding preserved fixed options without shared-setting changes. Schema discovery, saved settings, successful dispatch, completed responses and independently observed provider options are separate verification outcomes. This synthetic result does not certify real-provider inference or option effectiveness.
The task form can insert an Agent Skill into the prompt as /skill-name; the rest of the prompt is passed to the skill as its arguments. This matters for Copilot (Agent Host) sessions, which do not load *.prompt.md files and use skills instead. The prompt text is what runs, so tasks and older Scheduler versions keep working as before.
- The Local Skill and Global Skill options of the Prompt Type list skills by where they live: Local shows the skills of your workspace folders, Global shows your own skills. Free Input lists both. A skill is saved as a normal prompt (
/skill-name arguments), so reopening a task puts it back under Local or Global by its location.
- Prompt files (
.github/prompts and the VS Code user prompts folder) are the older format. They are still offered, under "Prompt file (older format)", only when a Local or Global prompt file exists. Choosing a skill clears a chosen prompt file and the other way round; tasks saved with a prompt file keep working unchanged.
- Skills come from
.github/skills, .agents/skills and .claude/skills in local workspace folders (trusted workspaces only) and from ~/.copilot/skills (or $COPILOT_HOME/skills), ~/.agents/skills and ~/.claude/skills. GitHub Copilot CLI documents .github/skills, .claude/skills, .agents/skills, ~/.copilot/skills and ~/.agents/skills; ~/.claude/skills is a Scheduler addition kept for compatibility, not a documented Copilot CLI path.
- By default only skills that run when invoked (
disable-model-invocation: true) are listed, so skills the model loads by itself do not flood the list. Set copilotScheduler.skillTemplates to all or off, or tick Show all skills in the form. When both kinds are listed they are split under the headings "Runs only when invoked" and "Also used automatically by the model", and the selected skill's note states its kind. Skills with user-invocable: false are never listed. Control, zero-width and bidirectional-override characters are removed from skill descriptions and argument hints before they are shown or handed to Chat.
- A skill is listed only when its folder name, its
name and the Agent Skills naming rules agree. A workspace skill hides a user skill of the same name (observed host behavior); a name found twice at the same level is left out because the host's choice is unknown.
- Before a run, Scheduler checks that the skill is still there, is not ambiguous, and that a workspace skill's workspace is trusted. Otherwise the task is not sent.
- The auto-mode hint is not added to a prompt that starts with a slash command, and a skill cannot be combined with Autopilot (
/autopilot) in one prompt.
- Only
file: workspace folders are scanned; remote and virtual folders are not.
Running through the Agent Host (default)
Since 1.10.0 a task runs through the Agent Host that VS Code already runs for the Copilot harness, not by typing into a chat window:
- Requested: the model, reasoning effort and context size (when the model offers them), a custom agent and attachments. History records the requested and Host-reported IDs; an exact report match is not independent backend verification. A clearly different report is warned about; a missing or ambiguous report is unverified.
- Where it runs: new sessions start from the task's workspace folder (the first local workspace folder for a global task), with the location behavior described below. The session is a normal Copilot session, so it appears in the session list for that folder, like a chat you started yourself. Scheduler also opens it as an editor tab once the run has started, so you can watch it (this uses the VS Code command
workbench.action.chat.openSessionInEditorGroup; if VS Code changes it, the run is unaffected and only the tab is missing). Continue (copilotScheduler.chatSession or the task's own choice) selects the most recently confirmed start for that folder and approval setting in the current window; ambiguous ordering blocks continuation. After a restart a new session starts.
- Tools: an unattended run cannot answer an approval prompt, so
copilotScheduler.agentHostAutoApprove (default on) lets the session use tools without asking. Turn it off only if you accept that tasks needing to edit files or run commands may be refused. It is a user/remote setting only.
- When the Agent Host cannot take a recurring task,
copilotScheduler.executionFallback decides. chat (default) uses the older chat route and records why; model application there is unverified. fail stops instead. The task-level Do not switch from Agent Host to Chat automatically option, also available as preventAgentHostFallback in Chat tools, is off by default and overrides chat for Host-to-Chat fallback. It does not block routes selected as Chat, Local, remote, or CLI from the start. Existing-chat tasks and unresolved Host identities always stop instead of falling back. A dispatched or uncertain run is never automatically resent.
- Choosing the route:
copilotScheduler.executionRoute is agentHost by default; set it to chat for the older route that opens a Copilot Chat session. A recurring task's own Copilot CLI option takes priority over both. The chat route is used for recurring tasks when sessionHarness is local or the window is remote, because the Agent Host registry is local.
- It talks to the Agent Host over its documented Agent Host Protocol and finds it through VS Code's local endpoint registry (an internal VS Code format, checked for version). Anything unexpected counts as "no host" and follows
executionFallback for recurring tasks, except tasks bound to an existing chat, which stop without fallback. copilotScheduler.agentHostTimeoutEnabled (default off) cancels a run that takes longer than copilotScheduler.agentHostTimeoutMinutes (default 180). With it off, a long run is never cancelled, but a run stuck waiting for input or authentication then stays running until you act; later occurrences of a recurring task still start (they are skipped only when its overlap option is off, and runs in the same chat queue behind it); the input-needed notification still tells you. If cancellation cannot be confirmed, the outcome is unknown and the run may still continue.
- Input and pending queues: when supported Host events show an answer, tool approval or authentication is needed, Scheduler shows an actionable status and follows the notification settings; it never answers automatically. A queue confirmed still pending after an earlier turn fails or is cancelled also gets a warning. The action opens the session; if it contains several chats, select the relevant chat there. Observation ends when the turn completes, the connection closes, or the timeout expires; absence of a status is not proof that no input or pending queue exists.
- Unknown dispatches: Scheduler saves a dispatch safety record without the prompt and blocks further sends to that chat across windows and restarts until the same Host confirms the exact turn has ended. A different window also blocks sends while a turn is owned by another window. If the turn ID was never confirmed, the Host changed, or the safety record cannot be verified, automatic recovery may not be possible and that chat stays blocked. Check the original chat and history for running or queued work before deliberately choosing a new session or another chat; Scheduler does not resend it.
- Native Agent Host modes: Scheduler does not offer native interactive, plan or autopilot selection because it cannot confirm the effective mode for each run. Prompt hints and tool approval settings are not substitutes.
- Context budget failures: if the Host reports that the static system messages and tool definitions exceed the model's context budget, Scheduler says so instead of showing the raw error. The size depends on the session's enabled tools and MCP servers, so it cannot be checked before the run; choose a model with a larger context window or reduce the enabled tools and MCP servers.
- One-time tasks require Agent Host dispatch so the reservation can be checked under the shared lock immediately before sending. They do not use the Chat or CLI routes, including fallback, remote windows and the local session harness. If dispatch is blocked after reservation, check the task and reschedule it before retrying.
- Automatic recurring tasks are also checked immediately before Agent Host dispatch. The older Chat and CLI routes do not provide this final shared-lock check.
New Agent Host session location
The task form offers Previous Host behavior (no override), Existing folder, and New Git worktree. Chat tools accept the same choice as agentHostWorkspaceMode: default, folder, or worktree.
- Omitted/default on create leaves the field unset and preserves previous Host behavior (normally a worktree for Git). Omitted on update preserves the saved choice; explicit
default removes the override. scheduler_query returns the saved choice.
folder shares the original folder, including uncommitted changes and local-only records. worktree requests Git worktree isolation; those uncommitted/local-only files are not automatically copied.
- This applies only when a new Agent Host session is actually created, including after an unavailable Continue session. Resume keeps the original location, even if the saved preference has changed. This option never forces a new session or moves an existing one.
- A bound existing chat or an actual CLI run does not apply the choice; the form disables selection but retains its saved value. A CLI checkbox without a selected model does not itself select the CLI route.
- An applicable explicit choice requires a local folder and Host capability/configuration confirmation before sending. Unsupported, unavailable, ignored, or mismatched settings stop without sending the prompt, even when Chat fallback is enabled. Chat, Local, and remote routes cannot honor an explicit choice. Unset tasks keep their existing fallback behavior.
- The folder is the task's own workspace for a workspace-scoped task. A global task and Test prompt use the window's local folder, so they need exactly one: with none or several, the run stops before sending, and the history says to use a workspace task or open a single local folder. Continuing an already-started session in a multi-folder window still works, because that run reuses the existing location.
- Unknown/corrupt saved values are retained rather than silently reset; explicitly reselect a valid choice or reset to previous Host behavior to repair them. History distinguishes new-session configuration confirmed by Host from a preference not applied on resume. Configuration confirmation is not a measurement of the process's actual working directory; a worktree may materialize only when the first turn starts. Host support depends on the running VS Code version.
- Verified with installed packages on VS Code 1.147.0 (Windows) through the Agent Host route with GPT 6.2 Sol via Codex Bridge, using a synthetic Git repository: Existing folder ran in the original folder, could read an uncommitted local-only file and created a fresh session on every manual and one-time scheduled run; New Git worktree ran in a separate worktree without that file; an unset task kept the previous Host default (a worktree). VS Code 1.146 was confirmed only from the Host's configuration source, not by a live run. The Host-reported model ID is not independent backend verification.
Running with the Copilot CLI
The Agent Host route above requests the model. To display the CLI controls, enable copilotScheduler.showCopilotCliControls (off by default); hiding them does not change saved task settings. For recurring tasks, tick Run with the Copilot CLI in the task form when you want a background copilot process instead of a Copilot session. The task then runs as copilot -s --output-format json --model <id> [--reasoning-effort <level>] (prompt on stdin):
- It is opt-in per task and only takes effect when the task has a model. A task without a model, or without the option, runs in chat exactly as before, so existing tasks and prompt-file tasks are unchanged. Scheduler cannot tell which chat session type VS Code will use, so it does not switch on its own.
- The CLI does not run
/skill in prompt mode (verified with CLI 1.0.99), so Scheduler puts the skill's SKILL.md instructions (front matter removed) and the skill folder in front of your arguments. The same rules as the skill list apply: the name must match, a workspace skill needs a trusted workspace and wins over a user skill.
- The run happens in the task's workspace folder (the first local workspace folder for a global task). The answer is not shown in chat and not stored; the execution history records the requested model, the model the CLI reported on its answer, and the premium requests used.
- Not supported (the run is stopped with a message): attachments, detailed model options and a custom agent. A model that rejects the reasoning effort makes the CLI fail with its own message.
- Tools: a background run cannot ask for approval, so tools are refused unless
copilotScheduler.cliAllowAllTools is on. Turn it on only if you accept that unattended tasks can run commands and change files in the task's folder. This is not available to Chat (scheduler_manage cannot set the option).
- Long runs: a scheduled CLI run does not hold up other tasks. It reserves a daily execution slot until it ends; daily limits still apply. A manual run (the Run button or
scheduler_manage with action=run) waits for the CLI to finish; it is stopped early only when copilotScheduler.cliTimeoutEnabled is on, after cliTimeoutMinutes. Closing VS Code stops any CLI run that is still going.
copilotScheduler.cliPath (default: copilot on PATH; Windows needs copilot.exe), copilotScheduler.cliTimeoutEnabled (default off) and copilotScheduler.cliTimeoutMinutes (default 180, used only when the timeout is on) complete the settings. They are user/remote settings only; a workspace cannot change them.
Model selection and session types
Observed on VS Code 1.142 (Windows):
- In a Local session, a specific model chosen for a task (for example Claude Haiku 5.5) was applied.
- In a Copilot (Agent Host) chat session (the older chat route), the model chosen for a task was ignored and the session ran on the organization default model. This was seen with a specific model and with Auto. Reasoning effort and context size set for the task were ignored as well (measured: Claude Sonnet 5.5 with effort
low and a 200K context ran as the default model with medium effort and no context tier). Re-checked on 2026-10-20 with the Pre-release 1.9.5 extension: a task set to Claude Haiku 4.5 and sent with a new chat ran as GPT-6.1 Sol (session.model_change source startup, no selectedModel). The default Agent Host route avoids this by sending the model with the request itself.
- Verified on VS Code 1.146 through the Agent Host route: Claude Sonnet 5.5 and GPT-5.6 Luna were each reported as the model that ran, a later run in the same session could use a different model, and a custom agent and an attachment took effect. Reasoning effort and context size are sent when the model offers them and are applied by the host (measured with Claude Sonnet 5.5: effort
low produced no reasoning, max did; a prompt over 200K tokens was rejected with context size 200K and completed with 1M).
- Effort and context size have not been confirmed in a Local session.
- Auto and HydraFusion have not been confirmed to work in either session type. HydraFusion is a routing tier of Auto in Agent Host sessions and is not listed as a separate model for extensions.
Through the chat route Scheduler reports a dispatch as sent, not as run on the chosen model; the Agent Host route records the requested and reported IDs, not independent proof of the backend. VS Code decides the session type for new chats on the chat route; Scheduler does not change it.
Model fallback (opt-in)
The task editor enables Fall back to another model if the selected model is unavailable by default for new tasks. An explicit replacement takes priority. For Chat, if it is unavailable or unspecified, the default Prefer a different provider, then family ranks models by provider first and model family second. Prefer the same provider, then family reverses that preference. Both can use another verified candidate if none fit the preferred combination. Agent Host requires a separate explicit replacement ID: its catalog does not reliably identify model families. That ID is used only when a pinned Host ID is missing from the Host catalog; a model that is merely absent from the Host catalog follows the usual route fallback. A model of the same provider and family that is still listed is resolved by the usual model matching before this priority applies. The Copilot CLI does not use this setting.
Fallback only occurs before dispatch when the current catalog confirms the original model is absent. A catalog error, ambiguous identity, or failed dispatch does not trigger another send. Model options and thinking effort are not carried over. The substitution is recorded in the execution history; that does not verify the backend. Existing enabled tasks move to the new policy; existing disabled or unset tasks remain off. copilotScheduler.modelFallbackChain is retained for older versions, not used by migrated tasks. Chat tools still accept modelFallback and do not enable it by omission on create; enabling it through a tool uses the default priority (a different provider and family first). An invalid or future policy value is kept as stored and refused at run time.
Additional Provider Verification
Execution is strict for explicitly selected models and task options. Unset options inherit existing shared settings; unsupported explicit options stop with an explanation and remain saved. Scheduler does not automatically replace them with inherited settings. An explicit model is dispatched once with its selected identity. Rejected dispatch stops rather than removing legacy reasoning effort, retrying without the selector or using legacy text commands. No parameter-dropping fallback is provided.
Scheduler verifies the returned model identity as well as the lookup selector. A different provider, model ID, or explicitly pinned version stops before source dispatch or token calculation. Unversioned source models remain usable after fresh schema validation; the internally registered configured model is matched against its own declared identity. Preparing request overrides does not mutate the caller's configuration or tool array.
Cancellation and provider disposal stop pending source/schema preparation, request dispatch, stream waits and token counting. Late preparation cannot send a new request or report progress after disposal, and caller cancellation detaches promptly without cancelling another caller's shared token preparation. Provider replacement during model resolution is rejected rather than binding against a different provider generation. Fixed-request bindings remain immutable; Scheduler does not retry a cancelled or failed configured request using different settings.
Reselecting the same model ID and provider preserves the task's dynamic options. Changing either identity component clears inherited task overrides unless new options are explicitly supplied and validated. An empty model clears the saved ID, name, provider, family, version and option map so old display metadata cannot resolve the cleared selection again.
Invalid stored option values are retained unchanged in the task editor rather than converted into empty overrides. The form disables those choices and offers an explicit Use inherited model settings repair action. A failed catalog refresh invalidates cached dynamic options while retaining model identities. Schema properties explicitly marked secret or password are not exposed as task choices.
An empty catalog or unavailable saved model also removes stale editable choices and preview notices without deleting saved overrides. Restoring the model restores advertised choices and the saved typed value. Legacy variant changes resolve the selected effort before rendering instead of silently reverting to inheritance. Before option controls are rebuilt or hidden, keyboard focus returns to the model selector. The optional python -B scripts/verify-model-options-browser.py check requires a Python environment with Playwright and Microsoft Edge; it exercises production functions with a synthetic catalog at desktop and narrow viewport sizes, not the full VS Code host or screen-reader behavior.
Automated discovery/selection/dispatch tests use synthetic providers; they do not certify provider authentication, inference or host UI behavior. Verify a provider in an empty isolated VS Code profile with separate storage, without importing saved tasks:
- Install the candidate Scheduler package and the provider, and complete authentication directly in the provider UI. Compare its picker entry with
scheduler_query using kind=list_models (id and vendor).
- Create one disposable disabled workspace task with that
model and modelVendor, no attachments, and a harmless prompt such as Reply exactly PROVIDER_SMOKE_OK. Read it back and confirm the same provider.
- Run only that task once. Verify the selected provider in Chat and its actual response separately from the tool's dispatch result; the task must remain disabled.
- Make that provider unavailable in the isolated profile, then run the same task. Expect a blocked dispatch, not a switch to Copilot or another provider. Restore the provider and confirm the saved selection is retained after a catalog refresh.
- Delete only the disposable task and owned isolated profile/storage. Do not test against real saved tasks or export credentials.
Create/update also accept attachments: up to 10 entries of { source: "local" | "global", path }, where the path is relative to the task's workspace folder or to the global prompts folder. Absolute paths, .., NUL characters, denied files, and local attachments on a global task are rejected instead of being saved.
In agent mode, Copilot can also choose these tools from natural-language requests. Examples:
- "Schedule a workspace task every weekday at 9:00 to summarize this repository."
- "Change the daily summary task to run at 10:30."
- "Use Claude Sonnet for the daily summary task."
- "Pause the release reminder task until I turn it back on."
- "Run the disabled release reminder task once now without enabling it."
- "Show my scheduled Copilot tasks before changing anything."
If multiple tasks could match the same name across scopes, ask Copilot to show the scheduled tasks first so it can confirm the exact task before updating, disabling, or deleting it.
scheduler_manage with action=run accepts only { "action": "run", "id": "..." } and reuses Run Now, including prompt/attachment resolution and history. Disabled tasks stay disabled; enabled tasks advance nextRun according to manualRunNextRunPolicy. Like Run Now, it bypasses jitter, allowed time windows and daily limits. A workspace task must belong to the current workspace. A change to the confirmed task before execution starts is rejected. With confirmationMode=always, Scheduler confirms the current task during invocation and rejects changes made while that confirmation is open.
ok: true with executionSemantics: "prompt_dispatched" or "prompt_queued" confirms dispatch or queue acceptance. When the Agent Host completion is observed, the tool also returns turnOutcome and responseText; neither proves the requested work succeeded. saveFailed reports the corresponding dispatch semantics and retrySafe: false. Failed, cancelled, or uncertain Agent Host turns also return retrySafe: false; check Chat and history rather than retrying automatically. claimFailed or taskChanged means this invocation did not send a prompt; check the task's saved state before trying again. Cancellation of the tool invocation is checked before execution starts and cannot undo a sent prompt. Every invocation is a new manual request, not an idempotent operation; duplicate requests are rejected while dispatch and history recording are in progress in the current window.
Write tools are enabled by default and require a trusted workspace. Set copilotScheduler.lmTools.enableWriteTools to false to block create/update/delete/enable-disable/run operations. They remain visible, but only read-only tools can be used.
copilotScheduler.lmTools.confirmationMode controls only the extension-provided custom confirmation messages for write tools. VS Code or Copilot Chat may still show a generic approval dialog for extension tools, and users can use the built-in Always Allow flow when available.
Task snapshots and revision metadata are atomically replaced under a cross-window lock with heartbeat/stale recovery (via MIT-licensed proper-lockfile). If the primary payload cannot be saved, a shared atomic fallback snapshot can preserve recurring-task changes; one-time reservations still require the primary file. A healthy copy is repaired when its freshness can be verified. Conflicting or unverifiable snapshots are preserved and affected tasks are not sent; a warning asks you to check storage. Unrelated recurring tasks can continue when their saved state is verifiable. The metadata, fallback file and global state contain task data and should be protected like the task payload. Execution history is also saved in a shared, locked file and mirrored to global state, so records from different windows are retained. Empty/corrupt legacy payloads do not override valid legacy tasks, and revision-backed empty arrays remain valid deletes. Do not run older extension versions concurrently against the same storage: they do not enforce the same reservation, history and snapshot protocol.
⚙️ Settings
| Setting |
Default |
Description |
copilotScheduler.enabled |
true |
Enable/disable scheduled execution |
copilotScheduler.defaultScope |
workspace |
Default scope |
copilotScheduler.language |
auto |
UI language (auto/en/ja). Applies to extension Webview/Tree UI; settings-description updates may require window reload. |
copilotScheduler.timezone |
"" |
Timezone for scheduling, the allowed time window and the daily run counters |
copilotScheduler.jitterSeconds |
600 |
Max random delay (seconds) before execution (0–1800, 0 = off). Each task can override it. |
copilotScheduler.manualRunNextRunPolicy |
fromNow |
Next-run calculation after Run Now: fromNow (next cron occurrence after the current time) / advance (advance past an existing future next run; otherwise use current time). Explicit selections are preserved. |
copilotScheduler.missedRunPolicy |
runOnce |
Tasks due before scheduler startup: runOnce runs each overdue task once; skip advances each task without running it. Available as a dropdown in VS Code Settings. |
copilotScheduler.chatSession |
new |
Default chat session behavior (new/continue). Tasks can override this in the Webview form. continue is usually faster. |
copilotScheduler.skillTemplates |
explicit |
Which Agent Skills the task form offers to insert as /skill-name: explicit (only disable-model-invocation: true), all, or off. |
copilotScheduler.sessionHarness |
auto |
Which kind of chat session new runs start in (only when a run starts a new session). auto leaves it to VS Code; local (experimental) starts a Local session via workbench.action.chat.newLocalChat and does not send the task if that fails. Scheduler never changes VS Code settings and cannot force a Copilot (Agent Host) session. |
copilotScheduler.autoModeDefault |
false |
Default value for new tasks' auto-mode hint (inserts an autonomous-execution instruction at the beginning of the runtime prompt). |
copilotScheduler.autoEnableProposedApi |
true |
Pre-release only: adds Scheduler to enable-proposed-api in argv.json at startup so detailed model options can be used. Takes effect after a full VS Code restart (not a window reload). Turn off to manage argv.json yourself. |
copilotScheduler.modelFallbackChain |
["hydrafusion","auto"] |
Legacy fallback order retained for older versions; current tasks use task-level settings. |
copilotScheduler.executionRoute |
agentHost |
agentHost (default) sends the selected ID and supported options to VS Code's Agent Host; the reported ID does not independently verify the backend. chat uses the older route. A task's CLI option wins. sessionHarness: local and remote windows use chat. |
copilotScheduler.executionFallback |
chat |
For recurring tasks, chat allows pre-dispatch Host-to-Chat fallback; fail stops and warns. The task-level route guard and existing-chat bindings also block fallback. One-time tasks never use it; dispatched or uncertain runs are not resent. |
copilotScheduler.agentHostAutoApprove |
true |
Let Agent Host runs use tools without asking (needed for unattended tasks that edit files or run commands). User/remote setting only. |
copilotScheduler.agentHostOpenSession |
true |
Open the session of an Agent Host run as an editor tab once it has started. Turn off for frequent unattended tasks. |
copilotScheduler.agentHostTimeoutEnabled |
false |
Cancel an Agent Host run that takes longer than the minutes below. Off by default so long runs are never cancelled. If you set the minutes before this option existed and have not set this option, the timeout stays on. User/remote setting only. |
copilotScheduler.agentHostTimeoutMinutes |
180 |
Minutes before an Agent Host run is cancelled when the option above is on (1–720). An unconfirmed cancellation leaves the outcome unknown. User/remote setting only. |
copilotScheduler.showCopilotCliControls |
false |
Show Copilot CLI controls in the task form without changing saved task settings. User/remote setting only. |
copilotScheduler.cliPath |
"" |
Full path of the copilot executable for tasks that run with the Copilot CLI; empty finds it on PATH. User/remote setting only. |
copilotScheduler.cliAllowAllTools |
false |
Let CLI-run tasks use every tool without asking (--allow-all-tools). Off: tools are refused. User/remote setting only. |
copilotScheduler.cliTimeoutEnabled |
false |
Stop a CLI-run task that takes longer than the minutes below. Off by default so long runs are never stopped. If you set the minutes before this option existed and have not set this option, the timeout stays on. User/remote setting only. |
copilotScheduler.cliTimeoutMinutes |
180 |
Minutes after which a CLI-run task is stopped when the option above is on (1–720). User/remote setting only. |
copilotScheduler.commandDelayFactor |
0.8 |
Delay multiplier for Copilot command sequencing (0.1–2.0). Lower is faster, but may be less stable in some environments. |
copilotScheduler.showNotifications |
true |
Show notifications when tasks are executed |
copilotScheduler.notificationMode |
sound |
Notification mode (sound/silentToast/silentStatus) |
copilotScheduler.maxDailyExecutions |
24 |
Daily execution limit across all tasks (0 = unlimited, 1–100). ⚠️ Unlimited may risk API rate-limiting. |
copilotScheduler.minimumIntervalWarning |
true |
Warn when cron interval is shorter than 30 minutes |
copilotScheduler.globalPromptsPath |
"" |
Custom global prompts folder path (default: VS Code's User/prompts folder — Windows: %APPDATA%/Code/User/prompts, macOS: ~/Library/Application Support/Code/User/prompts, Linux: $XDG_CONFIG_HOME/Code/User/prompts or ~/.config/Code/User/prompts) |
copilotScheduler.globalAgentsPath |
"" |
Custom global agents folder path (*.agent.md) (default: auto-detect VS Code's User/prompts folder and ~/.copilot/agents; setting this overrides the default discovery roots) |
copilotScheduler.promptFileFallback |
"snapshot" |
What to do when a local/global prompt file cannot be read at execution time: snapshot (run the saved snapshot), blockWhenResolvable (block when the path resolves but the file is unreadable), blockAlways (always block). Inline prompts are unaffected |
copilotScheduler.logLevel |
info |
Log level (none/error/info/debug) |
copilotScheduler.executionHistoryLimit |
50 |
Max number of execution history entries kept per task for the history view (10–500) |
copilotScheduler.lmTools.enableWriteTools |
true |
Allow Copilot Chat tools to create, update, delete, enable/disable and run scheduler tasks. When false, write tools remain visible but are blocked. |
copilotScheduler.lmTools.confirmationMode |
destructiveOnly |
Controls extension-provided custom confirmation messages for write tools: always, destructiveOnly, or minimal. VS Code/Copilot generic approval may still appear. |
To automatically keep AI-applied edits after review delay, configure VS Code setting chat.editing.autoAcceptDelay (0 = off, 1-100 = seconds, recommended: 5).
Missed-run policy uses the exact scheduler start/restart time: only an earlier nextRun is missed. skip advances it without an execution history entry or a daily-count increment; it cannot restore skipped occurrences later. A sleep delay after startup is not a missed startup run. Settings apply on the next check; active runs are not cancelled. Due tasks are considered oldest-first, subject to time windows and daily limits. An unfinished automatic run reserves a daily slot in its window. Daily counters and reservations are not atomically shared across windows, so the limits are not a strict cross-window quota.
There is no longer a window-wide automatic-run concurrency cap. An existing copilotScheduler.maxConcurrentAutomaticRuns in settings.json is ignored and can be removed manually; Scheduler does not edit it. Separate tasks can therefore start in parallel, subject to daily limits. By default, a recurring task starts an occurrence even while an earlier occurrence of the same task is still running (Allow overlapping automatic runs is on); turn it off per task to skip occurrences while it runs. Manual-run and one-time-task protections remain unchanged. Other windows can still run different occurrences of the same task concurrently. Multiple runs in the same folder can conflict over files; consider the existing worktree option when isolation is needed.
Task-level controls (Chat Session, optional Existing Copilot chat, Max Runs/Day, Allowed Time Window, Timeout, and overlapping runs) are configured per task in the Webview create/edit form. Timeout applies to that task's Agent Host and Copilot CLI runs: "Follow the settings" (default) uses copilotScheduler.agentHostTimeoutEnabled / copilotScheduler.cliTimeoutEnabled (off by default), "Off" never stops the task, and "On" stops it after the given minutes (1–720; the configured minutes, default 180, when left empty). The timeout field of scheduler_manage create/update takes { "mode": "inherit" | "off" | "on", "minutes"? }. Refresh the chat list while Agent Host is running. A bound chat is revalidated when the task is saved and dispatched; workspace-scoped tasks must match its sole workspace. Bound messages are queued and do not interrupt an active turn. With overlap enabled, separate occurrences get separate queue entries; otherwise pending messages for the task are coalesced. Queue acceptance is not execution completion: a queued message can remain pending after a failed or cancelled turn, or while input is needed. Max Runs/Day and Allowed Time Window are evaluated on the same clock as the schedule: copilotScheduler.timezone when it is set, otherwise the machine's local time.
The Webview previews Copilot Chat-like thinking effort options for supported model families. If it fails, choose Default.
Claude Opus/Sonnet are adaptive-thinking models. The extension writes the selected effort to the same per-model setting Copilot itself uses, but Copilot Chat governs Claude's effective thinking through adaptive thinking and may still apply Medium. GPT-5 family models honor the selected effort directly.
The selected custom agent is passed through the mode field of VS Code's workbench.action.chat.open, and reasoning effort is applied by writing Copilot Chat's per-model settings — both are sent identically for every model. Whether a Claude model actually honors the custom agent and reasoning depth is decided by VS Code / Copilot Chat. If they do not seem to take effect, set copilotScheduler.logLevel to debug and open the "Copilot Scheduler" output channel: when the Agent set: and Experimental model quality sync: lines show the expected mode and effective values, the scheduler did its part and the gap is on the Copilot Chat side.
If execution feels sluggish when a task is triggered, try:
copilotScheduler.chatSession = continue
copilotScheduler.commandDelayFactor = 0.6 (or 0.5)
copilotScheduler.notificationMode = silentStatus
copilotScheduler.logLevel = error (or none)
📝 Prompt Placeholders
Use these placeholders in your prompts:
| Placeholder |
Description |
{{date}} |
Current date |
{{time}} |
Current time |
{{datetime}} |
Current date and time |
{{workspace}} |
Workspace name |
{{file}} |
Current file name |
{{filepath}} |
Current file path |
📂 Task Scope
- Global: Task runs in all workspaces
- Workspace: Task runs only in the specific workspace where it was created
📄 Prompt Templates
Store prompt templates for reuse:
- Local:
.github/prompts/*.md in your workspace
- Global: VS Code user prompts folder (or the folder set in
copilotScheduler.globalPromptsPath)
- The edit form shows the selected file and Open prompt file action while
Local/Global is selected; the prompt body is hidden. Use that action to edit the source file. Switch the source to Inline to show and edit the text on the task itself. Changing the model or other task settings preserves the file reference.
- The panel preview reads saved disk content only. At execution time, an open editor buffer is preferred; otherwise the latest saved file is read.
- A task only becomes Inline when you select the Inline source. Selecting a template keeps the task following that file.
- Task creation/updates, template loading and prompt path resolution reject paths containing NUL characters, even when a path is cached or lexically inside an allowed root.
Global custom agents are auto-discovered from the VS Code user prompts/customization folder and ~/.copilot/agents when copilotScheduler.globalAgentsPath is empty.
This follows current Copilot custom agent and Copilot CLI file locations, but this extension only discovers agent files. Prompt templates still use the VS Code user prompts folder or copilotScheduler.globalPromptsPath, not ~/.copilot/prompts, and the extension does not manage Copilot CLI sessions.
Agent definitions are refreshed automatically when you create, edit, or delete workspace *.agent.md / AGENTS.md files (or the global agent files). You can also reload them on demand with the refresh button next to the agent picker.
Only user-invocable agents appear in the picker. Agents with user-invocable: false in their frontmatter are subagent-only — they cannot be selected as a chat mode, so they are intentionally hidden. Agents without the field stay listed.
📎 Attachments
A task can carry up to 10 attachment files that are sent with the prompt, so instructions, prompt files, skills, or any other workspace file can be attached explicitly instead of being mentioned inside the prompt text.
- Add attachment opens a quick pick with a Recommended group (
AGENTS.md, .github/copilot-instructions.md, .github/prompts/, .github/instructions/, .github/skills/) followed by the rest of the workspace. Browse... opens the regular file dialog.
- Attachments are stored relative to the workspace folder (
local) or to the global prompts folder (global), never as absolute paths.
- Only workspace-scoped tasks can attach workspace files. A global task runs in any window, where the same relative path could point at a different file, so workspace attachments are rejected for them.
- Files such as
.env*, *.pem, *.key, id_rsa* and anything under secrets/ or .ssh/ are never attached.
- If an attachment cannot be found when the task runs, the task is skipped instead of running without it. The run is recorded as
blocked in the execution history. Automatic runs warn once for an unchanged failure; they warn again when the configured attachments or missing files change, or if the failure recurs after the task succeeds. Manual retries always show the warning.
- Trust boundary: the checks above are a path boundary, not a content-provenance boundary. Anything that can write inside the workspace folder can also place or link a file there, and the file is read at run time, so it is the content at that moment that is sent. Attach files only from workspaces you trust, the same way you would trust a prompt file that runs unattended.
📋 Requirements
- VS Code 1.95.0 or higher for existing scheduling/legacy execution. Per-task dynamic model options require VS Code 1.141.0 or higher and source-model access authorization; older hosts retain legacy/inherited execution but reject explicit dynamic overrides.
- GitHub Copilot extension
Development Tests
npm test compiles and runs the complete suite in an isolated VS Code profile. No Copilot sign-in is required. To select tests by their full suite/test title, pass a JavaScript regular expression with --grep (or -g). On Windows PowerShell, use npm.cmd to preserve option forwarding:
npm.cmd test -- --grep "Test Runner Arguments"
For shell-sensitive expressions (for example, alternation with |), compile first and invoke Node directly:
npm.cmd run pretest
node ./out/test/runTest.js --grep 'tabs|claim'
Patterns are preserved verbatim. Unknown arguments, empty/invalid patterns and zero matching tests fail the run. Without arguments the full suite runs even if a filter environment variable was inherited. A focused test pass is not a substitute for npm test before release.
Installed VSIX Smoke Check
Verify package contents/build identity and the installed extension's permission-none tool contract without extension-development mode:
node scripts/verify-vsix-contents.js artifacts/vsix/copilot-scheduler-allfix-lifecycle-candidate.vsix --verify-build --verify-installed --vscode-executable .vscode-test/vscode-win32-x64-archive-1.141.1/Code.exe
Use an existing compatible VS Code executable. The verifier installs the selected VSIX and a local probe VSIX into a fresh temporary profile, uses the archive's own identity/version, and invokes only the read-only scheduler_query list_models contract. No model inference or task operation is invoked by the probe. It launches without development/test/proposal flags, checks Production mode and the installed target location, verifies runtime System permission is absent, waits for its window and process to exit, and removes its owned temporary environment. Startup environment hooks are removed; space-containing paths are supported. On an incomplete shutdown, the owned root is retained for explicit cleanup rather than stopping normal/shared VS Code processes. This verifies the installed permission-none case, not provider sign-in, full UI/AT, permission-enabled native execution or Marketplace publication.
🛠️ Release Automation
Maintainers can publish from GitHub Actions instead of running vsce publish locally.
- Keep the Marketplace Pre-release version higher than Stable and publish it first when updating both; VS Code updates to the highest available version even for Pre-release users. See VS Code pre-release extensions.
- Push a tag in the form
vX.Y.Z after updating package.json to the same version.
- GitHub Actions runs
npm ci, npm run compile, npm test, packages a .vsix, publishes to VS Code Marketplace, and attaches the .vsix to the GitHub release.
- For a pre-release dry run, dispatch
Publish Extension on the branch with publish=false (the default). Wait for all gates to pass before pushing the version tag. Runs are serialized across branches and tags. Explicit publish=true publishes to Marketplace only; a matching tag is required for the GitHub Release.
- On a
preview/* branch, also set package_pre_release=true with publish=false to validate the Marketplace Pre-release package and eligibility checks without publishing.
- Add the repository secret
VSCE_PAT before using the workflow.
- Pre-release builds use a
marketplace-preview-vX.Y.Z tag that matches package.json; the workflow packages and publishes with --pre-release. The only publishing-validation exception is the explicitly approved languageModelSystem proposal. It does not grant runtime permission or guarantee Marketplace acceptance, and a rejection must be investigated, not bypassed with all-API or no-verification flags.
preview-vX.Y.Z tags create a GitHub-only build (VSIX attached, not published to the Marketplace). Manual publish=true runs are rejected on preview/* branches; publish by pushing the tag.
⚠️ Known Issues
- Copilot Chat API is still evolving; some features may require updates as the API stabilizes
- Model selection may not work in all configurations
- Experimental model quality relies on evolving VS Code/Copilot internals and may not work in all configurations
Disclaimer: This extension automates Copilot Chat. GitHub's Acceptable Use Policies prohibit "excessive automated bulk activity", the Terms of Service § H (API Terms) allow account suspension for excessive API usage, and the GitHub Copilot Additional Product Terms apply these policies directly to Copilot. Use at your own risk; your account could be rate-limited or restricted. Configure jitter/daily limits/longer intervals to reduce risk, but there is no guarantee.
Note: There are reports of Copilot access being restricted even without using automation tools. These mitigations reduce obvious automation patterns but cannot eliminate that risk.
🐛 Report a bug
📦 Release Notes
0.1.0
Initial release:
- Cron-based task scheduling
- Agent and model selection
- English/Japanese localization
- Sidebar TreeView
- Webview GUI for task management
- Prompt template support
📄 License
CC-BY-NC-SA-4.0 © aktsmm
Enjoy scheduling your Copilot prompts! 🚀