reflect-status

Show reflection metrics, pending reviews, sidecar coverage, and GraphRAG health. Read-only views into the reflect system state. Can also approve/reject pending low-confidence items.

Best use case

reflect-status is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Show reflection metrics, pending reviews, sidecar coverage, and GraphRAG health. Read-only views into the reflect system state. Can also approve/reject pending low-confidence items.

Teams using reflect-status should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/reflect-status/SKILL.md --create-dirs "https://raw.githubusercontent.com/stevengonsalvez/agents-in-a-box/main/plugins/reflect/skills/reflect-status/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/reflect-status/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How reflect-status Compares

Feature / Agentreflect-statusStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Show reflection metrics, pending reviews, sidecar coverage, and GraphRAG health. Read-only views into the reflect system state. Can also approve/reject pending low-confidence items.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Reflect: Status - Metrics & Review

Show the current state of the reflect system: metrics, pending reviews, sidecar
coverage, and GraphRAG health. Also handles review of pending low-confidence items.

## When to Use

- To check how many learnings have been captured
- To review pending low-confidence items
- To audit sidecar coverage (find knowledge notes missing sidecars)
- To check GraphRAG health (node/edge counts)
- To see which agents have been updated most

## Status View

When invoked, display the following sections:

### 1. Reflect State

```bash
python {{HOME_TOOL_DIR}}/skills/reflect/scripts/state_manager.py status
```

Shows:
- Auto-reflect: enabled/disabled
- Last reflection: timestamp
- Pending reviews: count

### 2. Aggregate Metrics

```bash
python {{HOME_TOOL_DIR}}/skills/reflect/scripts/metrics_updater.py --show
```

Shows:
- Sessions analyzed
- Total signals detected
- Changes proposed / accepted (acceptance rate)
- Skills created
- Estimated time saved
- Confidence breakdown (high/medium/low)
- Most updated agents (top 5)

### 3. Sidecar Coverage

Check how many knowledge notes have entity sidecars:

```bash
# Count knowledge notes
NOTES=$(find docs/solutions -name "*.md" -not -name "README.md" 2>/dev/null | wc -l | tr -d ' ')

# Count sidecars
SIDECARS=$(find docs/solutions -name "*.entities.yaml" 2>/dev/null | wc -l | tr -d ' ')

# Find notes missing sidecars
for md in $(find docs/solutions -name "*.md" -not -name "README.md" 2>/dev/null); do
    sidecar="${md%.md}.entities.yaml"
    if [[ ! -f "$sidecar" ]]; then
        echo "MISSING: $md"
    fi
done
```

Display:
```
Sidecar Coverage: 15/18 (83%)
Missing sidecars:
  - docs/solutions/build-errors/webpack-chunk-error.md
  - docs/solutions/testing-patterns/playwright-retry.md
  - docs/solutions/api-integrations/stripe-webhook.md
```

**If coverage < 100%**: Suggest running `/reflect:consolidate` to generate missing sidecars.

### 4. GraphRAG Health

```bash
if command -v reflect >/dev/null 2>&1; then
    reflect stats
elif [[ -x "$HOME/.local/bin/reflect" ]]; then
    "$HOME/.local/bin/reflect" stats
fi
```

Shows:
- Total indexed learnings
- Node count (entities)
- Edge count (relationships)
- Last indexing timestamp

### 5. Orphaned Memory Stats

```bash
python3 {{HOME_TOOL_DIR}}/skills/reflect/scripts/memory_discovery.py stats
```

Shows:
- Repo name
- Orphaned memory dirs count
- Total lines across all orphaned dirs

**If orphaned dirs > 0**: Suggest running `/reflect:consolidate` to merge them.
**If unindexed memories found**: Suggest running `/reflect:ingest` to index into GraphRAG + QMD.

### 6. Project Memory Health

Check if `.agents/MEMORY.md` exists and its line count:

```bash
if [[ -f .agents/MEMORY.md ]]; then
    LINES=$(wc -l < .agents/MEMORY.md | tr -d ' ')
    echo "Project memory: .agents/MEMORY.md ($LINES/200 lines)"
else
    echo "Project memory: not found (run /reflect:consolidate to create)"
fi
```

## Review Mode

When invoked as `reflect review` or when there are pending items, enter review mode.

### Pending Low-Confidence Items

```bash
python {{HOME_TOOL_DIR}}/skills/reflect/scripts/state_manager.py pending
```

For each pending item, show:
- Signal text
- Detection date
- Source quote
- Category

**Review actions:**
- `approve N` -- Promote item N to full confidence, apply the change
- `reject N` -- Remove item N from pending queue
- `approve all` -- Promote all pending items
- `reject all` -- Clear all pending items
- `skip` -- Leave pending for later

When approving:
1. Apply the behavioral change or create the knowledge note
2. Generate entity sidecar if knowledge type
3. Index via `reflect add` CLI (reflect-kb)
4. Remove from pending queue:
   ```bash
   # Done internally via state_manager
   python -c "
   import sys; sys.path.insert(0, '{{HOME_TOOL_DIR}}/skills/reflect/scripts')
   from state_manager import clear_pending_review
   clear_pending_review(INDEX)
   "
   ```
5. Update metrics

### Staleness Check

