reflection-agent

A review tool for examining how an agent performed during and after a session. It tracks results, delays, errors, weak areas, and suggested improvements.

In plain words
What is it for?
Use it to check performance status, identify gaps, review recent sessions, inspect metrics, and get improvement suggestions.
Why use it?
It makes recurring mistakes and low-performing areas easier to spot. This gives you a structured way to review work instead of relying only on memory.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/ellmos-ai/bach/reflection
Any agent
npx skills add ellmos-ai/bach --skill reflection
Clone the repo
git clone --depth 1 https://github.com/ellmos-ai/bach

Made for: Claude Code, Codex.

Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 331 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00044 $0.00331
Opus 5 $0.00022 $0.00166
Sonnet 5 $0.00009 $0.00066
Haiku 4.5 $0.00004 $0.00033

Measured 2d ago against content hash 9bbc116d3b5b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

reflection-agent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (reflection_analyzer.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

system/agents/reflection/SKILL.md · 49 lines

What it actually says

Reflection Agent

Uebersicht

Der Reflection-Agent analysiert die eigene Performance und identifiziert Verbesserungspotentiale. Er arbeitet meta-kognitiv und hilft dabei, systematische Fehler zu erkennen und Lernprozesse zu optimieren.

Verwendung

bach reflection status        # Performance-Zusammenfassung
bach reflection gaps          # Schwachstellen identifizieren
bach reflection review        # Letzte Session analysieren
bach reflection log           # Metriken anzeigen

Funktionen

  1. Performance-Tracking: Erfolgsrate, Latenz, Fehleranalyse
  2. Gap-Analyse: Identifiziert Bereiche mit niedriger Erfolgsrate
  3. Session-Review: Analysiert abgeschlossene Sessions
  4. Verbesserungs-Vorschlaege: Konkrete Handlungsempfehlungen
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 49 lines · 44 tokens per session scan A 9bbc116d3b5b

Subscribe to this mod's changes

reflection-agent is a skill published in the GitHub repository ellmos-ai/bach (7 stars, last pushed 2d ago), licensed MIT. It adds 44 tokens to every session and 331 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

bump-dependency

Bumps a Python package dependency across Home Assistant Core integrations, regenerates core requirement files, runs verification tests and prek lint, and prepares a pull request with proper release/compare links.

home-assistant/core · 42 tokens

schema-exploration

Lists tables, describes columns and data types, identifies foreign key relationships, and maps entity relationships in a database. Use when the user asks about database schema, table structure, column types, what tables exist, ERD, foreign keys, or how entities relate.

langchain-ai/deepagents · 57 tokens

mine

Mine a project or conversation into your MemPalace — extract and store memories for later retrieval.

MemPalace/mempalace · 21 tokens

mem0-oss-to-platform

Plan and then execute a migration of a project from the mem0 open-source / self-hosted SDK (the local Memory class) to the mem0 Platform / hosted / managed SDK (the MemoryClient class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS/self-hosted to the hosted API — e.g.…

mem0ai/mem0 · 273 tokens

mempalace-recall

Recall protocol for MemPalace — search the palace before answering about past work, people, projects, or prior decisions. Apply when the user asks what was decided, what happened before, who someone is, what was discussed last time, or anything that may already be filed in their memory palace; or when mempalace-recall…

MemPalace/mempalace · 94 tokens

complete-partial-pr

Evaluate and complete an issue or PR where the submitted patch fixes only a narrow symptom of the reported pain point. Use when a contribution may miss adjacent integration surfaces, provider/spec semantics, roundtrip behavior, tests, docs, or historical maintainer decisions.

pydantic/pydantic-ai · 55 tokens