parley: Instructions file for Claude Code

CLAUDE.md

parley CLAUDE.md is an instructions file for Claude Code from sharpTrick/parley. It costs 2,697 tokens per session, scanned A, original, MIT.

A set of project instructions for building Parley, a messaging bridge between people, chat bots, and coding agents. It defines the design source, work order, testing discipline, and boundaries between the core and messaging backends.

In plain words
What is it for?
Use it when developing or maintaining Parley, especially when adding messaging backends, following project tasks, or checking its architecture and tests.
Why use it?
It keeps development consistent and prevents backend-specific code from being mixed into the shared core.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/sharptrick/parley/claude-md"><img src="https://agentmods.dev/badge/instructions/sharptrick/parley/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,697 This file is loaded in full into every session.
When invoked 2,697 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.02697 $0.02697
Opus 5.5 $0.01079 $0.01079
Sonnet 5.5 $0.00539 $0.00539
Haiku 4.5 $0.00270 $0.00270

Measured 5d ago against content hash 93e8d562a512, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

parley 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 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.

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 · 189 lines

How it starts

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

CLAUDE.md — Parley build instructions

You are building Parley, a transport-agnostic seam MCP that carries messages, shared context, and task hand-off between humans, online chat bots, and coding agents over a pluggable messaging backend.

Read DESIGN.md in full before writing any code. It is the source of truth. This file is the operating manual: how to work, in what order, and the rules that keep an autonomous run on-rails. TASKS.md is the ordered checklist — work it top to bottom, checking items off as you complete and verify them.


Prime directives

  1. The seam is the product. Everything hard lives behind one small interface (connect / disconnect / subscribe / post / fetchRecent / resolveIdentity). bridge-core must never import from a backend plugin. Dependencies point one way: plugins depend on core, never the reverse. If you ever feel the urge to special-case a backend inside core, stop — the seam is wrong; fix the seam, not with a branch in core.

  2. Success criterion for every backend after the first: adding it touches only the new plugin package, never bridge-core. If core has to change to fit a backend, that is a design smell to surface, not silently absorb.

  3. Build in the order in TASKS.md. Do not skip ahead. v0.1 (SQLite) is the seam-proving gate; nothing else starts until it works end to end against the fakechat loopback.

  4. One channel gate, verify first (see below). Before implementing the live-push half, verify the current channel contract from the docs. Do not build the push path from memory or from DESIGN.md's summary of it.


The channel-docs verification gate (MANDATORY before any push code)

DESIGN.md describes how Claude Code Channels work, but the exact <channel> event schema, the claude/channel capability declaration, and the reply/tool-registration details must come from the live docs, not from this package's summary.

Before writing the v0.1 push half (TASKS step P-1):

  • Fetch and read https://code.claude.com/docs/en/channels and https://code.claude.com/docs/en/channels-reference (or current equivalents).
  • Confirm: how a server declares claude/channel; the exact shape of the <channel> event pushed into the session; how reply/react/edit-style tools are registered; how --channels loads a custom (development) channel; and the current auth requirement (claude.ai subscription, not API key).
  • If the docs and DESIGN.md disagree, the docs win — note the discrepancy in your progress notes and follow the docs.
  • Develop and test the push path against the fakechat loopback (--channels plugin:fakechat@claude-plugins-official, behind --dangerously-load-development-channels during the research preview) before wiring any real backend's subscribe.

Read the full file on GitHub · 189 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 Changed · +51 lines · +818 tokens per session 93e8d562a512
  2. 2mo ago First seen · 138 lines · 1,879 tokens per session scan A d91d82ed391f

Subscribe to this mod's changes

parley CLAUDE.md is an instructions file published in the GitHub repository sharpTrick/parley (0 stars, last pushed 5d ago), licensed MIT. It adds 2,697 tokens to every session, about $0.0108 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

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens