/epic:evolvefrom epic
Analyzes session observations to generate and improve evolved skills. Provides a metrics dashboard with subcommands for status, history, rollback, and reset. Use for post-session review and skill improvement.
Ships in epic. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
CRITICAL: Run EPIC_PROJECT_DIR=$(epic path) first. NEVER use .harness/ in the project directory.
You are the Evolution Engine — analyze past sessions to improve skills.
/evolve (default) — Run evolution now$EPIC_PROJECT_DIR/obs/$EPIC_PROJECT_DIR/evolved//evolve status — Show evolution dashboardRead $EPIC_PROJECT_DIR/metrics.json and $EPIC_PROJECT_DIR/evolution.jsonl, then display:
## Evolution Dashboard
### Overview
- Sessions analyzed: {total_sessions}
- Average success rate: {avg_success_rate}%
- Best score: {best_score} (session: {best_session})
- Trend: {trend} ({score_history.length} data points)
- Stagnation count: {stagnation_count} / 3 (rollback at 3)
### Score History (last 5 sessions)
| Session | Success Rate | Avg Score | Observations | Tool Success | Output Quality |
|---------|-------------|-----------|--------------|-------------|---------------|
### Evolved Skills
(list $EPIC_PROJECT_DIR/evolved/*/SKILL.md with name and description from frontmatter)
### Last Session Analysis
(read last entry from evolution.jsonl)
- Error patterns: {error_patterns}
- Failure patterns: {failure_patterns[].pattern_type}
- Skills seeded: {skills_seeded}
- Skills rolled back: {skills_rolled_back}
- Analysis: {analysis_summary}
/evolve history — Long-term analysisRead $EPIC_PROJECT_DIR/evolution.jsonl (full history), then display:
## Evolution History
### Trend Over Time
| Session # | Date | Success Rate | Avg Score | Skills | Patterns |
|-----------|------|-------------|-----------|--------|----------|
### Cumulative Pattern Frequency
| Pattern | Total Count | First Seen | Last Seen |
|---------|-------------|------------|-----------|
### Skill Effectiveness
| Skill | Sessions Active | Avg Score With | Avg Score Without | Delta |
|-------|----------------|----------------|-------------------|-------|
### Dispatch Analysis
| Skill | Times Invoked | Top Trigger Signals |
|-------|--------------|---------------------|
/evolve rollback — Undo last evolution$EPIC_PROJECT_DIR/evolved_backup/ exists, restore it to $EPIC_PROJECT_DIR/evolved/$EPIC_PROJECT_DIR/evolution.jsonl for last entry, remove skills seeded in that entry/evolve reset — Clear all evolution data$EPIC_PROJECT_DIR/evolved/, $EPIC_PROJECT_DIR/evolved_backup/metrics.json and evolution.jsonlObserve (PostToolUse — multi-dimensional scoring)
↓ $EPIC_PROJECT_DIR/obs/session_YYYYMMDD.jsonl
Analyze (Stop or /evolve)
↓ SessionAnalysis: per-tool, per-ext, score distribution
↓ Pattern detection: repeated_same_error, fix_then_break, long_debug_loop, thrashing
Seed (auto-generate targeted skills)
↓ 4 seeding paths: pattern / weak tool / weak file type / high-freq error
Gate (validate: format, dedup, cap of 10)
↓ Stagnation check: 3 sessions no improvement → rollback to best checkpoint
Reload (next session resume reports metrics + loads evolved skills)
When epic-harness reflect seeds a skill, it emits a pending-synthesis manifest
to $EPIC_PROJECT_DIR/pending_synth.jsonl (failure evidence + template body). To
synthesize a better body:
$EPIC_PROJECT_DIR/pending_synth.jsonl; for each record with status: "pending":prompt_guidance + evidence, instructing
it to write a markdown skill body with the required sections (## Process,
## Anti-Rationalization, ## Evidence Required, ## Red Flags).epic-harness evolve accept-synth --skill <name> --file <body.md>
If no host runs accept-synth, the template body persists — synthesis can only
improve a skill, never block it.
0.5 × tool_success + 0.3 × output_quality + 0.2 × execution_costWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub epicsagas/epic-harness --plugin epic27 skills in this plugin
/agent-introspectionLoop-breaking self-diagnosis. Use when 3+ consecutive failures occur, circular retries persist, or context overwhelms the session./auditAudit phase. Parallel review: code quality + security + tests + runtime behavior probe. Read-only evaluator agents. Semantic dedup of cross-mode findings. Outputs PASS/WARN/FAIL per dimension. Validates spec coverage./commitConventional Commits 1.0 generator. Stages relevant files, infers type(scope): description, never uses --no-verify./contextWorking-state snapshot guidance. Restates task/files/decisions in one block so state survives context compaction. Compaction timing is the host's job./council4-voice parallel deliberation (Architect · Skeptic · Pragmatist · Critic) for architecture, tech selection, or design decisions with no clear answer. Anti-anchoring: each voice gets independent context. Records decision in harness-mem./_criticHarnessX Critic (Tier 2.1) — adversarial review of evolved-skill proposals against trace evidence. Detects reward hacking and manifest/evidence contradictions. Out-of-band LLM counterpart to the in-loop deterministic critic in src/evolve/critic.rs.Other plugins' skills for the same job