Write down only what Claude can’t learn by reading the code, and keep CLAUDE.md short.
Give it a check it can run that comes back pass or fail, and ask for the command it ran and its output.
Prompts, CLAUDE.md and skills are read by the model, which may not follow them. A rule that has to hold every time goes in a hook, a deny rule or a managed setting.
Run /clear between unrelated tasks. After two failed corrections, /clear and write a better prompt.
Effort is the main control for how long Claude thinks. Subagents cost tokens; they pay off for parallel work, for keeping long output out of the main session, and for an independent review.
A task longer than one session: progress, decisions, files, checks and next steps kept current for the next agent.
Implement [REQUIREMENT] and keep HANDOFF.md updated with current progress, key decisions and why you made them, relevant files, verification results, unresolved issues, and next steps. Keep both DX (developer experience) and AX (agent experience) in mind. Retain only information that’s still current, so I can understand and review the work, and the next agent can read it, check the current state, and continue the task.
Dozens of grep and read turns per question: the repo as one graph of functions, files and dependencies; dead code found too.
Set up codebase-memory on this repo for me and show me the map.
Install it from https://github.com/DeusData/codebase-memory-mcp:
curl -fsSL https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.sh | bash -s -- --ui
Then restart, index this project, and open localhost:9749 so I can see the graph.
High effort mostly buys verification: a builder on low, a verifier on high, one CLAUDE.md rule runs each feature through both.
Set up the workflow in this image in my Claude Code:
1. Create two subagents in ~/.claude/agents:- builder: writes the code. model: opus, effort: low. It implements the spec I've approved and stops when it's done.- verifier: checks the work. model: opus, effort: high. It runs the feature first to see what it actually does, then add…
Today’s pushes to main, reviewed while you sleep: a draft PR per bug with a test that fails first, in the cloud, laptop closed.
Run every day at 1:07 AM on Opus 5.5 with no connectors attached. Save the instructions below as the prompt, word for word.
First install dependencies and run the full test suite. Note which tests were already failing. If the tests can't run, or there are none, write down what's missing and stop.
Then look at the commits pushed to the default branch in the last 24 hours. If there are none, end the run. Skip any bug that a claude/ branch is already fixing.
Only look for real bugs…
The cache expires without warning: the status line shows minutes left, then what the next message re-caches.
Read this doc, plus the status line field reference it links to, and add a cache segment to my Claude Code status line.
1. If I already have a status line, don't replace it. Save stdin first so the original command and the cache segment read the same input, leave the original output as is, and put the cache segment on its own line after it. If I don't have one, create one.2. Get the data from prompt_cache in the input: warm, ttl, expires_at, hit_ratio, misses, last_miss_cause…
Keep hitting the usage limit: 7 days of session logs scanned, the 3 costliest habits and their share, rules to plug them.
Change nothing until I say yes. Write a small script to scan my Claude Code session logs in ~/.claude/projects from the last 7 days, using the token counts recorded in them; don't read the raw files into context. Find the 3 habits that burned the most usage, like reading whole files, dumping long test or build output, spawning subagents, or keeping one session going for hours. For each, work out roughly what share of my usage it took and write one rule that would stop it. Whe…
$20 plan on Opus 5.5 by default: Haiku reads code, looks up docs; Opus advises before plans, on repeat errors, before ‘done’.
Set up my Claude Code to match this tree:
1. For the three subagents in the tree, check ~/.claude/agents and .claude/agents first. Reuse fitting ones, and propose new ones only for missing roles. Set the ones that read code and look up docs to model: haiku, and the one that edits code and runs tests to model: sonnet. Leave any subagent that already sets a different model alone, and list it.2. In ~/.…
Where a long task stands while you wait: an HTML dashboard of progress, blockers and open questions, built by a side subagent.
Set up a subagent that only builds progress dashboards:
1. Create dashboard-builder in ~/.claude/agents: model: opus, effort: medium, memory: user. Preload the design skills I have installed (for example impeccable). It can only read and write the .dashboard/ folder and its own memory.2. Ask me now what style I like: dark or light, dense or airy, and one accent color. Save my answer to its memory so it follows it…
Which job is worth many agents: repo-wide checks, migrations or fix loops, planned on one directory with at most 10 agents.
We'll run this as a dynamic workflow in Claude Code. From the second doc, only borrow how it splits and reviews the work.
Then go through this project's code, issues and recent commits, and find three kinds of work that fit a dynamic workflow:
1. Checks that need to cover the whole repo, like hunting for bugs or finding missing permission checks.2. Migrations that touch many files, like moving from JavaScript to TypeScript.
‘The last 24 hours’ in a scheduled task skips or repeats work: fixed windows, silent read failures and risky posting flagged.
Then review all my scheduled agent tasks against it: cron, launchd, scheduled GitHub Actions workflows, and scripts that call claude -p or codex exec. If any run on a server or in the cloud where this machine can't see them, tell me which config to paste in. Find three kinds of problems:
1. Tasks that read a fixed time window, like 'the last 24 hours' or 'since yesterday'.2. Tasks that report 'nothing new' even when a read fails: if a token ha…
Long runs + Review·
Paste it where your agent reads it. Copybook in your agent can look up tips like this mid task.Send it to your computer for later.Add to your agentEmail me
Copybook Pro: line-by-line review of your CLAUDE.md or AGENTS.md, and tip lookups from your agent with no daily limit. Early bird: $59 for the 1-year pass. The price rises as Pro grows.See Pro