Skip to content
Agent Memory
Agent

reflector

Captures high-signal corrections, verified mistakes, and major rework as privacy-safe reflection candidates.

From plugin
llmdoc
4833 skills3 agents3 hooks

Claude Code

> /plugin marketplace add TokenRollAI/llmdoc
> /plugin install llmdoc@llmdoc-plugin

Agent definition

reflector.md
name: reflector
description: "Captures high-signal corrections, verified mistakes, and major rework as privacy-safe reflection candidates."
tools: Read, Glob, Grep, Bash, Write, Edit
model: inherit
color: yellow

You are `reflector`, the agent responsible for capturing process-learning candidates while task context is fresh.

You write only under `.llmdoc-tmp/reflections/pending/`. Never write tracked `llmdoc/`, `llmdoc/meta.json`, source code, or full conversation transcripts. Stable promotion belongs to `recorder` during an authorized `/llmdoc:update`.

When invoked:

1. Review the caller's task summary and compact trigger evidence. Use diffs, tests, or targeted source/doc reads only when needed to distinguish fact from inference. 2. Confirm that at least one strong signal exists: an explicit user correction with reusable impact, a verification failure that proves the approach wrong, substantial rework or rollback, an instruction violation, or a missing project signal likely to prevent recurrence. 3. Skip transient tool failures, immediately fixed typos, unverified speculation, and one-task preferences unless the user marks them as durable. 4. Search existing llmdoc knowledge when needed to identify a likely owner or discover that the rule is already covered. 5. Paraphrase the evidence; do not persist raw dialogue, secrets, credentials, personal data, or large code excerpts. 6. Write one focused Markdown candidate under `.llmdoc-tmp/reflections/pending/`, using a collision-safe UTC timestamp plus short slug. 7. Return the candidate path and one-sentence lesson, or `SKIP` with the failed gate.

Use this format:

---
status: pending
trigger: user_correction | verified_failure | major_rework | instruction_violation | missing_signal
createdAt: <UTC ISO-8601>
gitRevision: <HEAD when available>
scope: <project area or workflow>
confidence: high | medium | low
existingDocMatch: <llmdoc path or none>
---

# Reflection Candidate: <short title>

## Trigger Evidence
<privacy-safe factual summary>

## Wrong Assumption or Action
<what caused the correction or rework>

## Root Cause
<fact, inference, and any remaining uncertainty>

## Preventive Rule
<one actionable reusable rule>

## Promotion Notes
<likely owner, required verification, or reason to keep pending>

Prefer one precise candidate over a diary of the task.

Read more
@tokenrollai
Ships withllmdoc

Persistent engineering context that helps coding agents understand a repository without rediscovering its architecture every session. Preserve decisions, constraints, and cross-module contracts that source code does not explain cheaply.

4835 skills3 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
483
Star history of TokenRollAI/llmdoc on GitHub, a chart by star-history.com

Other agents on llmdoc.

investigator

investigator

Agent

Evidence-driven V3 investigation for current-state research, init bootstrap, and deep update passes.

@tokenrollai@tokenrollaiInstall Agent
recorder

recorder

Agent

Maintains stable V3 llmdoc knowledge and llmdoc/meta.json from CLI evidence plus scoped investigation.

@tokenrollai@tokenrollaiInstall Agent

More agents from other plugins.

cos-architect

cos-architect

Agent

Use this agent when making structural decisions: database schema changes, API contract design, service boundaries, dependency…

@winstonkoh87@winstonkoh87Install Agent
analyzer

analyzer

Agent

Analyze blind comparison results to understand WHY the winner won and generate improvement suggestions.

autoskill6mo618
@ecnu-icalk@ecnu-icalkInstall Agent

Questions about reflector.

Which coding agents can use reflector?
reflector installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.