postern: Instructions file for Claude Code

CLAUDE.md

postern CLAUDE.md is an instructions file for Claude Code from getpostern/postern. It costs 2,158 tokens per session, scanned A, original, Apache-2.0.

A set of coding instructions for working on Postern, a gateway that connects personal data services to software agents through one controlled interface.

In plain words
What is it for?
Use it when developing or configuring Postern, especially for cached data access, permissions, authentication, actions, and contributions to the repository.
Why use it?
It gives agents the project’s design rules, security boundaries, and known pitfalls so changes fit the existing system.

Instructions file for Claude Code

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

This is getpostern/postern's own configuration. It tells Claude Code how to work on postern 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 postern configures →

Reuse

Borrowing it

Nothing to install: this file belongs to getpostern/postern. 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/getpostern/postern/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/getpostern/postern

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/getpostern/postern/claude-md/github.svg)](https://agentmods.dev/instructions/getpostern/postern/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/getpostern/postern/claude-md"><img src="https://agentmods.dev/badge/instructions/getpostern/postern/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 postern CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/getpostern/postern/claude-md"><img src="https://agentmods.dev/badge/instructions/getpostern/postern/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,158 This file is loaded in full into every session.
When invoked 2,158 The same file — it is already loaded in full.
Security scan A 0 findings. 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.02158 $0.02158
Opus 5.5 $0.00863 $0.00863
Sonnet 5.5 $0.00432 $0.00432
Haiku 4.5 $0.00216 $0.00216

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

Security

Grade A, and why

postern CLAUDE.md scanned grade A with 0 findings 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 2mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 69 lines

How it starts

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

Postern — working notes for an agent in this repo

Neutral gateway for Postern (the Personal Context Gateway): connect the sectors of your life once, reach them from any agent through one surface. Read your life and act on it where the source allows; no cross-domain correlation. A faithful cache, not a derived store — the agent reasons; we authenticate, normalize, store, serve, and dispatch. Three properties decide ties: one place (one surface, one grant), lightning fast (reads from local cache in ms; actions add zero gateway overhead around the one unavoidable dispatch), harness-agnostic (swap the harness, keep the context, capabilities, permission and audit).

Build for the world, not one box. Every decision is for all the people who will run this. A real deployment with real accounts exists to verify a design against real data, never to decide one. When "right for this box" and "right for everyone" diverge, the holistic answer wins.

This file is for an agent working on the code. If you are setting a gateway up for someone, read setup-with-your-agent.md. If you are sending a patch, read CONTRIBUTING.md.

Gotchas

The things that are expensive to learn the hard way. Most were.

  • Tests run ONLY against a *_test database. The *.db.test.ts suite issues real INSERT/DELETE. A run against a live application DB wiped ~700 finance rows on 2026-06-17. A fail-closed guard in vitest.globalSetup.ts aborts unless DATABASE_URL matches /_test$/; PCI_TEST_DB=1 is a full bypass of that guard and must never be set against a real database. Use npm run test:db — it brings its own throwaway Postgres and cannot touch a running gateway.
  • npm test needs apps/web deps installed — root vitest collects the Console's .test.tsx files but a root-only install does not install them. Without npm ci --prefix apps/web (i.e. npm run setup) you get a wall of red suites and "Cannot find package 'react'". Never "fix" that by excluding apps/web from vitest.config.ts: it drops real tests and makes a loud failure silent.
  • The vault master key lives in the container volume, NOT in a ./.pci/master.key on the host. Backing up a host copy yields a tarball that fails at restore with a silent SecretAuthError. Extract the key from the running container. Never docker compose down -v — removing the volume orphans every stored credential.
  • Relative imports need .js extensions (ESM + NodeNext). npm run typecheck enforces it.
  • amount is signed, negative = money out — so spending = amount < 0 is the provider-agnostic predicate. Plaid is positive-out and gets negated on write; SimpleFIN passes through. Account balances follow the same rule (a liability owed is negative everywhere). available_balance is left as each provider reports it.
  • union:% is a reserved source_object_id namespace for dedup synthetics. applyRecords fail-closed rejects any provider record that plants or tombstones one.
  • The loopback Host allowlist is the only authz on the admin/OAuth/Plaid routes. It is a same-origin/DNS-rebinding guard, not per-request auth. The erase confirm token is a fat-finger guard, not auth either. The bearer-gated read mirror is intentionally separate. SECURITY.md states the whole boundary.
  • This project is Apache-2.0, so a GPL/AGPL/SSPL dependency poisons the distribution. Adding one is a licence violation, not a preference — check before you add a dep, and never resolve an audit finding by pulling in copyleft. One MPL-2.0 dependency (ical.js) is fine and already recorded in THIRD-PARTY-NOTICES.md.
  • Cloud MCP clients egress on port 443 only. A tunnel on any other port silently TCP-resets — the client will simply never connect and tell you nothing.
  • A test that cannot fail is this repo's signature defect. Correct code behind a vacuous guard accounts for most of the blocking review findings in its history. The only reliable check is to run the mutation: break what the test guards and confirm it goes red.

Read the full file on GitHub · 69 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. 2mo ago First seen · 69 lines · 2,158 tokens per session scan A d07ebe3c9c90

Subscribe to this mod's changes

postern CLAUDE.md is an instructions file published in the GitHub repository getpostern/postern (2 stars, last pushed 2d ago), licensed Apache-2.0. It adds 2,158 tokens to every session, about $0.0086 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

postern CLAUDE.md compared with instructions from other repositories

postern CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
postern CLAUDE.mdgetpostern/posternInstructions file22d agoApache-2.0A2,158Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode