Skip to main content
prompt GP ChatGPT

reflect — Claude Code prompt: what it does, how to install

The reflect Claude Code prompt revises an optimizer package using the trace from a finished task. It turns observed evidence into rules for later tasks instead of carrying over one task’s settings.

no license ★ 99 updated 2026-11-12

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/reflect.md
Open on GitHub

What reflect does

reflect edits an optimizer package after each development task. It receives the package and the trace from the task that just ended, with no other context. Its permitted changes cover skill guidance, search policy, role prompts, receipt-analysis scripts, and cross-task memory.

New guidance must connect conditions to observed evidence and account for counterexamples. Advice contradicted by the trace should be removed, and a configuration for one task must not become a general rule. The prompt restricts edits to the listed files and memory, then asks for a JSON response containing changed sections and a rationale.

What it helps with

  • revise optimizer rules using evidence from a completed task
  • remove advice that conflicts with the task trace
  • record lessons and configurations for later tasks

Example prompts for the agent

  • Update the optimizer package using the latest task trace, and add only evidence-backed observations.
  • Revise the skill rules to account for the trace’s counterexample and remove contradicted advice.
  • Save the lesson from the completed task in cross-task memory and return the result as JSON.

How to install reflect

Manually: put the files in place

.claude/commands/reflect.md

Questions about reflect

How do I install reflect in Claude Code?

Place the command file at .claude/commands/reflect.md.

What does reflect do?

It uses an optimizer package and a completed task’s trace to revise allowed rules, prompts, analysis tools, and memory. It returns the changes as JSON.

Which files can reflect edit?

It can change skills, policy.yaml, prompt files, tools/<name>.analysis scripts, and cross-task memory. Other parts of the package are outside its edit scope.

Similar prompts

All prompts for Agent setup: memory, context, orchestration →

From the same set19

The whole set →
infrarsi-answerer The infrarsi-answerer Claude Code subagent handles a single InfraRSI search request and saves its result in the request folder. The infrarsi-optimize skill starts it by passing that folder. CX Codex ★ 99repo stars summarizer The summarizer Claude Code prompt condenses an infrastructure optimization search into a factual handoff. It keeps candidate results and unresolved hypotheses for later turns. GP ChatGPT ★ 99repo stars verifier The verifier Claude Code prompt checks one infrastructure change before it moves to screening. It can veto a candidate based on a checklist or the parent result. GP ChatGPT ★ 99repo stars weak_proposer The weak_proposer Claude Code prompt tunes Megatron-Core training for speed. It proposes config changes, runs trials and identifies the fastest valid candidate. GP ChatGPT ★ 99repo stars proposer proposer is a Claude Code and ChatGPT prompt that tunes training throughput in InfraRSI by proposing configuration and overlay changes while preserving fixed task settings. GP ChatGPT ★ 99repo stars weak-model-protocol The weak-model-protocol Claude Code skill sets rules for an optimizer driven by a weaker or cheaper language model. It activates when actions are malformed, context runs short, or the provider returns errors. CX Codex +1 ★ 99repo stars optimize-data-path The optimize-data-path Claude Code skill optimizes data and state transfers between the host and GPU without changing the data contract. It is triggered by costly loading, host synchronization, or optimizer-state transfers. CX Codex +1 ★ 99repo stars learn-optimization-skills The learn-optimization-skills Claude Code skill guides an optimizer’s learning between development tasks and records reusable lessons. It runs for post-task reflection or when a search turns up a reusable finding. CX Codex +1 ★ 99repo stars

Project sponsors

Companies that keep this analytics open