ashlr-genome-team-init

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

A command that creates or updates an encrypted team cloud genome for the current Git repository. A Git repository is a project whose files and history are tracked by Git.

In plain words
What is it for?
An administrator uses it to initialize team encryption for a repository or rewrap the data for members who were added later. It can also target another repository directory.
Why use it?
It gives a team a shared encrypted store and can create new access envelopes when members join.

Command for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

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 An administrator uses it to initialize team encryption for a repository or rewrap the data for members who were added later. It can also target another repository directory.

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-team-init

README.md
[![agentmods](https://agentmods.dev/badge/commands/ashlrai/ashlr-plugin/ashlr-genome-team-init/github.svg)](https://agentmods.dev/commands/ashlrai/ashlr-plugin/ashlr-genome-team-init)
Your own site
<a href="https://agentmods.dev/commands/ashlrai/ashlr-plugin/ashlr-genome-team-init"><img src="https://agentmods.dev/badge/commands/ashlrai/ashlr-plugin/ashlr-genome-team-init/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 ashlr-genome-team-init

Your own site · 80×15
<a href="https://agentmods.dev/commands/ashlrai/ashlr-plugin/ashlr-genome-team-init"><img src="https://agentmods.dev/badge/commands/ashlrai/ashlr-plugin/ashlr-genome-team-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 802 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.00062 $0.00802
Opus 5 $0.00031 $0.00401
Sonnet 5 $0.00012 $0.00160
Haiku 4.5 $0.00006 $0.00080

Measured 8d ago against content hash b3179810cc41, 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-team-init 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-team-init.md · 68 lines

How it starts

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

Run the team-init script and show the user the outcome.

Steps:

  1. Run via Bash:

    bun run ${CLAUDE_PLUGIN_ROOT}/scripts/genome-team-init.ts $ARGUMENTS
    
  2. Print the script's stdout verbatim. Don't paraphrase — the user needs to see the genomeId and .cloud-id path to understand what to commit.

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

    • Exit 2: prereq missing. Most common: /ashlr-upgrade (no pro-token), /ashlr-genome-keygen (no local member keypair), team-tier not reached, no git remote.
    • Exit 3: network / server error.

Flags (forwarded via $ARGUMENTS):

Flag Purpose
--force Reinitialize even if .cloud-id already exists. This rotates the DEK — existing team envelopes stop working until re-wrapped.
--wrap-all Skip init; just mint envelopes for every team member with a pubkey on file. Use after adding a teammate (/ashlr-team-invite + they run /ashlr-genome-keygen).
--endpoint <url> Override the default https://api.ashlr.ai
--cwd <dir> Use a different repo root

What it does (fresh init)

  1. Resolves the repo URL from git remote get-url origin.
  2. POST /genome/init — server allocates a new genomeId scoped to your team.
  3. Generates a fresh 32-byte DEK client-side.
  4. Wraps the DEK for your own X25519 pubkey (via T2's wrapDek).
  5. POST /genome/:id/key-envelope — uploads the self-wrapped envelope so your push path immediately works.
  6. Writes .ashlrcode/genome/.cloud-id so subsequent pushes (and SessionStart pulls, T5) find the genome.

Commit .ashlrcode/genome/.cloud-id to the repo so teammates auto-discover the cloud genome on checkout.

What it does (--wrap-all)

  1. Reads .cloud-id, fetches your own envelope, unwraps to recover the team DEK.
  2. Lists all team members + their registered pubkeys (via GET /genome/:id/members).
  3. For each member with a pubkey, wraps the DEK and uploads the envelope.
  4. Reports who got wrapped and who was skipped (no pubkey yet — they need to run /ashlr-genome-keygen).

Read the full file on GitHub · 68 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. 8d ago First seen · 68 lines · 62 tokens per session scan A b3179810cc41

Subscribe to this mod's changes

ashlr-genome-team-init is a command published in the GitHub repository ashlrai/ashlr-plugin (3 stars, last pushed yesterday), licensed MIT. It adds 62 tokens to every session and 802 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.