ashlr-genome-rewrap

ashlr-genome-rewrap is a command for Claude Code from ashlrai/ashlr-plugin. It costs 64 tokens per session (504 once invoked), scanned A, original, MIT.

An administrator-only command that re-wraps a team’s encrypted data-encryption key for members who have current public keys. A public key is the shareable half of a key pair used for encryption.

In plain words
What is it for?
Run it after a teammate rotates or first creates their key pair, or with the rotation option after a suspected key compromise.
Why use it?
It restores members’ access after a key rotation or adds access for a new teammate without requiring a new team key, unless the key itself is rotated.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the ashlr plugin — 11 skills, 36 commands, 5 agents, 7 hooks, 1 MCP server shipped together

Good fit Run it after a teammate rotates or first creates their key pair, or with the rotation option after a suspected key compromise.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add ashlrai/ashlr-plugin
Claude Code
/plugin install ashlr

Made for: Claude Code.

Or install ashlr, the plugin that ships this one along with the rest of its 11 skills, 36 commands, 5 agents, 7 hooks, 1 MCP server.

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 ashlr-genome-rewrap

README.md
[![agentmods](https://agentmods.dev/badge/commands/ashlrai/ashlr-plugin/ashlr-genome-rewrap.svg)](https://agentmods.dev/commands/ashlrai/ashlr-plugin/ashlr-genome-rewrap)
Your own site
<a href="https://agentmods.dev/commands/ashlrai/ashlr-plugin/ashlr-genome-rewrap"><img src="https://agentmods.dev/badge/commands/ashlrai/ashlr-plugin/ashlr-genome-rewrap.svg" alt="Measured on agentmods" height="20"></a>
Per session 64 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 504 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.00064 $0.00504
Opus 5 $0.00032 $0.00252
Sonnet 5 $0.00013 $0.00101
Haiku 4.5 $0.00006 $0.00050

Measured 8d ago against content hash 26d9219f29b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

ashlr-genome-rewrap 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 8d 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/ashlr-genome-rewrap.md · 49 lines

What it actually says

Run the rewrap script and show the user its output verbatim.

Steps:

  1. Run via Bash:

    bun run ${CLAUDE_PLUGIN_ROOT}/scripts/genome-rewrap.ts $ARGUMENTS
    
  2. Print the script's stdout verbatim — the per-member wrap log is what the admin needs to confirm success.

  3. If the script exits non-zero, surface its stderr:

    • Exit 2: prereq missing — likely no Pro token, no local keypair, or no .cloud-id in this repo. Suggest the relevant skill: /ashlr-upgrade, /ashlr-genome-keygen, or /ashlr-genome-team-init.
    • Exit 3: network / server error. Suggest checking $ASHLR_API_URL and the team's tier (rewrap requires Team tier).

Flags (forwarded via $ARGUMENTS):

Flag Purpose
--rotate-dek Generate a fresh team DEK before wrapping. Invalidates every existing envelope. Use after a suspected key compromise.
--endpoint <url> Override the default https://api.ashlr.ai
--cwd <dir> Repo to operate on (default cwd)

When to use

  • A teammate ran /ashlr-genome-keygen --force (rotated their key); their previous envelope no longer decrypts.
  • A new teammate joined the team and ran /ashlr-genome-keygen; they now have a pubkey on file but no envelope yet.
  • Suspected key compromise — run with --rotate-dek to mint a fresh DEK and invalidate every prior envelope at once.

What it does

Re-wraps the existing team DEK for every member with a current pubkey on file. With --rotate-dek, generates a fresh DEK first so every old envelope is invalidated.

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. 8d ago First seen · 49 lines · 64 tokens per session scan A 26d9219f29b3

Subscribe to this mod's changes

ashlr-genome-rewrap is a command published in the GitHub repository ashlrai/ashlr-plugin (3 stars, last pushed yesterday), licensed MIT. It adds 64 tokens to every session and 504 once invoked, about $0.0003 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.