# Chat with GitHub Copilot

Choose models and specialists, preserve session identity and supply context that actually resolves.
Select permitted Copilot models for the task's evidence, quality, delay and complete cost. Establish the execution host and repository, and start or recover the intended session; check the effective specialist profile and client-specific context and command routes. Preserve unknown sources and distinguish generated drafts or tests from executed checks, external changes and accepted outcomes.

Author: LearningPathX Editorial Team
Content version: 1.0
Published: 2026-11-20T00:17:21.412683+00:00
HTML: https://learningpathx.com/material/GH-700/chat-with-github-copilot.html

Knowledge domain: Enhance productivity by using GitHub Copilot (20–25%)
Tags: Model selection / Context Management / State Management / Tool Selection

## Chat with GitHub Copilot

A useful Copilot conversation connects a decision with the right reasoning capability, an identifiable session, an appropriate specialist and evidence that the client actually supplies. This chapter follows that work from initial selection through continuation and history-based reporting.

The study-guide baseline was updated on October 13, 2026; that is a document-update date, not an asserted exam-effective date. Product procedures here use the supplied originals checked on November 7, 2026\. Interfaces, catalogs, policies and preview features retain that dated scope. All business records, commands and expected outputs in the worked examples are teaching artifacts; no product operation or test was executed.

## Learning objectives

* Choose a permitted model using task fit, input delivery, usable quality, delay and complete cost.
* Start and recover the intended session while preserving host, workspace and lifecycle boundaries.
* Select an effective agent profile and attach the correct files, issues or other context.
* Use supported commands and distinguish drafting, execution, validation and accepted outcomes.

## Choose reasoning for the decision

First define what a useful answer must establish. Model choice, agent specialization, work mode and tool approval each control a different part of the workflow.

### Begin with the decision the answer must support

A model is useful when its output helps someone complete the intended task accurately enough, within acceptable delay and cost. A general ranking cannot establish that fit. Rewriting a verified paragraph, reconciling conflicting reports and interpreting a process diagram place different demands on the system.

Write down the purpose, audience, supplied evidence and acceptance criteria before selecting an option. For a steering-committee briefing, useful criteria might include representing every supplied report, identifying unresolved dependencies and supporting each factual conclusion with evidence. A polished answer that invents a resolution fails those criteria even if it arrives quickly.

### Match capabilities to the task

GitHub's adopted comparison distinguishes several useful task categories:

| Task | Capability to prioritize | A limitation to check |
| --- | --- | --- |
| Shortening a verified update or making repetitive edits | Responsive instruction following with suitable cost | Speed does not excuse changing a checked fact |
| Everyday explanation or documentation | A balance of quality, speed and cost | A balanced default still needs task-specific evaluation |
| Reconciling conflicting reports or weighing complex dependencies | Deeper reasoning and sufficient usable context | More reasoning cannot establish a fact missing from the evidence |
| Explaining a diagram or screenshot | Image understanding and an interaction that supplies the image | A visual-capable model cannot inspect an image it never receives |

The dated comparison gives examples such as GPT-5.6 Luna and Claude Haiku 4.5 for fast tasks, GPT-5.6 Terra for balanced everyday work, and GPT-5.6 Sol and Claude Sonnet 4.6 for deeper reasoning. These examples describe the adopted catalog, rather than a universal purchasing recommendation or a guarantee for a particular account.

Check input delivery as well as model capability. For an image-dependent question, both an appropriate model and a surface that actually supplies the image are necessary. If the interaction is text-only, a description can support a narrower text-based explanation, but it does not establish what an unseen diagram contains.

Similarly, a larger context window is helpful when the relevant evidence is extensive. It is not a reason to attach unrelated material. The model needs the deciding facts, instructions and exceptions in a form it can use. Higher reasoning effort cannot create repository access, missing attachments or permission to retrieve private information.

### Establish the available set first

GitHub's adopted access guidance identifies three determinants of model access: the Copilot plan, the client, and applicable organization or enterprise restrictions. The supported-models guidance also warns that models can be updated or replaced.

For members with Copilot Business or Enterprise seats, an organization or enterprise owner can enable or disable applicable model access. Selecting a model as an individual user is a different action. A choice in a picker does not override policy, and an absent option is not evidence that another model has better reasoning ability. The adopted individual-plan guidance states that Copilot Free and Student have access only to automatic model selection; retain that version boundary when interpreting a client's controls. For Copilot in the cloud, the ability to select a model also depends on how the task is started.

Start the comparison with the options that are both permitted and usable in the intended client. If an essential capability is unavailable, identify the gap and seek an authorized supported path. Do not quietly substitute a text-only process for a required image review and label the original task complete.

### Understand what the selection changes

The adopted Copilot app procedure uses model and reasoning-effort dropdowns below the prompt field. Higher effort allows more thinking time and may increase delay. The app also documents Copilot Fusion, which chooses models and execution patterns according to the task and selected effort level. While Fusion works, its progress shows each step and the model being used. After the response, hover over the effort level name beneath it to see the models used. This gives an observable record of routing. Auto model selection chooses a model based on the task. Neither routing mechanism is equivalent to manually fixing one model for every request.

In the adopted CLI, `/model` changes the current session by default. The explicit `--session` option, also available as `-s`, changes the session's model, reasoning effort or context window without changing saved settings. `--repo` or `--local` pins the repository's default model; `--global` or `/config model` sets the default for future sessions. Choose the intended scope before experimenting so a temporary comparison does not accidentally change later work.

If a model change is requested while the agent is running, the CLI queues it until the current turn finishes. The queued command can be cancelled with Ctrl+C. It does not change the live model midway through the current request. These selection controls remain subject to the actual available models and applicable policy.

Price also needs the correct unit. The adopted comparison says models consume AI credits at different rates based on token pricing. A model name or response time alone does not establish total cost. This lesson does not assign hypothetical credit rates to real models or derive labor savings from response latency.

Model-specific limitations matter too. The adopted Kimi K3 discussion distinguishes individual-plan fine-tuned variants from Business and Enterprise offerings and describes additional safeguards and use-case evaluation. A general claim about the model's strengths should not erase those plan and safety qualifications.

In the app, Interactive means working with the agent while it waits for input; Plan prepares a plan for review before execution; Autopilot continues autonomously within the effective controls. Independently, Ask every time requests tool approval, Assisted uses model assessment for eligible approvals and asks where needed, and Approve all removes individual approval prompts. Model judgment is not proof of safety. Choose the current session through the mode menu and Tool permissions; Settings > Sessions sets the default for future local sessions. Neither reasoning effort nor a work-mode choice grants new tools, repository access or credentials.

### Read catalog examples within their source boundary

The adopted task table is a catalog of examples, not a permanent ranking. Its general-purpose category includes short functions, diffs, documentation, error explanations and non-English coding. Its fast category fits utility functions, syntax help, lightweight prototypes and repeated edits. Architecture, interconnected refactoring, multi-file debugging, trade-offs and log analysis can need deeper reasoning. A diagram or screenshot task needs actual image delivery as well as visual capability; an indirectly configured MCP route is only a possibility until its availability, access and input delivery are confirmed.

