/ashlr-genome-init
Initialize a .ashlrcode/genome/ in the current project so ashlr__grep routes through it.
When to use
Once per project, after installing ashlr. Without a genome, ashlr__grep falls back to ripgrep + truncation (still saves tokens, but not as much).
What it does
The command runs bun run ${CLAUDE_PLUGIN_ROOT}/scripts/genome-init.ts --dir "$(pwd)" and relays its output verbatim. The script:
- Creates
.ashlrcode/genome/with section files undervision/,strategies/,knowledge/andmilestones/, plusmanifest.json - Writes a decision-record stub to
knowledge/decisions.md - Auto-populates
knowledge/architecture.mdfrom a baseline scan of the project andknowledge/conventions.mdfrom its config files - Scans child directories for related projects and, when it finds any, writes
knowledge/workspace.md - In a git repo, adds a
post-commithook that runs the genome commit watcher in the background. An existing hook is appended to, never overwritten
Flags
| Flag | Effect |
|---|---|
--force | Delete and recreate an existing genome. Without it, init refuses to overwrite |
--minimal | Skip the scan and write stub architecture.md and conventions.md files instead |
--summarize | Summarize discovered projects' CLAUDE.md files with a local Ollama model instead of truncating them. Falls back to truncation when Ollama is not running or has no models; /ashlr-ollama-setup gets a model ready |
Output
From a run in a small git repo named demo-app:
With --minimal, the auto-populated: line reads (minimal — stubs only). When --summarize used a model, a summaries: line names it.
If a genome already exists, the script exits 1 with:
After init
The genome loop updates the genome automatically as you work; /ashlr-genome-loop shows its status and turns it on or off. You don't need to re-run init.
Related
/ashlr-genome-loop— inspect and control the auto-update loop/ashlr-ollama-setup— prepare a local model for--summarize- Genome concepts — how the propose/consolidate cycle works