/verity:memoryfrom Verity by Codacy
Browse, query, and extend a project knowledge graph stored as typed markdown nodes with edges. Useful for retrieving prior context on files before editing or recording project decisions, patterns, and gotchas.
Ships in Verity by Codacy. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The memory graph is a collection of markdown nodes at .verity/memory/ organized into 8 domains. Each node has YAML frontmatter with typed edges that form a graph. The graph is the project's accumulated knowledge — decisions, patterns, gotchas, security constraints, and more.
The service URL. verity config service-url prints the service only when $VERITY_TOKEN may be sent there. When it refuses, for a URL that only this repository's VERITY.md names or a VERITY_TOKEN this repository's .claude settings set, it prints nothing and the && below stops the request. Tell the user its message; never type the URL in by hand.
# List all active nodes
VERITY_URL="$(verity config service-url)" && curl -s -H "Authorization: Bearer $VERITY_TOKEN" \
"$VERITY_URL/compound/memory/nodes" | jq '.nodes[] | {node_id, kind, title, confidence}'
# Filter by kind
VERITY_URL="$(verity config service-url)" && curl -s -H "Authorization: Bearer $VERITY_TOKEN" \
"$VERITY_URL/compound/memory/nodes?kind=security" | jq '.nodes[]'
Or browse locally: ls .verity/memory/*/
VERITY_URL="$(verity config service-url)" && curl -s -H "Authorization: Bearer $VERITY_TOKEN" \
"$VERITY_URL/compound/memory/nodes/<node_id>" | jq '.'
Or read directly: cat .verity/memory/decisions/<slug>.md
Find related knowledge by seeding from files you're working on:
VERITY_URL="$(verity config service-url)" && curl -s -X POST -H "Authorization: Bearer $VERITY_TOKEN" \
-H "Content-Type: application/json" \
"$VERITY_URL/compound/memory/walk" \
-d @- <<'VERITY_EOF_<random>'
{"seed_files": ["src/auth/tokens.ts"], "max_hops": 2, "budget_tokens": 2000}
VERITY_EOF_<random>
User-authored nodes get confidence: 1.0 and are never auto-archived:
VERITY_URL="$(verity config service-url)" && curl -s -X POST -H "Authorization: Bearer $VERITY_TOKEN" \
-H "Content-Type: application/json" \
"$VERITY_URL/compound/memory/nodes" \
-d @- <<'VERITY_EOF_<random>'
{
"kind": "gotcha",
"title": "RLS policies and cleanup cron are coupled",
"body": "Changing RLS policies without updating the cleanup cron will break retention.",
"file_globs": ["server/supabase/migrations/**"],
"domains": ["security", "database"]
}
VERITY_EOF_<random>
The body is read from the quoted heredoc (-d @-), never from a '…' or
"…" string on the command line, where a quote or $(…) in the user's words
would run in the shell. Inside the heredoc it is plain JSON: escape " as \"
and \ as \\ in the title and body, as JSON requires.
Replace <random> with 8 random letters and digits that you pick for this call,
the same at both ends. Text written before you picked them cannot contain the
line that ends the heredoc, so it cannot end it early.
Valid kinds: decision, quality, security, intent, gotcha, pattern, domain, integration.
Or create the markdown file directly at .verity/memory/<domain>/<slug>.md with proper frontmatter (see .verity/memory/SCHEMA.md for the template).
verity memory ask --json - <<'VERITY_EOF_<random>'
why do we check the Gateway at the API level and not just TCP?
VERITY_EOF_<random>
The command prints the matching nodes, best first, with their ids and paths.
It also quotes the sentences that answer the question, each with the id of its
node. It runs on the local files: nothing is sent, and no model writes the
answer. Read the nodes before you rely on a quote. --full prints whole bodies,
--limit <n> sets how many nodes come back, and --all includes archived nodes.
verity memory recall is the same command.
# Change the files the node is about. Each glob must match a file in the repository.
verity memory edit <node-id> --file-globs scripts/verity.sh 'config/*.yaml'
# Replace the body
verity memory edit <node-id> --body - <<'VERITY_EOF_<random>'
<the new body>
VERITY_EOF_<random>
# Or edit .verity/memory/<domain>/<slug>.md by hand (the title too), then upload it as it is
verity memory edit <node-id>
The command uploads the node at once and reads it back from the service. It
fails if the service did not take the change. --status active|archived|superseded
changes only the status. If a teammate changed the node on the service since
your last pull, the command refuses and changes nothing: run verity memory pull
and edit again, or pass --force to overwrite their version. The source, author
and confidence of a node stay as the service recorded them.
verity memory delete <node-id> --reason - <<'VERITY_EOF_<random>'
<why the node is wrong or no longer applies>
VERITY_EOF_<random>
The node is archived on the service for the whole team, and its file is removed
here. The text and the reason are kept on this machine in .verity/.memory-trash/.
verity memory restore <node-id> undoes it.
verity memory dream # print the plan; changes nothing
verity memory dream --apply # make the changes, and save a report in .verity/dreams/
verity memory dream --revert <dream-id>
verity memory dream --list
dream merges near-duplicate nodes of one kind into the strongest one, and the
strongest one takes over their file_globs. It also retires the nodes that the
graph marks as superseded, and it prunes empty placeholders. It never changes a
node with source: user. It lists for a person the pairs that only may be the
same, and the contradictions that nothing in the graph settles. Show the plan
to the user before you run --apply.
Check for orphan nodes, stale knowledge, missing backlinks, and contradictions:
VERITY_URL="$(verity config service-url)" && curl -s -X POST -H "Authorization: Bearer $VERITY_TOKEN" \
"$VERITY_URL/compound/memory/lint"
Results appear in .verity/memory/log.md after the next sync.
memory_writes[] that the CLI applies locally.| Directory | Purpose |
|---|---|
decisions/ | Architectural choices (WHY is it this way?) |
quality/ | Quality patterns (WHAT does "good" mean here?) |
security/ | Security constraints (WHAT must be protected?) |
intent/ | Intent templates (WHAT does the user expect?) |
gotchas/ | Footguns and surprises (WHAT will trip you up?) |
patterns/ | Code conventions (HOW should it be done?) |
domain/ | Business logic concepts (WHAT does this mean?) |
integrations/ | External system knowledge (WHAT's around us?) |
The .verity/memory/ directory is designed to open directly in Obsidian, Foam, or Logseq. Nodes use [[wikilink]] syntax for cross-references.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub codacy/verity --plugin verity11 skills in this plugin
/analyze/verity:analyze — Run Verity analysis on demandRun an independent AI review of the current change on demand — a second opinion on quality, security, and whether the code matches its stated intent. Use when the user asks to review, check, or analyze code before committing, or to get an independent check on work you have just finished./feedback/verity:feedback — Send feedbackSend the user's feedback about Verity to the Verity team, verbatim. Use only when the user explicitly asks to send feedback./init/verity:init — set Verity up in this projectSet Verity up in this project: ask the setup questions in the session (sign in, and the Standard: use the team's, or write project rules from a repo profile), sign in, and run the install with those answers. Use right after installing the Verity plugin, or when Verity says this project is not set up./insights/verity:insights — Project quality insights and Standard evolutionReport project quality metrics from accumulated run data, and manage the Standard's evolution suggestions. Use when the user asks for quality trends or metrics, or whether the Standard should change./learn/verity:learn — View and manage project knowledgeView and manage the durable project knowledge Verity has accumulated — decisions, patterns, gotchas, and conventions extracted from past analysis runs. Use when the user asks what Verity has learned, or before changing an area of the code you do not know./prove/verity:prove — Formal verification of small pieces of codeFormally verify a small, risky piece of code with a Lean 4 model written by the Verity service: rank candidates from git history and the user's hint, CONFIRM with the user which code to model, have the service generate the model, check it locally with `verity prove check`, and replay any counterexample on the real code before calling it a bug. Use when the user asks to verify, prove, or model-check code, or asks "can this race / double run / fail open?". Anything typed after /verity:prove is the user's hint: the file, function, or worry to check.