Flag items that have been pending for more than 7 days:

```
STALE (14 days): "Consider using memoization for expensive renders"
  - Detected: 2026-03-30
  - Recommend: reject (too old, context lost) or approve if still relevant
```

## Output Format

Present everything in a clean dashboard format:

```markdown
# Reflect Status Dashboard

## System State
| Metric | Value |
|--------|-------|
| Auto-Reflect | Disabled |
| Last Reflection | 2026-04-12 14:30:00 |
| State Directory | ~/.reflect |

## Aggregate Metrics
| Metric | Value |
|--------|-------|
| Sessions Analyzed | 42 |
| Signals Detected | 156 |
| Changes Proposed | 114 |
| Changes Accepted | 89 (78%) |
| Skills Created | 5 |
| Estimated Time Saved | ~7.4 hours |

## Confidence Breakdown
| Level | Count |
|-------|-------|
| High | 45 |
| Medium | 32 |
| Low | 12 |

## Most Updated Agents
| Agent | Updates |
|-------|---------|
| code-reviewer | 23 |
| backend-developer | 18 |
| frontend-developer | 12 |
| security-agent | 8 |
| solution-architect | 5 |

## Sidecar Coverage
15/18 knowledge notes have sidecars (83%)
3 notes missing sidecars -- run /reflect:consolidate to fix

## GraphRAG Health
- Indexed learnings: 34
- Entities: 112
- Relationships: 87
- Last indexed: 2026-04-12

## Orphaned Memories
- Orphaned dirs: 3
- Total lines: 127
- Suggest: /reflect:consolidate

## Pending Reviews: 2
1. [MEDIUM] "Consider cursor-based pagination for large datasets" (5 days)
2. [LOW] "Memoize expensive component renders" (12 days, STALE)

Review pending items? (approve N / reject N / skip)
```

## Troubleshooting

**Metrics show 0:**
- Run `/reflect` at least once to initialize metrics
- Check state directory: `ls ~/.reflect/`

**GraphRAG stats unavailable:**
- Check if reflect-kb CLI is installed: `command -v reflect`
- Install if missing: `uv tool install --upgrade 'git+https://github.com/stevengonsalvez/agents-in-a-box.git#subdirectory=reflect-kb[graph]'`

**Sidecar count is 0:**
- Knowledge notes may exist without sidecars (pre-v3 behavior)
- Run `/reflect:consolidate` to generate missing sidecars

Related Skills

tmux-status

8
from stevengonsalvez/agents-in-a-box

Show status of all tmux sessions including dev environments, spawned agents, and running processes

swarm-status

8
from stevengonsalvez/agents-in-a-box

Display comprehensive status dashboard for a swarm team

reflect

8
from stevengonsalvez/agents-in-a-box

Full conversation scan for self-improvement. Detects behavioral corrections and knowledge signals, classifies them, proposes agent updates and knowledge notes with entity sidecars for GraphRAG indexing. Correct once, never again.

reflect:recall

8
from stevengonsalvez/agents-in-a-box

Retrieve relevant prior learnings from the global knowledge base. Hybrid vector + graph search over 170+ indexed learnings, reranked by confidence, recency, and tag overlap. Use when starting work, debugging a recurring problem, or before implementing a feature that may have prior art.

reflect:ingest

8
from stevengonsalvez/agents-in-a-box

The global knowledge indexer. Harvests ALL memory sources across all tools (Claude, Codex, Copilot, Gemini) and all project types into the unified GraphRAG + QMD knowledge base. Archives originals, generates entity sidecars, and dual-indexes for future retrieval. This is THE command that makes the knowledge base comprehensive.

reflect:errors-ack

8
from stevengonsalvez/agents-in-a-box

Triage and acknowledge entries in the reflect errors sink (~/.reflect/errors.json). Invoked from the statusline ⚠N badge when pipeline errors accumulate (drain poison, parser crashes, ingest failures, hook timeouts).

reflect:cost

8
from stevengonsalvez/agents-in-a-box

Report reflect drain spend over a time window — tokens split by cached (cache_read), uncached writes (cache_creation), and io (input+output), with a $ estimate, grouped by day / outcome / model / transcript. Reads the drainer's cost log and surfaces outlier runs and cache-reuse health (the 41.5M-token failure mode = low cache reuse + high cache writes). Use to answer "what is reflection costing me" for the last day / week.

reflect:consolidate

8
from stevengonsalvez/agents-in-a-box

Project-level memory consolidation. Merges orphaned worktree memory directories into a single .agents/MEMORY.md for the current project. Deduplicates, sections, and proposes cleanup of orphan dirs. Does NOT index into the global knowledge base — use reflect:ingest for that.

workflow

8
from stevengonsalvez/agents-in-a-box

Guide through structured delivery workflow with plan, implement, validate phases

webapp-testing

8
from stevengonsalvez/agents-in-a-box

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

validate

8
from stevengonsalvez/agents-in-a-box

Verify implementation against specifications

ui-ux-pro-max

8
from stevengonsalvez/agents-in-a-box

UI/UX design intelligence. 67 styles, 96 palettes, 57 font pairings, 25 charts, 13 stacks (React, Next.js, Vue, Svelte, Astro, Nuxt, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui, Jetpack Compose). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient.