graph

graph is a skill for Claude Code from ThinkfleetAI/memmesh. It costs 59 tokens per session (619 once invoked), scanned A, original, Apache-2.0.

A guide for querying MemMesh's knowledge graph, which connects stored facts about people, organizations, and other things over time. It supports questions that require following several connections or viewing what was known on a past date.

In plain words
What is it for?
Use it for multi-step relationship questions, date-specific views of knowledge, and retrieval of related information through connected entities. Hosted MemMesh is required for graph reasoning; local setups can still search extracted entities.
Why use it?
A normal keyword search may not answer questions that depend on relationships or historical changes. The graph can connect multiple facts and distinguish when each relationship was valid.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the memmesh-plugin plugin — 18 skills, 1 MCP server shipped together

Good fit Use it for multi-step relationship questions, date-specific views of knowledge, and retrieval of related information through connected entities. Hosted MemMesh is required for graph reasoning; local setups can still search extracted entities.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thinkfleetai/memmesh/graph
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ThinkfleetAI/memmesh --skill graph
Clone the repo
git clone --depth 1 https://github.com/ThinkfleetAI/memmesh

Made for: Claude Code.

Or install memmesh-plugin, the plugin that ships this one along with the rest of its 18 skills, 1 MCP server.

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 graph

README.md
[![agentmods](https://agentmods.dev/badge/skills/thinkfleetai/memmesh/graph/github.svg)](https://agentmods.dev/skills/thinkfleetai/memmesh/graph)
Your own site
<a href="https://agentmods.dev/skills/thinkfleetai/memmesh/graph"><img src="https://agentmods.dev/badge/skills/thinkfleetai/memmesh/graph/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 graph

Your own site · 80×15
<a href="https://agentmods.dev/skills/thinkfleetai/memmesh/graph"><img src="https://agentmods.dev/badge/skills/thinkfleetai/memmesh/graph.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 619 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00059 $0.00619
Opus 5.5 $0.00024 $0.00248
Sonnet 5.5 $0.00012 $0.00124
Haiku 4.5 $0.00006 $0.00062

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

Security

Grade A, and why

graph 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.

integrations/memmesh-plugin/skills/graph/SKILL.md · 58 lines

How it starts

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

graph

⚙️ Graph reasoning requires MemMesh hosted mode. Building the graph works locally: memory_extract_pending → memory_commit_extraction populate typed entities/edges. Multi-hop reasoning/traversal (memory_graph_reason, memory_query_graph, memory_prefetch_related) runs on the hosted engine — set your mm- API key. If those return "unknown tool" on a local install, say so and use search over the extracted entities instead.

MemMesh links memories into a knowledge graph whose edges are bi-temporal (each has valid_from / valid_to). That enables answers a flat store can't give.

Multi-hop reasoning

Answer questions that require chaining edges — "who acquired the company Sarah founded":

{ "name": "memory_graph_reason",
  "arguments": { "anchorEntityId": "<entity id>", "maxHops": 3, "maxPaths": 20 } }

Returns ranked paths (scored by edge weight × recency). The anchor is an entity id — resolve names to ids via a graph query first.

Point-in-time — what did we believe then?

{ "name": "memory_query_graph",
  "arguments": { "subjectId": "<entity id>", "asOf": "2026-01-01T00:00:00Z" } }

Omit asOf for the current view. This reconstructs the graph as it stood on any date — the bi-temporal record, not just the latest state.

Anticipatory retrieval (spreading activation)

Given the memories a session is working with, surface what's most likely needed next:

{ "name": "memory_prefetch_related", "arguments": { "seedMemoryIds": ["<id>","<id>"], "limit": 10 } }

Building the graph

Edges come from client-LLM extraction — the engine hands you a prompt, your own model extracts entities/edges, you commit them (zero engine-side LLM cost):

{ "name": "memory_extract_pending", "arguments": { "projectId": "<repo>", "limit": 10 } }
// run each prompt through your model, then:
{ "name": "memory_commit_extraction", "arguments": { "memoryId": "…", "contentHash": "…", "entities": [...], "edges": [...] } }

Run this loop until extract_pending returns empty to fully populate the graph for reasoning.

Read the full file on GitHub · 58 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 · 58 lines · 59 tokens per session scan A a4be16c4dfab

Subscribe to this mod's changes

graph is a skill published in the GitHub repository ThinkfleetAI/memmesh (405 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 59 tokens to every session and 619 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-08-30.

Related

Other skills, from other repositories

knowledge-ingest

Ingest documents, articles, conversations, or supplied text into Knowledge with retained originals, sourced claims, entity updates, timelines, and cross-links; also learn durable lessons from a set of conversations, transcripts, or past sessions (/learn). Routes meetings to knowledge-meeting-ingest and short thoughts…

openclaw/openclaw · 67 tokens

mem0-oss-to-platform

Plan, then execute, a migration of a project from the mem0 open-source / self-hosted SDK (local Memory class) to the mem0 Platform / hosted SDK (MemoryClient). TRIGGER when: the developer wants to move, switch, or migrate mem0 off OSS/self-hosted to the hosted API, e.g. "migrate my mem0 setup to the platform", "switch…

mem0ai/mem0 · 217 tokens

forget

Remove a personal fact, preference, relationship detail, topic, or prior event from Muse's active memory and stop existing copies or automations from bringing it back. Use for explicit requests such as 'forget that', 'don't remember this about me', or 'remove that from your memory'. Do not use when 'forget it' merely…

asgeirtj/system_prompts_leaks · 74 tokens

Cortex

Operate Cortex, the LifeOS memory system — the typed Knowledge Archive (People, Companies, Ideas, Research with typed related: links) plus recall of prior work sessions, ISAs, and conversations. Search, add, harvest, develop, ingest, distill, graph-navigate, recall. USE WHEN cortex, knowledge, knowledge base, search…

danielmiessler/LifeOS · 196 tokens

memory

Use when the user asks to remember, recall, forget, update, search, or inspect durable OpenSquilla memory, including profile facts in USER.md and long-term notes in MEMORY.md or memory//.md.

opensquilla/opensquilla · 44 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens