ashlr-genome-init

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

A command that creates a .ashlrcode/genome folder containing compact project architecture and convention information. This genome helps Ashlr search project context.

In plain words
What is it for?
Use it to initialize project knowledge, optionally overwrite an existing genome, or create shorter summaries with a local Ollama model.
Why use it?
It prepares the project for genome-based searches and avoids repeatedly processing the same background information.

Command for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions CLAUDE.md.

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 initialize project knowledge, optionally overwrite an existing genome, or…

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/ashlrai/ashlr-plugin/ashlr-genome-init.svg)](https://agentmods.dev/commands/ashlrai/ashlr-plugin/ashlr-genome-init)
Your own site
<a href="https://agentmods.dev/commands/ashlrai/ashlr-plugin/ashlr-genome-init"><img src="https://agentmods.dev/badge/commands/ashlrai/ashlr-plugin/ashlr-genome-init.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 251 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.00040 $0.00251
Opus 5 $0.00020 $0.00125
Sonnet 5 $0.00008 $0.00050
Haiku 4.5 $0.00004 $0.00025

Measured 6d ago against content hash 287238532f6b, 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-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 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-init.md · 25 lines

What it actually says

Initialize a genome for the user's current project.

Run the following Bash command:

bun run ${CLAUDE_PLUGIN_ROOT}/scripts/genome-init.ts --dir "$(pwd)"

Pass --force only if the user explicitly asks to overwrite an existing genome. Pass --minimal only if the user asks to skip the auto-populated architecture/conventions sections. Pass --summarize if the user wants to use a local Ollama model to generate concise CLAUDE.md summaries instead of truncating. Requires Ollama running locally — falls back gracefully to truncation if unavailable.

After the command runs:

  • Relay the script's stdout verbatim as the response.
  • If the script exits non-zero because a genome already exists, tell the user to re-run with /ashlr-genome-init --force only if they confirm they want to overwrite.
  • Do not read or modify any generated files unless the user asks.

No preamble, no trailing summary beyond the script's output.

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 · 25 lines · 40 tokens per session scan A 287238532f6b

Subscribe to this mod's changes

ashlr-genome-init is a command published in the GitHub repository ashlrai/ashlr-plugin (3 stars, last pushed 6d ago), licensed MIT. It adds 40 tokens to every session and 251 once invoked, about $0.0002 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.