reflect-learnSelf-improvement through conversation analysis. Extracts learnings from corrections and success patterns, proposes updates to agent files or creates new skil...
Install via ClawdBot CLI:
clawdbot install stevengonsalvez/reflect-learnTransform your AI assistant into a continuously improving partner. Every correction becomes a permanent improvement that persists across all future sessions.
| Command | Action |
|---------|--------|
| reflect | Analyze conversation for learnings |
| reflect on | Enable auto-reflection |
| reflect off | Disable auto-reflection |
| reflect status | Show state and metrics |
| reflect review | Review pending learnings |
Analyze the conversation for correction signals and learning opportunities.
Signal Confidence Levels:
| Confidence | Triggers | Examples |
|------------|----------|----------|
| HIGH | Explicit corrections | "never", "always", "wrong", "stop", "the rule is" |
| MEDIUM | Approved approaches | "perfect", "exactly", "that's right", accepted output |
| LOW | Observations | Patterns that worked but not explicitly validated |
See data/signal_patterns.md for full detection rules.
Map each signal to the appropriate target:
| Category | Target Files |
|----------|--------------|
| Code Style | code-reviewer, backend-developer, frontend-developer |
| Architecture | solution-architect, api-architect, architecture-reviewer |
| Process | CLAUDE.md, orchestrator agents |
| Domain | Domain-specific agents, CLAUDE.md |
| Tools | CLAUDE.md, relevant specialists |
| New Skill | Create new skill file |
See data/agent_mappings.md for mapping rules.
Some learnings should become new skills rather than agent updates:
Skill-Worthy Criteria:
Quality Gates (must pass all):
Present findings in structured format:
# Reflection Analysis
## Session Context
- **Date**: [timestamp]
- **Messages Analyzed**: [count]
## Signals Detected
| # | Signal | Confidence | Source Quote | Category |
|---|--------|------------|--------------|----------|
| 1 | [learning] | HIGH | "[exact words]" | Code Style |
## Proposed Changes
### Change 1: Update [agent-name]
**Target**: `[file path]`
**Section**: [section name]
**Confidence**: HIGHdiff
## Review Prompt
Apply these changes? (Y/N/modify/1,2,3)
On Y (approve):
On N (reject):
On modify:
On selective (e.g., 1,3):
State is stored in ~/.reflect/ (configurable via REFLECT_STATE_DIR):
# reflect-state.yaml
auto_reflect: false
last_reflection: "2026-01-26T10:30:00Z"
pending_reviews: []
# reflect-metrics.yaml
total_sessions_analyzed: 42
total_signals_detected: 156
total_changes_accepted: 89
acceptance_rate: 78%
confidence_breakdown:
high: 45
medium: 32
low: 12
most_updated_agents:
code-reviewer: 23
backend-developer: 18
skills_created: 5
Project-level (versioned with repo):
.claude/reflections/YYYY-MM-DD_HH-MM-SS.md - Full reflection.claude/skills/{name}/SKILL.md - New skillsGlobal (user-level):
~/.reflect/learnings.yaml - Learning log~/.reflect/reflect-metrics.yaml - Aggregate metricsUser says: "Never use var in TypeScript, always use const or let"
Signal detected:
frontend-developer.mdProposed change:
## Style Guidelines
+ * Use `const` or `let` instead of `var` in TypeScript
User says: "Always run tests before committing"
Signal detected:
CLAUDE.mdProposed change:
## Commit Hygiene
+ * Run test suite before creating commits
Context: Spent 30 minutes debugging a React hydration mismatch
Signal detected:
Proposed skill: react-hydration-fix/SKILL.md
No signals detected:
Conflict warning:
Agent file not found:
Generated Mar 1, 2026
A team uses the Reflect skill to capture coding standards and architectural decisions from code reviews and pair programming sessions. It helps enforce consistency across projects by updating agent definitions with new rules, such as preferring functional programming patterns in JavaScript.
A customer service AI analyzes chat logs to learn from user corrections about tone, policy details, or troubleshooting steps. This improves response accuracy over time by encoding successful support patterns into its knowledge base.
An AI tutor reflects on student interactions to identify effective teaching methods or common misconceptions. It updates its pedagogical strategies, ensuring future sessions adapt to individual learning styles based on past successes.
A content marketing team uses Reflect to analyze feedback on drafts, such as style preferences or SEO optimizations. The skill helps refine content guidelines by embedding learnings into agent definitions for consistent output across writers.
In a DevOps environment, the skill scans incident reports and deployment logs to extract learnings about system failures or optimization tricks. It updates automation scripts and agent rules to prevent recurring issues and streamline operations.
Offer Reflect as a cloud-based service with tiered pricing based on usage metrics like sessions analyzed or changes applied. Revenue comes from monthly subscriptions, targeting enterprises that need continuous AI improvement without manual oversight.
Provide professional services to integrate Reflect into existing AI systems, with revenue from one-time setup fees and ongoing support contracts. This model appeals to organizations seeking customized self-improvement workflows for their specific use cases.
Release Reflect as open-source software to build a community, while monetizing through premium features like advanced analytics, priority support, or enterprise-grade security. Revenue streams include donations and paid upgrades for commercial users.
š¬ Integration Tip
Start by enabling auto-reflection in low-stakes environments to build trust, then gradually expand to critical workflows while monitoring metrics for performance improvements.
Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Clau...
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
Search and analyze your own session logs (older/parent conversations) using jq.
Typed knowledge graph for structured agent memory and composable skills. Use when creating/querying entities (Person, Project, Task, Event, Document), linking related objects, enforcing constraints, planning multi-step actions as graph transformations, or when skills need to share state. Trigger on "remember", "what do I know about", "link X to Y", "show dependencies", entity CRUD, or cross-skill data access.
Ultimate AI agent memory system for Cursor, Claude, ChatGPT & Copilot. WAL protocol + vector search + git-notes + cloud backup. Never lose context again. Vibe-coding ready.
Headless browser automation CLI optimized for AI agents with accessibility tree snapshots and ref-based element selection