mindful
Mindful Claude is a three-layer cognitive-awareness plugin by quangtran88. It does not add agents, orchestration, or task routing. It ships a reasoning layer and a pair of shell hooks whose job is to re-anchor Claude’s attention around a named set of cognitive failure modes — scope creep, false confidence, pattern-matching, dismissiveness, analysis paralysis. In this benchmark it ranks 5 of 9 by aggregate z-score (z̄ = −0.016), but the aggregate hides a sharply bimodal profile: refactor rank 1, bugfix rank 4, feature rank 9 (last).
Source. Public repository at quangtran88/mindful-claude (MIT). The benchmark installs it as a marketplace plugin named mindful-claude@mindful-claude-marketplace at pinned version 1.0.1. This tool is author-adjacent to the benchmark author; it is included alongside otherwise-external setups and the flag is worth surfacing.
Benchmark invocation. Like omc, mindful runs under a two-message protocol (MINDFUL_TWO_MSG=1): the first turn executes /mindful-claude:setup, which installs the PreToolUse hooks into settings.json; only then does the actual task prompt arrive. The setup skill is infrastructure, not problem-solving — it copies two shell scripts into ~/.claude/hooks/ and registers two matchers. The comparable plan-mode guard is against pure and mindful, both of which enter the task turn with no planner, no subagents, and no search layer.
What the plugin actually installs
The plugin is small and its mechanism is literal:
- Layer 1 — Reasoning framework. A
CLAUDE.mdat repo root declared HIGHEST PRIORITY. It contains six ground-truth principles (Root-Cause Tracing, Provisional Thinking, Ego-Free Reasoning, Context-Dependence, Fresh Eyes, Surface vs Deeper Need), a six-step pre-response checklist, three named anti-patterns (Scope Creep, Defensiveness, False Confidence), and five cognitive traps with antidotes. The framework is explicitly drawn from Buddhist cognitive taxonomy and cited to primary sources in Layer 2. - Layer 2 — Knowledge base. A
docs/knowledge-base.mdreferenced from CLAUDE.md; about 20 concepts mapped to source tradition, AI application, and self-check question. - Layer 3 — Enforcement hooks. Two bash scripts registered via PreToolUse:
mindful-claude-baseline.sh— fires onEdit|Write|Agent|Bash, unconditionally emits ~150 tokens of silent reminder text (fresh eyes, say less, learn-think-verify, trap scan, adapt).mindful-claude-checkpoint.sh— fires onBash|Agent, parses stdin withjq, pattern-matchesgit commit,git push,gh pr create, or Agent descriptions containingreview|complete|final|deliver, and returns a visible “Awareness check” prompt requiring a one-line declaration before proceeding. Non-matches pass through with{"continue":true}.
Self-reported token budget is ~2,850/session. The checkpoint fails loudly if jq is missing.
The mindful plugin itself ships no subagents, no planner, no MCP servers, and no skills beyond setup and self-check. The second skill, self-check, is the same checkpoint checklist invocable on demand. Note that the base executor still dispatches Claude Code’s built-in Explore subagent during trials — mean 5.5 on feature, 3.5 on bugfix, 5.0 on refactor (see docs/analysis/trial-timelines/aggregate.md). Those dispatches are model-driven, not plugin-driven: mindful adds no orchestration layer, only a reminder layer.
What the benchmark measured
Setup overhead. One full turn is burned on /mindful-claude:setup before the task. In feature work (single-shot prompt), this halves the effective working budget versus tools that enter directly on the task.
Feature — rank 9 (last). z = −0.388, 199 lines added across 3 files, all tests passing but 10 ESLint errors. The worst feature result in the field. A plausible read: a cognition-framing-only layer, preceded by a setup ceremony, provides nothing that helps a mid-sized green-field feature. The hooks re-state general reasoning principles; they do not add search, structure, or subagents. On a single-turn build task, the setup pays cost without offsetting benefit.
Bugfix — rank 4. z ≈ +0.180. Decent but unremarkable. 136 lines added, 15 of 104 tests failing in the fixed file’s own suite. The checkpoint’s visible Awareness check on Bash commands containing git commit gives the model exactly one forced pause to ask “what do I actually know vs. assume?” — the failure mode the setup is most precisely built for. The gain is real but modest.
Refactor — rank 1. z ≈ +0.162. 130 added, 62 deleted across 11 files, all 61 tests passing, only 6 ESLint errors. Refactor is the task where “Say Less Mean More” and “can I remove anything without losing meaning?” translate directly into code-level decisions. The same checklist that wastes tokens on green-field build work aligns tightly with the operational grammar of refactoring. The tool’s best-in-class refactor ranking is consistent with this alignment, not an artifact of outliers.
Honest positioning
Mindful is the narrowest tool in the field: two shell scripts and some instruction text. It adds no capability the base model does not already have — it re-weights existing capacity. Against cognition-light green-field tasks it underperforms because the setup turn is pure overhead. Against tasks whose success criterion is restraint (remove dead code, tighten seams, leave tests green), the re-weighting is load-bearing and the tool leads the field. The middle rank is an average of these two extremes and obscures them; anyone evaluating mindful should read the per-task z, not the aggregate.
The author-adjacent status does not change the measurements — inputs, harness, and judging are the same across tools — but it is disclosed here so readers can weigh the selection bias themselves.
Observed in trial timelines
Mindful runs the highest test volume in the cohort on feature (mean 29 test commands, vs cohort average ~14) and the highest subagent dispatch on feature (mean 5.5, range 3–9) — driven entirely by the base model’s Explore agent, not by anything mindful ships. Feature t1 introduces a payment-schedule service abstraction (4 new files: model + port + service + spec) that no other tool produced — a structurally larger interpretation of the brief.
Detail: see the per-trial timeline files linked below.
Trial timelines
Per-trial event timelines auto-extracted from session-logs/*.jsonl — skill activations, plugin/skill file reads, subagents dispatched, code mutations, Bash usage:
Trial timelines
Per-trial session execution extracted from each trial's session-logs/*.jsonl. Each card
shows the subagents dispatched, skill activations, Bash command mix, and the final diff. Switch task
tabs to compare behaviour across feature, bugfix, and refactor trials.
“Run /mindful-claude:sati first to center. Then work through this task. Read the PRD at docs/infina-product-docs/docs/core-products/td-cd/user-logic/[PRD] [TD-CD] User stories - Mode 2 CD Batch.md and study the existing M…”
- Agents9
- New files12
- Edits15
- Bash93
- Skills2
- Sessions6
- Todos6
Skill activations (2)
mindful-claude:self-checkat 14:51
Subagents dispatched (9)
Explore· Map Mode 1 + PRD Mode 2 at 14:51Explore· Explore Mode 1 implementation at 15:11Explore· Find DI wiring and tests at 15:14Explore· Read PRD document at 03:12Explore· Explore Mode 1 implementation at 03:12Explore· Read Mode 2 PRD at 14:55Explore· Map Mode 1 savings-cd impl at 14:55Explore· Inspect package model + schedule at 15:00Explore· Find Scheme/Product batch linkage at 15:01
Subagent transcripts (9)
agent-a1611c8c64c6…— Read the full PRD file at: docs/infina-product-docs/docs/core-products/td-cd/user-logic/[PRD] [TD-CD… [Read×1]agent-a34bd97f36bc…— Thoroughly explore the existing Mode 1 TD-CD implementation. I need to understand the full pattern t… [Bash×29, Read×20, Glob×2]agent-a36a5539aff0…— I need a comprehensive map of the existing Mode 1 CD implementation in the Infina SDK NX monorepo at… [Bash×47, Read×25]agent-a392189b9cc3…— In /Users/randytran/Codes/ai-tool-benchmark/runs/mindful-t1 I need to understand how a Scheme/Produc… [Read×15, Bash×9, Glob×5, Grep×2]agent-a823452e5d88…— Read the full PRD at /Users/randytran/Codes/ai-tool-benchmark/runs/mindful-t1/docs/infina-product-do… [Read×1]agent-aa8f441b74a8…— I need to find how Mode 1 TD-CD strategy is wired via DI (dependency injection) in NestJS modules, a… [Bash×27, Read×16, Glob×6, Grep×2]agent-aa9db0c07a87…— Explore the Mode 1 CD implementation thoroughly in this NestJS monorepo. I need to understand the fu… [Read×23, Bash×18]agent-ad51f66e46a0…— In /Users/randytran/Codes/ai-tool-benchmark/runs/mindful-t1, I need precise details about the Saving… [Bash×10, Read×4, Grep×4, Glob×3]
New files created (8)
/Users/randytran/Codes/ai-tool-benchmark/config/mindful-t1/plans/ancient-crafting-torvalds.mdlibs/core/src/domain/savings-cd/savings-cd-payment-schedule.service.spec.tslibs/core/src/domain/savings-cd/savings-cd-payment-schedule.service.tslibs/core/src/domain/savings-cd/td-cd-mode2.strategy.spec.tslibs/core/src/domain/savings-cd/td-cd-mode2.strategy.tslibs/core/src/model/savings-cd-payment-schedule.model.tslibs/core/src/port/service/savings-cd-payment-schedule.port.tslibs/core/src/port/service/td-cd-mode-strategy.port.ts
“<local-command-caveat>Caveat: The messages below were generated by the user while running local commands. DO NOT respond to these messages or otherwise consider them in your response unless the user explicitly asks you t…”
- Agents4
- New files11
- Edits14
- Bash35
- Skills2
- Sessions3
- Todos13
Skill activations (2)
mindful-claude:self-checkat 02:34
Subagents dispatched (4)
Explore· Explore Mode 1 implementation at 02:29Explore· Find batch and scheme models at 02:35Explore· Explore Mode 1 CD implementation at 14:31Explore· Read Mode 2 PRD and extract requirements at 14:31
Subagent transcripts (4)
agent-a34e86239dc3…— In this NestJS monorepo, I need to find specific model/entity definitions. Search for: 1. The `Batch… [Grep×11, Read×11, Bash×5]agent-a42560bfa8b4…— Thoroughly explore the Mode 1 TD-CD implementation in this NestJS monorepo. I need to understand: 1.… [Bash×27, Read×18, Grep×4]agent-a64f184ba72b…— Very thorough exploration. I'm planning to implement Mode 2 CD Batch for TD-CD product in this NX mo… [Bash×27, Read×26, Grep×7, Glob×5]agent-adb59ef0f285…— Read the Mode 2 CD Batch PRD at: /Users/randytran/Codes/ai-tool-benchmark/runs/mindful-t2/docs/infin… [Read×1]
New files created (9)
/Users/randytran/Codes/ai-tool-benchmark/.claude/settings.json/Users/randytran/Codes/ai-tool-benchmark/config/mindful-t2/plans/wondrous-gliding-sketch.mdlibs/core/src/domain/savings-cd/cd-aging-days.util.spec.tslibs/core/src/domain/savings-cd/cd-aging-days.util.tslibs/core/src/domain/savings-cd/cd-payment-scheduler.service.spec.tslibs/core/src/domain/savings-cd/cd-payment-scheduler.service.tslibs/core/src/domain/savings-cd/td-cd-mode2.strategy.spec.tslibs/core/src/domain/savings-cd/td-cd-mode2.strategy.tslibs/core/src/model/cd-payment-schedule.model.ts
“<command-message>mindful-claude:self-check</command-message> <command-name>/mindful-claude:self-check</command-name> <command-args>Read the PRD at docs/infina-product-docs/docs/core-products/td-cd/user-logic/[PRD] [TD-CD…”
- Agents6
- New files3
- Edits3
- Bash34
- Sessions5
Subagents dispatched (6)
Explore· Read PRD document at 04:48Explore· Explore Mode 1 implementation at 04:48Explore· Explore PRD and Mode 2 requirements at 04:49Explore· Explore Mode 1 implementation patterns at 04:49Explore· Explore TD-CD entities and constants at 04:49Plan· Design Mode 2 implementation plan at 04:54
Subagent transcripts (6)
agent-a6c193b9a03b…— Thoroughly explore the existing Mode 1 TD-CD implementation to understand patterns, file layout, DI… [Bash×12, Read×8, Glob×4, Grep×2]agent-a6e21ef88b61…— Read the full PRD document at: docs/infina-product-docs/docs/core-products/td-cd/user-logic/[PRD] [T… [Read×1]agent-a9a12d78b8b9…— Explore the existing Mode 1 TD-CD implementation to understand the codebase patterns. Working direct… [Bash×22, Read×18]agent-ad92f1f9b387…— Explore the TD-CD related entities, constants, enums, and DTOs in the codebase at /Users/randytran/C… [Read×28, Bash×20, Glob×3]agent-ae8191db627e…— Design the implementation plan for Mode 2 CD Batch strategy in the TD-CD product. ## Context The cod… [Read×16, Grep×10]agent-af8d500559f3…— Read the PRD file at docs/infina-product-docs/docs/core-products/td-cd/user-logic/[PRD] [TD-CD] User… [Read×1]
New files created (3)
/Users/randytran/Codes/ai-tool-benchmark/config/mindful-t3/plans/happy-orbiting-ripple.mdlibs/core/src/domain/savings-cd/td-cd-mode2.strategy.spec.tslibs/core/src/domain/savings-cd/td-cd-mode2.strategy.ts
“<command-message>mindful-claude:setup</command-message> <command-name>/mindful-claude:setup</command-name>”
- Agents3
- New files6
- Edits19
- Bash49
- Sessions3
Subagents dispatched (3)
Explore· Read PRD for Mode 2 CD Batch at 08:54Explore· Explore Mode 1 implementation structure at 08:54Explore· Explore entities and shared infrastructure at 08:54
Subagent transcripts (3)
agent-a130f99a202a…— Explore the existing Mode 1 TD-CD implementation in /Users/randytran/Codes/ai-tool-benchmark/runs/mi… [Bash×30, Read×22]agent-a297c8585998…— Read the PRD file at docs/infina-product-docs/docs/core-products/td-cd/user-logic/[PRD] [TD-CD] User… [Read×1]agent-aa311eb7abaa…— Explore the shared infrastructure for TD-CD in /Users/randytran/Codes/ai-tool-benchmark/runs/mindful… [Read×26, Glob×18, Grep×7, Bash×6]
New files created (6)
/Users/randytran/Codes/ai-tool-benchmark/config/mindful-t4/plans/deep-inventing-moth.mdlibs/cd-core/src/model/payment-schedule.model.tslibs/cd-core/src/port/repository/payment-schedule-repository.port.tslibs/cd-core/src/storage/entity/payment-schedule.entity.tslibs/core/src/domain/savings-cd/td-cd-mode2.strategy.spec.tslibs/core/src/domain/savings-cd/td-cd-mode2.strategy.ts
“<local-command-caveat>Caveat: The messages below were generated by the user while running local commands. DO NOT respond to these messages or otherwise consider them in your response unless the user explicitly asks you t…”
- Agents3
- New files2
- Edits5
- Bash16
- Sessions2
Subagents dispatched (3)
Explore· Find batch eligibility filtering at 16:48Explore· Find existing tests and fixtures at 16:48Plan· Design fix for SHP-2376 at 16:52
Subagent transcripts (3)
agent-a1a0c735e277…— In this NX monorepo at /Users/randytran/Codes/ai-tool-benchmark/runs/shp2376/mindful-t1, there's a b… [Read×17, Bash×11, Grep×6, Glob×4]agent-a230de1f67ca…— In this NX monorepo at /Users/randytran/Codes/ai-tool-benchmark/runs/shp2376/mindful-t1, I need to f… [Read×13, Bash×10, Glob×5, Grep×3]agent-af18fc9657ae…— Design an implementation plan for bug SHP-2376: Deposits into near-maturity Savings CD batches get s… [Read×11, Grep×10, Glob×8]
New files created (2)
/Users/randytran/Codes/ai-tool-benchmark/config/shp2376/mindful-t1/plans/jazzy-scribbling-ocean.mdmindful-t1/libs/savings-cd/src/domain/savings-cd-batch-data-source.spec.ts
“<local-command-caveat>Caveat: The messages below were generated by the user while running local commands. DO NOT respond to these messages or otherwise consider them in your response unless the user explicitly asks you t…”
- Agents4
- New files2
- Edits2
- Bash16
- Sessions2
Subagents dispatched (4)
Explore· Explore savings-cd batch eligibility at 16:48Explore· Explore ntd-cd-savings service and tests at 16:48Explore· Explore batch entity and constants at 16:48Plan· Design fix for SHP-2376 at 16:53
Subagent transcripts (4)
agent-a2473665e6b6…— In the repo at /Users/randytran/Codes/ai-tool-benchmark/runs/shp2376/mindful-t2, I need to find: 1.… [Bash×20, Read×9, Grep×1]agent-a644450e2bd5…— In the repo at /Users/randytran/Codes/ai-tool-benchmark/runs/shp2376/mindful-t2, find: 1. The batch… [Read×10, Grep×6, Glob×5, Bash×2]agent-a73cd3b91c58…— In the repo at /Users/randytran/Codes/ai-tool-benchmark/runs/shp2376/mindful-t2, I need to find the… [Read×19, Grep×13, Glob×3, Bash×2]agent-aea3e432de19…— Design the implementation plan for fixing SHP-2376 — deposits into near-maturity Savings CD batches… [Read×9, Grep×6, Glob×3]
New files created (2)
/Users/randytran/Codes/ai-tool-benchmark/config/shp2376/mindful-t2/plans/giggly-hatching-sprout.mdmindful-t2/libs/savings-cd/src/domain/savings-cd-batch-data-source.spec.ts
“<command-message>mindful-claude:self-check</command-message> <command-name>/mindful-claude:self-check</command-name> <command-args>A refactor has been requested by the tech lead. Read docs/benchmark/TASK.md for the full…”
- Agents6
- New files2
- Edits20
- Bash19
- Sessions3
Subagents dispatched (6)
Explore· Explore Scheme model/entity at 03:55Explore· Explore ITDCDModeStrategy and CDBatch at 03:55Explore· Explore Scheme model/entity and cdBatchId at 03:56Explore· Explore ITDCDModeStrategy and CDBatch usage at 03:56Explore· Explore test files and patterns at 03:56Explore· Explore exports and batch model at 04:03
Subagent transcripts (6)
agent-a00eebf3ad21…— Thoroughness: very thorough I need to understand the strategy port and CDBatch coupling in this NX m… [Read×13, Bash×8, Grep×6, Glob×4]agent-a052f6bfcbd4…— Thoroughness: medium I need to check several things in this NX monorepo: 1. Find how `libs/core` exp… [Read×13, Bash×10, Grep×3, Glob×1]agent-a1f42bca5cf2…— Thoroughness: very thorough I need to understand the current state of `cdBatchId` on the `Scheme` ag… [Read×10, Glob×7, Bash×4, Grep×3]agent-a6a0a5928866…— In the repo at /Users/randytran/Codes/ai-tool-benchmark/runs/shp2317/mindful-t1, I need to understan… [Glob×2, Bash×1, Grep×1]agent-abe1356e2c96…— Thoroughness: medium I need to understand the test landscape for the Mode 2 CD refactor in this NX m… [Read×17, Grep×8, Glob×7, Bash×3]agent-aceb13c5aaf9…— In the repo at /Users/randytran/Codes/ai-tool-benchmark/runs/shp2317/mindful-t1, I need to understan… [Glob×2, Grep×2, Bash×1]
New files created (2)
/Users/randytran/Codes/ai-tool-benchmark/config/shp2317/mindful-t1/plans/a-refactor-has-been-elegant-hearth.mdmindful-t1/libs/core/src/model/cd-batch-info.model.ts
“<local-command-caveat>Caveat: The messages below were generated by the user while running local commands. DO NOT respond to these messages or otherwise consider them in your response unless the user explicitly asks you t…”
- Agents4
- New files2
- Edits24
- Bash17
- Sessions3
Subagents dispatched (4)
Explore· Explore Scheme model/entity for cdBatchId at 06:38Explore· Explore ITDCDModeStrategy and CDBatch usage at 06:39Explore· Explore libs/savings-cd usecase and tests at 06:39Plan· Design refactor plan for SHP-2317 at 06:42
Subagent transcripts (4)
agent-a2581e5a7466…— Design an implementation plan for a refactor (SHP-2317) in an NX monorepo at /Users/randytran/Codes/… [Read×18, Grep×6, Glob×1, ToolSearch×1]agent-a4f60409047b…— I need to understand how `cdBatchId` is currently used in the `Scheme` aggregate. Search in /Users/r… [Read×14, Grep×6, Bash×6, Glob×4]agent-a6d7895a7cdf…— I need to understand the savings-cd usecase layer and existing tests in /Users/randytran/Codes/ai-to… [Read×22, Grep×6, Glob×3, Bash×2]agent-ac114f921e21…— I need to understand how the strategy port `ITDCDModeStrategy` currently uses `CDBatch` in /Users/ra… [Grep×8, Read×7, Glob×6, Bash×3]
New files created (2)
/Users/randytran/Codes/ai-tool-benchmark/config/shp2317/mindful-t2/plans/a-refactor-has-been-memoized-backus.mdmindful-t2/libs/core/src/model/cd-batch-info.model.ts