/gabbe-brain:epistemology-knowledgefrom gabbe-brain
Teaches agents to treat beliefs as hypotheses until verified, combine knowledge graphs with vector search, and distinguish epistemic from pragmatic actions. Useful when designing agent memory and belief-update 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.
How agents "know" things — represent beliefs, and update them via Active Inference and rigorous epistemology.
Keep what the agent believes separate from what is verified: store beliefs with their source, and treat model output as a hypothesis until a file, test or document confirms it.
Knowledge is structured relationships between entities, not just text embeddings.
Knowledge Graph Augmentation: maintain a structured Knowledge Graph (nodes = entities, edges = relations). Don't rely on vector similarity (RAG) alone — use hybrid retrieval: vector search (semantic) + graph traversal (logical).
Query "What causes System Failure?": vector finds docs mentioning "crash"/"bug"; graph traverses System Failure <-caused_by- Memory Leak.
Agents act to minimize Surprise (Variational Free Energy) = gap between expectation and sensation. Goal isn't maximizing reward but aligning the internal model with reality.
Prediction Error Minimization: (1) predict next observation from model; (2) act/sense actual outcome; (3) on surprise (obs != prediction), either update model (perceptual learning) or change world to match prediction (active inference).
class ActiveInferenceAgent:
def step(self, observation):
prediction = self.model.predict(self.state)
error = measure_surprise(prediction, observation)
if error > TOLERANCE:
self.model.update(observation) # A: change model
return self.planner.plan_to_reduce_error(target=prediction) # B: act to fix world
return None # all is well
Distinguish actions that change the world (pragmatic, e.g. "click Submit") from those that change the agent's knowledge (epistemic, e.g. "read the error logs" → reduce uncertainty). High uncertainty → prioritize epistemic; low uncertainty → prioritize pragmatic.
active-inference.skill.A list of claims, each marked fact (with source) or hypothesis, and the update made after each contradicting observation.
What SKILL.md sets; muted values are Claude Code's defaults
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./cognitive-testingTests cognitive and agentic loops by invariants, convergence, memory integrity and loop guards instead of exact output. Use when you must test an autonomous loop whose output varies, or check that its guards fire./consciousness-loopAdds an explicit observe, orient, decide, act trace with a breakout after 3 idle spins. Use when an agent keeps reasoning without calling a tool, or when a decision trace is needed./cost-benefit-routerChooses a local or remote model and a model tier for a task from complexity, privacy and context size. Use when asked to route a task, choose a model or cut cost, or when the task may involve sensitive data.Other plugins' skills for the same job