productionos-update

productionos-update is a command for Claude Code from ShaheerKhawaja/ProductionOS. It costs 15 tokens per session (977 once invoked), scanned A, original, MIT.

An updater for the ProductionOS software toolkit that checks the installed version and retrieves the latest version from GitHub.

In plain words
What is it for?
Use it to inspect the current installation, check for updates, and update ProductionOS.
Why use it?
It reduces the work of finding the installation, checking for a newer release, and updating the toolkit manually.

Command for Claude Code

Written for Claude Code: Claude Code plugin machinery. Also seen: mentions Codex.

Part of the productionos plugin — 4 skills, 41 commands, 11 agents shipped together

Good fit Use it to inspect the current installation, check for updates, and update ProductionOS.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/shaheerkhawaja/productionos/productionos-update
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.

Clone the repo
git clone --depth 1 https://github.com/ShaheerKhawaja/ProductionOS

Made for: Claude Code.

Or install productionos, the plugin that ships this one along with the rest of its 4 skills, 41 commands, 11 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 productionos-update

README.md
[![agentmods](https://agentmods.dev/badge/commands/shaheerkhawaja/productionos/productionos-update/github.svg)](https://agentmods.dev/commands/shaheerkhawaja/productionos/productionos-update)
Your own site
<a href="https://agentmods.dev/commands/shaheerkhawaja/productionos/productionos-update"><img src="https://agentmods.dev/badge/commands/shaheerkhawaja/productionos/productionos-update/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 productionos-update

Your own site · 80×15
<a href="https://agentmods.dev/commands/shaheerkhawaja/productionos/productionos-update"><img src="https://agentmods.dev/badge/commands/shaheerkhawaja/productionos/productionos-update.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 977 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00015 $0.00977
Opus 5 $0.00008 $0.00489
Sonnet 5 $0.00003 $0.00195
Haiku 4.5 $0.00002 $0.00098

Measured 10d ago against content hash 2bfe89001653, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

productionos-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 10d 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.

.claude/commands/productionos-update.md · 144 lines

How it starts

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

ProductionOS Self-Update

You are the update mechanism for the ProductionOS plugin.

Step 0: Preamble

Before executing, run the shared ProductionOS preamble (templates/PREAMBLE.md):

  1. Environment check — version, agent count, stack detection
  2. Prior work check — read .productionos/ for existing output
  3. Success criteria — successful update to latest version

Update Protocol

Step 1: Detect Current Installation

# Find where ProductionOS is installed
INSTALL_DIR=""
CODEX_PLUGIN_DIR=""

# Check marketplace installation
if [ -d "$HOME/.claude/plugins/marketplaces/productionos" ]; then
  INSTALL_DIR="$HOME/.claude/plugins/marketplaces/productionos"
fi

# Check Codex plugin installation
if [ -d "$HOME/.codex/plugins/productionos" ]; then
  CODEX_PLUGIN_DIR="$HOME/.codex/plugins/productionos"
fi

# Check local repo
if [ -d "$HOME/ProductionOS" ]; then
  REPO_DIR="$HOME/ProductionOS"
fi

Read the current version from:

  1. $INSTALL_DIR/.claude-plugin/plugin.json.version field
  2. $REPO_DIR/VERSION if exists
  3. Report current version to user

Step 2: Check for Updates

# Fetch latest from GitHub without merging
cd "$REPO_DIR" 2>/dev/null || cd "$INSTALL_DIR"
git fetch origin main 2>/dev/null

# Compare versions
LOCAL_VERSION=$(cat VERSION 2>/dev/null || jq -r .version .claude-plugin/plugin.json)
REMOTE_LOG=$(git log origin/main --oneline -10 2>/dev/null)

If no git repo found, inform user:

ProductionOS is not installed from git.
To install the updatable version:
  git clone https://github.com/ShaheerKhawaja/ProductionOS.git ~/ProductionOS
  claude plugin install productionos

Step 3: Show Changelog

Show the user what changed:

git log HEAD..origin/main --oneline --no-merges 2>/dev/null

If there are changes, show:

ProductionOS Update Available
───────────────────────────────
Current: vX.Y.Z
Latest:  vA.B.C

Changes:
  - commit message 1
  - commit message 2
  ...

Update now? (This will pull latest changes)

Read the full file on GitHub · 144 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. 10d ago First seen · 144 lines · 15 tokens per session scan A 2bfe89001653

Subscribe to this mod's changes

productionos-update is a command published in the GitHub repository ShaheerKhawaja/ProductionOS (8 stars, last pushed 4mo ago), licensed MIT. It adds 15 tokens to every session and 977 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.