marcus: Instructions file for Claude Code

CLAUDE.md

marcus CLAUDE.md is an instructions file for Claude Code from painted-porch/marcus. It costs 5,698 tokens per session, scanned A, original, MIT.

A project instruction file for Claude Code that explains how to restore project context and record decisions, blockers, and concerns in a shared memory system.

In plain words
What is it for?
It helps maintain project memory and automatically log significant architectural choices, obstacles, and risks while working.
Why use it?
It helps work continue across sessions without losing the current focus, progress, or important decisions.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; positional $N argument.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/painted-porch/marcus/claude-md"><img src="https://agentmods.dev/badge/instructions/painted-porch/marcus/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,698 This file is loaded in full into every session.
When invoked 5,698 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.05698 $0.05698
Opus 5.5 $0.02279 $0.02279
Sonnet 5.5 $0.01140 $0.01140
Haiku 4.5 $0.00570 $0.00570

Measured today against content hash 3be57402093b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

marcus 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 today.

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

How it starts

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

General Guidelines:

  • When writing commit messages, NEVER auto-add your agent name as co-author
  • When writing or substantially editing Markdown files, put each full sentence on its own line. Preserve normal Markdown structure, but avoid wrapping multiple sentences onto one physical line
  • When making technical decisions, do not give much weight to development costs. Instead, prefer quality, simplicity, robustness, scalability, and long term maintainability.
  • When doing bug fixes, always start with reproducing the bug in an E2E setting as closely aligned with how an end user might experience it. This makes sure you find the real problem so your fix will actually solve it.
  • When end-to-end testing a product, be picky about the UI you see and be obsessed with pixel perfection. If something clearly looks off, even if it is not directly related to what you are doing, try to get it fixed along with the other stuff.
  • Apply that same high standard to engineering excellence: lint, test failures, and test flakiness. If you see one, even if it is not caused by what you are working on aright now, still get it fixed.

SESSION_START:

  • At session start, read ~/.simon/memory-bank/activeContext.md for current focus and recent state.
  • Also read ~/.simon/memory-bank/progress.md for what shipped / what's left / critical reminders.
  • Optionally read the other four files in ~/.simon/memory-bank/ (projectbrief, productContext, techContext, systemPatterns) when you need project-wide context — they change rarely.
  • When the user says "update simon memory bank", review the recent conversation and rewrite activeContext.md + progress.md to match the new state. Leave the other four files alone unless the stack or patterns actually changed.

SIMON_DECISION_LOGGING: Automatically capture decisions, blockers, and concerns to Simon as we work on Marcus. Use the simon CLI via Bash tool. No need to ask permission for routine logging — just do it at the moment a decision/blocker/concern surfaces. Full automation guidelines: ~/.claude/skills/simon/SKILL.md

WHAT TO LOG:

  • DECISION: significant architectural choices with rationale + alternatives simon log decision "what we chose" --rationale "why" --alternatives "A,B,C" --project marcus [--issue N]
  • BLOCKER: external dependencies or critical uncertainties stopping progress simon log blocker "what is blocked" --by "what blocks it" --needs "what unblocks" --project marcus
  • THOUGHT: risks, observations, concerns (not full blockers) simon log thought "concern text" --project marcus --urgency high|medium|low [--issue N]
  • IMPETUS: major driving forces or deadlines that shape priorities simon log impetus "name" --date YYYY-MM-DD --description "..." --drives "task1,task2"

WHEN TO LOG:

  • At the moment of decision, not at session end (capture in-the-moment reasoning)
  • When user says "let's go with X" or "we should do Y instead of Z" — that's a decision
  • When user identifies a blocker or you discover one during work — that's a blocker
  • When risks or concerns surface during analysis — that's a thought
  • When a deadline, funding milestone, or strategic commitment is mentioned that shapes priorities across many decisions — that's an impetus (broader scope than a decision; an impetus drives multiple decisions)
  • Don't log routine Q&A, code edits, or obvious choices — only architecturally significant moments

EDITING / BACKFILLING ENTRIES:

  • simon edit <id> --issue N — set or update issue number on an existing entry
  • simon edit <id> --add-tag X — add a tag (preserves existing tags)
  • simon edit <id> --drives "1,2,3" — replace drives list on an impetus
  • simon edit <id> --description "..." — update description
  • Also: --urgency, --complexity, --project, --due, --status, --reason
  • Use this to backfill issue numbers on old entries that mention #NNN in text but lack the issue field, so simon find --issue N queries work

Read the full file on GitHub · 533 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. today Changed · +49 lines · +716 tokens per session 3be57402093b
  2. 16d ago First seen · 484 lines · 4,982 tokens per session scan A 4f1ac195f419

Subscribe to this mod's changes

marcus CLAUDE.md is an instructions file published in the GitHub repository painted-porch/marcus (16 stars, last pushed yesterday), licensed MIT. It adds 5,698 tokens to every session, about $0.0228 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-10-03.

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,649 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,257 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,731 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,159 tokens