You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cost-intelligence report: token reduction, estimated versus actual cost, CPAO, and top savings sources; example: lean-ctx savings --period month --format markdown
Outcome report for recent assessed tasks, including acceptance and CPAO; example: lean-ctx value-report --format markdown --last 20
value [--session <id>|--all] [--json]
What lean-ctx did in a session (tokens kept out of context, security events), recomputed from the signed savings ledger and audit trail (chain integrity checked; token counts are local, not provider-billed); exits 1 when a chain is broken
statusline [--wrap "<cmd>"]
Claude Code status line (statusLine.command), set by init --agent claude when none exists; --wrap chains your own status line and appends lean-ctx's segment to its first line
prompt-segment [--shell zsh|bash|fish|plain]
One dim shell-prompt segment for the current project, or nothing; wired by init --prompt (zsh/bash/fish, off removes it), plain for Starship and other prompt engines — see value display
init --git-trailer [off]
Opt-in prepare-commit-msg hook that adds a lean-ctx: trailer with what was saved since the last trailered commit; never touches an existing hook or fails a commit
shadow [--latest|--list|--force]
Inspect or generate local baseline-versus-treatment recommendations; example: lean-ctx shadow --latest
token-report (report-tokens)
Token + memory report; --json
learning
Adaptive-learning state: status, export [file], import <file|-> — share learned thresholds + LITM calibration with your team (secret-free, idempotent merge)
introspect
Cognition v2 activity: cognition (which science subsystems are wired/active, --json)
discover
Find uncompressed commands in shell history; --card (shareable "before" SVG)
Index utilities: status, build, build-full, build-graph, watch
heatmap
Context heatmap; --top, --by
cep
CEP impact report (score trends)
benchmark
run, report, eval, compare
Advanced — network / providers / team / plugins
Command
Purpose
serve
MCP over Streamable HTTP; --daemon, --root PATH[:ALIAS] (multi-repo), --rrf-k
proxy
API proxy: start, stop, status, enable, disable, cleanup
daemon
IPC daemon: start, stop, status, enable, disable
provider
External provider OAuth (Jira): auth, logout, list
team
Hosted Team service (account API): status, presence [list|heartbeat|leave], lease [list|acquire|renew|release], bus [post|read], graph [list|read|put], knowledge [list|add], owner seats create, show, member [list|revoke], invite [list|create|revoke], join (invite code from LEAN_CTX_TEAM_INVITE_CODE or stdin), claim (token from LEAN_CTX_TEAM_MEMBERSHIP_TOKEN or stdin), leave, delete; --organization <uuid>, --json. Team members' text is admitted and released by the context gateway before it is shown; what you send is admitted for egress first
The dispatch exposes ~35 commands not yet in lean-ctx help all, including
provider, team, heatmap, ledger, control, plan, compile,
compact, learn, stats, bypass, safety-levels, and several subcommands
(graph export-html, proxy enable/disable, cache prune, full pack
actions). These are intentionally advanced/internal but should be surfaced in a
future help advanced tier. See Journey 1 UX notes.