The full dated catalog includes GPT-5.3-Codex for agentic development; GPT-5.6 Luna, GPT-6 Luna, Claude Haiku 4.5/5.5 and Gemini 3.8 Flash for fast tasks; GPT-5.6 Terra and GPT-6.1 Terra for everyday agentic work; GPT-5.6 Sol and Claude Opus 4.8/4.8 fast preview/5 for deeper reasoning; GPT-6 Astra, Claude Fable 5/5.1 and Claude Opus 5.5 for longer tasks; GPT-6 Sol and GPT-6.1 Sol for multistep or complex coding; Claude Sonnet 4.6/5/5.5, Grok 4.5/4.6/4.7, Gemini 4 Argon, Qwen2.5 and Kimi K3 for the task areas identified by their cards. MAI-Code-1.1-Flash is listed for coding, writing and image understanding. The GPT-6.1 Terra further-reading card is marked TBD: a missing card supplies no additional evidence. MAI behavior may evolve with checkpoints. These entries do not establish account availability, a live price or suitability for every business task.

The source's Kimi K3 qualification is specific: fine-tuned variants may be offered on individual plans and are excluded from Business/Enterprise offerings. Pre-release testing identified increased risk on certain higher-risk prompts and less consistent refusals involving sensitive topics; the source reports additional safeguards. That combination requires use-case evaluation, rather than a universal safety conclusion. The supported-models source describes content filtering for default-model prompts and completions, with public-code matching when enabled; it does not establish identical filtering for every custom model.

Individual users can configure compatible BYOK models in a supported client. Separately, enterprise owners and appropriately authorized organization owners can provision additional models to eligible users through the Copilot API. Local or cloud provider access depends on the surface and configuration method; a compatible CLI provider can be a cloud service or a server on the computer/network. Naming a provider does not configure or authenticate it. Image generation uses a dedicated model governed by the applicable model policy.

### Account for the complete task

Copilot AI-credit rates follow the model's token pricing in the adopted comparison. In Agentic Workflows, the separate cost-management source defines its catalog estimate of 1 AIC as USD 0.01 and warns that estimates may differ from provider invoices. Its embedded rates or explicit provider-price configuration are not a live Copilot bill. Actions compute is a separate component. Model, input/output tokens, prompt/context size, tool usage and run frequency all affect the total. The source's lighter-model examples, including gpt-4.1-mini and claude-haiku-4-5, are dated illustrations of task-fit budgeting.

For a hypothetical monthly comparison, use the same cases and acceptance quality. Record inference credits or provider charges and Actions minutes separately. The source's rough scenarios include a weekly digest four times per month, 20 issue-triage runs, or 100 review-triggering pushes; their inference remains dependent on model and prompt size. Those scenario estimates do not measure latency or labor savings. Measure end-to-end elapsed time separately from hands-on operator time, and include review, failed outputs and retries. A fast unusable answer does not count as accepted work, and reduced waiting time alone is not human work saved.

For a separate illustrative budget, suppose the digest runs four times in one month, including any retry or verification runs, with one billable Actions job per run. If each job is assumed to take 1.2 minutes including setup, rounding each job up gives two billed minutes per job. Four runs × one job per run × two billed minutes per job gives eight estimated billed Actions minutes for that month. Inference is unknown until the prompt size, model, tool usage and applicable provider rates are known. These are planning assumptions, with no measured usage or savings.

The cost source also describes using a separate service account per repository or team, referenced through `COPILOT_GITHUB_TOKEN`, so workflow spending can be attributed to the intended scope. Use an approved credential reference and confirm its permissions. Attribution supports accounting and says nothing about output quality.

### Worked example: choose for an evidence briefing

The following is a fictional teaching scenario. It shows an expected evaluation and output, not an observed Copilot test.

A program manager supplies three incident reports:

* Report A: a deployment was delayed; approval completion was not recorded.
* Report B: the delay was attributed to a supplier response, but no supporting event record was supplied.
* Report C: the review team has not established the cause; a follow-up investigation is open.

The task is to draft an internal briefing of at most 120 words. Every report must be represented. An asserted cause needs supporting evidence, and conflicting explanations must remain visible. The agent may draft a briefing; it is not authorized to update the incident or announce a confirmed cause.

**Selection decision.** Compare suitable permitted reasoning-capable choices on those same three reports and criteria. Multi-source disagreement makes this a stronger candidate for deeper reasoning than a routine rewrite. A larger context choice is useful only if needed to accommodate the actual reports. There is no visual-input requirement in this task.

**Illustrative prompt:**

> Draft a neutral incident briefing of at most 120 words from Reports A, B and C. Represent each report. Separate the confirmed delay from proposed causes. Identify any contradiction and the missing evidence needed to resolve it. Do not infer approval completion, confirm a cause or update an external record. Finish with one proposed next step and the decision that remains open.

**Expected briefing:**

> The deployment was delayed. Report A does not establish when approval completed. Report B proposes a supplier-response explanation but supplies no supporting event record. Report C states that the cause remains under investigation. The available reports therefore do not establish a confirmed cause. Proposed next step: obtain the approval timeline and the supplier-response event record for the incident owner to compare. The cause determination remains open.

The result represents all three inputs and preserves the distinction between an observed delay and an unconfirmed explanation. A faster candidate that reports “the supplier caused the delay” fails. A slower candidate making that same claim also fails. Selection requires usable evidence handling, rather than speed or reasoning effort in isolation.

If the later task is simply to shorten this already verified briefing without changing its facts, a faster suitable option is a reasonable alternative. Evaluate that rewrite against its own criteria. No model comparison has been run in this example, so it establishes a decision procedure and expected result, not a measured winner.

## Establish and recover the working session

The chosen model needs the intended working identity. Establish repository, branch, execution host and previous changes before continuing a task; a session title supplies only a label.

### Start in the right place

The adopted app reference states that the GitHub Copilot app is available on all Copilot plans. The actual repository connection, execution environment, account access and applicable repository or organization policies still govern the work available.

In the documented Copilot app flow, start from the Sessions area and select a connected repository or folder. Under Environment, choose **This computer** for local work or **Cloud** for a GitHub-hosted isolated environment. Under Workspace, choose **New worktree** for a separate repository working copy or **Current checkout** for the existing checkout, and select the intended base branch.

Then select the work mode, model and reasoning effort, and provide a bounded task. The expected visible result is an active session grouped under its repository. Verify those selections before asking the agent to change anything; a good task description cannot correct a wrongly selected checkout by itself.

For a conversation about an idea that needs no implementation workspace, the app's **Chats** section saves the conversation without creating a dedicated branch or worktree. That is a suitable distinction for a manager exploring alternatives before authorizing repository changes. A saved chat does not establish that an isolated implementation workspace already exists. The app's goal-oriented Projects can span one or more repositories or focus on tasks that need no repository. They are distinct from a saved chat and from a GitHub Projects work-item board.

Work mode and tool permissions are separate choices. A planning-oriented interaction describes how work proceeds with the user; it does not by itself establish which tools or credentials can act. Preserve that distinction when identifying the session you intend to resume.

A cloud sandbox runs the entire session in a GitHub-hosted isolated environment. Local sandboxing instead keeps the session on this computer and applies operating-system restrictions to the filesystem, network and credential access available to agent-run tools. These are separate technologies: settings, policies and commands for one do not configure the other. Local sandboxing does not apply to cloud-sandbox sessions or sessions running on a remote host.

### Find and resume existing work

In VS Code, the Chat view normally shows sessions for the current workspace. The Agents window can show sessions across workspaces. Select the intended session, review its earlier messages and changes, and then continue.

If the session is missing, check these facts before making a replacement:

1. Open the original workspace and connect to the host where the work ran.
2. Include **Archived** in the Chat view filter or **Done** in the Agents window filter.
3. Check the supported interface and any applicable external-session discovery filter.
4. Restore an archived session before trying to continue it.

An empty active list is not enough to conclude that the work disappeared or never happened. A completed session may simply be outside the current filter. Conversely, finding a transcript does not prove that its running host is reachable or that the recorded task was accepted.

