GitHub Copilot is fast, intuitive, and relentlessly forgetful. It predicts what you are typing right now with remarkable fluency, but it suffers from immediate operational amnesia. The moment you close an editor tab, switch to a sister repository, or hunt through Stack Overflow and Slack for a tricky authentication header, Copilot loses track. It knows your open files, but it does not know your history.
Pieces fills that void. Built around a local engine (PiecesOS) and a Long-Term Memory (LTM) system, Pieces acts as an external micro-knowledge base that captures, enriches, and indexes code fragments, stack traces, and reference materials.
At 365Finds, our research into AI engineering toolchains points to an unambiguous conclusion: developers should stop expecting GitHub Copilot to serve as their personal notebook. Combining GitHub Copilot's generation speed with Pieces' persistent snippet indexing—especially through the open Model Context Protocol (MCP)—transforms an ephemeral autocomplete tool into a grounded, context-aware coding environment.
The Core Problem: Why In-IDE Autocomplete Needs an External Brain
GitHub Copilot operates primarily within the perimeter of your immediate workspace. While its multi-file context and repository indexing have improved, it still struggles with three real-world developer habits:
- Cross-Project Pattern Reuse: Solutions developed in last month's microservice are rarely accessible in today's frontend repo without manual copy-pasting.
- External Research Evaporation: Documentation pages, API payloads, and terminal commands you verified an hour ago in a browser or terminal do not automatically feed Copilot's prompt window.
- Unstructured Snippet Graveyards: Developers frequently stash useful boilerplate into scratchpads, Gists, or messaging channels, stripping the code of its origin URL, language runtime, and architectural context.
Pieces addresses these gaps by capturing snippets along with automatic metadata: origin URLs, detected dependencies, human-readable descriptions, and contextual tags. Rather than forcing you to choose between Copilot and a dedicated snippet manager, recent architecture changes allow the two tools to talk directly to each other.
Architectural Shift: The Model Context Protocol (MCP) Bridge
Historically, pairing Pieces with an editor meant running an isolated IDE extension alongside GitHub Copilot. That led to clumsy keyboard shortcuts and split-screen drag-and-drops.
Pieces made a decisive strategic pivot: sunsetting legacy custom extensions for VS Code and JetBrains in favor of the standardized Model Context Protocol (MCP). Under this architecture, PiecesOS acts as a local MCP server, and GitHub Copilot Chat (running in VS Code's Agent mode) acts as the MCP client.
[ Developer Workflow: Web / Terminal / Past Repos ]
│
▼
[ PiecesOS (Local Engine) ]
├── Long-Term Memory (LTM)
└── Auto-Enriched Snippets & Tags
│
(MCP / Local SSE)
│
▼
[ GitHub Copilot Chat (Agent Mode) ]
│
▼
[ Active Editor Buffer / VS Code ]
Instead of manually feeding code into prompts, Copilot autonomously queries Pieces for relevant snippets, terminal logs, or past implementations when asked.
Step-by-Step Implementation Guide
Setting up this integration requires configuring PiecesOS as a local Server-Sent Events (SSE) endpoint inside your IDE settings.
Step 1: Install and Prepare PiecesOS
- Download and install PiecesOS and the Pieces Desktop App from the official site.
- Launch the Desktop App and navigate to Settings > General.
- Confirm that Long-Term Memory (LTM) is toggled on. This allows Pieces to passively index useful terminal, browser, and code interactions.
- Navigate to Settings > Model Context Protocol (MCP) and verify your local server URL. The standard endpoint operates locally over port 39300:
http://localhost:39300/model_context_protocol/2024-11-05/sse
Step 2: Register Pieces in VS Code / GitHub Copilot
To expose Pieces to GitHub Copilot Chat, add the MCP server definition to your VS Code user settings:
- In VS Code, press
Ctrl+Shift+P(Windows/Linux) orCmd+Shift+P(macOS) and open Preferences: Open User Settings (JSON). - Add the
mcpServersconfiguration object:
{
"mcpServers": {
"Pieces": {
"url": "http://localhost:39300/model_context_protocol/2024-11-05/sse"
}
}
}
- Save the file. Ensure that GitHub Copilot and GitHub Copilot Chat extensions are up to date.
Step 3: Trigger Contextual Retrieval in Copilot Chat
- Open GitHub Copilot Chat in your sidebar (
Ctrl+Alt+IorCmd+Ctrl+I). - Switch Copilot Chat to Agent mode (the mode dropdown next to the chat prompt). Agent mode is required for Copilot to invoke external MCP tools.
- Query your Pieces snippet repository directly using natural language:
"Check my Pieces snippets for the PostgreSQL connection pool configuration we used last week and adapt it for this async service."
Copilot will issue an MCP call to ask_pieces_ltm or query the snippet database, retrieve the exact code block with its verified parameters, and synthesize it into your current file.
The Daily Workflow: Capture, Ground, and Generate
At 365Finds, we test tools against routine engineering fatigue. The Pieces + Copilot combination works best when you establish three distinct operating habits:
1. Ingestion Outside the IDE
Use the Pieces browser extension and desktop capture to save reference materials while researching. When you find an obscure fix in an issue thread or an API payload in vendor documentation, save it to Pieces with one click. Pieces automatically tags the language, generates a title, and preserves the source URL.
2. Grounding Inside Copilot
When generating fresh boilerplate in VS Code, do not rely on Copilot's raw training data for proprietary or niche frameworks. Explicitly ground Copilot by prompting it to inspect your Pieces vault:
@Pieces Find the custom JWT middleware we wrote for the auth microservice. Use its error handling structure to draft the middleware in this repository.
This prevents hallucinations and enforces consistent coding styles across disparate projects.
3. Loop Closure
When Copilot generates an exceptional piece of architecture or a non-trivial algorithmic helper, save it back into Pieces immediately. This ensures your local personal index expands with every solved problem rather than vanishing when the session ends.
Division of Labor: GitHub Copilot vs. Pieces
| Capability | GitHub Copilot | Pieces for Developers | 365Finds Recommendation |
|---|---|---|---|
| Real-time Ghost Text | Excellent; millisecond in-line code completion | Not designed for ghost text completion | Rely on GitHub Copilot exclusively for typing velocity. |
| Cross-Repo Memory | Weak; bounded by active workspace or open files | Strong; global search across all captured snippets | Use Pieces as your persistent reference vault. |
| Context Enrichment | Minimal; takes raw prompt and active buffer | Automatic; appends origin URLs, tags, and dependencies | Use Pieces to preserve the why and where of code. |
| Protocol Integration | Acts as an MCP Client (via Copilot Chat Agent mode) | Acts as an MCP Server (via PiecesOS local SSE) | Connect them via MCP instead of manually pasting. |
| Data Privacy | Cloud inference through GitHub/OpenAI infrastructure | Local-first storage; on-device processing via PiecesOS | Keep sensitive internal snippets securely inside PiecesOS. |
Operational Friction and Trade-offs
This paired setup is not without compromises. In our evaluation at 365Finds, several points of friction demand attention:
- Resource Overhead: Running PiecesOS in the background alongside local vector indexing, browser extensions, VS Code, and Copilot Chat can add 800 MB to 1.5 GB of RAM overhead. On resource-constrained development machines, this impact is noticeable.
- Context Hygiene: Pieces' Long-Term Memory captures broad telemetry if left entirely unmonitored. If your vault fills with broken scratchpad attempts or irrelevant terminal errors, Copilot's MCP queries can retrieve degraded context. Periodic snippet grooming is necessary.
- Connection Fragility: Because MCP over SSE depends on a stable local port, restarting PiecesOS while VS Code is open can disconnect the MCP client, requiring a reload of the VS Code window (
Developer: Reload Window).
The 365Finds Verdict
We strongly favor separating context persistence from code generation. GitHub Copilot is a capable generative typist, but it is an unreliable custodian of institutional memory. Pieces provides the structured, local-first retention layer that Copilot fundamentally lacks.
By binding them together through the Model Context Protocol rather than legacy plugins, you eliminate context switching without turning your IDE into an unmanageable mess. For any developer juggling more than two distinct codebases or dealing with repetitive architectural patterns, this dual-engine setup is an immediate, high-leverage upgrade.