ashlr-genome-push

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

A command that encrypts and uploads a repository's local Ashlr genome data to the team's cloud genome. It does nothing when team cloud storage has not been initialized.

In plain words
What is it for?
Use it to push local genome changes manually, preview what would be uploaded, or specify another repository or cloud endpoint. It is also run automatically when a session ends.
Why use it?
It keeps the shared encrypted copy up to date while preventing overlapping uploads from interfering with each other.

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 Use it to push local genome changes manually, preview what would be…

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-push

README.md
[![agentmods](https://agentmods.dev/badge/commands/ashlrai/ashlr-plugin/ashlr-genome-push.svg)](https://agentmods.dev/commands/ashlrai/ashlr-plugin/ashlr-genome-push)
Your own site
<a href="https://agentmods.dev/commands/ashlrai/ashlr-plugin/ashlr-genome-push"><img src="https://agentmods.dev/badge/commands/ashlrai/ashlr-plugin/ashlr-genome-push.svg" alt="Measured on agentmods" height="20"></a>
Per session 69 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 530 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.00069 $0.00530
Opus 5 $0.00034 $0.00265
Sonnet 5 $0.00014 $0.00106
Haiku 4.5 $0.00007 $0.00053

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

Security

Grade A, and why

ashlr-genome-push 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 6d 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-push.md · 37 lines

What it actually says

Run the push script and show the user the outcome.

Steps:

  1. Run via Bash:

    bun run ${CLAUDE_PLUGIN_ROOT}/scripts/genome-cloud-push.ts $ARGUMENTS
    
  2. Print the script's stdout verbatim. Don't paraphrase — exit-code-specific messages tell the user how to recover:

    • Exit 0: success or no-op. Nothing to do.
    • Exit 1: another push is in progress for this repo (lockfile held). Suggest retrying in a moment.
    • Exit 2: auth / network / server error OR no local member keypair. Check the stderr for the specific cause. Common fixes: /ashlr-genome-keygen, /ashlr-upgrade, ask admin to re-wrap for you.

Flags (forwarded via $ARGUMENTS):

Flag Purpose
--dry-run Enumerate + encrypt + show what would be POSTed, no network
--quiet Suppress stderr info messages — used by SessionEnd hook path
--endpoint <url> Override the default https://api.ashlr.ai
--cwd <dir> Use a different repo root (for testing)

What it does

  1. Reads .ashlrcode/genome/.cloud-id to learn which team genome to push to.
  2. Acquires a cross-process lockfile at .ashlrcode/genome/.push.lock so concurrent pushes (e.g. two MCP processes or a hook + a manual CLI) serialize cleanly.
  3. Fetches your wrapped DEK via GET /genome/:id/key-envelope (T1) and unwraps with your local X25519 private key (T2).
  4. Enumerates .ashlrcode/genome/{knowledge,vision,milestones,strategies}/*.md + manifest.json, encrypts each with the DEK via AES-256-GCM, and POSTs with a bumped per-machine vclock component.
  5. Persists the new vclock only on a successful push so a mid-push crash doesn't leave a ghost-bumped clock.
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. 6d ago First seen · 37 lines · 69 tokens per session scan A ada30f24bf14

Subscribe to this mod's changes

ashlr-genome-push is a command published in the GitHub repository ashlrai/ashlr-plugin (3 stars, last pushed 6d ago), licensed MIT. It adds 69 tokens to every session and 530 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.