ashlr

/ashlr-lean-tools

Highest-impact token-saving habits for Claude Code tool use. Read-once, batch edits, orient-before-search, skip verification reads, grep-before-read, concise output at high spend. Reduces session token cost 30–60%.

/ashlr-lean-tools is an opt-in discipline skill that eliminates the most common token-waste patterns in long Claude Code sessions. Each rule targets one specific anti-pattern.

Quick start

/ashlr-lean-tools on       # enable
/ashlr-lean-tools off      # disable
/ashlr-lean-tools status   # show whether the skill is active

Natural-language triggers also work: "use lean tool habits", "stop re-reading files".

Rules

RuleWhat it prevents
Read-onceRe-reading a file already in context — the single largest source of avoidable input-token spend
Batch edits via ashlr__multi_editSequential single-file edits; 2+ edits to the same file become one round-trip
Orient before searchingRunning grep or glob before a task-start ashlr__orient call
Skip verification reads after edit/writeReading a file just to confirm an edit that already returned a diff
Grep-before-readOpening a file to find something when ashlr__grep would have returned the relevant lines directly
Shift to concise output at high spendPreamble and trailing summaries when session output has exceeded ~5,000 tokens
Prefer ashlr__bash for verbose commandsNative Bash on commands with large stdout (test runners, git log, find, npm ls)

When to enable

ashlr-lean-tools is most valuable in:

  • Multi-file refactors (read-once + batch edits compound)
  • Long debugging sessions (grep-before-read + skip verification reads)
  • Any session where you expect to touch the same files repeatedly

It is redundant for single-file sessions shorter than ~10 tool calls.

Persistence

The active state persists across sessions in ~/.ashlr/lean-tools.json:

{ "enabled": true }
  • /ashlr-search — genome-aware search habits (subset of lean-tools, search-specific)
  • /ashlr-cost-refactor — structured discipline for refactoring tasks specifically
  • /ashlr-efficient — output structure reshaping (answer-first, tables, no filler)
  • /ashlr-brief — prose volume reduction (works alongside lean-tools)

On this page