In the adopted CLI, `/resume` or `/continue` opens the session-selection path and can take a session ID. Verify the selected session's context after switching. Do not treat matching names as sufficient identification.

### Rename and pin using the client's controls

Use a title that describes the outcome and distinguishes similar work, such as “Release readiness — supplier dependency.” The adopted app and web guidance document `/rename`; CLI documents `/rename` and `/session rename`. Use the form supported by the actual client.

The VS Code source explicitly supports hovering over a session to pin it at the top. In the Agents window, a session can also be dropped onto **Pinned**. This establishes VS Code pinning behavior, rather than an identical pin button or command in every Copilot surface.

After a rename or pin, the intended observable result is a changed label or list position while the session's history and working context remain the same. If the problem is the wrong branch, a misleading title is only a symptom. Inspect the actual workspace before proceeding.

### Check client, host and discovery together

In VS Code, the Chat view scopes the current workspace, or all workspaces when none is open; the Agents window browses across workspaces. Supported Copilot and Claude sessions can continue between interfaces without changing harness, workspace or worktree. Codex needs the experimental Agent Host integration. The named Local harness and sessions from the OpenAI Codex extension are editor-only; they do not support continuation in the Agents window. Enterprise-managed settings can disable Claude/Codex without deleting existing sessions.

External-session filters offer None, Recent, Last 24 Hours, Last 7 Days (default), and Last 30 Days. Recent shows at most two updated sessions from the last seven days, with a startup cutoff older than the second-most-recent local session. Discovery is a separate gate: Copilot considers only supported local sessions updated in the last seven days even with Last 30 Days selected. The first-open banner identifies origin; hiding an open external session asks confirmation. Sending from VS Code adopts the session so that the External filter no longer controls it. An external Codex chat has one writer: while another app owns it, sending, queueing and resending are blocked, although transcript, draft and attachments remain. Fully quit the other app and select Retry; Retry does not send the draft. Send explicitly after the banner disappears.

Resume in Terminal is conditional on its context-menu availability. Starting a new CLI conversation does not resume an existing one. A remote host must remain reachable; reconnecting to a managed cloud session keeps execution there. Moving local work to cloud requires a separate cloud session in the source's experimental flow. App remote control likewise keeps the local session on its original online machine.

CLI startup --continue selects the most recent session in the current working directory, then falls back to the global most recent. --resume accepts an ID, ID prefix or exact case-insensitive name and falls back to the generated summary if no explicit name matches. Bare --resume needs a TTY picker; multiple matches without an available picker fail rather than silently starting a new conversation. --connect conflicts with --resume and --continue. The programmatic prompt completion summary can supply an actual session-ID resume hint. /rename \[NAME\], also /session rename, auto-generates a name when omitted. /clear, /new and /reset start fresh conversation context; /new worktree uses a new worktree while preserving the original. /restart restores live CLI sessions subject to version compatibility, preserves selected model and resumes worktree sessions in their original worktrees. None of these actions reverses completed external effects.

For CLI startup, `-C DIRECTORY` changes the working directory before other work, and `-n NAME` or `--name=NAME` names a new session for later resume lookup. This differs from renaming an existing session. Relative paths in `--add-dir`, the `@file` form of `--additional-mcp-config`, and `--plugin-dir` resolve against the session working directory selected by `--resume`, `--worktree` or `-C`, regardless of option order. Inspect that resolved identity before loading configuration; describing these flags does not grant file or tool access.

Within the interactive CLI, `/cwd` or `/cd [PATH]` displays or changes the working directory. `/search [QUERY]` or `/find [QUERY]` searches the current conversation timeline; it is not a search of every stored session. `/session` (also `/sessions`) shows information and manages session records through its named info, checkpoints, files, plan, rename, cleanup, prune and deletion controls. Bare `/share` or `/export` opens a menu without sharing or exporting anything; `link` creates a shareable GitHub session link and `off` stops link sharing; `file` exports Markdown, `html` exports HTML, `gist` creates a GitHub gist, and `research` exports the research report. Choose and authorize the actual destination and action rather than treating menu inspection as publication. The CLI's documented `/chronicle` inventory separately includes standup, tips, improve, reindex and skills create/review/status; those skill commands concern proposals from observed usage, not proof that work was accepted.

On Windows, an app WSL session needs WSL 2, a repository/folder inside its distribution and app sign-in. Run gh auth login separately inside WSL. In app Settings > Environments connect the discovered distribution, add the actual Linux repository path, then select that distribution under Environment when starting. If Environments is hidden, check the experimental WSL hosts setting. Windows app sign-in is not WSL authentication.

### Choose continuity and isolation deliberately

Resume for the same task; use a supported nested conversation for related work with fresh history; fork to retain previous discussion while exploring an alternative; use a supported side chat for a question outside the main transcript; start a new session for unrelated work. Separate conversations sharing a folder still share file changes. A fork of a Copilot worktree session uses that worktree, so conversation separation does not isolate implementation.

A nested session starts blank, defaults to the parent's harness and host, and needs an unarchived parent plus multi-chat support. Choose the harness before the working folder. No Workspace creates an independent temporary folder; workspace-less chats do not share temporary files. Branch/new-worktree choices need a Git folder. Experimental mixed-harness chats are off by default; each chat keeps independent model and permission settings across restarts. A fork retains the source harness/model/permissions; a prompted fork uses the source agent/model, not new picker choices. Supported Copilot/Claude side chats inherit context through the selected turn; Local and Codex-extension sessions do not support that side-chat path.

For a supported fork, `/fork` copies the full conversation. To retain only the discussion through an earlier request, hover over that request and select **Fork Conversation**. In multi-chat Copilot sessions in the Agents window, the fork opens as a nested session; in single-chat sessions or a harness without multiple-chat support, it opens as a separate session. A Copilot worktree fork still shares the original worktree.

Supported Agent Host sessions accept `/fork <title>` to name a fork without sending a prompt, and `/fork prompt <prompt>` to fork and immediately send the prompt with its attached context. A prompted fork uses the source conversation's agent and model. An explicit title is retained; otherwise, the title can be generated from the original title and the new prompt.

In the Agents window, selecting response text can open the experimental selection menu. **Quote** appends that text as a Markdown block quote to the current input, preserving an existing draft; it does not send the message. **Ask in a Side Chat** lets you enter a question and press Enter to open a separate side chat with the selected fragment. If the selection offers **Ask Question** directly, enter the question there. The `chat.agentSessions.responseSelectionMenu.enabled` setting controls this menu and is on by default.

In the Chat view, select text, right-click and choose **Ask in Side Chat**; selecting text alone does not automatically open that menu. In either supported interface, `/btw <question>` starts a side chat from the latest turn, including a response in progress, without selecting a fragment. A side chat inherits the source agent, model and context through that turn, although the inherited messages are not shown in its transcript. Its question and answer remain outside the main conversation. It favors explanation unless changes or actions are requested; the actual tool and authorization limits still apply.

Pinning and grouping organize entries. In the Agents window, sessions can be grouped by workspace or timeframe, and group headers can be collapsed. An individual chat's title is independent of the parent session title.

Custom groups organize top-level sessions and quick chats, including work across projects. Right-click a session, quick chat or empty list area, choose **Create Group**, and name it. Use **Add to Group** for another entry or **Move to Group** when it already belongs to a group. Multiple selected sessions can be dragged into a group. Create subgroups with **Create Subgroup** or by dragging one group into another; drag sessions or group/workspace headers to reorder them. A group can have its own icon and color. Individual nested chats are not independently custom-grouped.

For a session with multiple chats, progress and unread indicators belong to each chat. The parent remains in progress while any chat is working, and the session header's **Changes** indicator combines their edits. Switching chats retains each chat's messages and unsent draft. Select the actual conversation to inspect its response, and review and validate its changes before integrating them.

