app

A desktop graph viewer for exploring the project's skill graph in an Electron window, a type of desktop application. It builds the viewer on first use.

In plain words
What is it for?
Use it to open the graph stored in the current project after running the graph build command. Its dependencies require a one-time installation.
Why use it?
It gives you a native visual way to inspect the graph when a browser view is not what you want.

Command

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 commands/quantumwars/project-graphx/app
Clone the repo
git clone --depth 1 https://github.com/QuantumWars/project-graphx
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 521 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00017 $0.00521
Opus 5 $0.00009 $0.00260
Sonnet 5 $0.00003 $0.00104
Haiku 4.5 $0.00002 $0.00052

Measured yesterday against content hash 6fbdf079d853, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

app 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 yesterday.

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.

commands/app.md · 54 lines

What it actually says

Open the desktop viewer, pointed at the current project's graph.

Check first whether the user actually wants this one. /skill-graph:view shows the same graph in a browser with the same features and no download. This command is worth its cost only if they specifically want a native window. If they have not said so, offer /skill-graph:view instead.

Preconditions

.claude/graph/graph-data.json must exist. If it does not, stop and tell the user to run /skill-graph:build. The app opens without it, but shows only setup instructions.

First run — install the viewer's dependencies

The viewer is Electron and its dependencies are not bundled with the plugin; they are large and platform-specific. Check first:

test -d "${CLAUDE_PLUGIN_ROOT}/app/node_modules" && echo present || echo missing

If missing, tell the user this is a one-time ~280 MB install and ask before running it:

cd "${CLAUDE_PLUGIN_ROOT}/app" && npm install

Launch

GRAPH_DATA_DIR="$PWD/.claude/graph" \
  npx --prefix "${CLAUDE_PLUGIN_ROOT}/app" electron "${CLAUDE_PLUGIN_ROOT}/app" &

GRAPH_DATA_DIR is what makes the app show this project. Run the block as written — it reads $PWD before anything changes directory, so the path is the real project. Do not rewrite it into a cd followed by a placeholder like $PROJECT_DIR; an unset variable expands to nothing, GRAPH_DATA_DIR becomes /.claude/graph, and the app then refuses to start rather than writing a rating somewhere nobody reads.

Packaging (--pack)

Only when the user passes --pack. Builds a standalone .app:

cd "${CLAUDE_PLUGIN_ROOT}/app" && npm run pack

State plainly that the pack script targets macOS arm64 only — it is not a cross-platform build, and on any other platform the user should run the app with npm start instead. The packaged app still needs GRAPH_DATA_DIR set, or a --data-dir <path> argument, to find a project.

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. yesterday First seen · 54 lines · 17 tokens per session scan A 6fbdf079d853

Subscribe to this mod's changes

app is a command published in the GitHub repository QuantumWars/project-graphx (1 stars, last pushed 13d ago), licensed MIT. It adds 17 tokens to every session and 521 once invoked, about $0.0001 per session on Opus 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-31.