Developers working under enterprise non-disclosure agreements or strict intellectual property policies face an immediate dilemma with AI coding assistants: every prompt, diff, and snippet sent to a remote cloud endpoint is a potential compliance violation. Pieces has built its brand reputation around a "local-first" architecture. But if you open Pieces expecting a turnkey, completely offline code copilot that never connects to an external server, the operational reality requires careful scrutiny.
At 365Finds, we dug into how Pieces actually handles local execution, what runs strictly on your machine, where data is saved, and how to configure Pieces for proprietary repositories without risking code leaks.
The Dual-Layer Architecture: What Stays Local vs. What Goes to the Cloud
Pieces does not treat "local-first" as a single binary switch. The platform is architecturally split into two distinct tiers:
+-----------------------------------------------------------------------+
| USER MACHINE |
| |
| +-----------------------------------------------------------------+ |
| | PIECES OS (Background) | |
| | | |
| | * Snippet & Metadata Database (com.pieces.os) | |
| | * Synthetic Nanomodels (Local Tagging, OCR, Secret Detection) | |
| | * Workstream Pattern Engine / Long-Term Memory (LTM) Cache | |
| +-----------------------------------------------------------------+ |
| | |
| v |
| +-----------------------------------------------------------------+ |
| | PIECES COPILOT / CHAT ENGINE | |
| | | |
| | [Historical / Managed Mode] [Current Default Pipeline] | |
| | Local Models via Ollama Cloud Models via TLS | |
| | (Llama, Mistral, Phi on GPU) (Claude, GPT, Gemini, BYOK) | |
| +-----------------------------------------------------------------+ |
+-----------------------------------------------------------------------+
| (Per-request context payload only)
v
+-------------------------+
| Cloud Model Provider |
+-------------------------+
1. The Local-First Foundation: Pieces OS
The core engine, Pieces OS, runs as a background service on your local operating system. It manages your snippets, workflow context, activity tracking, and code indexing entirely on your disk.
- Storage Location:
- macOS:
~/Library/com.pieces.os/ - Windows:
%LocalAppData%\Mesh Intelligent Technologies, Inc\Pieces OS\com.pieces.os\ - Linux:
~/.pieces/
- macOS:
- Local Nanomodels: Pieces executes lightweight, synthetically trained small language models directly on your CPU/GPU to parse code, generate tags, classify languages, and detect accidentally pasted secrets. These nanomodels do not upload your code to cloud training pools.
2. The Copilot Generation Tier: The Current Status Gap
Where developers encounter confusion is the interactive chat layer (Pieces Copilot). Pieces gained popularity among security teams by introducing managed integrations with local model engines like Ollama, allowing developers to run models like Llama 3, Mistral 7B, and Phi-3 directly on local GPUs via 127.0.0.1:11434.
However, during recent updates transitioning the copilot into an agentic pipeline, Pieces officially noted that native local-model selection and managed Ollama integration are temporarily unavailable in recent desktop releases. Current out-of-the-box desktop versions route chat prompts to hosted frontier models (such as Claude 3.5 Sonnet, GPT-4o, or Gemini 1.5 Pro) with selectable reasoning modes.
At 365Finds, we believe this distinction is vital: your snippet storage and context engine remain on-device, but conversational generation currently routes through external endpoints unless you run older builds or manually decouple your workflow.
Step-by-Step Configuration Guide for Sensitive Codebases
If your organization allows scoped cloud querying with zero-data-retention, or if you need to lock down Pieces OS to prevent unintended context capture, follow this operational checklist.
Step 1: Audit Local Storage and Model Selection
- Open the Pieces Desktop Application and ensure Pieces OS is running.
- Navigate to Settings > Copilot.
- Check the active model provider:
- If your version displays On-Device / Local LLM (or active Ollama integration), verify that the model card explicitly says
Runs Locallyand targets your local hardware backend. - If your version displays only cloud providers (Balanced, Fast, Extra Thinking), be aware that chat queries will leave your machine over encrypted HTTPS.
- If your version displays On-Device / Local LLM (or active Ollama integration), verify that the model card explicitly says
Step 2: Enforce Strict Context Grounding
By default, AI copilots attempt to ingest as much workspace context as possible to give relevant answers. On a proprietary codebase, unmanaged indexing creates legal liability.
- Manual Scoping: Instead of indexing your entire enterprise root directory, add only explicit files or curated snippet folders into the Pieces Copilot context window.
- Disable Live Context Capture: If you do not want Pieces tracking background windows, terminal sessions, or browser tabs, pause or disable the Workstream Pattern Engine (Long-Term Memory) in Settings.
- Domain & Application Filtering: Add your internal development domains (e.g.,
git.internal.corp, intranet wiki URLs, customer staging environments) to the exclusion list in Pieces OS privacy settings.
Step 3: Configure Bring-Your-Own-Key (BYOK) for Zero-Training Guarantees
When cloud models must be used, do not rely on standard shared consumer tiers:
- Obtain an enterprise API key from your organization's cloud provider (e.g., OpenAI Enterprise, Anthropic Commercial, or Azure OpenAI) where an explicit Zero Data Retention (ZDR) and No Training on Customer Data Business Associate Agreement (BAA) is signed.
- In Pieces settings, input your organizational API credentials under the BYOK configuration.
- This ensures queries routed via Pieces pass under your corporate compliance terms rather than individual consumer terms.
Step 4: Turn Off Outbound Telemetry and Crash Reports
While Pieces states that user telemetry is anonymized and never contains raw source code, strict air-gapped policies forbid all outbound pinging:
- In the Pieces OS system tray icon (or menu bar), open Settings.
- Locate the Privacy & Diagnostics section.
- Toggle off Anonymous Telemetry, Crash Reports, and Usage Analytics.
Verifying Network Isolation on Your Machine
Never assume software is silent just because a toggle was flipped. 365Finds recommends verifying local execution using system-level network monitors:
| Monitoring Tool | Platform | What to Inspect |
|---|---|---|
| Little Snitch / LuLu | macOS | Verify Pieces OS and any local runner process make zero outbound TCP connections to external IP ranges during chat queries. |
| Windows Defender Firewall / GlassWire | Windows | Set outbound rules for pieces-os.exe to block all non-loopback (127.0.0.1) traffic if running strict offline mode. |
ss / lsof / tcpdump | Linux / Unix | Run `lsof -i -P |
Additionally, remember that all snippets and context graphs in com.pieces.os are written to your local drive without proprietary database-level encryption. You must enable operating system full-disk encryption (BitLocker on Windows, FileVault on macOS, or LUKS on Linux) to protect confidential code stored on disk against physical machine theft.
365Finds Assessment: The Practical Trade-Off
Pieces deserves credit for its technical ambition: storing data in a local micro-database rather than forcing cloud sync is genuine architectural privacy. The use of synthetic nanomodels for parsing and tagging code without calling external APIs is thoughtfully designed.
What frustrates 365Finds, however, is the moving target of on-device LLM generation. When developers seek out Pieces for confidential codebases, they are drawn to the promise of full local inference. Having managed local LLMs marked as "temporarily unavailable" creates friction for engineers operating under zero-egress mandates.
For teams handling trade-secret code today:
- Use Pieces as a superior on-device snippet manager and context repository, taking full advantage of local tagging, syntax categorization, and fast desktop retrieval.
- For generative chat, if your enterprise policy forbids any cloud egress, do not assume Pieces Copilot is running offline by default. Inspect your version's Copilot settings before pasting proprietary algorithms into the prompt box.