state-memory-mcp: Skill for Claude Code

.agents/skills/world-model-mcp/SKILL.md

world-model-mcp is a skill for Claude Code, Codex from putervision/state-memory-mcp. It costs 39 tokens per session (742 once invoked), scanned A, original, MIT.

An agent skill for maintaining a map of objects, their positions, and their relationships in two or three dimensions. It can also track when objects remain present and simulate movement.

In plain words
What is it for?
It is for updating spatial objects, finding nearby entities, recording observations, checking possible collisions, and recording outcomes.
Why use it?
It gives an agent a persistent description of where things are and helps it check movement before taking action.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is putervision/state-memory-mcp's own configuration. It tells Claude Code and Codex how to work on state-memory-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything state-memory-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to putervision/state-memory-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/putervision/state-memory-mcp/main/.agents/skills/world-model-mcp/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/putervision/state-memory-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for world-model-mcp

README.md
[![agentmods](https://agentmods.dev/badge/skills/putervision/state-memory-mcp/world-model-mcp/github.svg)](https://agentmods.dev/skills/putervision/state-memory-mcp/world-model-mcp)
Your own site
<a href="https://agentmods.dev/skills/putervision/state-memory-mcp/world-model-mcp"><img src="https://agentmods.dev/badge/skills/putervision/state-memory-mcp/world-model-mcp/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for world-model-mcp

Your own site · 80×15
<a href="https://agentmods.dev/skills/putervision/state-memory-mcp/world-model-mcp"><img src="https://agentmods.dev/badge/skills/putervision/state-memory-mcp/world-model-mcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 742 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.00742
Opus 5.5 $0.00016 $0.00297
Sonnet 5.5 $0.00008 $0.00148
Haiku 4.5 $0.00004 $0.00074

Measured 1mo ago against content hash 2527537a185c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

world-model-mcp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/world-model-mcp/SKILL.md · 47 lines

How it starts

The opening of the file, as written. The whole thing — 47 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Spatial World Model (world-model-mcp)

This skill provides step-by-step guidance and operational patterns for interacting with @putervision/world-model-mcp.


1. Role in the PuterVision Triad

  • Perception Layer (vision-memory-mcp): Ingests images, detects bounding boxes, extracts OCR.
  • World Model Layer (world-model-mcp): Maintains persistent 3D/2D coordinates, bounding volumes, topological relations, and object permanence.
  • Action/State Layer (state-memory-mcp): Manages task execution DAGs, decisions, blockers, and milestones.

2. Core Operational Sequence

  1. Inspect World: Call get_spatial_map with format: 'summary' to check total entities and spatial bounding box.
  2. Proximity Lookup: Call query_entities with near_position and max_distance, or entity_id for direct lookup.
  3. Ingest Perception: When new visual elements are detected, call ingest_observation.
  4. Collision Pre-Check: Call simulate_movement before issuing action commands.
  5. Update State: Call record_outcome after actions complete.

3. Tool Reference (15 Tools)

Tool Name Key Inputs Description
update_entity name, type, position, bounding_box, properties Upsert entity into spatial memory
query_entities query, type, near_position, entity_id, include_history Find entities by text search, proximity, or entity ID
set_relation source_id, relation, target_id, offset Record spatial relationship (on, inside, near, etc.)
get_spatial_map region_id, format (json, gltf, obj, summary) Export structured spatial layout or summary
simulate_movement entity_id, delta_position, mode, check_collisions Predict movement path or compute navigation waypoints
ingest_observation observer_pose, detections, visual_state_id, reconcile Ingest perception detections and reconcile frustum view
get_expected_view observer_position, observer_orientation, fov Calculate visible entities from observer pose
link_to_goal task_id, entity_id, relationship, action Associate entity with task or extract spatial slice
record_outcome action_name, success, resulting_position Update world state after action completion
manage_spatial_spec action, name, bounds, constraints Spatial SDD contract registration and verification
create_evidence_pack task_id, entity_ids, snapshot_ids Immutable cryptographic evidence package
use_spatial_blackboard action, topic, sender, payload Multi-agent coordination and mutex locks
manage_snapshot action, name, snapshot_a, snapshot_b, entity_id Snapshots, diffs, undo mutations, and time-travel
generate_game_inputs entity_id, target_position, control_profile, action Playwright game inputs and screen coordinate projection
wait_for_spatial_state entity_id, condition, threshold, timeout_ms Polling and waiting for spatial state condition

Read the full file on GitHub · 47 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 47 lines · 39 tokens per session scan A 2527537a185c

Subscribe to this mod's changes

world-model-mcp is a skill published in the GitHub repository putervision/state-memory-mcp (42 stars, last pushed 1mo ago), licensed MIT. It adds 39 tokens to every session and 742 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-11.

Related

world-model-mcp compared with skills from other repositories

world-model-mcp next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
world-model-mcpputervision/state-memory-mcpSkill421mo agoMITA39Claude Code, Codex
opik-diagnosecomet-ml/opik-mcpSkill2259d agoApache-2.0A187Claude Code
cortex-explore-memorycdeust/CortexSkill76todayMITA91Claude Code
qmclaw-workbenchxi-zhao/OpenQuantumSkill71todayMITA124Codex
quantum-groverxi-zhao/OpenQuantumSkill71todayMITA62Claude Code, Codex
quantum-algorithmsxi-zhao/OpenQuantumSkill71todayMITA34Claude Code, Codex
alicebob-cat-circuitsxi-zhao/OpenQuantumSkill71todayMITA51Claude Code, Codex