GitHub Copilot writes code fast, but its attention span is short. It lives in the active buffer or the repository open right now. The moment you switch from a TypeScript front-end in VS Code to a backend service in IntelliJ IDEA, that meticulously refined authentication pattern or database transaction wrapper vanishes from Copilot's horizon. You either re-prompt from scratch and hope for the same clean output, or you dig through closed terminal tabs and old pull requests.
At 365Finds, we find this context amnesia frustrating. Developers do not work in a single file or a single editor.
Pieces solves this specific friction. Powered by its local background engine (PiecesOS), Pieces operates as a cross-IDE memory layer. Instead of treating code snippets like dead text in a clipboard manager, Pieces auto-enriches them with language tags, descriptive titles, related web links, and dependency context using on-device machine learning. When you bridge Pieces and GitHub Copilot—especially through the Model Context Protocol (MCP)—you get persistent, cross-editor reuse for the exact patterns Copilot helps you generate.
Here is the exact setup and workflow 365Finds recommends.
The Core Concept: Dividing Labor
Before touching settings, understand why pairing these two tools makes sense:
- GitHub Copilot is the generator. It excels at next-token prediction, local line completion, and drafting boilerplate within your active repository.
- Pieces is the anchor. It captures, classifies, and indexes validated snippets locally, making them instantly searchable across different IDEs (VS Code, JetBrains IDEs, Visual Studio) and accessible to Copilot as contextual ground truth.
If you rely on Copilot alone for reuse, you are gambling on non-deterministic generation. If you rely on traditional snippet plugins, you spend half your day typing metadata and tags manually. The combination eliminates both chores.
+-----------------------------------------------------------+
| Your Workflow |
| |
| [ VS Code + Copilot ] [ JetBrains / Other ]|
| | ^ |
| Generate & Refine | Retrieve |
| v | & Adapt |
| +-----------------------------------------------------+ |
| | PiecesOS (Local Engine & LTM) | |
| | - Auto-detection & Syntax Classification | |
| | - Automatic Semantic Tagging & Descriptions | |
| | - Model Context Protocol (MCP) SSE Server | |
| +-----------------------------------------------------+ |
+-----------------------------------------------------------+
Step 1: Install and Connect PiecesOS Across Your IDEs
Pieces is not just a lightweight editor plugin; it relies on a local background runtime called PiecesOS.
- Install PiecesOS and the Desktop App: Download and install PiecesOS for macOS, Windows, or Linux from the official Pieces website. PiecesOS runs locally on your machine, handles on-device embeddings, and keeps snippet processing private.
- Install IDE Extensions:
- Visual Studio Code: Install the Pieces for Developers extension from the VS Code Marketplace.
- JetBrains IDEs (IntelliJ IDEA, PyCharm, WebStorm, etc.): Install the Pieces plugin from the JetBrains Marketplace.
- Verify Background Connection: Open both IDEs. When PiecesOS is running, the Pieces status icon in the IDE status bar lights up. Any snippet captured in VS Code is now instantly visible in the JetBrains Pieces sidebar, and vice versa.
Step 2: Capture Copilot's Validated Output
When coding with GitHub Copilot, you frequently generate custom logic that requires minor manual adjustments before it works flawlessly. Do not save raw, unverified AI output. Once a snippet passes tests in your editor:
- Select the Target Block: Highlight the validated function, regex rule, configuration block, or SQL query.
- Execute the Save Action:
- VS Code: Press
Shift + Alt + V(Windows/Linux) orShift + Cmd + V(macOS), or right-click and choose Save to Pieces. - JetBrains: Press
Alt + Shift + P(Windows/Linux) orOption + Shift + P(macOS), or right-click -> Pieces -> Save to Pieces.
- VS Code: Press
- Background Capture (Pieces Long-Term Memory):
If you enable Long-Term Memory (LTM) in PiecesOS settings, Pieces can passively observe code blocks you copy or interact with frequently. However, at 365Finds, we strongly prefer manual explicit capture (
Save to Pieces). It prevents your snippet library from cluttering up with throwaway debugging logs and temporary mocks.
Step 3: Let Pieces Auto-Tag and Enrich
What sets Pieces apart from Gists or basic snippet managers is automatic contextual enrichment.
The moment you send a snippet to PiecesOS:
- Syntax and Language Detection: Pieces determines the exact language (e.g., distinguishing TypeScript from JavaScript, or Bash from Zsh) without manual intervention.
- Auto-Generated Tags and Title: Pieces inspects imported packages, function signatures, and method names. It assigns tags like
#jwt-auth,#fastapi,#retry-logic, or#prisma-orm, along with a concise title. - Contextual Origins: If captured inside a Git repository, Pieces stores the source file name, commit state, and surrounding context.
You can inspect and fine-tune these tags in the Pieces desktop app or IDE sidebar. In our experience, Pieces' local models get tags right roughly 85% to 90% of the time on modern web and cloud stacks, saving significant manual labeling effort.
Step 4: Retrieve and Reuse in a Different IDE
Here is where the cross-IDE workflow pays off. Suppose you authored a reliable exponential-backoff retry utility inside VS Code while working on a Node.js microservice. Later, you are in PyCharm or IntelliJ writing a Go or Python daemon that interacts with the same endpoint.
- Invoke Pieces Search:
- In JetBrains or VS Code, open the Pieces Explorer view, or trigger the Pieces quick-search shortcut (
Ctrl + Shift + P/Cmd + Shift + P-> Pieces: Search Snippets).
- In JetBrains or VS Code, open the Pieces Explorer view, or trigger the Pieces quick-search shortcut (
- Search by Intent, Not Exact Syntax:
You do not need to remember exact variable names. Type
retry backoff httpor filter by tag#network. Pieces uses vector search on your local embeddings to surface the relevant snippet. - Insert or Adapt:
Hit
Enterto insert the snippet directly at your cursor.
Step 5: Power GitHub Copilot with Pieces via MCP
The most powerful synergy occurs when GitHub Copilot queries Pieces directly. Through the Model Context Protocol (MCP), PiecesOS exposes an SSE (Server-Sent Events) endpoint that connects your local snippet repository to Copilot Chat.
Configuring the Pieces MCP Endpoint
- Open Pieces Desktop App -> Settings -> Model Context Protocol (MCP).
- Locate the local SSE endpoint URL, which resembles:
http://localhost:39300/model_context_protocol/2024-11-05/sse - In your MCP client configuration (such as your VS Code MCP server configuration file or agent tool config), register the Pieces MCP server:
{ "mcpServers": { "pieces": { "url": "http://localhost:39300/model_context_protocol/2024-11-05/sse", "transport": "sse" } } } - Restart your editor or reload the MCP connection.
Prompting Copilot with Your Pieces Library
Once linked, open GitHub Copilot Chat in any supported environment and reference your stored knowledge:
"Check my Pieces snippets for the custom database connection pool pattern we used last week, and adapt it for this new asyncpg connection file."
Copilot uses MCP to query PiecesOS, retrieves the exact, validated snippet along with its enriched tags, and uses that grounded context to generate production-ready code. You avoid hallucinated APIs because Copilot builds directly on your vetted snippet foundation.
Where the Workflow Bites: Honest Trade-offs
365Finds does not view Pieces as an unalloyed lightweight utility. You should weigh several realities before rolling this into team workflows:
- Resource Footprint: PiecesOS is a substantial background process. Because it executes local OCR, classification, and vector indexing on-device, expect PiecesOS to consume 400 MB to 1 GB of RAM depending on your cache size. If you work on an 8 GB RAM laptop running multiple IDEs, you will feel the pinch.
- The "Digital Hoarding" Risk: Because saving snippets is so effortless, developers tend to save dozens of variants of the same trivial utility. While auto-tagging mitigates disorder, we recommend dedicating five minutes every Friday in the Pieces Desktop App to prune duplicate or superseded snippets.
- Network & Port Bindings: The MCP bridge relies on local HTTP/SSE ports (such as
39300). If your local Docker setups or proxy tools interfere with local loopback ports, the MCP connection between Copilot and PiecesOS can silently disconnect.
The 365Finds Verdict
GitHub Copilot gives you speed; Pieces gives you persistence. Treating Copilot as your memory bank leads to wasted prompts and inconsistent codebases. By running PiecesOS as the dedicated local context hub, you turn disposable Copilot completions into an organized, cross-IDE asset library.