claude-code

A set of instructions that teaches coding agents how to use GaP, an engine for building and running robot-behaviour graphs. It can be installed as a Claude Code plugin or used as Markdown files with other agents.

In plain words
What is it for?
It is for working with GaP projects, including graph creation, simulation, skill-bundle testing, and trace debugging. Real-robot runs require explicit human confirmation.
Why use it?
It gives an agent guidance for finding available skills, running simulations, creating graphs, testing skill bundles, and investigating execution traces.

Agent

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 agents/graph-robots/graph-as-policy/claude-code
Clone the repo
git clone --depth 1 https://github.com/graph-robots/graph-as-policy
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,302 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.00000 $0.02302
Opus 5 $0.00000 $0.01151
Sonnet 5 $0.00000 $0.00460
Haiku 4.5 $0.00000 $0.00230

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

Security

Grade A, and why

claude-code 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.

docs/source/agents/claude-code.md · 191 lines

How it starts

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

Use with Claude Code and AI Agents

GaP is built to be driven by coding agents, not just humans. The engine repo ships an agent skill — a plain-markdown playbook (agent/skills/gap/SKILL.md) plus five reference deep-dives — that teaches an agent to search skill registries, check capabilities, run graphs in sim, generate and hand-author graphs, create unit-tested skill bundles, and debug traces, with real-robot runs hard-gated on explicit human confirmation. For Claude Code it is packaged as a plugin; for every other agent it is a directory of markdown you symlink or paste.

:::{note} Requirements: the claude CLI (Claude Code) for the plugin route, and a working GaP install (Installation) so the commands the agent runs actually succeed. No GPU or API key is needed to install the skill itself. :::

Install the Claude Code plugin

The engine repo hosts a plugin marketplace named gap (.claude-plugin/marketplace.json):

claude plugin marketplace add graph-robots/graph-as-policy
claude plugin install gap@gap                  # the engine skill
claude plugin install open-robot-skills@gap    # optional: robot bundle contracts

Verify in a fresh session: ask "What robot skills are available?" — the gap skill should be listed — or invoke it directly with /gap:gap. claude plugin list shows what is installed.

Why Claude Code only needs the engine skill

The optional open-robot-skills@gap plugin surfaces the registry's bundle contracts (each bundle's SKILL.md) as Claude Code skills. You rarely need it, because robot bundles are not consumed by Claude Code — they are consumed by GaP's internal codegen agent as files on disk. When you ask the agent to generate a graph, it runs gap generate, and GaP's own LLM pipeline reads the active registries from the filesystem (Registries). For discovery, the engine skill already teaches gap skills list and gap tools show, which report the same contracts with live schemas. Install the bundle plugin only if you want bundle contracts readable in Claude Code's own context without shelling out.

Read the full file on GitHub · 191 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. yesterday First seen · 191 lines · 0 tokens per session scan A df08548939a0

Subscribe to this mod's changes

claude-code is an agent published in the GitHub repository graph-robots/graph-as-policy (124 stars, last pushed 1mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 2,302 tokens. 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.