commonplace CLAUDE.md

commonplace CLAUDE.md is an instructions file for coding agents from itsmeduncan/commonplace. It costs 2,629 tokens per session, scanned A, original, MIT.

Repository instructions for Commonplace, a Docker Compose setup that gives Claude Code and Pi long-term memory through a self-hosted Graphiti knowledge graph. They explain where configuration and runtime secrets live and how deployment works.

In plain words
What is it for?
Use them when configuring, deploying, or maintaining Commonplace, including its Docker services, host environment, MCP configuration, and Tailscale-connected clients.
Why use it?
They clarify which files are authoritative and prevent deployment mistakes, such as editing host-only secrets or treating client machines like servers.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/itsmeduncan/commonplace/claude-md
Clone the repo
git clone --depth 1 https://github.com/itsmeduncan/commonplace

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for commonplace CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/itsmeduncan/commonplace/claude-md.svg)](https://agentmods.dev/instructions/itsmeduncan/commonplace/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/itsmeduncan/commonplace/claude-md"><img src="https://agentmods.dev/badge/instructions/itsmeduncan/commonplace/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,629 This file is loaded in full into every session.
When invoked 2,629 The same file — it is already loaded in full.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.02629 $0.02629
Opus 5 $0.01314 $0.01314
Sonnet 5 $0.00526 $0.00526
Haiku 4.5 $0.00263 $0.00263

Measured 5d ago against content hash 92e8bd4cdc61, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

commonplace CLAUDE.md scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -o /dev/null -w "%{http_code}\n" \
CLAUDE.md · 145 lines

How it starts

The opening of the file, as written. The whole thing — 145 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

What this is

commonplace is infrastructure only — a Docker Compose stack, two MCP config files, a Dockerfile, and five build-time patches. There is no application source, no test suite, and no lint step. It deploys a self-hosted, two-tier Graphiti knowledge graph that Claude Code and Pi use as long-term memory over a Tailscale tailnet.

Read README.md first — it is the real documentation. It contains the architecture diagram, the endpoint/graph map, a 15-item "Gotchas" list, and client-config instructions. This file summarizes only the load-bearing facts and points back to it.

Deployment model (source of truth lives in two places)

  • The repo is the source of truth for config. Edit a clone → push → on the host git pulldocker compose up -d.
  • Runtime + secrets live only on the host (a Linux server with Docker, Ollama, and an optional consumer NVIDIA GPU) in the repo directory (e.g. ~/commonplace). Other devices are pure clients — they host nothing.
  • Secrets are in .env on the host only (gitignored; .dockerignore also excludes it from the build context). .env.example is the template. Never commit real values.

Architecture invariants (don't break these)

  • One FalkorDB, two graphs. Both MCP instances share one FalkorDB; the graph is selected per instance by FALKORDB_DATABASE (commonplace_personal vs commonplace_client). group_id does not select the graph — it only namespaces nodes within one.
  • Two MCP instances, one custom image. commonplace-mcp:local is built locally from zepai/knowledge-graph-mcp:standalone (see Dockerfile) — the upstream :standalone image lacks the anthropic SDK and rejects remote Host headers, so the Dockerfile adds the SDK and runs patch_transport_security.py (plus patch_agent_identity.pyadd_memory agent_id, patch_entity_fields.py → optional typed entity fields, patch_content_guard.pyreject_pattern tier guard, and patch_queue_backpressure.pymax_queue_size GPU backpressure). Use :standalone, never :latest (the latter bundles its own FalkorDB and can't share one).
  • Offline-first. Both tiers extract locally (mistral:7b-instruct-q4_0 on the GPU) by default — no API keys, nothing leaves the box. The personal tier (config/personal.yaml, host :8000) is env-switchable to a HOSTED model for non-confidential data: set PERSONAL_LLM_PROVIDER=anthropic / PERSONAL_LLM_MODEL=claude-haiku-4-5 / PERSONAL_SEMAPHORE_LIMIT=5 / ANTHROPIC_API_KEY in .env (both provider blocks always exist; provider picks one). The client tier (config/client.yaml, host :8001) is always local — confidential data never leaves the box. Concurrency: SEMAPHORE_LIMIT defaults to 1 (GPU-bound); raise the personal tier to 5 if you switch it to hosted. Both env-overridable in docker-compose.yml. Optional GPU backpressure: set graphiti.max_queue_size and add_memory refuses new episodes once that many are pending (via patch_queue_backpressure.py); 0 = unbounded (default).
  • Gateway fronts both tiers. The gateway service (Caddy, gateway/Caddyfile) owns host ports :8000/:8001; the MCP containers are internal-only (expose, no host ports). It enforces per-tier bearer auth (PERSONAL_TOKEN/CLIENT_TOKEN) — separate tokens = tier isolation — and emits JSON access logs (audit) + Prometheus metrics (:9180, host-local). Clients must send Authorization: Bearer <token>. Optional defense-in-depth: set graphiti.reject_pattern (a regex) in a tier's config and add_memory refuses matching content (payload-level guard, via patch_content_guard.py) — e.g. the personal tier rejecting confidential-tagged writes.
  • Shared embedder. Both tiers use Ollama nomic-embed-text (768-dim). Do not change the embedder on only one tier — vectors from different embedders are not comparable.
  • MCP path has a trailing slash: /mcp/ (FastMCP default, not configurable). FalkorDB UI is on :3000; FalkorDB :6379 binds to 127.0.0.1 only.
  • Ollama runs on the host, so each MCP service needs extra_hosts: host.docker.internal:host-gateway and an api_url of http://host.docker.internal:11434/v1.

Read the full file on GitHub · 145 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 145 lines · 2,629 tokens per session scan A 92e8bd4cdc61

Subscribe to this mod's changes

commonplace CLAUDE.md is an instructions file published in the GitHub repository itsmeduncan/commonplace (9 stars, last pushed 15d ago), licensed MIT. It adds 2,629 tokens to every session, about $0.0131 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

m_flow AGENTS.md

AGENTS.md instructions for FlowElement-xinliuyuansu/m_flow, covering m-flow — developer & agent reference, 1. repository map, extension points, 2. local development and python backend (requires python 3.10 – 3.13).

FlowElement-xinliuyuansu/m_flow · 1,075 tokens

engraphis AGENTS.md

AGENTS.md instructions for Coding-Dev-Tools/engraphis, covering agents.md — engraphis, internal subagent delegation, 0. read this first — two architectures live in one package, 1. commands and ── unified dashboard + memory inspector ──.

Coding-Dev-Tools/engraphis · 4,947 tokens

engraphis CLAUDE.md

Claude Code instructions for Coding-Dev-Tools/engraphis, covering claude.md, the one rule that prevents most mistakes, before you say "done" — run the canonical gate, slash commands available here and working style in this repo.

Coding-Dev-Tools/engraphis · 1,082 tokens

Dragon-Brain CLAUDE.md

Instructions for iikarus/Dragon-Brain, covering dragon brain — claude.md, the harness, audit remediation (april–may 2026, complete 2026-05-09), the lie this audit closed and the contract that matters now.

iikarus/Dragon-Brain · 6,132 tokens

engram-mcp CLAUDE.md

Claude Code instructions for edg-l/engram-mcp, covering engram mcp, development rules, structure, key types and mcp capabilities.

edg-l/engram-mcp · 7,648 tokens

Waggle-mcp AGENTS.md

AGENTS.md instructions for Abhigyan-Shekhar/Waggle-mcp, covering repository agent rules, custom rules and waggle automatic memory.

Abhigyan-Shekhar/Waggle-mcp · 242 tokens