openmessage: Instructions file for Claude Code

CLAUDE.md

openmessage CLAUDE.md is an instructions file for Claude Code from MaxGhenis/openmessage. It costs 5,005 tokens per session, scanned A, original, Unlicense.

Project instructions for OpenMessage, a local message database and built-in MCP server. OpenMessage imports conversations from Google Messages, Google Chat, iMessage, and WhatsApp into one system.

In plain words
What is it for?
Developing, debugging, supporting, or extending OpenMessage's Go commands, SQLite storage, message importers, MCP tools, web interface, and macOS app.
Why use it?
They explain the project structure and operating rules so an AI assistant can work with imported messages and the local command-line and web applications correctly.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions Claude Code.

This is MaxGhenis/openmessage's own configuration. It tells Claude Code how to work on openmessage itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything openmessage configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/maxghenis/openmessages.

Reuse

Borrowing it

Nothing to install: this file belongs to MaxGhenis/openmessage. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/MaxGhenis/openmessage/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/MaxGhenis/openmessage

Made for: Claude Code.

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 openmessage CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/maxghenis/openmessage/claude-md/github.svg)](https://agentmods.dev/instructions/maxghenis/openmessage/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/maxghenis/openmessage/claude-md"><img src="https://agentmods.dev/badge/instructions/maxghenis/openmessage/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for openmessage CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/maxghenis/openmessage/claude-md"><img src="https://agentmods.dev/badge/instructions/maxghenis/openmessage/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,005 This file is loaded in full into every session.
When invoked 5,005 The same file — it is already loaded in full.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.05005 $0.05005
Opus 5.5 $0.02002 $0.02002
Sonnet 5.5 $0.01001 $0.01001
Haiku 4.5 $0.00500 $0.00500

Measured 1mo ago against content hash 49dc79fc0987, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

openmessage 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 1mo 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}" https://openmessage.ai
CLAUDE.md · 352 lines

How it starts

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

OpenMessage

Local-first universal message database with built-in MCP server. Ingests messages from SMS/RCS (Google Messages), Google Chat, iMessage, and WhatsApp.

Architecture

├── cmd/              Go CLI commands (pair, serve, send, read, status, import)
├── internal/
│   ├── app/          Bootstrap, data dir, backfill
│   ├── client/       libgm Google Messages protocol
│   ├── db/           SQLite store (conversations, messages, contacts, unified_contacts, drafts)
│   ├── importer/     Multi-platform import adapters (gchat, imessage, whatsapp)
│   ├── story/        Stats computation + narrative story generation
│   ├── tools/        MCP tools (24 tools)
│   ├── viz/          Relationship visualization renderer (self-contained HTML)
│   └── web/          HTTP API + embedded React UI
├── macos/            Swift macOS app wrapper
│   ├── OpenMessage/  Swift package (BackendManager, PairingView, etc.)
│   └── build.sh      Builds universal binary + .app + .dmg
├── site/             Static website (deployed to openmessage.ai)
└── vercel.json       Vercel config (root — NOT site/vercel.json)

Supporting a live install (READ FIRST for support/debug tasks)

If you are debugging a real user's install — sends failing, re-pairing, reading their actual messages — read docs/agent-runbook.md before touching anything. The traps that cost the most:

  • Two data dirs, not one. The macOS app's live store is ~/Library/Application Support/OpenMessage/ (set via OPENMESSAGES_DATA_DIR). The CLI default (~/.local/share/openmessage/) is a separate, usually stale store. Point CLI tools at the app dir for live data.
  • Read live messages via the HTTP API (/api/conversations/<id>/messages, /api/search, /api/status) — the app holds the WAL'd DB, so a direct sqlite3 reader hits "unable to open database file (14)".
  • Re-pairing Google Messages: QR is dead; use Google Account pairing: with the user at the phone, quit the app and run OPENMESSAGES_DATA_DIR=... openmessage pair --google-chrome (reads the signed-in Chrome profile's cookies; the user taps the printed emoji). Don't over-reconnect (it throttles the account). Full recipe in the runbook.

Read the full file on GitHub · 352 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. 1mo ago Changed · +22 lines · +359 tokens per session 49dc79fc0987
  2. 1mo ago Changed · +11 lines · +195 tokens per session df05e111e2fe
  3. 1mo ago Changed · +7 lines · +113 tokens per session 7ef93475d17b
  4. 1mo ago Changed · +20 lines · +369 tokens per session 6e93ef99c054
  5. 1mo ago Changed · +10 lines · +195 tokens per session e57a15795121
  6. 1mo ago Changed · +5 lines · +72 tokens per session 4f8a62dc5b96
  7. 1mo ago Changed · +30 lines · +476 tokens per session 1bdedb721c33
  8. 3mo ago Changed · +21 lines · +371 tokens per session b5b0601ba6fb
  9. 3mo ago First seen · 226 lines · 2,855 tokens per session scan A 3289f271f71a

Subscribe to this mod's changes

openmessage CLAUDE.md is an instructions file published in the GitHub repository MaxGhenis/openmessage (74 stars, last pushed yesterday), licensed Unlicense. It adds 5,005 tokens to every session, about $0.0200 per session on Opus 5.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-30.

Related

openmessage CLAUDE.md compared with instructions from other repositories

openmessage CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
openmessage CLAUDE.mdMaxGhenis/openmessageInstructions file74yesterdayUnlicenseA5,005Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109kyesterdayMITA3,077GitHub Copilot