Repository navigation
v1.12.0 - Token-Efficient CLI & Mandatory Multi-Agent
Token Efficiency (CLAUDE_TOKEN_EFFICIENCY=1, default enabled)
Two-layer approach to minimize context token consumption:
-
Behavioral guidance (
system-prompts/token_efficient_cli.md): Injected via SessionStart hook with mandatory MUST/MUST NOT rules for compact CLI flags (git -sb,ruff --output-format concise --quiet,pytest -q --tb=short, etc). Rules added to all 8 agent definitions and orchestrator template. -
Output compression (
hooks/compact_run.py): PreToolUse hook rewrites matching Bash commands throughcompact_run.py. Supports git (push/pull/commit/fetch/add/merge/rebase/stash), pytest, cargo test, npm/pnpm/yarn/bun test, npx (vitest/jest/mocha/playwright), go test, make test/check, docker/kubectl logs.
Mandatory Multi-Agent Execution
- Plan mode defaults to team mode when
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 - Minimum 2 subtasks per plan (single-subtask plans prohibited)
- Execution section with teammate/agent table in plan output format
- 3 reinforcement points in workflow_orchestrator.md
Test Suite (196 tests)
| File | Tests | Coverage |
|---|---|---|
test_compact_run.py |
100 | All output compression handlers |
test_token_rewrite_hook.py |
~50 | Command matching, metachar, env gating |
test_inject_token_efficiency.py |
~36 | Injection hook, JSON output |
test_integration.py |
10 | End-to-end subprocess |
CI enabled with ruff lint + pytest.
Other Changes
- Statusline reorganized: row 1 static info, row 2 dynamic metrics
- Removed
alwaysThinkingEnabledfrom settings - Windows
.execommand normalization - Configurable subprocess timeout (
COMPACT_RUN_TIMEOUT, default 120s)
Full Changelog: v1.11.1...v1.12.0