scratchpad

A set of rules for using scratchpad.md as short-term session notes. It defines sections for the current story, task, checklist, blockers, and recent decisions, while keeping detailed history in separate story files.

In plain words
What is it for?
Use it while working on a story to record current tasks, checklists, blockers, and decisions in scratchpad.md.
Why use it?
It prevents temporary work context from becoming an unstructured history log and makes active tasks easier to track between steps.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/copperdogma/cursor-project-bootstrapper/scratchpad
Clone the repo
git clone --depth 1 https://github.com/copperdogma/cursor-project-bootstrapper

Made for: Cursor.

Per session 485 This file is loaded in full into every session.
When invoked 485 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00485 $0.00485
Opus 5 $0.00243 $0.00243
Sonnet 5 $0.00097 $0.00097
Haiku 4.5 $0.00049 $0.00049

Measured 2d ago against content hash cc07fc703ac5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

scratchpad 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 2d 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.

.cursor/rules/scratchpad.mdc · 34 lines

What it actually says

Work Phase Scratchpad Memory File

scratchpad.md exists as your session context for the current work. It's a lightweight, focused view of what you're doing right now.

Important: Detailed implementation history belongs in individual story files (see build-story.md command). The scratchpad is for active session context only, not a complete history repository.

Suggested structure for scratchpad.md:

  • Current Story: Link to the story you're currently working on from /docs/stories.md
  • Current Task: Brief description of what you're working on this moment
  • Plan Checklist: Quick checklist of work required for the current task/story
  • Issues/Blockers: Active issues or blockers right now
  • Decisions Made: Recent decisions that affect current work (detailed decisions go in story work logs)

If scratchpad.md is missing any of these sections, restore them immediately. Never remove this structure.


Instructions

  • Always add tasks as checklists so they can be tracked.
  • Follow project-management.mdc for work-specific instructions.
  • Use scratchpad.md for current session context - what you're doing right now.
  • Detailed implementation history (attempts, failures, solutions) should go in story work logs (see build-story.md command).
  • Frequently suggest to the user what the next obvious steps are and suggest the most logical one.
  • Reorganize scratchpad.md now and then, putting unfinished tasks at the top and finished ones at the bottom.
  • Update /docs/stories.md with story statuses and progress.
  • Archive scratchpad only on phase transitions or major milestones (not after every task). Detailed history is preserved in story work logs.
  • When starting a new story, reset or update scratchpad.md to focus on the new work. Previous story details are in that story's work log.

Keep it concise (<300 lines): summarize or remove outdated info regularly to prevent overloading the context. Focus on the current session and immediate next steps.

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. 2d ago First seen · 34 lines · 485 tokens per session scan A cc07fc703ac5

Subscribe to this mod's changes

scratchpad is a cursor rule published in the GitHub repository copperdogma/cursor-project-bootstrapper (4 stars, last pushed 9mo ago), licensed MIT. It adds 485 tokens to every session, about $0.0024 per session on Opus 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.