Dokumentation

ctx_gain - Tool Reference

Gain report (includes Wrapped via action=wrapped).

ctx_gain Session & Monitoring

Gain report (includes Wrapped via action=wrapped).

Parameters
4
Required
0
Actions
9
Token Impact
Report itself costs ~100-200 tokens.

When to Use

Checking how many tokens lean-ctx saved in the current session. Useful for reporting and optimization.

When Not to Use

During active development - checking gain too often wastes tokens itself.

Parameters

Parameter Type Required Description
action "status" | "report" | "score" | "cost" | "tasks" | "heatmap" | "wrapped" | "agents" | "json" No -
limit integer No -
model string No -
period "week" | "month" | "all" No -

Actions

status

ctx_gain action="status"

report

ctx_gain action="report"

score

ctx_gain action="score"

cost

ctx_gain action="cost"

tasks

ctx_gain action="tasks"

heatmap

ctx_gain action="heatmap"

wrapped

ctx_gain action="wrapped"

agents

ctx_gain action="agents"

json

ctx_gain action="json"

CLI Equivalent

This tool is also available via the CLI:

lean-ctx gain [--score] [--cost] [--daily] [--wrapped]

Related Tools

Schema MD5: 689b1f4c29249850e4bd369168bcb698 ← Back to all tools