session-steward 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.8.0] - 2026-08-23
4
+
5
+ ### Added
6
+
7
+ - Session details now show how many tokens a Codex or Claude session used, with clear breakdowns for input, cache use, output, reasoning, models, and inherited work in forked sessions.
8
+ - The same token breakdown is available in the terminal with `--tokens`.
9
+
3
10
  ## [0.7.0] - 2026-08-20
4
11
 
5
12
  ### Added
@@ -123,6 +130,7 @@
123
130
  - Support for custom Codex home folders and a saved folder preference.
124
131
  - Streaming and bounded-memory discovery for large session collections and transcripts.
125
132
 
133
+ [0.8.0]: https://github.com/mallikcheripally/session-steward/compare/v0.7.0...v0.8.0
126
134
  [0.7.0]: https://github.com/mallikcheripally/session-steward/compare/v0.6.0...v0.7.0
127
135
  [0.6.0]: https://github.com/mallikcheripally/session-steward/compare/v0.5.2...v0.6.0
128
136
  [0.5.2]: https://github.com/mallikcheripally/session-steward/compare/v0.5.1...v0.5.2
package/README.md CHANGED
@@ -21,6 +21,7 @@ Session Steward makes session cleanup safer by finding those records, showing wh
21
21
  - Filter active or archived sessions by workspace, name, or session ID.
22
22
  - Inspect session details and affected records before deletion.
23
23
  - Read a session timeline of what you asked, what changed, and which commands ran.
24
+ - See how many tokens a session used, split into fresh input, cached input, cache writes, and output.
24
25
  - Choose standard or thorough cleanup.
25
26
  - Use custom Codex or Claude home folders across browser and terminal sessions.
26
27
 
@@ -165,6 +166,20 @@ With `--json`, each session carries its own `events`, plus a `coverage` summary
165
166
  session-steward-cli --json --limit 5 --events
166
167
  ```
167
168
 
169
+ Use `--tokens` to count what a session spent. The total is split into fresh input, cached input, cache writes, and output, with reasoning reported as a share of output where the provider records it:
170
+
171
+ ```bash
172
+ session-steward-cli --tokens
173
+ ```
174
+
175
+ In the interactive list, `tokens` toggles the same breakdown into `inspect`. With `--json`, each session carries a `tokens` object:
176
+
177
+ ```bash
178
+ session-steward-cli --json --limit 5 --tokens
179
+ ```
180
+
181
+ Cached input usually dominates, because the whole conversation is re-sent on every turn. A forked session reports its own work separately from the tokens it inherited from the session it branched from, so the two are never added together.
182
+
168
183
  The interactive terminal accepts the same filters:
169
184
 
170
185
  ```text
@@ -176,6 +191,7 @@ archive archived
176
191
  workspace /path/to/project
177
192
  internals
178
193
  supporting
194
+ tokens
179
195
  cleanup standard
180
196
  cleanup thorough
181
197
  overview
@@ -29,6 +29,9 @@ const { values } = parseArgs({
29
29
  events: {
30
30
  type: "boolean",
31
31
  },
32
+ tokens: {
33
+ type: "boolean",
34
+ },
32
35
  "events-limit": {
33
36
  type: "string",
34
37
  },
@@ -116,6 +119,7 @@ async function main() {
116
119
  providerId,
117
120
  search: values.search ?? "",
118
121
  sort: values.sort ?? "updated",
122
+ tokens: values.tokens ?? false,
119
123
  workspace: values.workspace,
120
124
  });
121
125
  }