Marketplace for the predictive-mind plugin: FEP/World-Models scaffolding for stable LLM coding agents.
npx claudepluginhub jason-hchsieh/predictive-mindFEP/World-Models scaffolding for stable LLM coding agents: predict-before-act, inspectable belief state, and surprise-triggered reflection.
A Claude Code plugin that scaffolds LLM coding agents with structure inspired by the Free Energy Principle (Friston) and World Models (Ha & Schmidhuber).
The goal: make agents more stable at completing tasks by enforcing four procedural invariants:
See docs/ARCHITECTURE.md for the full design.
Phases 1–3 are in place.
belief-store MCP server, PostToolUse
hook, cartographer + dreamer subagents, /predict + /probe
skills.policy-selector + /plan-efe,
non-parametric recall_similar_episodes.belief-reviser + hierarchy-arbiter
subagents, /reflect + /checkpoint skills, belief snapshots,
precision-weighted skill library (log_skill_outcome,
score_skill_reliability).belief-store| Tool | Purpose |
|---|---|
store_prediction | record expected observation before a tool call |
record_observation | write actual + surprise (normally by hook) |
retrieve_beliefs | list predictions for a task (optionally only surprising) |
list_beliefs | list current belief entries (key/value/precision) |
update_belief | upsert a belief entry |
snapshot_beliefs / rollback_beliefs | labelled checkpoint |
log_skill_outcome / score_skill_reliability | skill library stats |
recall_similar_episodes | k-NN over past reconciled predictions |
The belief-store MCP server is TypeScript. Build the compiled bundle
(checked into the repo so users don't need tsc at runtime):
cd mcp/belief-store
npm install
npm run build
When the plugin is loaded by Claude Code, a SessionStart hook
(scripts/bootstrap.sh) syncs dist/ into ${CLAUDE_PLUGIN_DATA} and
runs npm install there — only when package.json changes. Per the
Claude Code plugin guidelines, runtime state (node_modules, the SQLite
DB) lives in ${CLAUDE_PLUGIN_DATA} so it survives plugin updates.
Point Claude Code at this directory as a plugin:
claude --plugin-dir .
This plugin does not implement variational inference or compute true free
energy. "Confidence" is ordinal, not probabilistic. FEP and World Models
are used as a design vocabulary that organizes four specific practices
that existing agent patterns handle only partially. See
docs/ARCHITECTURE.md §1 for what is explicitly NOT claimed.
7-day visitors to each marketplace page
Matt Pocock's skills for real engineering, as an installable Claude Code plugin.
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Official marketplace for gstack — AI engineering workflow skills, code review, QA browser automation, and shipping tools for Claude Code.