Experimental conversation moves in the Agents window require `chat.agentHost.moveChats.enabled`; this setting is on by default in Insiders. These moves change grouping while preserving history and working folders, including worktrees and temporary folders. Chats sharing a worktree still share file changes after a move or promotion.

The source and destination must use the same host, neither may be archived, and the destination must support multiple chats. The harness must match unless mixed-harness chats are enabled. A moved chat keeps its own harness, model and permission settings. Promotion to a new session requires at least one prior prompt; the new session inherits the custom group but not the pinned state. A workspace-less chat promoted to a top-level session appears in Chats.

For manual nested order, choose **Filter Sessions > Ordering > Created**, then drag a chat above or below a sibling or use **Move Up** or **Move Down** where available. The order persists after reopening the window. During a drag, an insertion line indicates reordering and a highlighted destination indicates nesting, so inspect the actual target.

Grouping moves do not ask for confirmation. Watch the progress/result notice and use **Undo** within 10 seconds to restore the previous parent and position. A streaming response continues after the move. Linked subagent conversations, pull requests and agent merge monitoring remain with the conversation, including after undo. These grouping actions do not move files.

Moving the working folder is a different operation. The documented Agents flow needs a single-chat Agent Host session with one local folder and Copilot, or experimental Codex in Interactive mode. Request the destination on the same host, confirm it and any approvals/Workspace Trust, then wait for the workspace-change notice and automatic continuation. Existing destination files are reused; source files are not copied or moved. A new worktree begins from committed Git state and needs at least one commit. Uncommitted changes stay in the original folder, apart from configured include-copy rules.

### Keep long conversations focused

In VS Code, hover over the context-window control in the chat input to see token counts, a category breakdown and the session's total AI credits. Available context depends on the model. Compaction summarizes earlier history to free context space and reduce tokens sent with later requests.

Conversations compact automatically when the context window fills. Set `github.copilot.chat.summarizeAgentConversationHistory.enabled` to `false` to turn that automatic summarization off. For manual compaction in Local, Copilot or Claude sessions, type `/compact`, optionally adding what to retain, or select the context control and **Compact Conversation**. For example, `/compact focus on the database schema decisions` supplies retention guidance; it does not establish that files were restored.

For fresh history, start a new session or a new blank nested conversation. Saved files, custom instructions and persistent memory remain. Review and revert code changes through the appropriate recovery path. Stable context and forks can preserve prompt caching and reduce cost or latency; use the actual Cache Explorer evidence to investigate cache hits rather than assuming a saving occurred.

### Archive, restore and delete have different consequences

The app's **Manage sessions** view searches and filters sessions and chats, including archived chats, and supports restoring archived chats. In VS Code, **Archive** or **Mark as Done** removes completed work from the active list while retaining its conversation. **Unarchive** or **Restore** makes it available again.

Resource handling also matters. In the documented VS Code worktree archive flow, uncommitted changes are preserved on the session branch before the worktree folder is removed; restoring re-creates the worktree. If preservation or removal cannot complete, the worktree can remain. A Local session archived under enterprise runtime policy can remain read-only while that policy applies. Restoring a list entry does not override the policy.

The named **Local** harness has a specific exception: a session automatically archived by enterprise runtime policy enforcement remains read-only while that policy applies. Continue the work in its actual replacement Copilot session instead. This instruction does not establish a replacement-creation button or make ordinary Restore a policy bypass.

Deletion is permanent and can remove associated session-created worktrees. Preserve or integrate needed work first, because uncommitted files in a removed worktree can be lost. Do not use deletion merely as a substitute for hiding completed work.

In the Agents window's Multiple presentation, use **Delete Chat** for an individual chat. This is a separate object and control from deleting the whole session; do not infer the session's worktree-removal behavior from the chat-level control alone.

Cloud-session controls depend on execution type. The adopted original-HTML control matrix supports the following distinction:

| Cloud session type | Archive | Delete |
| --- | --- | --- |
| GitHub Actions-backed session | Supported | Not supported |
| Cloud sandbox session | Supported | Supported |

These are dated control states from the adopted material. The web-chat `/delete` command does not establish the lifecycle controls of an agent session. Deleting a conversation record also does not demonstrate that its completed repository or external-service effects were reversed.

### Clean up resources with their actual conditions

App Manage sessions can search/filter sessions and archived chats, restore archived chats and perform bulk archive/delete/restore. Its working-file and history disk columns describe distinct storage. In VS Code, closing a tab only hides it. Archiving a worktree commits uncommitted changes to its branch before folder removal; failure to preserve or remove leaves the worktree present. The retained branch supports restoration. A Dev Container is removed only when no other session or unsent draft uses it. Policy-archived Local sessions remain read-only while policy applies. An additional nested chat can be marked Done without altering siblings; main, side and subagent chats cannot be marked Done independently. A shared worktree stays until its last linked session is deleted or archived.

In the app's Manage sessions view, the separate working-file and chat-history disk columns are sortable.

For deliberate cleanup use Chat: Open Worktree Cleanup. Choose an inactivity filter and, if needed, a workspace. Review actual branches, paths and estimated sizes, deselect work to keep, save open edits and confirm. Normal cleanup marks listed sessions done, commits nonignored uncommitted changes to their branches and schedules the folders for removal. Branches and session history are retained, so restoring a listed session re-creates its worktree. It protects worktrees used by other sessions or chats; ignored files in removed worktrees are deleted. Eligible managed leftovers can appear without measured size or last-used time. Arbitrary external worktrees/unregistered folders are excluded. Unknown size is not zero or proof of removal. Investigate errors and use Retry Failed Worktrees only where eligible. Force Remove can discard uncommitted work and affect other sessions, and has a separate confirmation.

The experimental storage suggestion appears when inactive worktrees consume at least 5 GiB OR at least 20 qualify; opening it does not remove anything.

In VS Code, preview automatic cleanup for Copilot, Claude and the experimental Codex integration has two separate settings. Both default to `0` (off). The documented configuration uses positive whole numbers of days, with `15` recommended by the source.

| Setting | What its period measures |
| --- | --- |
| `chat.agentSessions.autoMarkAsDoneMergedSessionsAfterDays` | Inactivity before an eligible session can be automatically marked done |
| `chat.agentSessions.autoDeleteMarkedAsDoneMergedSessionsAfterDays` | Grace period after automatic completion before permanent deletion |

These clocks have different starting points. An eligible session must be nonbusy and nonexternal, exceed the configured inactivity threshold, have at least one merged pull request and have no related open pull request. Checks run at startup and hourly while either setting is on. Only automatically completed sessions qualify for automatic deletion; manually completed sessions do not. The deletion grace begins after automatic completion, and restoring an automatically completed session clears its deletion eligibility.

The following static configuration checks illustrate the documented values; no setting was changed or product parser tested:

| Configuration information | Expected interpretation |
| --- | --- |
| A timer is `0` | That timer is off |
| A timer is a known positive whole number such as `15` | The timer is enabled with that many days; action still needs its actual eligibility conditions and a check |
| The setting is omitted | Its documented default is `0` (off) |
| The saved value is unknown to the reviewer | Inspect the actual setting before treating it as enabled; lack of evidence is different from confirmed omission |
| A negative or fractional value, or a non-number such as a Boolean or text | It does not establish a setting in the documented positive-whole-number range. Verify or correct the actual configuration; this extract does not establish a particular UI or parser error |

For a fictional mark-done example, assume its timer is `15` days, the session is neither in progress nor external, it has a merged PR and no related open PR, and all other relevant prerequisites hold. At one hypothetical check, use the stated elapsed inactivity ages:

