AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

How to Use Pieces Alongside GitHub Copilot to Track Context and Code History Across IDEs

Lam Mui Teng · 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 writes code fast. Give it a file, place your cursor, and it guesses the next lines with uncanny speed. But ask it what you were wrestling with in a different editor two hours ago, or how you configured the database connection over in PyCharm before switching to Visual Studio Code, and it draws a blank. Copilot lives in the immediate present of the active repository.

That boundary frustrates developers who jump across environments. You write an API endpoint in IntelliJ, switch to VS Code to build the React frontend, check API schemas in the browser, and test payloads in the terminal. Copilot in VS Code knows nothing about what happened in IntelliJ unless you manually copy-paste code blocks into chat prompts.

Pieces attacks this problem from the opposite end. It does not try to out-autocomplete GitHub Copilot; it acts as a persistent, local memory layer for your entire workstation. At 365Finds, we have tracked how AI developer tools handle multi-tool workflows, and pairing Pieces with GitHub Copilot represents one of the most practical setups available—provided you understand how their roles divide and where the setup currently hits friction.


The Division of Labor: Muscle vs. Memory

Before configuring anything, understand what each tool is built to do:

Pieces previously offered standalone plugins across half a dozen IDEs, but it has fundamentally shifted its architecture: Pieces has sunset legacy plugins in favor of the Model Context Protocol (MCP). Instead of juggling separate editor extensions, PiecesOS now functions as an MCP server. This allows GitHub Copilot (specifically within VS Code and MCP-compatible environments) to query your cross-IDE Pieces history as an external context tool.


Step 1: Install and Configure PiecesOS with Long-Term Memory

The backbone of this workflow is PiecesOS, which runs locally on macOS, Windows, or Linux.

  1. Install PiecesOS and Pieces Desktop: Download both from the official Pieces website. PiecesOS runs quietly in the system tray or menu bar.
  2. Enable Long-Term Memory (LTM): Open the Pieces Desktop App, head into Settings, and turn on the Long-Term Memory engine (LTM). This enables Pieces to capture contextual signals from your active windows, terminal commands, and clipboard snippets without requiring manual bookmarking for every line of code.
  3. Set Privacy and Exclusions: We strongly recommend configuring capture exclusions immediately. Exclude password managers, private credential vaults, and proprietary internal directories where you do not want background OCR or snippet tracking running.

Step 2: Connect Pieces to GitHub Copilot via MCP

With PiecesOS indexing your workflow, you need to expose that context to GitHub Copilot in your primary development environment (Visual Studio Code).

  1. Retrieve the Pieces MCP Configuration:
    • Open the Pieces Desktop App and navigate to Settings > Model Context Protocol (MCP).
    • Pieces displays the local endpoint configuration (typically using Server-Sent Events or local process transport via localhost:39300).
  2. Configure VS Code:
    • Ensure both the GitHub Copilot and GitHub Copilot Chat extensions are installed and updated in Visual Studio Code.
    • In VS Code, configure your MCP server settings (.vscode/mcp.json for a specific project or your global VS Code MCP configuration). Add the Pieces MCP server block provided in your Pieces settings:
      {
        "mcpServers": {
          "pieces": {
            "url": "http://localhost:39300/model_context_protocol/2024-11-05/sse"
          }
        }
      }
      
    • Save the file. VS Code will detect the server and prompt you to trust and enable the Pieces MCP connection.
  3. Verify Tool Availability:
    • Open GitHub Copilot Chat (Ctrl + Alt + I on Windows/Linux or Cmd + Ctrl + I on macOS).
    • Switch the Copilot Chat mode from standard Ask mode to Agent mode.
    • Type / or review available agent tools to confirm that Pieces tools (such as searching snippets, fetching workflow context, or querying recent activities) are recognized by Copilot.

Step 3: Bridging the Cross-IDE Gap in Daily Work

Here is how the combined workflow functions across different coding tasks:

Scenario A: Moving Backend Logic from JetBrains into Frontend VS Code

You spend the morning in JetBrains GoLand or PyCharm defining API response contracts and data models. When you open VS Code in the afternoon to consume those endpoints in a frontend component, Copilot's local repository context is completely unaware of the Go or Python files sitting in the other project folder.

Instead of hunting for those files and copying their definitions:

  1. Open GitHub Copilot Chat in Agent mode in VS Code.
  2. Prompt Copilot:
    "Look up the UserProfile schema I worked on this morning via Pieces and generate a TypeScript interface matching those fields."
  3. Copilot queries the Pieces MCP server, locates the UserProfile structure from your morning session, pulls the field definitions, and writes the TypeScript interface directly into your frontend project.

Scenario B: Reviving Ephemeral Terminal Commands and Error Solutions

You resolved a tricky Docker build error or Kafka configuration script inside your terminal yesterday, but you didn't commit it to git.

Scenario C: Working in Non-MCP IDEs

If you are actively coding inside JetBrains IDEs or another editor where GitHub Copilot does not yet offer direct MCP client integration, you still retain the shared history:


Where the Friction Lies: 365Finds' Honest Assessment

While the combination solves context amnesia, it is not without real tradeoffs:

AspectGitHub Copilot AlonePieces + GitHub Copilot365Finds Take
Context ScopeCurrent repository and open tabsWorkstation-wide (all IDEs, browser, terminal)Major upgrade for multi-repo and multi-IDE engineers
Resource FootprintLightweight cloud callsRequires local PiecesOS background enginePiecesOS consumes noticeable RAM and CPU during intensive indexing
Setup ComplexityPlug-and-play extensionRequires PiecesOS install, LTM configuration, MCP setupWorth the 15-minute setup, but fragile if local ports conflict
Interaction ModeInline Tab completion + ChatRequires Copilot Chat in Agent mode for MCP queriesTab completion won't auto-read Pieces; you must explicitly ask Chat

365Finds considers this setup well worth the effort for full-stack engineers and technical leads who switch constantly between tools. However, do not expect inline Tab suggestions to magically predict your JetBrains work without prompting Copilot Chat. MCP is an intentional query protocol: Copilot only asks Pieces for external memory when a chat prompt calls for it or when an agent loop determines it needs supplementary data.

To get the most out of the pairing, treat Pieces as your personal developer blackboard and GitHub Copilot as the hand holding the chalk.

References