AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

How to Use Pieces Alongside GitHub Copilot to Stop Repeating Yourself

Nicolas Henriet · 365Finds Editorial
Indexed 88,650 Wiki articles

Put 365 Wiki to work with your AI

Copy the prompt below, paste it into the AI you already use, then ask your question.

Download full Skill

Try it with the prompt first. If you use 365 Wiki often, install the full 365Wiki Skill so you do not have to paste it again. No regular AI? Gemini or Microsoft Copilot on the web will work.

365Wiki Skill

GitHub Copilot is extraordinary at finishing your thoughts, provided those thoughts live entirely inside your current IDE buffer. The moment your workday spills across Chrome tabs, terminal logs, Postman payloads, and architecture threads, Copilot gets workspace amnesia. You end up copying fifty lines of stack trace, re-explaining your custom authentication middleware for the fourth time that week, and wrestling with prompt fatigue.

At 365Finds, we look at developer workflows through a simple lens: AI should absorb cognitive drag, not demand prompt babysitting.

Pairing GitHub Copilot with Pieces solves this boundary problem. GitHub Copilot remains your inline autocomplete engine and code generator, while Pieces acts as the persistent, cross-application memory layer. With Pieces having phased out legacy editor plugins in favor of Anthropic’s open Model Context Protocol (MCP), you can now connect Pieces OS directly into GitHub Copilot inside Visual Studio Code. Copilot stops being an isolated code predictor and becomes aware of what you read, copied, and debugged ten minutes ago.

Here is how the pairing works, how to set it up via MCP, and where the boundaries actually lie.


The Division of Labor: Why Standalone Copilot Stumbles

To get the most out of this combination, you have to stop treating both tools as rival AI chatbots. They solve completely different halves of the programming loop.

DimensionGitHub CopilotPieces
Primary RoleIn-editor code generation and inline autocompleteCross-application workflow memory and snippet intelligence
Context HorizonActive repository, open tabs, and immediate cursor scopeSystem-wide: browser research, terminal outputs, screenshots, saved snippets
PersistenceEphemeral per chat session; repository instructions require manual maintenanceContinuous local indexing via Pieces OS Long-Term Memory (LTM)
Interaction PointGhost text, inline diffs, and Copilot Chat in your IDEBackground local daemon, browser extensions, desktop hub, MCP server

GitHub Copilot does not know that you just spent twenty minutes reading an updated Stripe webhook specification in your browser. It does not know the specific error code your terminal threw three commands ago unless you manually paste it into Copilot Chat.

Pieces captures those ambient digital breadcrumbs locally. By exposing its Long-Term Memory engine via a local MCP server, Pieces lets GitHub Copilot pull external context on demand without you constantly alt-tabbing to copy-paste.


Setting Up the Pieces MCP Connection in VS Code

The cleanest way to combine Pieces and GitHub Copilot is through the Model Context Protocol. Rather than running competing chat panels, you wire Pieces OS directly into GitHub Copilot Chat as an intelligent context tool.

Prerequisites

  1. Pieces OS & Pieces Desktop: Installed and running locally on your machine.
  2. VS Code: With the official GitHub Copilot and GitHub Copilot Chat extensions installed.
  3. Long-Term Memory Enabled: Inside Pieces Desktop settings, confirm that Workstream Pattern Engine / Long-Term Memory (LTM) is active.

Step 1: Locate Your Local Pieces MCP Server Details

Pieces OS runs a lightweight local server on your machine.

  1. Open the Pieces Desktop application.
  2. Click your profile icon in the navigation menu and select Settings.
  3. Navigate to the Model Context Protocol (MCP) section.
  4. Locate the active local server configuration. Pieces provides an endpoint URL formatted like http://localhost:39300/model_context_protocol/2025-03-26/sse or a stdio execution command, depending on your build. Copy this configuration block.

Step 2: Register Pieces in VS Code

VS Code manages MCP servers through its native configuration file.

  1. In VS Code, open the Command Palette (Ctrl+Shift+P on Windows/Linux or Cmd+Shift+P on macOS).
  2. Run MCP: Open User Configuration to edit your mcp.json.
  3. Add the Pieces server definition under the servers object:
{
  "servers": {
    "pieces": {
      "url": "http://localhost:39300/model_context_protocol/YOUR_SCHEMA_HASH/sse"
    }
  }
}

If you are using the stdio transport via the Pieces CLI, the block will invoke the CLI command instead. Save the file. VS Code will detect the server and connect to the local Pieces OS instance.

Step 3: Enable Copilot Agent Mode

Open GitHub Copilot Chat in your sidebar. At the bottom of the chat panel, ensure you are in Agent mode (or that tool usage is enabled). When you ask questions requiring past context, Copilot will display the ask_pieces_ltm tool call, signaling that it is actively retrieving context from Pieces.


3 Workflows That Eliminate Repetitive Prompting

Once the MCP bridge is active, you can replace repetitive prompt engineering with structured workflow habits.

1. Eliminating Ambient Documentation Copy-Pasting

When working against obscure third-party APIs or evolving SDKs, the standard routine is painful: switch to browser, copy docs, switch to editor, type "Given this API schema: [paste 80 lines], write an adapter".

With Pieces Web Extension installed in Chrome or Firefox, Pieces indexes the technical documentation you read. Back in VS Code Copilot Chat, you can simply prompt:

"Write a TypeScript client function for the endpoint I just reviewed in the documentation, handling the rate-limit headers specified there."

GitHub Copilot invokes Pieces LTM over MCP, finds the recently indexed API documentation from your browser session, extracts the payload schema, and generates the code directly. You never copied a single character.

2. Bridging Terminal Failures Without Formatting Cleanups

Terminal output is messy. It contains ANSI color codes, memory addresses, and sensitive environment paths. Pasting raw terminal logs into Copilot Chat wastes prompt tokens and often confuses the model with extraneous noise.

Pieces captures command executions and terminal outputs. When a build or test fails, switch straight to Copilot Chat:

"Analyze the Docker build failure from my recent terminal session and propose a fix for the Dockerfile."

Copilot pulls the structured error trace directly from Pieces, isolates the failing build step, and provides an inline patch.

3. Turning Snippets into Reusable Prompt Grounding

Every engineering team has unspoken conventions: custom error response wrappers, specific regex patterns, standard database transaction scaffolding. Instead of writing custom prompt preambles every morning, store those core boilerplate patterns inside Pieces with descriptive tags.

When prompting GitHub Copilot, you reference the pattern directly:

"Generate the user registration route using our standard API response wrapper saved in Pieces."

Copilot queries your Pieces snippets, extracts the exact wrapper signature, and writes production-ready code that matches your repository standard on the first pass.


The Realistic Trade-offs

We do not believe in unconditional praise at 365Finds. Running Pieces alongside GitHub Copilot introduces real system dynamics you must account for:


365Finds Recommendation

If you spend your entire working day inside a single, monolithic codebase where .github/copilot-instructions.md suffices, GitHub Copilot alone is all you need.

However, if your daily development involves constant cross-tool hopping—debugging microservices, reading third-party documentation, running terminal scripts, and referencing patterns across multiple repositories—relying on Copilot alone guarantees hours of wasted typing. At 365Finds, our verdict is straightforward: run Pieces OS as a silent context layer, wire it to GitHub Copilot via MCP, and let the assistant do the remembering while Copilot does the writing.

References