Study FAQ
How do I start a Copilot app session with the right repository and context?
Also asked as 2
- How should I set the repository, environment and evidence for a new Copilot app session?
- What must I select before asking the Copilot app to work on repository files?
Answer
Start the GitHub Copilot app session in the intended repository or folder, select where it will run, and provide the records the task needs. The client is your interface; the session contains the conversation and activity; the environment is where tools execute and files change.
- Use the new-session control beside Sessions and select a connected repository or folder.
- Choose This computer or Cloud in Environment. Cloud runs in a GitHub-hosted sandbox; local sandbox settings apply separately to tools on your computer.
- Choose New worktree or Current checkout, and the intended base branch. Check the resulting workspace before asking for changes.
- Select the session mode, model and any available effort setting. Mode governs collaboration; tool permissions separately govern execution approvals.
- Reference issues with
#, files with@, and attach other approved material through the app's supported controls.
Use /agent to select an available custom agent when the task needs a specialist, and inspect its actual tools. Name the source of truth and ask which inputs are available or missing. For example, a release summary may need approved issues plus a local checklist; selecting a repository does not supply that checklist automatically. Confirm the agent used the intended sources before accepting its conclusions.
For an unrelated task in an active app session, /clear or /reset clears the transcript and starts fresh; /chronicle opens history and analysis. Inspect the current / picker because availability depends on context. Resetting a conversation does not undo earlier file or external changes.
References: Working with agent sessions in the GitHub Copilot app - GitHub Docs, Slash commands for the GitHub Copilot app - GitHub Docs.
Full explanation
GH-700: Manage Copilot Sessions and Context Across Clients
Study guide · GH-700
Read the full explanation