/director:reflect [the correction, if not already said]from Director
Captures user corrections, decisions, and task methods since the last reflection, then proposes gated edits to the director's memory.
Ships in Director. Installing the plugin adds it to Claude Code.
A task in this session has ended. The user's correction, if they give one here: $ARGUMENTS
journal_read: what happened since the last reflection — the user's own messages (person, captured as they
were sent), plans proposed, moved, cancelled and run, delegations, lessons decided, and the corrections and outcomes
noted. From it, list what the memory may lack:
person message, or a
correction entry); a task the user moved to another lane on the band (plan.moved) is one too: "this kind of
work runs on that lane";outcome or correction that lists what went wrong before it went right), and that the memory has no statement
for: the next agent would rediscover it the same way. A method is a lesson even when the user corrected nothing.journal_note with kind
reflected, say so and stop.Index.md) must hold so that the next time an agent is in a situation like this — not this exact one — its plan
comes out right. For a decision, When is the situation where it applies, Do the decision itself, exactly
(the number, the name, the choice), and Because the user's reason if they gave one, with the date they decided
it. For a method, When is the kind of task, Do its steps in order, each with the check that showed the
step had gone wrong (the overlay, the second estimate, the test) — without the values of this one task (its files,
slice numbers, paths, results), which belong beside the task's data, not in the memory — and Because the
attempts that failed. Search the memory for
statements that already cover it first: if one does, modify it (sharpen its When, Do or Because) rather than
adding a duplicate; add a statement only for what none covers. Phrase When as a situation an agent recognises
mid-task, general enough to recur in other tools and files; Do as a concrete, checkable action; Because
with the incident as evidence. Link it to the statements it applies with, and name the Index situations that
should reach it (reuse an existing situation line's text exactly when one fits: the text before its →
only, never the whole line with its links — memory_propose refuses a situation holding → or [[).memory_propose with the edits (op add|modify, page, id, when, do, because, links as
Page#id, situations; about only for a new page), the probes, a one-line rationale, and the report as
episode. If it reports lint problems or rejected edits, fix them and propose again. A proposal you replace with a
new one — and any proposal memory_status reports in conflict (what it touches changed after it was made;
accepting it would undo what came since) — is closed with memory_reject, and you say so. A proposal
memory_status reports rebased_from was brought up to the live memory untouched: show its new diff and go on.memory_check, minutes and a few dollars): it keeps a lesson only if it changes the plans its probes test —
TEACHES; REDUNDANT means the memory or the model already does it; NO EFFECT means the edit changed nothing.
Poll memory_status until it lands and report the verdict.memory_accept with user_said_yes: true. Report whether it was checked and
versioned, and where the previous memory was kept. A refusal leaves the memory as it was; say why. On the user's
no, call memory_reject.
Where Claude Code shows the director's band above the prompt, the user can also decide there (Diff, Accept,
Reject); their decision reaches you with their next message. Do not call memory_accept again for a proposal
they already accepted or rejected on the band.journal_note with kind reflected and one line on what was learned, so the next reflection starts here.What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
3 commands in this plugin
npx claudepluginhub evolvingagentslabs/evolving-agents --plugin directorOther plugins' commands for the same job