proletariat: Instructions file for Claude Code

CLAUDE.md

proletariat CLAUDE.md is an instructions file for Claude Code from chrismcdermut/proletariat. It costs 1,409 tokens per session, scanned B, original, Apache-2.0.

Project instructions for Proletariat, a pnpm monorepo—a single repository containing multiple related packages and applications. They describe its layout, tools, coding patterns, and tests.

In plain words
What is it for?
Use them when modifying Proletariat, especially its CLI, database, themes, documentation, or tests, and when verifying TypeScript builds.
Why use it?
They give an agent the repository context needed to use the right package manager, find code, and run the expected checks.

Instructions file for Claude Code

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

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { PMOStorage } from '../../lib/pmo/storage.js'.

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/chrismcdermut/proletariat/claude-md"><img src="https://agentmods.dev/badge/instructions/chrismcdermut/proletariat/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,409 This file is loaded in full into every session.
When invoked 1,409 The same file — it is already loaded in full.
Security scan B 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.01409 $0.01409
Opus 5.5 $0.00564 $0.00564
Sonnet 5.5 $0.00282 $0.00282
Haiku 4.5 $0.00141 $0.00141

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

Security

Grade B, and why

proletariat CLAUDE.md scanned grade B 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 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.

Asks the agent to reveal its instructionsmediumSystem prompt leakage

Directions to print, repeat or translate the system prompt extract configuration the operator did not intend to expose.

// 2. Handle JSON mode FIRST - output prompt config and return
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 Code Context

Build & Package Manager

Use pnpm not npm

pnpm install        # Install dependencies
pnpm run build      # Build all packages
pnpm -r build       # Build recursively

Project Structure

This is a pnpm monorepo workspace:

apps/
  cli/              # Main CLI tool (prlt command)
    src/
      commands/     # oclif commands
      lib/          # Shared utilities
docs/               # Documentation
pmo/                # Project management office templates
scripts/            # Build and utility scripts
specs/              # Specification files

Key Patterns

  • Commands: Use oclif framework in apps/cli/src/commands/
  • Database: SQLite via better-sqlite3 in apps/cli/src/lib/database/
  • Themes: Optional agent naming themes in apps/cli/src/lib/themes.ts

Testing

pnpm test            # Run all tests (unit + e2e)
pnpm test:unit       # Run unit tests only
pnpm test:e2e        # Run e2e tests only
pnpm test:smoke      # Run smoke tests

Important: Always verify the build passes after modifying TypeScript files in apps/cli/:

cd apps/cli && pnpm build

Every bug fix PR MUST include a regression test that fails if the fix is reverted.

Every PR MUST include tests for changed code. No exceptions.

  • Write unit tests for new functions and modified logic
  • Write integration tests for new flows and command changes
  • Test files live in apps/cli/test/unit/ and apps/cli/test/e2e/
  • If you modify source code without adding or updating tests, your PR will be blocked

Command Code Rules

  • Never call process.exit() in command code — let oclif handle lifecycle (use return instead).

Provider Architecture

All ticket operations MUST go through the TicketProvider interface (src/lib/providers/types.ts). Never call PMO storage directly for ticket reads/writes.

  • Use resolveTicketProvider() or resolveProjectProvider() from src/lib/providers/resolver.ts to get the correct provider
  • Local PMO is just another provider (implements TicketProvider), not a cache or intermediary
  • Linear is the source of truth when configured — prlt reads and writes directly to Linear API
  • Never sync/mirror Linear data into PMO — they are parallel providers, not a pipeline

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. 2mo ago First seen · 189 lines · 1,409 tokens per session scan B 46a39e82e02a

Subscribe to this mod's changes

proletariat CLAUDE.md is an instructions file published in the GitHub repository chrismcdermut/proletariat (36 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 1,409 tokens to every session, about $0.0056 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks the agent to reveal its instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

proletariat CLAUDE.md compared with instructions from other repositories

proletariat CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
proletariat CLAUDE.mdchrismcdermut/proletariatInstructions file365mo agoApache-2.0B1,409Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,649GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode ai-customization.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA1,907GitHub Copilot