@virling/subagents 0.1.0 → 0.1.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.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project are documented here. The format follows [Kee
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.1.1] - 2026-11-28
8
+
9
+ ### Fixed
10
+
11
+ - Time no longer includes waiting for a person to approve a tool call, which could inflate a subagent from minutes to hours.
12
+
7
13
  ## [0.1.0] - 2026-11-27
8
14
 
9
15
  ### Added
@@ -12,5 +18,6 @@ All notable changes to this project are documented here. The format follows [Kee
12
18
  - Flags overlapping reads, repeated commands, error-heavy subagents, edit collisions and empty results.
13
19
  - Pick a session with `--session`, a file path or `--project`; `--list` shows recent sessions; `--json` output.
14
20
 
15
- [Unreleased]: https://github.com/virling/subagents/compare/v0.1.0...HEAD
21
+ [Unreleased]: https://github.com/virling/subagents/compare/v0.1.1...HEAD
22
+ [0.1.1]: https://github.com/virling/subagents/compare/v0.1.0...v0.1.1
16
23
  [0.1.0]: https://github.com/virling/subagents/releases/tag/v0.1.0
package/README.md CHANGED
@@ -61,7 +61,7 @@ Total: 3 subagents, 14m 57s, 56 tool calls, 1.4M tokens
61
61
 
62
62
  Each subagent transcript lives at `~/.claude/projects/<project>/<session>/subagents/agent-<id>.jsonl`. The description comes from the `Agent` (or older `Task`) tool call in the main session, or else the subagent's first message.
63
63
 
64
- - **Time**: active time in the subagent transcript. When a subagent is continued later with a follow-up message, the idle gap before that message is not counted. Time spent waiting on a tool, such as a long Bash command, still counts.
64
+ - **Time**: active time in the subagent transcript. When a subagent is continued later with a follow-up message, the idle gap before that message is not counted. Time spent waiting for a person to approve a tool call is not counted either. A long-running tool, such as a slow Bash command, still counts.
65
65
  - **Tool calls**: every `tool_use`, grouped by tool name. **Failed** counts `tool_result` entries with `is_error`.
66
66
  - **Read / edited**: file paths from `Read`, and from `Edit`, `Write`, `MultiEdit` and `NotebookEdit`.
67
67
  - **Report**: characters of the subagent's last text after its last tool call.
@@ -77,6 +77,13 @@ Each subagent transcript lives at `~/.claude/projects/<project>/<session>/subage
77
77
 
78
78
  Flags are hints, not verdicts: two subagents reading the same file is often fine.
79
79
 
80
+ ## More tools from Virling
81
+
82
+ - [agentmem](https://github.com/virling/agentmem): project memory for AI coding agents, shared across Claude Code, Cursor, Codex and other MCP clients.
83
+ - [ccdoctor](https://github.com/virling/ccdoctor): checks your Claude Code setup: hooks, MCP servers and plugins that are registered but not working.
84
+ - [ciwhy](https://github.com/virling/ciwhy): finds the real error in a failed GitHub Actions run and tells you if it is flaky.
85
+ - [npmship](https://github.com/virling/npmship): releases an npm package and verifies it landed on npm, in CI and on GitHub.
86
+
80
87
  ## License
81
88
 
82
89
  [PolyForm Noncommercial 1.0.0](LICENSE)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@virling/subagents",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Review what Claude Code subagents did in a session and flag repeated or wasted work",
5
5
  "type": "module",
6
6
  "bin": {
package/src/analyze.js CHANGED
@@ -44,9 +44,10 @@ export function summarizeAgent(id, entries, input) {
44
44
  if (e.timestamp) {
45
45
  times.push(e.timestamp);
46
46
  const t = Date.parse(e.timestamp);
47
- // A new prompt after a pause is a later continuation, so the gap before it is idle time.
47
+ // A new prompt after a pause is a later continuation, and a tool call a person approved waited on them, so both gaps are idle time.
48
48
  const prompt = role === "user" && text(content).trim() && !blocks(content).some((c) => c.type === "tool_result");
49
- if (prev !== null && !prompt) active += t - prev;
49
+ const approved = role === "user" && e.permissionDecision?.source?.startsWith("user");
50
+ if (prev !== null && !prompt && !approved) active += t - prev;
50
51
  prev = t;
51
52
  }
52
53
  if (role === "user" && !first) first = text(content).trim();