GitHub Copilot is extraordinary at generating the next fifteen lines of code, but it possesses the memory of a goldfish the moment you switch repositories.
Every developer knows the frustration. You spent three hours last Tuesday perfecting an intricate retry mechanism with exponential backoff and custom telemetry in Project A. On Friday, you open Project B—a separate microservice in a different folder—and need the exact same logic. You ask GitHub Copilot to write it. Instead of retrieving the hardened, battle-tested pattern you just built, Copilot generates a generic, naive setTimeout loop straight out of a textbook. Copilot did not fail at autocomplete; it failed because its context window is trapped inside the boundaries of your active workspace.
At 365Finds, we believe solving cross-project velocity does not require abandoning GitHub Copilot or waiting for cloud models to ingest your entire hard drive. It requires pairing Copilot with an intentional, local-first macro-memory layer. That layer is Pieces.
Here is how to set up, operate, and master a unified workflow between Pieces and GitHub Copilot to preserve, enrich, and instantly reuse code across your entire portfolio of projects.
The Division of Labor: Micro-Context vs. Macro-Memory
The biggest mistake teams make when evaluating AI developer tools is expecting one single assistant to handle ephemeral code completion, long-term personal recall, snippet indexing, and multi-repo knowledge retrieval. That expectation creates bloated prompts and inconsistent outputs.
To make this combination work, establish a strict division of labor between GitHub Copilot and Pieces:
| Capability | GitHub Copilot | Pieces |
|---|---|---|
| Primary Role | Real-time code synthesis; inline autocomplete; local file refactoring | Persistent snippet preservation; cross-project memory; metadata enrichment |
| Operational Context | Micro-context (active file, open tabs, neighboring symbols, current repository) | Macro-context (saved snippets across all projects, commit links, terminal outputs, research) |
| Search & Retrieval | In-workspace vector matching and open editor buffers | Local vector and lexical index across lifetime developer history via PiecesOS |
| Integration Channel | IDE inline ghost text and Copilot Chat sidebar | PiecesOS background daemon, Pieces Desktop, and MCP (Model Context Protocol) server |
| Privacy Architecture | Cloud LLM inference (GitHub/Azure infrastructure) | On-device local database; offline indexing; configurable local LLM runtimes |
GitHub Copilot is your hands. Pieces is your external hippocampus. When you stop asking Copilot to remember what you built two weeks ago and instead let Pieces feed it vetted patterns, code generation transforms from stochastic guessing into deterministic reuse.
Architecture: Connecting Pieces to GitHub Copilot via MCP
Historically, using Pieces alongside GitHub Copilot meant juggling two disconnected tools: copying a snippet out of the Pieces window, pasting it into your editor, and then asking Copilot to adapt it.
That friction disappeared with the adoption of the Model Context Protocol (MCP). Pieces now exposes its Long-Term Memory (LTM) engine directly through a local MCP server, allowing GitHub Copilot Chat inside VS Code to query your saved Pieces snippets as native context.
Prerequisites
- PiecesOS & Desktop App: Install PiecesOS (the local background daemon) and Pieces Desktop. Keep PiecesOS running.
- Long-Term Memory Enabled: Open Pieces Settings and ensure Long-Term Memory (LTM) is toggled on. This allows Pieces to index snippets with origin context, associated tags, and language metadata.
- GitHub Copilot in VS Code: An active GitHub Copilot subscription with the GitHub Copilot and GitHub Copilot Chat extensions installed.
Setup Instructions
- Open the Pieces Desktop App and navigate to Settings > Integrations > Model Context Protocol (MCP).
- Copy the local MCP endpoint generated by PiecesOS (typically running locally over HTTP/SSE or stdio).
- In VS Code, configure your MCP server settings for GitHub Copilot by adding the Pieces MCP configuration to your workspace or user settings (
settings.jsonor.vscode/mcp.jsondepending on your VS Code MCP release):
(Alternatively, use the one-click MCP client connector inside Pieces Desktop if your IDE environment is detected.){ "mcpServers": { "pieces": { "command": "pieces-mcp", "args": [] } } } - Verify the connection in GitHub Copilot Chat. When you ask questions referencing past snippets, Copilot will display the Pieces tool call icon indicating it can read from your local Pieces vault.
The 4-Step Cross-Project Reuse Workflow
Once configured, your daily programming loop follows four repeatable phases across project boundaries.
+-------------------------------------------------------------+
| Project A (Source Workspace) |
| 1. Draft & refine logic inline with GitHub Copilot |
| 2. Save snippet to Pieces (Auto-enriched with tags & repo) |
+------------------------------+------------------------------+
| Saved to PiecesOS Local Vault
v
+-------------------------------------------------------------+
| PiecesOS Engine |
| - Local indexing & semantic embeddings |
| - MCP Server exposes snippet vault to Copilot agent |
+------------------------------+------------------------------+
| Queried via MCP / Grounding
v
+-------------------------------------------------------------+
| Project B (Target Workspace) |
| 3. Invoke Copilot Chat: "Adapt our Pieces snippet for..." |
| 4. Refactor and save enhanced variations back to Pieces |
+-------------------------------------------------------------+
Step 1: Capture and Auto-Enrich in Project A
When you build a reusable utility in Project A—such as a resilient PostgreSQL connection pooler or an OAuth PKCE flow—do not leave it stranded in that repository's git commit history.
Highlight the code block in your editor and trigger the Pieces capture shortcut (Cmd+Shift+V / Ctrl+Shift+V, or right-click > Save to Pieces).
Pieces automatically enriches the snippet on-the-fly:
- Detects language, framework, and runtime versions.
- Generates descriptive summaries and syntax tags.
- Captures origin metadata: the file path, the source repository URL, and any relevant commit hash.
- Flags runtime dependencies (e.g., specific npm packages or crate dependencies).
You do not need to manually write markdown notes or categorize folders unless you want to. Pieces does the clerical bookkeeping.
Step 2: Persistent Storage in PiecesOS
Your snippet now lives inside PiecesOS on your local drive. It is not buried in a repository branch that you will delete next month, nor is it lost in your browser history.
Because Pieces operates a local vector database alongside full-text lexical search, it indexes the code structure and semantic intent. If you later search for "rate-limited fetch wrapper," Pieces matches both the keyword and the underlying architectural concept.
Step 3: Recall and Grounding in Project B
Open Project B. You need the retry wrapper you wrote in Project A, but Project B uses TypeScript interfaces rather than vanilla JavaScript, and logs via Pino instead of Winston.
Instead of writing a blank prompt, invoke GitHub Copilot Chat using Pieces as your grounding anchor:
Developer Prompt to Copilot Chat:
"Using our saved Pieces snippet for the exponential backoff retry client, implement this in the current file. Replace the logging calls with our localloggerinstance from./utils/loggerand type the return value using theApiResponse<T>interface."
Through the MCP server, Copilot retrieves the exact implementation from Pieces, reads your current file's import graph, and writes an adapted, fully typed implementation tailored to Project B.
You skipped twenty minutes of manual search and avoided generic hallucinations. Copilot had the exact blueprint to follow.
Step 4: Versioning Iterations Back to the Vault
Engineering patterns evolve. While adapting the snippet in Project B, you might discover an edge case where transient 503 errors need specific jitter calculation.
Once resolved, push the improved version back to Pieces. You can save it as an updated snippet or link it as a related variant. Over months, Pieces becomes a curated catalog of your organization's verified software architecture, available to GitHub Copilot whenever you prompt it.
What 365Finds Likes—and What Frustrates Us
At 365Finds, we test tools against real production strain. Here is our unvarnished assessment of this combination:
What Works Exceptionally Well
- Zero Hallucination Grounding: GitHub Copilot rarely hallucinates when provided with an exact, production-verified template from Pieces. It stops guessing parameter names.
- Local-First Privacy: PiecesOS runs on your machine. Proprietary algorithms, internal API tokens accidentally captured in snippets, and company utilities stay on local storage rather than syncing to third-party public cloud clipboards.
- Cross-Tool Omnipresence: You can capture a snippet from a teammate's PR in Chrome using the Pieces web extension, and ten seconds later invoke it through GitHub Copilot inside VS Code. That cross-application continuity is genuinely liberating.
What Annoy Us
- PiecesOS Resource Footprint: PiecesOS is a full background runtime. When it runs OCR indexing or local embedding models on laptops with 16 GB of RAM, you will occasionally notice memory spikes. 365Finds recommends disabling local background LLM generation inside Pieces if you already rely on GitHub Copilot for raw inference.
- MCP Reconnection Glitches: The Model Context Protocol is the right standard, but it remains young. If your laptop sleeps or PiecesOS updates in the background, VS Code occasionally loses the MCP socket connection, requiring a manual window reload (
Developer: Reload Window). - Tag Sprawl: Pieces' automatic AI tagger can be overzealous. A twenty-line Go function might end up with twelve tags including generic labels like
codeorfunction. We recommend periodically pruning snippet titles so your MCP retrieval queries remain pinpoint sharp.
365Finds Final Verdict and Recommendation
If you rely solely on GitHub Copilot, you will continually re-solve problems you solved six months ago. Copilot is an exceptional autocomplete engine, but it is not a knowledge management system.
365Finds recommends using Pieces as the dedicated system of record for your reusable engineering patterns, while keeping GitHub Copilot as the execution engine at your cursor. Wire them together through the Model Context Protocol. Let Pieces remember your past; let Copilot build your present.