/ashlr-eco-mode
Toggle eco mode — aggressive token-saving behaviors that trade some response richness for lower session cost.
Toggle eco mode for the current session.
Usage
What eco mode does
When ASHLR_ECO=1 is set, the following behaviors activate automatically:
| Behavior | Details |
|---|---|
| Auto-compact every 15 tool calls | Triggers /ashlr-compact automatically to prevent stale result accumulation |
| Force genome grep | Errors if .ashlrcode/genome/ is missing, with a link to /ashlr-genome-init |
| Lower summarization threshold | Reduces LLM summarization threshold from 16384 → 12288 bytes (fires more often) |
| Smart Task routing | Task tool calls without explicit subagent_type are routed to ashlr:ashlr:explore when the prompt is question-shaped (starts with what/where/how/find/explain/why/which/when/who) |
| Suppress image attachments | Image data in tool results is stripped before processing |
Environment variable
| Variable | Value | Effect |
|---|---|---|
ASHLR_ECO | 1 | Eco mode on |
ASHLR_ECO | unset / 0 | Eco mode off |
The eco router hook (hooks/pretooluse-eco-router.ts) reads ASHLR_ECO and injects subagent_type: "ashlr:ashlr:explore" into question-shaped Task tool calls.
The status line shows a eco badge when ASHLR_ECO=1.
Steps
on
- Set env var via Bash:
- Print:
off
- Unset env var via Bash:
- Print: "Eco mode OFF. All behaviors restored to defaults."
status
- Check
ASHLR_ECOin environment. - If
ASHLR_ECO=1: - If off:
No argument
Print the status (same as status).