Skip to content
Development
Skill

/ralph-reflect

View and manage agent loop reflections and episodic memory

From plugin
aiwg
229200 skills199 agents26 commands

Claude Code

$ npx -y skills add jmagly/aiwg --skill ralph-reflect --agent claude-code

SKILL.md

ralph-reflect.SKILL.md
namespace: aiwg
name: ralph-reflect
platforms: [all]
description: View and manage agent loop reflections and episodic memory
commandHint:
  category: ralph

Al Reflect Command

View, search, and manage reflections from agent loop iterations.

Instructions

Manage the Reflexion episodic memory stored in `.aiwg/ralph/reflections/`:

Subcommand: show

Display reflections for a specific loop or the most recent loop.

1. Load reflections from `.aiwg/ralph/reflections/loops/` 2. Display each reflection with:

  • Trial number, timestamp
  • Outcome (success/failure/partial)
  • Reflection text
  • Strategy change

Subcommand: patterns

Show recurring patterns across all loops.

1. Load `.aiwg/ralph/reflections/patterns/` 2. Display patterns by frequency 3. Show success rate for each pattern 4. Highlight patterns applicable to current context

Subcommand: clear

Archive and clear reflection history.

1. Archive current reflections to timestamped directory 2. Reset loops and patterns directories 3. Preserve index.yaml

Arguments

  • `show [loop-id]` - Show reflections for loop (default: latest)
  • `patterns` - Show learned patterns
  • `clear` - Archive and clear reflections
  • `--format [yaml|markdown|summary]` - Output format (default: markdown)
  • `--last [n]` - Show only last n reflections
  • `--loop [id]` - Filter by loop ID

References

  • @$AIWG_ROOT/agentic/code/addons/agent-loop/schemas/reflection-memory.json - Reflection schema
  • @$AIWG_ROOT/agentic/code/addons/agent-loop/docs/reflection-memory-guide.md - Guide
  • @.aiwg/research/findings/REF-021-reflexion.md - Research foundation

Storage Routing (#934, #967)

This skill's persistence flows through `resolveStorage('reflections')`. On the default `fs` backend reflections live at `.aiwg/reflections/`. To redirect into Obsidian, Logseq, Fortemi, or another backend without changing this skill, configure `roots.reflections` or `backends.reflections` in `.aiwg/storage.config` (#934).

When this skill needs to read/write reflections from a Bash step, prefer the storage-routed CLI:

aiwg reflections list --prefix sessions/
aiwg reflections get sessions/2026-04-28.md
echo "# reflection" | aiwg reflections put sessions/2026-04-28.md
echo '{"event":"reflect","summary":"..."}' | aiwg reflections append-log sessions/log.jsonl

The legacy direct-fs paths continue to work on the default `fs` backend — byte-identical to what the adapter writes — but only the adapter route honors `storage.config` redirection.

Read more
@jmagly
Ships withaiwg

Reusable project context and specialist workflows for the AI tools you already use. Plan software, coordinate specialist reviews, prepare campaigns, investigate incidents, organize research, curate media, and maintain operational knowledge.

229200 skills199 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
229
Star history of jmagly/aiwg on GitHub, a chart by star-history.com

Other skills on aiwg.

agent-loop-ext

agent-loop-ext

Crash-resilient external agent loop with state persistence and CI/CD integration

@jmagly@jmaglyInstall Skill
agent-loop

agent-loop

Detect requests for iterative autonomous agent loops and route to the appropriate loop executor

@jmagly@jmaglyInstall Skill
auto-test-execution

auto-test-execution

Automatically execute tests when code-generating agents modify source files, enforcing the execute-before-return pattern

@jmagly@jmaglyInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills12d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about ralph-reflect.

Which coding agents can use ralph-reflect?
ralph-reflect installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.