sop-update

sop-update is a command for coding agents from Gnayj/claude-code-sop. It costs 89 tokens per session (9,084 once invoked), scanned A, original, MIT.

An update command for refreshing files created by the ccsop delivery workflow to the current plugin version while preserving local edits.

In plain words
What is it for?
Use it to update ccsop-owned files, refresh untouched starter files, report conflicts, or perform the listed rollback actions.
Why use it?
It keeps the workflow documentation and templates current without silently overwriting files that someone changed.

Command

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the ccsop plugin — 5 skills, 5 commands, 3 agents shipped together

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/gnayj/claude-code-sop/sop-update
Clone the repo
git clone --depth 1 https://github.com/Gnayj/claude-code-sop

Or install ccsop, the plugin that ships this one along with the rest of its 5 skills, 5 commands, 3 agents.

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 sop-update

README.md
[![agentmods](https://agentmods.dev/badge/commands/gnayj/claude-code-sop/sop-update.svg)](https://agentmods.dev/commands/gnayj/claude-code-sop/sop-update)
Your own site
<a href="https://agentmods.dev/commands/gnayj/claude-code-sop/sop-update"><img src="https://agentmods.dev/badge/commands/gnayj/claude-code-sop/sop-update.svg" alt="Measured on agentmods" height="20"></a>
Per session 89 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 9,084 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.00089 $0.09084
Opus 5 $0.00044 $0.04542
Sonnet 5 $0.00018 $0.01817
Haiku 4.5 $0.00009 $0.00908

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

Security

Grade A, and why

sop-update 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 3d 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.

commands/sop-update.md · 495 lines

How it starts

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

/sop-update — incremental update of ccsop-owned files

This is the single-source repair loop: ccsop-owned generic files are re-materialized from the plugin; local breakpoint/overlay files are never touched. Plugin root = ${CLAUDE_PLUGIN_ROOT}; target repo = ${CLAUDE_PROJECT_DIR}. $ARGUMENTS may contain --force, a path filter, or one exclusive migration action: --rollback-codex-skills / --rollback-config-schema-v1.

Host task-tool guard (whole command): the numbered steps below are the complete execution plan. Do not call any host task/todo-tracking tool, including but not limited to TaskCreate, TaskUpdate, TaskList, TaskGet, and TodoWrite, and do not discover such a tool just to mirror this plan. These tools are not required for updating and may be absent from the live discovered-tool set. A live-schema user-question tool is allowed only at a step below that explicitly requires the user's choice (for example the per-file conflict choice in Step 2 or the C5 migration adjudication in Step 2.C); do not invent any other interactive decision.

Step 0 — Orphaned-root guard

If ${CLAUDE_PLUGIN_ROOT}/.orphaned_at exists, abort immediately: the resolved plugin root is an orphaned cache snapshot (the plugin was updated mid-session and the harness still points at the old dir). Comparing against it silently reports everything up-to-date against a stale version. Tell the user: "plugin root is an orphaned snapshot — restart the session / reload plugins, then re-run /sop-update." Do not auto-resolve to a sibling live directory.

Before any Codex skill lifecycle decision, read ${CLAUDE_PLUGIN_ROOT}/templates/control-surface/codex-skill-host-contract.md. Its minimum CLI, canonical/legacy roots, five-entry set, preserve-only gate behavior, and rollback flag are the machine-derived authority; do not reconstruct those facts from this prose.

Step 1 — Read the manifest

Read .ccsop/manifest.json. If absent, tell the user to run /sop-init first and stop.

Read the full file on GitHub · 495 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. 3d ago First seen · 495 lines · 89 tokens per session scan A a80b549bf5a2

Subscribe to this mod's changes

sop-update is a command published in the GitHub repository Gnayj/claude-code-sop (2 stars, last pushed 22d ago), licensed MIT. It adds 89 tokens to every session and 9,084 once invoked, about $0.0004 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.