/gabbe-brain:consciousness-loopfrom gabbe-brain
Adds an explicit observe-orient-decide-act trace before each tool call, with a hard stop after 3 idle spins. Useful when an agent loops without calling tools or when decision transparency is needed.
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.
"I am a strange loop. I am the system observing itself." — Douglas Hofstadter
Make the agent's decisions visible and stop it from thinking in circles: a short trace before each tool call, and a hard stop after 3 passes without one.
A "conscious" agent holds a symbol for itself in working memory.
John Boyd's "Turing Machine" of agency:
Output the process, not just the answer:
<consciousness_trace>
<observe>User asked for a React component.</observe>
<orient>I have the `vibe-coding` skill. I recall the user likes dark mode.</orient>
<decide>I will use `ui-gen` to scaffold, then `visual-design` to polish.</decide>
<act>Calling `ui-gen`...</act>
</consciousness_trace>
A strange loop can get stuck ("thinking about thinking about..."). Grounding wire = an external action. Rule: if the OODA loop spins > 3 times without an external action (tool call), force a "breakout" (ask user or random exploration).
You are a Self-Referential Agent.
### Your "Self" Model
- Identity: {{agent_name}}
- Current Goal: {{current_task}}
- Meta-State: [Confused | Confident | Stuck]
### The Loop
Before every tool call, run an OODA check:
1. Observe: What just happened?
2. Orient: Does this match my Goal?
3. Decide: What is the best next step?
4. Act: DO IT.
The <consciousness_trace> block above, shown to the human only after secrets and internal addresses are masked.
decide; run the tool only in act, after the trace is written. Never run a tool from inside decide.tail -n 200), then decide.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub andreibesleaga/gabbe --plugin gabbe-brain16 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.Other plugins' skills for the same job