Overview
Keep GitHub Copilot work for several projects findable by running one session per task, recording it in a short index and asking Copilot about your synced session history.
Problem or Objective
More in Coding and Code Review
AI Agents and Models
Tools and Integrations
- Tools
- GitHub Copilot
- Prerequisites
- A Copilot plan and policy that allow session history syncing, and access to your repositories.
How It Works
1. List your active repositories and, for each, the tasks you want a separate Copilot conversation for. 2. Check that session syncing is enabled and that your organization permits it. 3. Start each task from the right repository, for example from its Agents tab, and open the first message with the project name, the goal and what must not change. 4. Keep each session to one task; start a new one when the goal changes. 5. Note in your own index file the repository, goal, session link, branch or pull request and next step. 6. Ask Copilot about your synced history to find earlier work, open the session it points to and confirm it before continuing. Approve any change before asking for a pull request.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up GitHub Copilot.
- Connect the toolsConnect the tools this workflow relies on: GitHub Copilot.
- Check the prerequisitesA Copilot plan and policy that allow session history syncing, and access to your repositories.
- Gather your detailsCollect what the prompt asks for: Project or repository, How far back.
- Run the starter promptPaste the starter prompt below into GitHub Copilot and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at docs.github.com before you rely on it.
Practical Starter Prompt: Find and Label Earlier Work
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
Search my synced Copilot session history for work on [Project or repository] from the past [How far back]. List each session you can find with its repository, goal, last known state, any branch or pull request, and a suggested one-line label. Say clearly when you are not sure. Do not edit files, create branches or pull requests, or continue any task. I will check each session and approve the next step.Open each listed session to confirm it, then approve what happens next. Keep the index file up to date yourself.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. GitHub documents cloud sessions that can continue across clients, an Agents tab in a repository and the ability to ask about synced session history. It does not prescribe this naming and index routine.
Limitations and Considerations
You can only query sessions you started, and syncing has to be enabled and permitted. Retention differs between environment types, so check it before treating a session as your record. Session text can contain client or secret details; keep those out of prompts and the index. Features depend on plan and organization policy, and the page describes both an older and a newer cloud experience. Results depend on your setup and were not independently reproduced by Top 200 Repos.
Sources
- GitHub Copilot on GitHub.com and GitHub Mobile - GitHub Docs (opens in a new tab)
Project documentation · docs.github.com · Undated · Source checked 2 Dec 2026, 13:21 UTC
What this source supports
- A session is the conversation and activity associated with agentic work, including the prompts you provide and the responses generated by Copilot.
- Copilot sessions that you start on in a cloud environment on GitHub can continue seamlessly across different clients, such as the GitHub Copilot app, your IDE, mobile, and CLI.
- You can ask Copilot about your synced session history across Copilot surfaces.
- You can only query sessions you started.
- Syncing must be enabled and permitted by your organization's policies.