| Inactivity input | Expected mark-done eligibility on this threshold |
| --- | --- |
| Known 14 days | Does not exceed 15; this gate is not met |
| Known exactly 15 days | Equals the threshold and does not exceed it; this gate is not met |
| Known 16 days | Exceeds 15; eligible at the check if every other gate still holds |
| Missing or unknown inactivity | Cannot establish that the threshold is exceeded; inspect the actual session record and preserve the unknown |

These are expected teaching decisions, not observed cleanup results. Startup and hourly checks provide opportunities to evaluate eligibility; they do not guarantee an exact completion or deletion time. The adopted extract does not independently specify what happens at the exact deletion-grace boundary, so do not transfer the mark-done strict comparison to that second clock or claim deletion at a precise instant.

Automatic worktree removal additionally requires a branch that tracks an upstream, no outgoing commits and no uncommitted changes. Unknown Git state or an unmet condition retains the worktree, and automatic cleanup never forces removal. **Configure Automatic Cleanup** opens both settings without enabling them.

In the documented VS Code export flow, retain or share conversation content separately by exporting the chat as JSON or copying its messages as Markdown. Review the contents before sharing, and keep the intended destination and disclosure within the actual authorization for that information.

### Distinguish history storage, syncing and access

A session record can include prompts and responses, tools used and changes made to files. Session history is the collection of sessions that can be queried. Its available query, resume, review, sharing and insight capabilities depend on the surface; a tool inventory alone is not a record that the tool was used.

CLI/app store complete sessions in \~/.copilot/session-state/ and a queryable subset in local SQLite; IDE storage is IDE-specific. Local CLI/app sync is on by default, but Business/Enterprise requires Store local sessions in the Cloud at least View from cloud; disabled or unconfigured means local-only. Syncing does not share sessions. Synced data is private by default, and policy administrators do not gain its content by enabling sync. A shared local session is view-only for recipients with repository access; they cannot steer it and it does not enter their own indexed history. History querying is limited to the user's own started sessions with actual synced history, a supported client and applicable policy; a shared transcript does not satisfy those requirements. Queries or /chronicle may send relevant recorded context to the model.

Actions-backed cloud execution is ephemeral, retains logs, is shared by default, and has the source's web-only, single-repository and 28-day history constraints. Cloud sandbox sessions are unshared by default, preserve stopped-state snapshots, support the documented cross-client continuity and multiple repositories within one organization, and use account-lifetime history. These source-specific controls must not be mixed. The newer paid cloud experience is dated October 28, 2026, subject to policy, repository enablement and SSO; Free keeps older chat. Without repository write access the session is read-only. Finding synced history is not a connection to a live running agent.

In the supplied snapshot, both Actions-backed and cloud-sandbox Copilot sessions can work on only one branch at a time and open one pull request per task. An Actions-backed session has a maximum execution time of 59 minutes; this limit cannot be extended or bypassed, and the session stops if the task exceeds it. These execution-host limits still apply when selecting a different model or custom agent.

Copilot can generate incorrect, suboptimal or insecure code, so review and test generated code before production use. These cloud-agent workflows require repositories hosted on GitHub. Repository rulesets or branch protection can prevent Copilot from creating or updating a pull request. Repository administrators can configure a ruleset bypass for Copilot; choosing a model or custom agent does not configure that bypass or grant administrator authority.

Interpret environment defaults within the dated experience. In the older web experience, agent entry points defaulted to GitHub Actions, and chat and delegated tasks were separate sessions. The newer experience can offer cloud-sandbox or Actions-backed execution. Cloud is the default where an environment choice is offered, but defaults can vary by workflow. Check the selected environment before starting rather than inferring it from a model or profile.

The host comparison is background for session, profile and context choices; it does not require creating a new profile or changing infrastructure. A **client** is the interface used to start or steer work, a **session** is the conversation and associated activity, and an **environment** is where the agent executes. The newer experience offers Cloud, GitHub Actions-based and Remote custom environments. The continuity, repository and retention differences above sit alongside these supplied distinctions:

| Environment consideration | GitHub Actions-based session | Cloud sandbox session |
| --- | --- | --- |
| Custom execution | Supports Actions-specific custom compute, network and setup configuration, including self-hosted runners | Honors repository and organization firewall allowlists; does not support custom compute, Actions-specific setup steps or self-hosted runners |
| Customization and tools | Supports custom instructions, MCP servers and content exclusions | Supports custom instructions, dotfiles personalization, repository and personal MCP servers, connectors and content exclusions with one configuration across cloud sandboxes |
| Suitable need | Repository-specific integrations, custom environments or self-hosted execution | Cross-repository chat and quick access to models when those custom execution facilities are unnecessary |

The older experience uses separate policies for features such as Copilot cloud agent and Copilot Chat. The newer cloud experience on GitHub.com and GitHub Mobile uses a single organization and enterprise policy. In the older experience, Chat conversations and delegated agent tasks are separate sessions; an agent task started from Chat runs on Actions without an environment choice. In the newer experience, the chat and agent session can run in Cloud or Actions, subject to the selected workflow and the dated defaults above. None of these descriptions establishes the effective policy or write authority for a particular account.

The newer session-context choices can automatically include all repositories owned by the user or an organization, a specific file, issue or pull request, a selected repository and branch, or a Space. The repository selector, plus menu and mentions attach relevant context. In the older experience, a specific item or repository and branch can be attached automatically, but multiple-repository context requires manual selection through the repository selector. Session context differs from Copilot Memory's persistent understanding across sessions. An attachment mechanism still needs actual access to the selected repositories and information.

CLI local deletion asks whether to delete the synced copy too; app local deletion immediately deletes its synced copy. CLI deletion updates local list, index and synced-list state. /chronicle reindex rebuilds the SQLite history index from actual session-state files after moves, backup restoration or index gaps. A query being available does not establish that a record was deleted or that a running session is reachable.

### Worked example: recover the session before repeating work

This fictional scenario shows expected outcomes; no session operation is performed by the example.

A project manager wants to continue a release briefing in VS Code. The active list in workspace `service-beta` is empty. The earlier work belongs to repository `service-alpha`, branch `release-notes`, on the original local host. Its session was marked done after a draft was prepared.

The manager opens the original workspace, includes **Done** in the Agents window filter, and finds the session. Before continuing, the manager reads the prior request and draft changes. The earlier task authorized a draft only; no message was sent and no release approval was recorded.

The manager restores the session, gives it a distinguishing title through the client's supported rename control, and pins it in VS Code. The expected result is:

| Item checked | Expected result |
| --- | --- |
| Working identity | `service-alpha`, `release-notes`, original host |
| Conversation | Prior request and draft remain available |
| Active organization | Restored entry with the revised title and pinned position |
| Authorized continuation | Revise the draft from supplied evidence |
| External status | Sending and release approval remain unperformed |

A suitable follow-up is: “Continue the existing draft. Preserve the approved milestone, mark the missing dependency owner as Unknown, and show the revised paragraph for review.” The manager then inspects that paragraph. A restored session or completed response is not itself evidence that the requested correction was accurate.

If the session still cannot be found, record the checked workspace, host and filters and preserve the gap. Do not claim there was no prior work. Once the draft is accepted and preserved, archive can remove the entry from the active list without treating it as deleted. If a later local change needs reversal, use the appropriate recovery control; `/clear` starts fresh conversation context and does not undo that change.

## Select the effective specialist

With the session identified, choose the role required for the next action. A good evidence-reading setup and a command-execution setup have different capabilities and acceptance evidence.

### Understand the documented CLI specializations

