rollback

A command for returning a Nometria app to an earlier deployment version. A deployment version is a previously released copy of the app.

In plain words
What is it for?
Use it to list recent deployments, select a target version, and roll the app back.
Why use it?
It provides a way to recover from a problematic release by choosing an earlier deployment.

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/nometria/claude-code-plugin/rollback
Clone the repo
git clone --depth 1 https://github.com/nometria/claude-code-plugin
Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 626 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00006 $0.00626
Opus 5 $0.00003 $0.00313
Sonnet 5 $0.00001 $0.00125
Haiku 4.5 $0.00001 $0.00063

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

Security

Grade A, and why

rollback scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

allowed-tools: Bash(curl:*), Bash(cat:*), Bash(grep:*), Bash(echo:*), Read
commands/rollback.md · 83 lines

What it actually says

Rollback Deployment

Roll back your Nometria app to a previous deployment version.

Step 1: Resolve token

TOKEN="${NOMETRIA_API_KEY:-${NOMETRIA_TOKEN:-$(grep -s 'NOMETRIA_API_KEY\|NOMETRIA_TOKEN' .env .env.local 2>/dev/null | head -1 | cut -d= -f2- | tr -d ' "'"'"'')}}"
echo "Token found: $([ -n "$TOKEN" ] && echo 'yes' || echo 'no')"

If no token: tell the user to run /nometria-login and stop.

Step 2: Identify the app

cat nometria.json 2>/dev/null

Use app_id from nometria.json. If not found, list migrations and ask.

Step 3: List recent deployments

curl -s -X POST https://app.nometria.com/v1/deployments \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $TOKEN" \
  -d "{\"app_id\": \"$APP_ID\"}"

Display as a numbered list:

Recent deployments for <app_name>:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

  1. dep_abc123  live      2026-04-06 12:00  (current)
  2. dep_xyz789  live      2026-04-05 18:30
  3. dep_def456  rolled_back  2026-04-04 09:15

Step 4: Select target

If $ARGUMENTS was provided, use it as the deployment ID.

Otherwise, ask the user which deployment to roll back to (default: #2, the previous deployment).

Step 5: Execute rollback

Always confirm with the user before rolling back.

curl -s -X POST https://app.nometria.com/v1/deployments/$TARGET_ID/rollback \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $TOKEN" \
  -d "{\"app_id\": \"$APP_ID\"}"

Step 6: Report result

On success:

Rolled back successfully.

  From: dep_abc123 (2026-04-06 12:00)
  To:   dep_xyz789 (2026-04-05 18:30)
  URL:  <deploy_url>

On failure, show the error and suggest:

Rollback failed. Check the dashboard: https://nometria.com/dashboard Or view logs with /logs.

Execute all curl commands and display the results.

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 · 83 lines · 6 tokens per session scan A 0c15e5036181

Subscribe to this mod's changes

rollback is a command published in the GitHub repository nometria/claude-code-plugin (3 stars, last pushed 1mo ago), licensed MIT. It adds 6 tokens to every session and 626 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.