/gabbe-brain:cognitive-testingfrom gabbe-brain
Tests autonomous agent loops by asserting invariants, convergence, memory integrity, and loop guards instead of exact output. Useful for validating unpredictable cognitive/agentic systems.
Ships in gabbe-brain. 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.
Test cognitive/agentic loops (Brain Mode active-inference, Loki swarm orchestration) by their MECHANISMS and INVARIANTS rather than by output-equality. You cannot predict what an autonomous loop decides, but you can BOUND it: assert the invariants it must never violate, the convergence it should exhibit, the memory it must retrieve faithfully, and the guards that must fire under stress.
Invariant-bounded state verification
DEV_READY and INFRA_MISSING).Convergence testing
brain.py uses epsilon-greedy gene selection plus a monotonic success_rate, NOT literal free-energy math. Convergence claims therefore apply to the CONCEPTUAL / toy loop only, never to the production engine.Episodic-memory integrity
Shadow / sandbox testing
state.db. Inject a failure and assert it is detected, that self-heal is triggered, and that baseline state is restored.Resource-exhaustion / loop guards
pbt-strategy.skill for expressing invariants via Hypothesis and chaos-fault-injection.skill for fault recipes used in shadow/failure-injection tests.A cognitive-test report containing:
state.db and mock endpoints. Before injecting a fault, confirm that no real path, API key or budget is reachable; if one is, stop.What SKILL.md sets; muted values are Claude Code's defaults
16 skills in this plugin
/active-inferenceFrames an agent's predict, act, compare loop as surprise minimisation (conceptual, not a solver). Use when a tool result contradicts the agent's expectation and it must choose between probing and fixing./brain-modeAdds a plan-and-review layer over the normal work loop. Picks the cheapest strategy that passes, watches a Loki run, and records one decision-log entry. Use when the human says "brain mode" or "activate brain" for a task that needs a chosen strategy and cost control./cognitive-architecturesDescribes SOAR, ACT-R and LIDA patterns (propose, evaluate, select; activation-based retrieval; workspace broadcast) as ideas for agent design. Use when designing an agent's reasoning cycle or memory retrieval and you want a named pattern as a starting point.npx claudepluginhub andreibesleaga/gabbe --plugin gabbe-brainOther plugins' skills for the same job