The adopted CLI guidance describes these built-in roles:

| Agent | Documented role | A suitable business-facing use |
| --- | --- | --- |
| Explore | Quick codebase analysis in a separate context | Locate documents that explain a release dependency |
| Task | Execute tests/builds with brief success summaries and full output on failure | Report the actual outcome of an authorized validation command |
| General-purpose | Complex, multi-step work with a fuller toolset and separate context | Carry out a bounded investigation requiring several capabilities |
| Code-review | Review changes for genuine issues while minimizing noise | Identify a material mismatch between a change and its requirements |

These are CLI roles, rather than a claim that every client displays the same menu. The CLI model can delegate to a specialized subagent when useful or handle the task directly. A request for a small explanation does not necessarily need a separate agent.

The Copilot app also documents the **rubber duck** as a built-in constructive critic for a current plan, implementation or tests. It runs on a different model from the one driving the main session. When enabled, the main agent can consult it automatically at key points, or a user can open an active session and request a critique with `/rubber-duck`. The main session passes work to the critic, receives feedback and decides how to apply it before continuing. This consultation is distinct from manually choosing the main model, the CLI's four-role inventory and an approving reviewer. Critique still needs evaluation against the task and evidence.

Fit depends on the required action. Exploring supplied plans and running a build are different tasks. A business analyst asking which document defines a dependency should not accidentally authorize execution because an agent's name sounds more capable. Equally, a profile without an execution tool cannot establish a test result merely by explaining how a test should run.

### Check capabilities and authorization together

Before selection, identify the necessary inputs, permitted actions and desired output. Then check the profile's actual instructions and available tools in the intended client. A description promising web evidence does not supply a web tool. A profile with a repository-reading tool still needs effective access to the repository.

Keep the outcome bounded. An exploration task may require a source-backed explanation and a list of unresolved questions. It does not imply permission to edit the source documents. An authorized test task needs an actual command result and its scope; a proposed command remains a proposal until executed.

When necessary capability or access is missing, the useful output is a precise gap. Selecting a more permissive profile without considering authorization is not a reliable repair. Investigate whether the intended profile is discoverable and whether the current repository and host are correct.

### Invoke the intended profile

In the adopted CLI, `/agent` displays available agents. A user can also name a custom agent in a natural-language request or use the command-line form below. This is an illustrative invocation shape; the named profile and input must exist in the actual environment.

```text
copilot --agent=release-review --prompt "Review the supplied release-plan changes against the stated acceptance criteria."
```

Natural-language inference can be convenient, but explicit selection is easier to inspect when two profiles have similar names. Check which profile the client actually selected, rather than assuming that the wording of the request proves the result.

On GitHub.com, the documented custom-agent picker can select a profile in place of the default cloud agent; an agent can also be selected when assigning an issue. The resulting pull-request description identifies the custom agent used. This provides traceability, not automatic acceptance of the pull request. The adopted creation guidance labels custom agents in JetBrains IDEs, Eclipse and Xcode as public preview, so retain that qualification for those environments.

### Diagnose the effective profile and its scope

In CLI, user profiles under `~/.copilot/agents` apply across projects, while repository profiles under `.github/agents` apply to the current project. Organization and enterprise profiles have broader scopes. For the same filename, the documented CLI precedence is **user > repository > organization > enterprise**.

Suppose a repository has the correct `release-review.agent.md`, but a same-named user profile remains active. Editing the repository file repeatedly may not change the effective behavior. Check profile location and precedence first. Do not infer that a repository file always wins in every client; host-specific discovery and configuration rules matter.

Verify the client, repository, target environment and profile identity together. If any are unexpected, resolve that mismatch before relying on the profile's specialization.

### Worked example: three tasks, three observable results

The following fictional examples show expected outputs, not performed retrievals, commands or reviews. Assume the organization authorizes the stated inputs and actions.

**Task 1: locate a dependency.** The supplied repository contains `release-plan.md`, which links issue 42, and a supplied issue excerpt saying that supplier confirmation is pending. Explore is a suitable choice for locating and explaining those inputs.

Prompt: “Find the release dependency in the supplied plan and issue excerpt. Return the source, dependency and unresolved fact. Do not edit files.”

Expected result: “Source: `release-plan.md`, dependency entry for issue 42\. Dependency: supplier confirmation. Unresolved fact: no confirmation date is supplied.” A fabricated date would fail, regardless of the selected agent.

**Task 2: report an authorized command.** A technical project manager has authorized the team's documented validation command. Task is a suitable role for executing and summarizing it. The expected report includes the command identity, completion status and observed failure details where applicable. If execution never occurred, the correct report is “Not executed,” with the missing prerequisite; it cannot say “Tests passed.”

**Task 3: review a change.** The supplied acceptance rule says an owner must remain Unknown unless evidence identifies one. A proposed update assigns Maya without a supporting source. Code-review should identify the specific unsupported assignment and request that the owner remain Unknown or gain an authorized source. A useful finding is tied to that actual difference, rather than a generic recommendation to improve quality.

Each selection serves a different action and produces a checkable artifact. The agent's completion message is only a starting point for reviewing whether the requested work occurred and whether its conclusion follows from the evidence.

### Verify scope and profile fields before relying on the name

The full CLI scope table is: user \~/.copilot/agents (all projects), repository .github/agents (current project), organization /agents in its .github or .github-private repository (organization projects), and enterprise /agents in the designated organization's .github-private repository (enterprise projects). Same filename means user > repository > organization > enterprise. Those CLI rules do not establish the IDE or cloud hierarchy.

CLI is available across Copilot plans, but organization-provided access requires the organization's Copilot CLI policy to be enabled. Cloud custom agents instead need an eligible paid plan and enabled GitHub repository, excluding managed-user-owned repositories in the adopted source, with applicable organization/enterprise policy and SSO.

If a cloud profile is missing, check the correct repository and whether the profile file was actually committed and merged into its default branch, then refresh the picker. A local draft or an unmerged branch does not by itself establish picker availability. Repository profiles use `.github/agents`; valid filename characters are ASCII letters/digits, dot, hyphen and underscore.

Organization owners can create organization-level profiles under root `/agents` in the organization's `.github` or `.github-private` repository. Enterprise owners can create enterprise-level profiles under root `/agents` in the `.github-private` repository of an organization designated in enterprise settings. Those are the corresponding scoped actors and locations; selecting an existing profile does not itself perform creation, merge the file or grant an owner role.

Inspect the effective Markdown/YAML profile. The `description` is required. An omitted `name` defaults to the filename without its `.md` or `.agent.md` suffix. The `tools` list controls the available inventory; omitting it exposes all available tools in the cited Copilot/cloud creation schema. The optional `mcp-servers` property can configure servers available only to this agent. Inventory configuration still operates within the actual host and resource permissions.

In that creation reference, `target: vscode` or `target: github-copilot` limits the agent to the specified environment; omitting `target` makes it available in both. Interpret the property through the actual host's schema. In the VS Code reference, `target` controls file-schema interpretation and does not switch the running harness. The `model` property is documented for VS Code, JetBrains IDEs, Eclipse and Xcode; an IDE model field does not by itself establish cloud model support.

The Markdown prompt body is capped at 30,000 characters. A test specialist's omitted-tools example exposes a broader inventory than its behavioral prose. A planner with read/search/edit can create a Markdown plan without implementing code. Instructions against production edits are behavioral requirements, not removal of write-capable tools.

