task_memory_step — Claude Code prompt: what it does, how to install
The task_memory_step Claude Code prompt retrieves a record of one step from an earlier task. It shows the step’s actions and the text it read at the time.
Apache-2.0 ★ 9,488 updated 2026-11-16
.claude/commands/task_memory_step.mdWhat task_memory_step does
The prompt looks up a past task step using the task’s exact ID and the step number from task_memory_timeline. Its record contains the actions taken and text read from a screen, page, or command output.
Sensitive data has already been redacted, and the captured text is shortened. The record reflects an earlier moment; read the live screen again to see what is true now.
What it helps with
- retrieve the actions of a specific past task step
- recover text a step read earlier
- separate a past screen state from the current one
Example prompts for the agent
- Show me step 2 from task
abc123. - What text did step 4 of task
abc123read? - Retrieve the actions from step 1 of task
abc123.
How to install task_memory_step
Manually: put the files in place
.claude/commands/task_memory_step.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about task_memory_step
How do I install task_memory_step in Claude Code?
Add the prompt file at .claude/commands/task_memory_step.md.
What does task_memory_step do?
It retrieves a past task step’s record, including its actions and the text it read at that time.
Does task_memory_step show the current screen state?
No. The record captures an earlier state. Read the live screen again to see what is happening now.
Source text
task_memory_step.md · Apache-2.0
Read the raw record of one step of a past task (an exact id plus the step number from task_memory_timeline): what the step did and the text it read then (screen, page, command output, already redacted and truncated). It shows what was true at that time; re-read the live screen when the current state matters.
© wangzan101 · Apache-2.0 · wangzan101/Mika