Copilot Cloud Agent
Goal
Start or inspect a genuine GitHub-hosted Copilot cloud-agent task, preserve the
requested model choice, and return durable task and pull-request identifiers.
Never describe a local CLI subagent, background process, or worktree worker as a
cloud agent.
Inputs
- Identify the target
owner/repository, base ref, and bounded task prompt.
- Record whether the task should create a pull request or continue an existing
head ref.
- Record any requested model. If no model is requested, state that omission uses
GitHub's Auto selection.
- Identify organization policy, subscription, or repository restrictions that
could prevent cloud-agent or model access.
Workflow
- Confirm the user requested GitHub-hosted execution. For local subagents or
worktree fleets, do not use this workflow.
- Inspect active tasks and open pull requests before launching. Reuse or wait for
matching work instead of creating a duplicate session.
- Check the current GitHub cloud-agent model documentation before relying on a
model identifier. Model availability depends on plan and organization policy
and can change.
- When GPT-5.6 Sol is requested and currently available, send
model: "gpt-5.6-sol" explicitly. Do not omit the model and claim that Auto
selected Sol.
- Start the task with the supported GitHub agent-task API:
POST /agents/repos/{owner}/{repo}/tasks. Supply prompt, and only the
applicable base_ref, head_ref, model, custom_agent, and
create_pull_request fields.
- Use issue assignment APIs only when the requested workflow is issue-based.
Include the documented agent-assignment
model field rather than relying on
an assignment helper that cannot express model selection.
- Treat validation errors as failures. If a requested model is unavailable,
report the API response; never silently retry with Auto or another model.
- Read the created task back from the API. Verify its state, task ID, session
model, base ref, head ref, and any branch or pull-request artifact.
- Monitor with bounded status checks. Distinguish
queued, in_progress,
idle, waiting_for_user, completed, failed, timed_out, and
cancelled; do not call an active task complete.
- Review and validate the resulting pull request separately before merge. A
completed cloud session is not proof that its code or checks are correct.
Model and Context Controls
- The cloud API's documented control is
model. GPT-5.6 Sol is intended for
complex reasoning over large codebases and long-running agentic work.
- The cloud API does not currently document
effort, reasoning_effort,
context, context_window, or a token-window field. Do not promise "high
reasoning" or a forced 1M context allocation for a hosted task.
- Local Copilot CLI flags such as
--effort and --context are local runtime
controls. Never imply that they are forwarded to GitHub cloud-agent tasks.
- A model's capability description is not a configuration guarantee. Selecting
Sol does not establish a particular reasoning-effort level or context size.
Validation
- Confirm the launch response contains a task ID and repository-scoped URL.
- Fetch the task and verify the recorded session model matches the explicit
request. Cloud responses may prefix the model with an internal provider name;
preserve the exact returned value in the report.
- If pull-request creation was requested, verify the task artifact or resulting
pull request exists before reporting it.
- Confirm no duplicate task was launched and no unsupported control was presented
as active.
Output
Report the host, repository, task ID and URL, state, requested and observed model,
base/head refs, pull-request URL when present, and any unavailable control or
policy restriction. Clearly label whether work is queued, active, blocked, failed,
or completed.
References
- Read GitHub cloud-agent API and model controls
before launching a task or making a claim about model, reasoning, or context
configuration.
1---2name: copilot-cloud-agent3description: Launches and monitors GitHub Copilot cloud-agent tasks through supported GitHub APIs, selecting explicit models, recording task and pull-request IDs, and distinguishing hosted controls from local CLI flags. Use when starting cloud agents, running hosted loops, assigning issues to Copilot, choosing GPT-5.6 Sol, or checking cloud-agent status; do not use for local subagents or git worktree fleets.4license: MIT5---67# Copilot Cloud Agent89## Goal1011Start or inspect a genuine GitHub-hosted Copilot cloud-agent task, preserve the12requested model choice, and return durable task and pull-request identifiers.13Never describe a local CLI subagent, background process, or worktree worker as a14cloud agent.1516## Inputs17181. Identify the target `owner/repository`, base ref, and bounded task prompt.192. Record whether the task should create a pull request or continue an existing20 head ref.213. Record any requested model. If no model is requested, state that omission uses22 GitHub's Auto selection.234. Identify organization policy, subscription, or repository restrictions that24 could prevent cloud-agent or model access.2526## Workflow27281. Confirm the user requested GitHub-hosted execution. For local subagents or29 worktree fleets, do not use this workflow.302. Inspect active tasks and open pull requests before launching. Reuse or wait for31 matching work instead of creating a duplicate session.323. Check the current GitHub cloud-agent model documentation before relying on a33 model identifier. Model availability depends on plan and organization policy34 and can change.354. When GPT-5.6 Sol is requested and currently available, send36 `model: "gpt-5.6-sol"` explicitly. Do not omit the model and claim that Auto37 selected Sol.385. Start the task with the supported GitHub agent-task API:39 `POST /agents/repos/{owner}/{repo}/tasks`. Supply `prompt`, and only the40 applicable `base_ref`, `head_ref`, `model`, `custom_agent`, and41 `create_pull_request` fields.426. Use issue assignment APIs only when the requested workflow is issue-based.43 Include the documented agent-assignment `model` field rather than relying on44 an assignment helper that cannot express model selection.457. Treat validation errors as failures. If a requested model is unavailable,46 report the API response; never silently retry with Auto or another model.478. Read the created task back from the API. Verify its state, task ID, session48 model, base ref, head ref, and any branch or pull-request artifact.499. Monitor with bounded status checks. Distinguish `queued`, `in_progress`,50 `idle`, `waiting_for_user`, `completed`, `failed`, `timed_out`, and51 `cancelled`; do not call an active task complete.5210. Review and validate the resulting pull request separately before merge. A53 completed cloud session is not proof that its code or checks are correct.5455## Model and Context Controls5657- The cloud API's documented control is `model`. GPT-5.6 Sol is intended for58 complex reasoning over large codebases and long-running agentic work.59- The cloud API does not currently document `effort`, `reasoning_effort`,60 `context`, `context_window`, or a token-window field. Do not promise "high61 reasoning" or a forced 1M context allocation for a hosted task.62- Local Copilot CLI flags such as `--effort` and `--context` are local runtime63 controls. Never imply that they are forwarded to GitHub cloud-agent tasks.64- A model's capability description is not a configuration guarantee. Selecting65 Sol does not establish a particular reasoning-effort level or context size.6667## Validation68691. Confirm the launch response contains a task ID and repository-scoped URL.702. Fetch the task and verify the recorded session model matches the explicit71 request. Cloud responses may prefix the model with an internal provider name;72 preserve the exact returned value in the report.733. If pull-request creation was requested, verify the task artifact or resulting74 pull request exists before reporting it.754. Confirm no duplicate task was launched and no unsupported control was presented76 as active.7778## Output7980Report the host, repository, task ID and URL, state, requested and observed model,81base/head refs, pull-request URL when present, and any unavailable control or82policy restriction. Clearly label whether work is queued, active, blocked, failed,83or completed.8485## References86871. Read [GitHub cloud-agent API and model controls](references/github-cloud-agent-controls.md)88 before launching a task or making a claim about model, reasoning, or context89 configuration.