graph-capture

A command for saving important facts and relationships from a conversation into a memory graph for future use.

In plain words
What is it for?
Finding new people, projects, decisions, facts, and connections in the conversation, previewing them with a dry run, or limiting capture to a topic or point in the conversation.
Why use it?
Some conversations are not visible to the process that normally builds the graph, so useful context can otherwise be lost. It provides a final catch-up before a conversation ends.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/stevepridemore/graph-memory/graph-capture
Any agent
npx skills add stevepridemore/graph-memory --skill graph-capture
Clone the repo
git clone --depth 1 https://github.com/stevepridemore/graph-memory

Made for: Claude Code, Codex.

Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,722 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
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 $0.00063 $0.02722
Opus 5 $0.00032 $0.01361
Sonnet 5 $0.00013 $0.00544
Haiku 4.5 $0.00006 $0.00272

Measured 2d ago against content hash c52f6d8355cc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

graph-capture scanned grade C with 1 finding 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 2d 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.

Harvests environment variableshighData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

5. **Never extract secrets.** API keys, passwords, tokens, connection strings, private keys, signed URLs — none of these go into entity properties or edge evidence. Note that a credential exists ("Project X uses an API k
skills/graph-capture/SKILL.md · 143 lines

How it starts

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

The user wants to capture the current conversation to the memory graph. Many conversations contribute knowledge that the dream process can't see (claude.ai web and Desktop chats live server-side, not in the local transcript store the dream walks). This command is the manual catch-up: review what we just talked about, find what hasn't already been written to the graph, and write it.

Arguments: $ARGUMENTS

Parse:

  • --dry-run — describe what you would write without calling write tools. Useful to review before committing.
  • --topic <focus> — focus capture on entities/relationships related to a specific topic mentioned in the conversation. Skip unrelated material. Default: capture everything substantive.
  • --since-message <uuid> — only consider messages from that point onward. Default: whole conversation.

Steps

1. Inventory candidate entities and relationships

Walk the conversation (or the slice indicated by --since-message / --topic) and list every distinct candidate that meets the "worth writing" bar:

  • People named with role, organization, or relationship context — not just casual references
  • Projects worked on, evaluated, or referenced with meaningful context
  • Technologies / Concepts the user used, evaluated, decided about, or expressed a preference toward
  • Preferences explicitly stated ("I prefer X", "always use Y") or strongly implied through repeated choice
  • Decisions made with reasoning ("we decided X because Y") — both explicit and clear inferred decisions
  • Facts about infrastructure, processes, configuration, or the user's environment
  • Events — meetings, deployments, incidents, milestones with dates or outcomes
  • Objects — specific repos, servers, databases, tools, containers
  • Reasoning traceshow a problem was solved, especially if there were dead ends or alternatives considered. Capture the trace, not just the outcome.

Skip:

  • Conversation mechanics ("let me read that file", "running the test now")
  • Trivial mentions without significance
  • API keys, passwords, tokens, connection strings, or any secret value (note existence only, never the value)

Read the full file on GitHub · 143 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. 2d ago First seen · 143 lines · 0 tokens per session scan C c52f6d8355cc

Subscribe to this mod's changes

graph-capture is a skill published in the GitHub repository stevepridemore/graph-memory (2 stars, last pushed 3mo ago), licensed MIT. It adds 63 tokens to every session and 2,722 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 1 finding (harvests environment variables). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

ori-memory

Persistent agent memory with learning retrieval. Knowledge graph on markdown files — capture insights, decisions, research, and learnings during work, then retrieve them weeks or months later. Use when knowledge is too valuable to lose but too much to inject into every prompt.

aayoawoyemi/Ori-Mnemos · 54 tokens

svoboda-profiler

Use when asked to profile someone, unpack a person, build a psychological portrait, run a Svoboda session, or map life state. Triggers on распаковка, профилирование, психопортрет, точка А, колесо баланса, profile someone, unpack, svoboda session.

xcota/pos · 69 tokens

vault-scaffolder

Use when a completed svoboda profile.yaml exists and a new Personal OS needs to be personalized in the current workspace.

xcota/pos · 29 tokens

install-waggle

Install the official Waggle plugin locally for Codex from the latest stable Abhigyan-Shekhar/Waggle-mcp GitHub Release. Use for explicit requests such as "Install Waggle", "Set up Waggle", "Install Waggle for Codex", or "Enable Waggle". Do not use for Waggle operation, repair, updates, configuration, or memory…

Abhigyan-Shekhar/Waggle-mcp · 84 tokens

lint

Use weekly or after major ingest sessions to check wiki health.

xcota/pos · 14 tokens

start

One-word self-unfolding onboarding. Sets up a fresh, unpersonalized vault end-to-end — installs the memory engine, runs the profile interview, scaffolds the vault, and teaches the user as it goes. The single front door.

xcota/pos · 51 tokens