Skip to content
Back to skills

Working With Pieces

ASecurity

Use when working with Pieces for Developers (Pieces OS, Desktop, CLI, IDE plugins, the Pieces MCP server, long-term memory) or when asked "what was I working on", "what did I do yesterday/last week", or "what did I have open about X". Covers MCP setup, LTM queries, snippet search, and the Pieces SDKs. Not for session decisions or corrections (claude-mem).

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 13, 2026
ai-agentstypescriptpythongobashsqlazureapidatabase

Works with

  • claude code
  • cursor
  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 13 files and shows the line behind each finding

Scanned November 13, 2026

npx -y skills add joeblackwaslike/agent-skills --skill working-with-pieces --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Working With Pieces?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Working With Pieces
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/joeblackwaslike-working-with-pieces/badge)](https://www.skillsdirectory.com/skills/joeblackwaslike-working-with-pieces)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: working-with-pieces
description: >-
  Use when working with Pieces for Developers (Pieces OS, Desktop, CLI, IDE plugins, the Pieces
  MCP server, long-term memory) or when asked "what was I working on", "what did I do
  yesterday/last week", or "what did I have open about X". Covers MCP setup, LTM queries, snippet
  search, and the Pieces SDKs. Not for session decisions or corrections (claude-mem).
metadata:
  last_updated: "2026-09-02"
---

# Working with Pieces for Developers

Pieces is a local-first AI workflow OS. Pieces OS runs as a background daemon that captures everything you work on — code, browser tabs, clipboard, meetings — indexes it into Long-Term Memory (LTM), and exposes it to AI tools via an MCP server.

**Core ports:**
- REST API: `localhost:1000` (macOS/Windows), `localhost:5323` (Linux)
- MCP server: dynamic port in range 39300–39333, stored in `~/Library/com.pieces.os/production/Config/.port.txt`

## Quick Start: Claude Code + Pieces MCP

```bash
PORT=$(cat ~/Library/com.pieces.os/production/Config/.port.txt)
claude mcp add --transport http pieces http://localhost:${PORT}/model_context_protocol/2025-03-26/mcp
```

Verify: ask Claude "What MCP tools do you have from Pieces?" — you should see ~65 tools listed.

## Routing Table

| Task | Reference File |
|------|---------------|
| Install Pieces OS, manage service, health check | `references/pieces-os.md` |
| Explore processes, databases, config files, ML dylibs | `references/pieces-os-internals.md` |
| Set up MCP for Claude Code, Cursor, Copilot, etc. | `references/mcp-server.md` |
| All ~65 MCP tools with parameters and examples | `references/mcp-server.md` |
| Google Calendar integration (create/get/patch/delete events) | `references/mcp-server.md` |
| Filesystem access (read chunks, search paths and text) | `references/mcp-server.md` |
| Browser activity history and URL context lookup | `references/mcp-server.md` |
| User persona and profile data | `references/mcp-server.md` |
| Enable LTM, query past work, pro_tips prompts | `references/long-term-memory.md` |
| Retention limits, pinning memories indefinitely | `references/long-term-memory.md` |
| Pieces CLI commands | `references/cli.md` |
| VS Code or JetBrains plugin, event/data schema | `references/ide-plugins.md` |
| Browser extension events and data captured | `references/browser-extension.md` |
| Obsidian plugin events and LTM integration | `references/obsidian-extension.md` |
| Build with TypeScript SDK, example patterns | `references/typescript-sdk.md` |
| Build with Python SDK | `references/python-sdk.md` |
| Snippet collections, community, all SDKs, video guides | `references/resources.md` |

## Reference Index

- **`pieces-os.md`** — Installation (macOS/Windows/Linux), three running processes, launchd services, port discovery, service management, system requirements
- **`pieces-os-internals.md`** — Deep dive: process binaries, all storage paths, SQLite database schema (19 tables), config files, runtime state, ML/AI dylibs, log locations
- **`mcp-server.md`** — MCP endpoint, setup commands for 19 AI tools, ~65 tools with parameters (LTM/memory, full-text search, vector search, single/batch snapshots, GCal, filesystem, browser, persona, temporal), two-step workflow pattern, 10 real-world workflows, ngrok remote access, stdio bridge
- **`long-term-memory.md`** — What LTM captures, enabling/disabling, retention limits, `create_pieces_memory` for indefinite pinning, the 5 keys to great queries, 15 tested prompts, modality filters
- **`cli.md`** — Install via brew/pip, key commands, MCP quick setup
- **`ide-plugins.md`** — VS Code and JetBrains: installation, keyboard shortcuts, event triggers, full asset metadata schema, sensitive info detection
- **`browser-extension.md`** — Chrome/Firefox/Edge/Brave: DOM events captured, data schema, browser permissions, LTM contributions
- **`obsidian-extension.md`** — Community plugin install, capture triggers, data schema, Copilot and LTM access from vault
- **`typescript-sdk.md`** — `@pieces.app/pieces-os-client` + `pieces-copilot-sdk`: platform config, connection, full CRUD patterns, Copilot chat, OSApi auth, example project
- **`python-sdk.md`** — `pieces_os_client`: PiecesClient wrapper, create/list assets, streaming Copilot
- **`resources.md`** — All SDKs, example projects, snippet collections, IDE plugins (JupyterLab, Azure Data Studio, Teams), community links, pro_tips MCP guides for 19 agents

Files in this skill

  • SKILL.md4.4 KB
  • references/browser-extension.md3.4 KB
  • references/cli.md1.7 KB
  • references/ide-plugins.md3.9 KB
  • references/long-term-memory.md17.5 KB
  • references/mcp-server.md18.7 KB
  • references/obsidian-extension.md3.2 KB
  • references/pieces-os-internals.md7.9 KB
  • references/pieces-os.md4.3 KB
  • references/python-sdk.md3.1 KB
  • references/resources.md15.6 KB
  • references/typescript-sdk.md6.8 KB
  • scripts/update.js16.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.