graphsmith: Instructions file for Codex

AGENTS.md

graphsmith AGENTS.md is an instructions file for Codex, OpenCode from SathiaAI/graphsmith. It costs 2,394 tokens per session, scanned A, a copy of graphsmith copilot-instructions.md, MIT.

A set of operating instructions for GraphSmith, a system that turns a goal into a workflow using multiple software agents. It covers planning, step-by-step execution, saving progress, retries, and reporting what is known from the existing code.

In plain words
What is it for?
Use it when building or reviewing multi-agent workflows that need fixed routing, saved steps, limited handoffs, repeatable actions, and evidence-based claims.
Why use it?
It gives complex agent workflows a consistent structure and makes interrupted or repeated runs safer to continue.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Codex.

This is SathiaAI/graphsmith's own configuration. It tells Codex and OpenCode how to work on graphsmith itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything graphsmith configures →

Reuse

Borrowing it

Nothing to install: this file belongs to SathiaAI/graphsmith. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/SathiaAI/graphsmith/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/SathiaAI/graphsmith

Made for: Codex, OpenCode.

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 graphsmith AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sathiaai/graphsmith/agents-md/github.svg)](https://agentmods.dev/instructions/sathiaai/graphsmith/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/sathiaai/graphsmith/agents-md"><img src="https://agentmods.dev/badge/instructions/sathiaai/graphsmith/agents-md/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 graphsmith AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/sathiaai/graphsmith/agents-md"><img src="https://agentmods.dev/badge/instructions/sathiaai/graphsmith/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,394 This file is loaded in full into every session.
When invoked 2,394 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 97% copy Near-identical to another mod 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.02394 $0.02394
Opus 5.5 $0.00958 $0.00958
Sonnet 5.5 $0.00479 $0.00479
Haiku 4.5 $0.00239 $0.00239

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

Security

Grade A, and why

graphsmith AGENTS.md 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.

Origin

This is a copy

97% identical to graphsmith copilot-instructions.md — 4 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

AGENTS.md · 116 lines

How it starts

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

GraphSmith

Turn a goal into a reliable multi-agent workflow. One skill, two modes — detect which user you're serving, then apply the same engineering discipline in different voices.

The discipline (never negotiable, in either mode):

  1. A plain, deterministic manager controls flow; LLMs work only inside worker steps. Control returns to the manager after every step.
  2. Save after every step — a crashed run resumes, never restarts.
  3. Every step is safe to re-run — assume it WILL be retried.
  4. No clocks or randomness in routing — same inputs, same path.
  5. Minimal handoffs — workers get only what they need.
  6. Grounded claims — anything said about existing code cites KnoSky.
  7. One log line per step — run ID, step, status, duration.

Mode detection (do this first, silently)

Score the context. Engineer signals: user mentions frameworks, retries, state, idempotency, CI, reviews existing agent code, or the repo has tests/CI configs. Builder signals: outcome-focused language ("I want it to email my leads"), no code vocabulary, greenfield, or platform-builder context (Lovable/Replit-style).

  • Builder mode → plain English only. Banned words with the user: graph, DAG, node, edge, topology, idempotent, checkpoint, orchestrator, deterministic. Use: blueprint, worker, handoff, save point, manager, "safe to re-run."
  • Engineer mode → full vocabulary, terse output, lead with tools and diffs, skip explanations they didn't ask for. Never talk down.

If genuinely ambiguous, ask one short question; otherwise infer and proceed.


Phase 0 — Ground (KnoSky)

If the task involves an existing repo or docs folder:

  1. Run node scripts/knosky-sync.js — verifies the pinned KnoSky version is reachable via npx AND that its content matches the sha512 baked into this release (refusing on registry mismatch; no global install, no latest; supply-chain hardened per our published council reviews). Non-blocking: offline or registry failures never stop the task. Set GRAPHSMITH_OFFLINE=1 to skip all network activity in sensitive environments.
  2. From the project root run the pinned command it prints (npx -y knosky@<pinned> .) — builds the local index (nothing leaves the machine) and prints MCP config. Register it per the user's agent (Claude/Codex/Gemini/Cursor each have their own MCP settings; apply KnoSky's printed config there).
  3. Cite or flag. Every claim about existing code carries a KnoSky citation (real path). If you can't cite, say "inferring." KnoSky is a pointer index — read the live file before editing anything it points to.

Read the full file on GitHub · 116 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 · 116 lines · 2,394 tokens per session scan A a303a397ac28

Subscribe to this mod's changes

graphsmith AGENTS.md is an instructions file published in the GitHub repository SathiaAI/graphsmith (4 stars, last pushed 27d ago), licensed MIT. It adds 2,394 tokens to every session, about $0.0096 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 97% identical to graphsmith copilot-instructions.md, differing in 4 lines, and is treated as a copy.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens