loaditout.ai
SkillsPacksTrendingLeaderboardAPI DocsBlogSubmitRequestsCompareAgentsXPrivacyDisclaimer
{}loaditout.ai
Skills & MCPPacksBlog

reflect

MCP Tool

rohansx/reflect

Self-correction engine for AI coding agents - implements the Reflexion paper (Shinn et al., 2023) as a Rust MCP server. Turns failures into persistent, searchable lessons that prevent the same mistakes across sessions.

Install

$ npx loaditout add rohansx/reflect

Platform-specific configuration:

.claude/settings.json
{
  "mcpServers": {
    "reflect": {
      "command": "npx",
      "args": [
        "-y",
        "reflect"
      ]
    }
  }
}

Add the config above to .claude/settings.json under the mcpServers key.

About

reflect

[](https://crates.io/crates/reflect-mcp) [](LICENSE)

Self-correction engine for AI coding agents. An MCP server that implements the Reflexion pattern — turning agent failures into persistent, searchable lessons that prevent the same mistakes across sessions.

cargo install reflect-mcp

<p align="center"> </p>

The Problem

AI coding agents make mistakes, get corrected, and then make the exact same mistakes in the next session. Context resets wipe everything. There's no memory of what went wrong, what was learned, or which error patterns keep recurring.

How reflect Solves It

reflect closes the loop from the Reflexion paper (Shinn et al., 2023):

generate code → evaluate → critique → store lesson → recall next time → retry smarter

Unlike the original paper which uses LLM self-reflection, reflect takes a hybrid approach:

  • Deterministic pattern extraction — regex-based classification of error messages into pattern slugs (e.g., rust-unwrap-on-parse, rust-index-oob), no LLM needed
  • Agent-provided critique — the calling agent writes the reasoning and lesson text, reflect handles structuring, deduplication, storage, and retrieval
  • Persistent cross-session memory — SQLite with FTS5 full-text search, so lessons survive context resets

This means reflect is fast, deterministic, and has zero LLM cost for the pattern matching layer, while still benefiting from the agent's reasoning for critique quality.

What Makes reflect Different

| Feature | reflect | Plain memory/RAG | LLM self-reflection | |---|---|---|---| | Structured error signals | Parses test output into typed signals | Stores raw text | N/A | | Pattern tracking | Counts occurrences, detects trends | No pattern awareness | No pers

Tags

ai-agentsclaudedeveloper-toolserror-patternsllm-toolsmcpmcp-serverreflexionrustself-correctionsqlite

Reviews

Loading reviews...

Quality Signals

5
Stars
0
Installs
Last updated19 days ago
Security: AREADME

Safety

Risk Levelmedium
Data Access
read
Network Accessnone

Details

Sourcegithub-crawl
Last commit3/29/2026
View on GitHub→

Embed Badge

[![Loaditout](https://loaditout.ai/api/badge/rohansx/reflect)](https://loaditout.ai/skills/rohansx/reflect)