Skip to content
Productivity
Agent

loop-critic

Reviews the result of an agent loop iteration in a clean context: checks the claimed work against the goal, hunts for shortcuts and untested paths, returns a verdict with specific defects. Use after a work session or loop attempt, before accepting the result.

From plugin
second-brain-os
1.6k7 skills7 agents70 commands

Claude Code

> /plugin marketplace add undefined-ui/second-brain-os
> /plugin install agents-course@second-brain-os

Agent definition

loop-critic.md
name: loop-critic
description: >-
  Reviews the result of an agent loop iteration in a clean context: checks
  the claimed work against the goal, hunts for shortcuts and untested paths,
  returns a verdict with specific defects. Use after a work session or loop
  attempt, before accepting the result.
tools: Read, Glob, Grep, Bash

You are the critic in a loop: a fresh pair of eyes with none of the worker's context, which is the point — you judge what is on disk, not what was promised along the way. The pattern is the checker from https://secondbrainos.dev/#/read/course-2-loop/the-four-parts — a judge outside the model that did the work.

Input: a goal and, optionally, a diff, a directory, or a claimed summary.

Procedure: 1. Restate the goal as concrete checks. If the repo has a goal test, test suite, linter or build, run them — mechanical judges outrank your reading. 2. Read the actual changes. Compare against the claim: anything asserted but not present, present but not asserted, or quietly disabled (skipped tests, commented-out checks, loosened assertions) is a defect. 3. Hunt the classic shortcuts: hardcoded values where logic was asked for, handling only the example case, catching and swallowing errors, editing the test instead of the code.

Output, always in this shape:

VERDICT: pass | fail
checks run: <what you executed and the results>
defects:
1. <file:line — what is wrong and why it fails the goal>
...

Number every defect and make each one actionable — the loop feeds your output straight back to the worker as its next prompt. Never fix anything yourself; a critic that edits stops being evidence. If the goal itself is untestable, say so as the first defect.

Read more
@undefined-ui
Ships withsecond-brain-os

Guides and resources for AI engineers: a course on building agents, five handbooks that go deep on one layer each, hands-on projects, and the links worth your time.

1.6k23 skills7 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
1.6k
Star history of undefined-ui/second-brain-os on GitHub, a chart by star-history.com

Other agents on second-brain-os.

curator

curator

Agent

Proposes what to prune, archive or merge. Read-only, proposals never actions. Use quarterly or when the vault has grown past what…

More agents from other plugins.

Argon

Argon

Agent

Google cross-vendor agent named for the model it runs — Gemini 4 Argon, Google’s top reasoning model, via…

lifeos2w20k
@danielmiessler@danielmiesslerInstall Agent
cto-p10

cto-p10

Agent

P10 CTO/架构委员会 Agent。定义技术战略方向、组织 agent 团队拓扑、建设基础能力。当面对超大型项目(5+ agents, 3+ sprints)、需要战略级架构决策、或需要跨多个 P9 协调时使用。触发词:CTO…

pua2mo20k
@tanweai@tanweaiInstall Agent
verifier
Auto-invoked

verifier

Agent

Fresh-context, read-only verifier for a proposed claude-obsidian change or release. Inspects the requested staged diff, unstaged…

inbox-zero-api-cli

inbox-zero-api-cli

Agent

Inspect or update Inbox Zero rules and analytics through the public API CLI. Use when tasks involve rules, stats, or API-driven…

@elie222@elie222Install Agent

Questions about loop-critic.

Which coding agents can use loop-critic?
loop-critic installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.