agentleFS
putervisionputervision/WebCrypt/.agents/skills/vision-memory-mcp/SKILL.md

vision-memory-mcp

Skill24 starsChanged 3 months agoMITView on GitHub

Teaches the agent to use the Visual Memory MCP server to cache webpage and application screenshots, matching layout states and avoiding redundant LLM vision calls.

  • Reads credentials

6 other projects use a version of this, 6 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use agent-reasoning-mcp, behavior-mcp and 1 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • putervisionSkill

    agent-reasoning-mcp

    Teaches the agent to use the Strategic Agent Reasoning MCP server for BDI goals, utility scoring, risk evaluation, and replanning.

    Also in 5 projects that use this

  • putervisionSkill

    behavior-mcp

    Teaches the agent to use the Behavior MCP server for ~60Hz in-browser behavior trees, triggers, and recordings.

    Also in 5 projects that use this

  • +1 more from putervision

The file

We split this skill into the rules it gives an agent

8 rules. 1 is common, 0 are distinctive, and 7 are very specific to this project.

  • 1

    Common

    Most of the 6 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Orient: Call get_session_context to load active transitions and recent visual states.

    line 14
  2. Very specific:

    Search (Optional): Call recall_memory to search past visual states by text query or image query.

    line 15
  3. Very specific:

    Ingest/Verify: Call analyze_screenshot with the base64 screenshot before calling any vision LLMs.

    line 16
  4. Very specific:

    Cache Hit: If is_known is true, read the returned description and do NOT call your vision LLM.

    line 17
  5. Very specific:

    Cache Miss: If is_known is false, inspect the image with your vision model, summarize the layout, and register it back by calling …

    line 18
  6. Very specific:

    Snapshotting: Call manage_snapshot (action: "save") when reaching milestones, and manage_snapshot (action: "diff") to check for visual …

    line 20
  7. Very specific:

    Google Antigravity (~/.gemini/config/config.json): Add these rules to your "globalPermissionGrants" -> "allow" list:

    line 46
  8. Common:

    Run these commands in the terminal for management and analytics:

    line 53

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Visual Memory (vision-memory-mcp)

This project utilizes vision-memory-mcp to cache visual states, record layout transitions, and avoid repetitive LLM vision calls.

1. Priority Order & Checklist

Whenever you capture a screenshot, examine a webpage, or need to verify a visual state, you MUST run this sequence:

  1. Orient: Call get_session_context to load active transitions and recent visual states.
  2. Search (Optional): Call recall_memory to search past visual states by text query or image query.
  3. Ingest/Verify: Call analyze_screenshot with the base64 screenshot before calling any vision LLMs.
  4. Cache Hit: If is_known is true, read the returned description and do NOT call your vision LLM.
  5. Cache Miss: If is_known is false, inspect the image with your vision model, summarize the layout, and register it back by calling analyze_screenshot with both the screenshot and description parameters.
  6. Log Transitions: Right after taking any UI action (click, type, navigate, scroll), call record_outcome to build the navigation graph.
  7. Snapshotting: Call manage_snapshot (action: "save") when reaching milestones, and manage_snapshot (action: "diff") to check for visual regressions.

2. Complete Tool Reference

Tool NameKey InputsDescription
analyze_screenshotscreenshot? (base64), file_path?, description?, items?Main ingestion (single or batch) and visual state retrieval tool.
recall_memoryquery?, screenshot?, file_path?, strategy?, limit?Search visual memory by text query or image query (read-only).
record_outcomefrom_state_id, to_state_id?, action, action_type? ('blocker' | 'click' | etc.)Record UI action transitions or log visual blockers for state-memory.
get_navigation_pathsfrom_state_id?, to_state_id?, to_description?, max_hops?Find historical path or instructions between states.
predict_next_actioncurrent_state_id, goal_description?, goal_state_id?Predict best next UI action and grounded element handles (target_selector, target_coords).
compare_statesstate_a_id & state_b_id OR video_a_id & video_b_idCompare two states visually (has_layout_change) or compare video runs.
get_session_contextinclude_recent?, include_frequent?Get recent/frequent states, transition graphs, disk stats, cache metrics, and version info.
manage_snapshotaction ('save' | 'diff' | 'export' | 'restore'), name?, archive_json?Unified snapshot management for visual checkpoints and regression detection.
manage_visual_specaction ('set' | 'verify' | 'list'), name?, screenshot?, tolerance?Register and verify visual design contract baselines (Visual SDD).
manage_videoaction ('ingest' | 'search' | 'timeline'), file_path?, query?, video_id?Ingest WebM/MP4 recordings, search video keyframes, or retrieve timelines.
create_evidence_packkeyframe_state_ids, source_video_id?, linked_state_memory_nodes?Package immutable evidence packs linking video keyframes to state-memory DAGs.
export_trajectoriesformat? ('json' | 'llava' | 'qwen2_vl' | 'joint'), trace_id?Export multimodal trajectories for model fine-tuning or joint workflow exports.
undo_visual_mutationtype? ('state' | 'transition' | 'any')Revert the last visual state ingestion or transition edge addition.
forget_statestate_idPurge a specific state and vector embedding for privacy.
wait_for_visual_statetarget_state_id, timeout_ms?Poll for target visual state until present or timeout occurs.

3. Agent Permissions & Auto-Run Configuration

To bypass confirmation dialogs when running CLI cache commands or reading/writing brain images, add these allows to your configuration:

  • Google Antigravity (~/.gemini/config/config.json): Add these rules to your "globalPermissionGrants" -> "allow" list:
    • "command(vision-memory-mcp)" (Allows running any query/ingest command prefix)
    • "read_file(.*\\.gemini/antigravity/brain/.*)" (Allows reading brain screenshots)
    • "write_file(.*\\.gemini/antigravity/brain/.*)" (Allows saving brain snapshots)

4. CLI Commands Reference

Run these commands in the terminal for management and analytics:

  • vision-memory-mcp init [-y|--yes]: Scaffold workspace .vision-memory-mcp/, .gitignore, .env, and IDE agent rules.
  • vision-memory-mcp init-global: Re-initialize across all projects registered in ~/.vision-memory-mcp/projects.json.
  • vision-memory-mcp doctor: Health check storage writability, sharp bindings, Node runtime, and sub-directory Git repos.
  • vision-memory-mcp audit: Audit sub-directory Git repos, submodules, database locations, and total visual states.
  • vision-memory-mcp inspect: Display stored visual states in an ASCII table.
  • vision-memory-mcp metrics: Calculate cache hit rate, token savings, and ROI.
  • vision-memory-mcp view: Open an interactive force-directed graph visualizer in the browser.
  • vision-memory-mcp export --format [json\|mermaid\|html] --out [file]: Export the memory graph.
  • vision-memory-mcp prune: Purge expired or low-access states.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.