For the authorized Task example, a complete fictional result might read: Command: npm test -- --runInBand; repository/branch: service-alpha/release-notes; process status: exited 1; observed runner total: 2 cases, 1 passed and 1 failed; failure: dependencyOwner must remain Unknown when the source lacks an owner, but received Maya. The expected artifact records failure and its evidence rather than saying validation succeeded. These figures describe supplied teaching output, not a command executed here. If no run output exists, every run/result field remains Not executed or Unknown.

## Supply context that resolves to the right evidence

Model and profile selection cannot supply a missing source. Attach the intended material and then check whether its meaning supports the response.

### Context must resolve to the intended material

A context reference identifies the information a response should use. For a release briefing, that might be an issue, a planning file and a particular repository. Naming those items helps only if the client resolves them and the agent can actually read the required content.

Authorization is a separate question. Mentioning a private issue does not grant access to it. Writing a tool name in a prompt does not install that tool or approve its operations. A useful check is whether the response can identify and support its claims with the intended accessible material, rather than whether an attachment-shaped token appeared in the input box.

### The same symbol has different client meanings

The adopted sources describe these distinctions:

| Surface | Documented context or selection syntax | What to verify |
| --- | --- | --- |
| GitHub.com | `@` opens attachable context such as files, issues, pull requests, repositories and discussions; the cross-surface guidance also describes repository selection and a plus menu | The selected repository and resolved item match the request |
| Copilot app | `@` adds files; `#` references issues | The file and issue belong to the intended repository context |
| Copilot CLI | `@path` attaches a repository file; `#number` references an issue or pull request | The path and number resolve in the intended work context |
| Adopted VS Code cheat-sheet tab | `@` selects a participant; `#` variables such as `#file` and `#selection` provide context | The participant and supplied file or selection are the intended ones |

A VS Code participant is a specialist interaction route. For example, the adopted tab describes `@github` for GitHub-specific skills, `@terminal` for terminal-related context and `@vscode` for editor features. It labels `@azure` as public preview. Selecting one is different from attaching a file with the same spelling elsewhere.

Tool selection must follow the actual host inventory and picker. Do not assume `@tool-name` is a portable syntax for attaching or authorizing every tool. A tool's availability, the information it receives and permission to run it remain distinct checks.

### Prepare a bounded evidence request

Before attaching material, state what decision the response should support. Select the repository and relevant branch or revision, then identify the smallest set of sources that can support that decision. A familiar filename in another checkout may contain a different release plan.

Ask for specific information and its evidence. For example, “Identify the planned milestone, unresolved dependency and supporting source for each” is more checkable than “Tell me about the release.” Keep uncertainty explicit. If the source does not name an owner, the answer should preserve that gap.

After selecting references, inspect the resolved items in the client's interface. Check the repository name, file path or selection, issue identity and any revision information needed for the task. A reference to issue 42 in one repository is not equivalent to issue 42 in another.

Then inspect the response itself. Confirm that it represents both the file and issue when both matter, that its evidence corresponds to the supplied version, and that it did not quietly substitute unrelated conversation history. Correctly attaching sources improves the basis of an answer; it does not establish that their meaning was interpreted correctly.

### Worked example: a file and an issue support different facts

This fictional teaching example shows an expected result. The file, issue and output below are illustrative and were not retrieved from a real repository.

Assume an authorized app session is open in repository `service-alpha`. The supplied `release-plan.md`, revision 3, contains:

> Planned milestone: Release R. Dependency: supplier confirmation tracked in issue 42\. The milestone is approved; the dependency owner is not stated.

The supplied issue 42 excerpt says:

> Supplier confirmation is pending. No confirmation date has been established.

In the app, attach the actual file using `@` and reference `#42`. The exact file label should come from the resolved item, rather than a guessed path from another checkout.

**Illustrative prompt:**

> From the attached release plan revision 3 and issue 42 in service-alpha, draft an internal evidence summary. Include milestone, dependency, owner and open question, with evidence for each. Keep the approved milestone unchanged. Use Unknown for an owner the sources do not identify. Do not update the issue or send the summary.

**Expected result:**

| Field | Supported summary | Evidence |
| --- | --- | --- |
| Milestone | Release R; approved milestone retained | `release-plan.md`, revision 3, milestone statement |
| Dependency | Supplier confirmation remains pending | Plan dependency entry and supplied issue 42 excerpt |
| Owner | Unknown | The plan does not identify an owner; the issue excerpt supplies none |
| Open question | When will supplier confirmation be available, and who owns follow-up? | Issue 42 has no established confirmation date; supplied inputs name no owner |

This result separates the approved milestone from the unresolved dependency. It does not infer that the release is ready or that someone has been assigned. Its evidence labels identify the fictional inputs; an actual task should use the client's resolved source links or precise available locators.

Now suppose `#42` does not resolve. A suitable expected response is:

> The attached plan identifies Release R and points to issue 42, but I could not access the issue content in this repository context. The dependency's current status and confirmation date remain unverified. Please resolve the issue reference or supply an authorized excerpt. No issue update or message has been sent.

That is a partial result with a precise gap. Replacing the missing issue with an assumed “confirmed” status would turn an unavailable source into an unsupported business conclusion.

### Diagnose missing or misleading context

If a reference fails, first check repository, branch, path, issue identity and account access. Use a supported attachment route or supply a clearly identified excerpt that the task is authorized to use. A screenshot of a file name alone does not supply the file's contents.

If the answer draws on unrelated history, narrow the request or start an appropriate fresh conversation with the necessary references. Preserve the facts already checked and explain the remaining limitation. Do not ask the model to make a convenient assumption about a deciding fact merely to fill an empty field.

### Use the full client-specific reference contract

In the VS Code tab, #block, #class, #comment, #file, #function, #line, #path, #project, #selection and #sym include, respectively, the current block, class, comment, file content, function/method, line, path, project context, selected text and symbol. Select the actual reference in the current picker. GitHub.com's attachable-context list also includes extensions; an attachment route and a participant/tool route remain distinct.

In Visual Studio, the open file or selected code is default context. The source examples use #MyFile.cs for a file, #MyFile.cs #MyFile2.cs for multiple files, and #MyFile.cs: 66-72 for specific lines. Its #solution form requests solution context, but the adopted example row describes current-file reference; inspect what the actual client resolved instead of assuming that every solution file was supplied. The same character in CLI or another IDE need not have this meaning.

For the fictional issue/file example, precise links could be https://github.com/example-org/service-alpha/blob/fictional-rev3/release-plan.md and https://github.com/example-org/service-alpha/issues/42\. They are explicitly fictional locators, not fetched evidence or proof those resources exist; an actual answer must use the resolved repository/revision and actual source links. A checked full query returning no matching in-scope records supports a scoped empty result. A failed reference, unread file or inaccessible issue supports only a missing-input statement. If the plan reference is also missing, milestone and dependency both remain Unknown rather than carrying over the example's values.

## Choose commands by action and inspect their artifacts

After supplying context, shortcuts can express a supported action. The artifact still needs to meet the evidence and authorization contract.

### Inspect the command before using its name

A slash command is a shortcut for a supported action. Type `/` in the current prompt box to inspect the available commands and their descriptions. The command list can depend on the client and context, including whether an active session, relevant changes or an open pull request exists.

Some app commands invoke skills, but a command and a skill are not interchangeable concepts. A familiar spelling is also insufficient evidence that two clients perform the same action. The adopted web cheat sheet describes `/new` as starting a conversation; its VS Code tab describes creating a project. CLI has its own fresh-conversation and new-worktree forms. Read the actual description rather than transferring a remembered meaning.

### Explanation, repair and tests produce different artifacts

In the adopted IDE examples, `/explain` explains active or selected code. A manager can ask how the behavior affects the business requirement, but the explanation still needs comparison with the actual selection. Fluent wording is not proof that the correct code was selected.

