VS Code Copilot automations on a schedule: Sume jobs and idempotency

VS Code automations can run agent tasks hourly, daily, weekly or on demand. Make each Sume create idempotent so a rerun resumes a job instead of paying twice.

5 min readSume
All posts

GitHub's September 2026 roundup for Copilot in VS Code adds automations. The GitHub changelog says: "Use automations to run tasks on an hourly, daily, or weekly schedule or run them on demand," read 2026-10-03. The same release lists agent merge, Dev Container agent sessions and an Agents window, and notes VS Code 1.136 to 1.140 shipped in September. A scheduled agent that calls Sume's hosted MCP server is a recurring spender, so the schedule needs the same discipline as any cron job.

What a scheduled run can break

A schedule means the same prompt runs repeatedly, sometimes overlapping a slow earlier run or restarting after a failure. For read tools that is harmless. For a Sume create tool it is a charge each time unless the call repeats an idempotency_key. The Sume tools and gates page says the key is required on paid and write tools, and the jobs guide says a client timeout does not cancel a job and it keeps billing.

Scheduling risks and Sume controls, read 2026-10-03.
RiskControl
Same task runs again after a retryDerive idempotency_key from the schedule slot, such as the date
Run overlaps the previous oneCheck jobs_result for the slot's job before creating
Agent loops on a waitjobs_wait re-issue with the same ids, never a new create
Surprise costSend max_spend_usd; preview with dry_run
Too much accessGrant mcp:read unless the task must create

Write the prompt as a contract

State the rules inside the automation's task text: build the key from the date and subject, call the create once, store the returned job id, wait with jobs_wait (50 seconds by default, capped at 55) and re-issue on wait_slice_expired. The GitHub post does not describe how an automation stores state between runs, so keep the job id in a file or an issue your task can read.

VS Code's MCP page says trust dialogs appear when a server starts or its configuration changes, so an unattended first run may stop at a prompt. Start the server and approve it interactively before you rely on a schedule.

A short checklist

  • Key format: one stable string per slot, for example the date plus the subject.
  • Cap every create with max_spend_usd.
  • Prefer mcp:read scope for report-only automations.
  • Treat 524, 522, 523 and 525 as transport failures, not job outcomes.
  • Review the Copilot usage and the Sume balance after the first scheduled week.

Sources

Related posts

More in Agents

All Agents posts

Written by Sume