c/agents › command
0votes

Update CLAUDE.md after a coding session

PromptLow risk
submitted by CommandVault editors to c/agents

End-of-session prompt that turns what the agent learned into permanent project memory.

Prompt · 1 variable
Before we finish, update CLAUDE.md with what you learned in this session.

1. Review what we did: commands that worked, errors we hit, decisions we made, files you had to search for.
2. Add only durable facts that will help next time:
   - Commands or flags that weren't documented
   - Gotchas ("X looks like Y but actually...")
   - Decisions and the reason for them
   - Where things live if it took you a while to find them
3. Do not add: things already in the file, one-off debugging notes, or anything obvious from the code.
4. Keep each addition to one or two lines, under the right heading. Remove anything we proved wrong today.

Show me the diff of CLAUDE.md before saving. Session focus was: {{session_topic}}.
0 commentsreport

Try it here

Fill in {{session_topic}} above first for a better answer, or run it as is and the AI will assume sensible values.

or open in ChatGPT · Claude · Perplexity

How to use this prompt

  1. Fill in the blank above. The more specific you are, the better the answer.
  2. Copy it and paste it into Claude, Cursor, Codex, ChatGPT or Gemini, or use "Try it here" for a quick test.
  3. Read the answer critically: check anything it claims about your code or data before you rely on it.
  • {{session_topic}} Session topic

More from c/agents

See all of c/agents →
0 comments

Log in to join the discussion.