`/fix` proposes a repair for problems in selected code. A proposal, a saved change and a verified repair are different states. Inspect any resulting change and the validation evidence before concluding that the underlying problem is resolved.

`/tests` generates unit tests for selected code. The generated test content is an artifact to review. It does not establish that the tests ran, passed or represented every acceptance condition. A passing run can only support the behavior actually checked under its stated inputs and environment.

For example, consider this fictional selected function. Its teaching contract accepts a nonempty string and returns a label; other inputs are outside this small example's specified contract.

```javascript
function releaseLabel(name) {
  return "Release: " + name;
}
```

An expected `/explain` result is: “The function prefixes the supplied name with `Release: ` and returns the combined string. For input `R`, the result is `Release: R`.” That is a concrete explanation, not an assertion that a release record was created.

An illustrative `/tests` request can ask for these two contract examples:

| Input | Expected returned string |
| --- | --- |
| `R` | `Release: R` |
| `Service Alpha` | `Release: Service Alpha` |

The table states expected results for a fictional function. No test runner was executed here. If validation of missing or invalid names is a real requirement, define that requirement and add corresponding cases; do not infer rejection behavior that this function does not contain.

### `/doc` is qualified by its IDE and purpose

The adopted cheat-sheet tables document `/doc` for **Visual Studio** as adding a documentation comment for a symbol, and for **Xcode** as generating documentation for a symbol. It is absent from the adopted VS Code command table.

That command's documented symbol scope does not mean “create any business document.” If the goal is a steering-committee briefing, give a normal supported request with the relevant evidence, audience, required content and structure. If the goal is symbol documentation, use the supported IDE control and inspect the generated comment against the symbol.

Avoid silently replacing one command with a similar name and claiming equivalent behavior. If a command is missing, inspect the current list and determine whether the underlying task has another supported route.

### Conversation controls do not prove a rollback

The adopted sources describe `/clear` differently by surface: clearing a web conversation, starting a new VS Code chat session, or clearing the app transcript and starting fresh. These descriptions concern conversation context. They do not establish that files, sent messages, deployments or other external state were reversed.

The web-chat `/delete` command deletes a conversation. It is not a universal command for archiving a session, deleting a worktree or stopping a cloud agent. Agent-session lifecycle controls have their own documented conditions. For example, the adopted cloud-session controls distinguish Actions-backed sessions from sandbox sessions; a chat command cannot establish those controls by analogy.

If an agent made an unwanted change, first identify the affected state. Use an appropriate file, Git or external-service recovery path with the necessary authorization. Clearing the conversation may remove useful context while leaving the unwanted effect in place.

### Use `/chronicle` as a history-based starting point

The app and CLI document `/chronicle` for session-history insights. The app includes `/chronicle standup` to summarize recent work, along with features such as history search and cost tips. The adopted CLI has a different subcommand inventory. Check the current client instead of copying an entire subcommand list from another surface.

A history summary reflects accessible recorded sessions and the command's period. Work performed elsewhere may be missing. A collaborator's shared local session is not automatically indexed into the viewer's chronicle results. A summary's mention of a draft also does not establish that the draft was reviewed or accepted.

### Worked example: prepare a truthful standup draft

This fictional example applies the app's documented history-summary purpose. It shows an expected reviewed draft, rather than an actual command output or a message sent to colleagues.

Assume the accessible history for the prior day records three facts:

* A release-status draft was prepared from the supplied plan.
* Unit-test examples were generated for a selected function, but no runner result was recorded.
* A dependency remained unresolved, and the supplied history identified no owner.

After requesting a standup summary through the supported app command, the reviewer should expect a draft such as:

> Prepared the release-status draft from the supplied plan. Generated unit-test examples; execution and results remain unverified. Supplier confirmation is still an open dependency, and the available history does not establish an owner. Proposed next steps are to review the draft, run the authorized validation and identify the dependency owner. This update covers the accessible recorded sessions for the prior day; work outside that history is not represented.

The draft includes completed drafting, generated-but-unexecuted validation work, an unresolved dependency, proposed next steps and the coverage limitation. “Tests passed and the release is ready” would be unsupported by these inputs.

If the command is unavailable, a supported ordinary request can ask for a summary of the supplied history with the same constraints. That is an alternative way to request the reporting task, rather than proof that a missing command executed. Review the resulting content and period before sharing it; requesting a draft does not itself authorize sending it.

### Inspect command prerequisites and preserve the output state

The adopted VS Code list includes /clear, /explain, /fix, /fixTestFailure, /help, /new and /tests. The separate Visual Studio table lists /doc, /explain, /fix, /help, /optimize and /tests. The /optimize command analyzes and improves the running time of the selected code. Xcode lists /doc, /explain, /fix, /simplify and /tests. In Xcode, /simplify applies to the current code selection. The JetBrains table lists /explain, /fix, /help and /tests, while /chronicle and /compact refer to its interactive CLI context, and /remote is CLI-only. Absence from one saved table establishes that snapshot, not all future versions.

For the selected releaseLabel function above, a complete illustrative generated test artifact can be:

```javascript
import assert from 'node:assert/strict';
assert.equal(releaseLabel('R'), 'Release: R');
assert.equal(releaseLabel('Service Alpha'), 'Release: Service Alpha');
```

This is draft test code for an environment in which the function is in scope; a real test file needs the project's actual import/setup. No runner was used. /fix would need an identified defect and a stated expected behavior; changing the code without those does not prove a business repair. If the command is unavailable, request the same bounded explanation or test draft through a supported ordinary prompt, then inspect the artifact without claiming the missing command ran.

The app's /chronicle standup covers the last day; search takes keywords/topics; tips gives workflow suggestions; cost-tips targets token/cost suggestions; improve proposes instruction improvements; reindex rebuilds the index. The JetBrains interactive-CLI table separately lists standup/tips/search/improve. Query only the actual accessible history and period, retaining unvalidated work and missing coverage.

App command gates are specific: /clear or /reset, /compact, /fork, /review, /rename, /restart-session, /terminal and /reset-allowed-tools require an active session. /pr-open also needs changes; /pr-fix-checks needs an open failing PR; /pr-resolve-comments needs an open PR with unresolved comments; /pr-merge needs a mergeable PR. /merge-to-parent needs a fork, /init needs a repository, and /security-review needs an active session with changes. /remote needs an active session and applicable policy. /sandbox on/off controls local sandboxing for the active session, or the selected repository default if no session is active; it excludes cloud and remote-host sessions. These are availability conditions, not permission to invoke unrelated commands. A review/security shortcut still has bounded scope, and a merge command's availability does not establish authorization to merge.

The adopted app source labels `/security-review` **public preview**, subject to change. In an active session with in-progress code changes, it returns prioritized vulnerability findings with severity and confidence scores, plus suggested fixes. Review those findings and apply and verify appropriate fixes in the session. This on-demand review complements GitHub code scanning, Dependabot and secret scanning as an initial check on local changes before a pull request; its output is not proof of complete security.

## Bring the workflow together

For a release briefing, identify the intended repository and revision, select a permitted model that can handle the actual evidence, and use an evidence-focused profile with appropriate tools. Attach the plan and issue, request a source-backed draft, inspect its unknowns, then preserve the session under an identifiable title. Resume that same work for a related revision, and archive only after preserving what matters. A generated explanation, draft test, history summary or completion message remains distinct from an executed check, an external update and business acceptance.

## Sources

- [AI model comparison](https://docs.github.com/en/copilot/reference/ai-models/model-comparison)
- [Working with agent sessions in the GitHub Copilot app](https://docs.github.com/en/copilot/how-tos/github-copilot-app/agent-sessions)
