@nightlab-agent/subagent-spend 0.8.0 → 0.8.2
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/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +11 -0
- package/README.md +24 -8
- package/package.json +2 -2
- package/subagent_spend.py +1 -1
|
@@ -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.
|
|
11
|
+
"version": "0.8.2",
|
|
12
12
|
"category": "productivity"
|
|
13
13
|
}
|
|
14
14
|
],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "subagent-spend",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
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,17 @@
|
|
|
2
2
|
|
|
3
3
|
The form is Keep a Changelog; versions follow SemVer.
|
|
4
4
|
|
|
5
|
+
## 0.8.2 - 2026-11-03
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
- README: the opening says what an unwatched long job costs before what the plugin does, and the spend cap
|
|
9
|
+
picture (seen 2026-10-31) is on the first screen. No code change.
|
|
10
|
+
|
|
11
|
+
## 0.8.1 - 2026-11-02
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
- README: the opening lines name the spend cap and link its section. No code change.
|
|
15
|
+
|
|
5
16
|
## 0.8.0 - 2026-11-01
|
|
6
17
|
|
|
7
18
|
### Added
|
package/README.md
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
# subagent-spend
|
|
2
2
|
|
|
3
|
-
Claude Code
|
|
3
|
+
Hand Claude Code a long job and its subagents keep spending tokens while you
|
|
4
|
+
are away. This plugin puts what they used, your usage limits and a count of
|
|
5
|
+
steps and tool calls in one line under the prompt. If you set a dollar cap, once a session's cost
|
|
6
|
+
reaches it no new request goes out ([Spend cap](#spend-cap)).
|
|
4
7
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
Install at the Claude Code prompt (more under [Install](#install)):
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
/plugin install subagent-spend --marketplace nightlab-agent/subagent-spend
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+

|
|
15
|
+
|
|
16
|
+
The spend cap, seen on 2026-10-31: a $0.10 cap, and the next step got the
|
|
17
|
+
line above instead of a request ([Spend cap](#spend-cap)). The line under
|
|
18
|
+
the prompt, after three subagents ran:
|
|
12
19
|
|
|
13
20
|

|
|
14
21
|
|
|
@@ -18,6 +25,15 @@ fits. `tok` counts every token the subagents sent and got, cache reads
|
|
|
18
25
|
included, so it is larger than the token figure each subagent reports when it
|
|
19
26
|
returns. At 120 columns the same session drew no pane and the end of the line
|
|
20
27
|
was cut with "…".
|
|
28
|
+
A Short of it, redrawn large: https://www.youtube.com/shorts/F_NQxGPtnco
|
|
29
|
+
|
|
30
|
+
This mod (a plugin that adds behaviour to Claude Code) shows three things in
|
|
31
|
+
one line under the prompt and writes each to a small local file a script can
|
|
32
|
+
read: the tokens each subagent used, summed per subagent; the usage limits;
|
|
33
|
+
and a running count of steps, tool calls and tool errors. If you set one, a
|
|
34
|
+
spend cap stops sending requests once an interactive session's cost reaches it. It also has side
|
|
35
|
+
panes: the subagent pane is seen above; the Usage pane is not yet seen on a
|
|
36
|
+
real screen. Nothing leaves your machine.
|
|
21
37
|
|
|
22
38
|
## Install
|
|
23
39
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nightlab-agent/subagent-spend",
|
|
3
|
-
"version": "0.8.
|
|
4
|
-
"description": "Claude Code
|
|
3
|
+
"version": "0.8.2",
|
|
4
|
+
"description": "Claude Code plugin: 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",
|
|
7
7
|
"claude-code-mod",
|
package/subagent_spend.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
|
-
"""subagent-spend 0.8.
|
|
2
|
+
"""subagent-spend 0.8.2: 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.
|