/gabbe-brain:sensory-motorfrom gabbe-brain
Monitors tool access and running commands, aborting them on timeout. Use when a command may hang or a tool fails silently.
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.
"Intelligence is not a brain in a jar; it is a body in a world."
Treat tools as things that can fail or hang: check what you can use before acting, watch each command, and read the real result.
An agent must know the state of its "body" (tools + context).
read_file, list_dir, search_web.write_to_file, run_command, replace_file_content.Inputs are "percepts" to bind together, not just strings: Visual (screenshots, images), Auditory (TTS logs), Symbolic (code, JSON). Binding problem: integrate Visual(error screenshot) + Symbolic(log file) into a unified Concept(System Failure).
Don't fire-and-forget — control the "limb" (tool) continuously: (1) motor command run_command(npm test); (2) sensory feedback "taking too long..."; (3) correction send_command_input(Ctrl+C) (reflex arc).
### Body State (Proprioception)
- Muscles Available: [Bash, Python, FileSystem]
- Senses Active: [Linter, TestRunner, Browser]
- Health: [Filesystem: RW, Network: Connected]
### Motor Control Policy
"I will not just execute; I will monitor. If a tool fails (muscle failure) I will not hallucinate success — I will acknowledge the physical limitation and try a different strategy."
def execute_motor_command(command):
expected_duration = estimate_duration(command) # forward model: predict outcome
process = subprocess.Popen(command) # motor command
start_time = time.time()
while process.poll() is None: # feedback loop (OFC)
if time.time() - start_time > expected_duration * 1.5:
process.kill() # reflex: abort
raise MotorError("Muscle fatigue (Timeout)")
return process.returncode
timeout <seconds>.Per command: the command, the exit code and the one line of output that decides the next step.
&& or ||. Check each against what the task needs.timeout <seconds> for commands that may hang, and stop only a command you started. A timeout does not stop a fast destructive command, so confirm that kind with the human first.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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