@nightlab-agent/subagent-spend 0.8.0 → 0.8.1

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.
@@ -8,7 +8,7 @@
8
8
  "name": "subagent-spend",
9
9
  "source": "./",
10
10
  "description": "A spend cap for interactive sessions, and per-subagent tokens, rate-limit windows, context fill, cost, steps, tool calls and tool errors of a Claude Code session, in a notice under the prompt, local files and panes (the usage pane not yet seen on a screen).",
11
- "version": "0.8.0",
11
+ "version": "0.8.1",
12
12
  "category": "productivity"
13
13
  }
14
14
  ],
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "subagent-spend",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "A spend cap for interactive sessions, and per-subagent tokens, rate-limit windows, context fill, cost, steps, tool calls and tool errors of a Claude Code session, in a notice under the prompt, local files and panes (the usage pane not yet seen on a screen).",
5
5
  "author": {
6
6
  "name": "Nightlab"
package/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  The form is Keep a Changelog; versions follow SemVer.
4
4
 
5
+ ## 0.8.1 - 2026-11-02
6
+
7
+ ### Changed
8
+ - README: the opening lines name the spend cap and link its section. No code change.
9
+
5
10
  ## 0.8.0 - 2026-11-01
6
11
 
7
12
  ### Added
package/README.md CHANGED
@@ -1,14 +1,14 @@
1
1
  # subagent-spend
2
2
 
3
- Claude Code meters: subagent tokens, usage limits and turn counts.
3
+ Claude Code meters: subagent tokens, usage limits and turn counts, and a
4
+ spend cap per session that stops requests at the limit you set
5
+ ([Spend cap](#spend-cap)).
4
6
 
5
- This mod (a plugin that adds behaviour to Claude Code) shows three things in
6
- one line under the prompt and writes each to a small local file a script can
7
- read: the tokens each subagent used, summed per subagent; the usage limits;
8
- and a running count of steps, tool calls and tool errors. If you set one, a
9
- spend cap stops sending requests once an interactive session's cost reaches it. It also has side
10
- panes: the subagent pane is seen below; the Usage pane is not yet seen on a
11
- real screen. Nothing leaves your machine.
7
+ Install at the Claude Code prompt (more under [Install](#install)):
8
+
9
+ ```
10
+ /plugin install subagent-spend --marketplace nightlab-agent/subagent-spend
11
+ ```
12
12
 
13
13
  ![Claude Code after three subagents ran: the subagent pane lists the three with their turns and tokens, and the line under the prompt reads subagents 3, tok 218k, then the usage windows, cost and step counts](https://raw.githubusercontent.com/nightlab-agent/subagent-spend/c676e8c3462af96a5b8d581b0adb479fa706f470/docs/preview.png)
14
14
 
@@ -18,6 +18,15 @@ fits. `tok` counts every token the subagents sent and got, cache reads
18
18
  included, so it is larger than the token figure each subagent reports when it
19
19
  returns. At 120 columns the same session drew no pane and the end of the line
20
20
  was cut with "…".
21
+ A Short of it, redrawn large: https://www.youtube.com/shorts/F_NQxGPtnco
22
+
23
+ This mod (a plugin that adds behaviour to Claude Code) shows three things in
24
+ one line under the prompt and writes each to a small local file a script can
25
+ read: the tokens each subagent used, summed per subagent; the usage limits;
26
+ and a running count of steps, tool calls and tool errors. If you set one, a
27
+ spend cap stops sending requests once an interactive session's cost reaches it. It also has side
28
+ panes: the subagent pane is seen above; the Usage pane is not yet seen on a
29
+ real screen. Nothing leaves your machine.
21
30
 
22
31
  ## Install
23
32
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nightlab-agent/subagent-spend",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Claude Code mod: a spend cap for interactive sessions, and per-subagent tokens, rate-limit windows, context fill, cost, steps, tool calls and tool errors of a session, in a notice under the prompt, local files and panes (the usage pane not yet seen on a screen).",
5
5
  "keywords": [
6
6
  "claude-code",
package/subagent_spend.py CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env python3
2
- """subagent-spend 0.8.0: attribute Claude Code token usage to each subagent.
2
+ """subagent-spend 0.8.1: attribute Claude Code token usage to each subagent.
3
3
 
4
4
  subagent_spend.py hook SubagentStop hook: reads the hook JSON on stdin, sums the usage
5
5
  in the subagent transcript, appends one line to the session's rows file.