GitHub Copilot is exceptionally good at finishing your sentences inside an open file, but it suffers from persistent workspace amnesia. The moment your problem spans three different microservice repositories, a Stack Overflow thread you read twenty minutes ago in Chrome, and a terminal error you debugged last Tuesday, Copilot's context window runs out of room. You find yourself manually copying snippets back and forth just to prompt the model.
At 365Finds, we look at developer tools through a pragmatic lens: we dislike unnecessary friction, and we hate tools that demand you dump your entire proprietary codebase into yet another third-party cloud. That is why pairing Pieces with GitHub Copilot has become one of our favorite setups. Pieces acts as a local-first long-term memory engine (via PiecesOS), continuously capturing code snippets, browser research, and terminal outputs. Instead of replacing Copilot, Pieces feeds external context directly into Copilot Chat through the Model Context Protocol (MCP), while giving your team shareable, enriched links for institutional knowledge.
Here is exactly how to set up, capture, query, and share context between Pieces and GitHub Copilot without bloating your workflow.
Understanding the Division of Labor
Before touching any configuration file, you need to understand how the two tools divide responsibilities:
- GitHub Copilot remains your code generation and inline autocomplete engine inside Visual Studio Code or JetBrains.
- Pieces (specifically PiecesOS and Pieces Desktop) acts as your background context aggregator and long-term memory layer. It indexes code snippets, terminal traces, and web documentation locally on your machine.
- Model Context Protocol (MCP) provides the standardized bridge. While Pieces previously built isolated IDE plugins, it has deprecated individual editor extensions in favor of hosting a local MCP server that any MCP-compliant AI assistant—including GitHub Copilot Chat—can query over Server-Sent Events (SSE).
Instead of forcing Copilot to guess based only on the current tab, this architecture lets Copilot ask PiecesOS: "Did the developer solve this specific database migration error earlier, and what was the snippet?"
Step 1: Install PiecesOS and Enable Long-Term Memory
Pieces requires two core desktop components: the PiecesOS background daemon and the Pieces Desktop App.
- Download and install PiecesOS and the Pieces Desktop App for your operating system (macOS, Windows, or Linux).
- Launch PiecesOS and verify it is running in your system tray or menu bar. PiecesOS handles local indexing, OCR, and the MCP server.
- Open the Pieces Desktop App or the PiecesOS quick menu, navigate to settings, and confirm that Long-Term Memory (LTM) is enabled. LTM continuously builds a chronological timeline of technical context across your machine, running local embeddings so your code never leaves your workstation.
Step 2: Retrieve the Pieces MCP Server Endpoint
To allow GitHub Copilot to read from Pieces, you must expose Pieces as an MCP context provider:
- Open the Pieces Desktop App and click the gear icon to access Settings.
- Select the Model Context Protocol (MCP) tab.
- Locate your local Server-Sent Events (SSE) endpoint. It typically resembles:
(Note: The exact port number may vary depending on your local installation; always copy the specific URL shown in your Pieces settings.)http://localhost:39300/model_context_protocol/2024-11-05/sse - Keep this URL on your clipboard.
Step 3: Connect Pieces to GitHub Copilot in Visual Studio Code
GitHub Copilot Chat in Visual Studio Code supports MCP servers to expand its reasoning context beyond the active workspace.
- In VS Code, ensure both the GitHub Copilot and GitHub Copilot Chat extensions are updated to the latest release.
- Open your VS Code command palette (
Cmd+Shift+Pon macOS orCtrl+Shift+Pon Windows/Linux) and locate your MCP configuration file (or open your user/workspacesettings.json/mcp.jsonfile depending on your editor configuration). - Add the Pieces MCP server definition to your
mcpServersconfiguration block:{ "mcpServers": { "pieces": { "type": "sse", "url": "http://localhost:39300/model_context_protocol/2024-11-05/sse" } } } - Save the configuration and reload VS Code. When GitHub Copilot Chat initializes, it connects to your local PiecesOS instance.
Step 4: Capture Context Across Your Daily Workflow
Context is only useful if you capture it cleanly. Pieces automates context capture through three distinct mechanisms:
- Automatic Workflow Timeline (LTM): With Long-Term Memory active, Pieces passively tracks code patterns you copy, errors you encounter, and documentation pages you visit in your browser. When you switch projects, that history remains indexed.
- Explicit Code Snippet Saving: When you craft a clean utility function, SQL query, or regex pattern that you know you will reuse, save it to Pieces using global keyboard shortcuts or the desktop interface. Pieces automatically enriches the snippet with tags, a descriptive summary, language detection, and the originating file or URL.
- Screen Text and OCR: If you are watching an architecture presentation or reading code in a video stream, Pieces captures snippets directly from screen screenshots via on-device OCR, converting raw images into syntactically valid code blocks.
Step 5: Query Pieces Context Inside GitHub Copilot Chat
Once connected through MCP, you no longer need to copy code blocks into Copilot Chat prompts manually. You can query your personal knowledge base in natural language directly inside the Copilot chat window:
- "Have I implemented a rate limiter for this API gateway before? Check Pieces for previous examples."
- "What was the solution to the connection pool timeout error I debugged yesterday?"
- "Using the authentication middleware pattern saved in my Pieces snippets, refactor this route handler."
Copilot invokes the Pieces MCP server behind the scenes, retrieves the relevant code snippet, documentation link, or historical session, and incorporates that context into its response.
Step 6: Share Context and Snippets Across Your Engineering Team
Capturing context for personal recall is only half the battle. When teammates ask how you implemented an obscure integration, sharing raw code over Slack or Teams strips away vital metadata. Pieces solves this through structured context sharing:
- Context-Rich Shareable Links: Right-click any saved snippet in Pieces and generate a shareable link. Unlike a generic GitHub Gist, a Pieces link bundles the source URL, explanatory notes, tags, related files, and dependencies alongside the raw code.
- Shared Collections: Organize snippets into domain-specific collections (e.g., "Kafka Event Schemas", "Internal Auth Boilerplates"). You can export or distribute these collections so team members can load identical context into their own PiecesOS instances.
- Standardized Team Prompts: When onboarding junior engineers, provide them with your team's curated Pieces snippet link. They can plug the shared snippet directly into their own GitHub Copilot Chat session to ensure Copilot adheres to company-specific conventions.
365Finds Commercial Judgment: Strengths and Friction
We at 365Finds strongly favor this architecture over monolithic cloud alternatives, but it is not without real friction.
What 365Finds Recommends:
- Air-gapped privacy for context indexing: PiecesOS processes your activity timeline and code snippets on your local hardware. If you work in fintech, healthcare, or security-sensitive enterprise environments where uploading entire repositories to cloud-based RAG pipelines is forbidden, Pieces plus Copilot gives you long-term context without security red tape.
- True cross-repository persistence: Copilot forgets everything once you switch repositories. Pieces remembers your solutions across separate workspaces, terminal windows, and browser research sessions.
What Frustrates Us:
- Background resource overhead: PiecesOS is a substantial daemon. Running PiecesOS, Docker desktop, Visual Studio Code, and browser instances simultaneously will noticeably stress laptops with only 16 GB of RAM.
- Manual MCP configuration hurdles: While the transition to MCP is the correct strategic move, setting up SSE endpoints in JSON config files is still clunky. We want to see a frictionless one-click handshake inside VS Code rather than manual port copying.
- Signal-to-noise ratio in LTM: If you leave LTM uncurated for weeks, it accumulates transient scratchpads and temporary debugging experiments alongside pristine code. You still need occasional manual cleanup in Pieces Desktop to keep your context pristine.
365Finds recommends this combination for senior developers and technical leads managing multi-repo architectures who find themselves repeatedly re-explaining the same internal architectural patterns to Copilot.