coolhand-cli 0.5.1 → 0.5.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/README.md +34 -38
- package/dist/api/last-sync.d.ts.map +1 -1
- package/dist/api/last-sync.js +2 -1
- package/dist/api/last-sync.js.map +1 -1
- package/dist/commands/wildcard.d.ts.map +1 -1
- package/dist/commands/wildcard.js +2 -0
- package/dist/commands/wildcard.js.map +1 -1
- package/dist/log-request.d.ts.map +1 -1
- package/dist/log-request.js +2 -1
- package/dist/log-request.js.map +1 -1
- package/dist/version.d.ts +2 -2
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://badge.fury.io/js/coolhand-cli)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
`coolhand-cli` is a free command-line tool that helps you analyze and improve your local AI workflows, identify silent agent failures, and interact with the [Coolhand](https://coolhandlabs.com) APIs to find improvements for your production agents.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -19,6 +19,39 @@ coolhand login
|
|
|
19
19
|
|
|
20
20
|
Requires Node 20 or newer.
|
|
21
21
|
|
|
22
|
+
## Analyze Claude sessions
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
coolhand analyze-claude-sessions [--dry-run] [--client-id ID] [--json]
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Submit your historical Claude sessions to Coolhand for analysis. Coolhand scans the uploaded sessions to surface:
|
|
29
|
+
|
|
30
|
+
- **Repeatable patterns** — tasks you do by hand on repeat that could be scripted or automated
|
|
31
|
+
- **Efficiency gaps** — workflows with unnecessary back-and-forth or redundant steps
|
|
32
|
+
- **Cost insights** — sessions with high token usage relative to their outcome
|
|
33
|
+
|
|
34
|
+
Use `--dry-run` to preview what would be sent without submitting anything.
|
|
35
|
+
|
|
36
|
+
See [Session capture](./docs/session-capture.md) for scan logic, duplicate-avoidance details, and the full flag reference.
|
|
37
|
+
|
|
38
|
+
## Wildcard (agent complaint box)
|
|
39
|
+
|
|
40
|
+
When an agent is blocked because a capability does not exist in its environment, it can record the blocker and get back an unambiguous "stop and move on" response:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
coolhand wildcard \
|
|
44
|
+
--complaint "I need to run database migrations but no database is reachable" \
|
|
45
|
+
--agent-name code-review-agent \
|
|
46
|
+
--thinking "I attempted to connect to localhost:5432 but got connection refused. I checked for a running postgres process and found none. Without a live database I cannot apply or validate the migration."
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
The command records the complaint as feedback tagged `creator_type: agent`, prints a terminal de-loop message, and exits `0` so the agent stops and moves on. The de-loop always fires — even if the feedback could not be recorded (not logged in or a server error) — because the missing capability is real regardless of whether the server was reachable, and a logged-out agent in a sandbox is exactly who this command is for. When recording fails the message says so plainly and a warning is logged, so the failure still surfaces without trapping the agent in the retry loop the command exists to break.
|
|
50
|
+
|
|
51
|
+
Set `COOLHAND_AGENT_NAME` to avoid passing `--agent-name` on every call. Optional `--thinking` attaches the reasoning that led to the blocker; `--log-id` ties it to a specific LLM request log.
|
|
52
|
+
|
|
53
|
+
See [Your AI agent has notes](https://michael.carroll.io/talks/2026/your-ai-agent-has-notes) for a presentation on the research & best practices for using this pattern.
|
|
54
|
+
|
|
22
55
|
## Commands
|
|
23
56
|
|
|
24
57
|
```
|
|
@@ -138,29 +171,6 @@ coolhand close-optimization <id> <reason>
|
|
|
138
171
|
|
|
139
172
|
Closes an optimization. The reason is a free-text positional argument (quote it if it contains spaces).
|
|
140
173
|
|
|
141
|
-
## Analyze Claude sessions
|
|
142
|
-
|
|
143
|
-
```bash
|
|
144
|
-
coolhand analyze-claude-sessions [--dry-run] [--client-id ID] [--json]
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
Submit your historical Claude sessions to Coolhand for analysis. Coolhand scans the uploaded sessions to surface:
|
|
148
|
-
|
|
149
|
-
- **Repeatable patterns** — tasks you do by hand on repeat that could be scripted or automated
|
|
150
|
-
- **Efficiency gaps** — workflows with unnecessary back-and-forth or redundant steps
|
|
151
|
-
- **Cost insights** — sessions with high token usage relative to their outcome
|
|
152
|
-
|
|
153
|
-
The command scans two local sources and merges the results:
|
|
154
|
-
|
|
155
|
-
- **Claude Code** — `~/.claude/projects/` (all platforms)
|
|
156
|
-
- **Claude Cowork** — `~/Library/Application Support/Claude/local-agent-mode-sessions/` (macOS)
|
|
157
|
-
|
|
158
|
-
Each session is posted as a single conversation log. New sessions are submitted on first run; sessions that have grown (more turns added since the last sync) are re-uploaded with the full updated conversation. Unchanged sessions are skipped. It is safe to re-run at any time.
|
|
159
|
-
|
|
160
|
-
Use `--dry-run` to preview what would be sent without submitting anything.
|
|
161
|
-
|
|
162
|
-
See [Session capture](./docs/session-capture.md) for scan logic, duplicate-avoidance details, and the full flag reference.
|
|
163
|
-
|
|
164
174
|
## Security
|
|
165
175
|
|
|
166
176
|
- The callback listener binds to `127.0.0.1` only — never reachable from the LAN.
|
|
@@ -201,20 +211,6 @@ coolhand login --write-env .env
|
|
|
201
211
|
|
|
202
212
|
The CLI works especially well with the [Coolhand feedback collection skill](https://github.com/Coolhand-Labs/feedback-collection-skill) for Claude Code. The skill scans your project for LLM inference calls and implements best-practice human feedback collection — it reads `COOLHAND_API_KEY` from the environment, which `coolhand login --write-env .env` puts in place.
|
|
203
213
|
|
|
204
|
-
### wildcard (agent complaint box)
|
|
205
|
-
|
|
206
|
-
When an agent is blocked because a capability does not exist in its environment, it can record the blocker and get back an unambiguous "stop and move on" response:
|
|
207
|
-
|
|
208
|
-
```bash
|
|
209
|
-
coolhand wildcard \
|
|
210
|
-
--complaint "I need to run database migrations but no database is reachable" \
|
|
211
|
-
--agent-name code-review-agent
|
|
212
|
-
```
|
|
213
|
-
|
|
214
|
-
The command records the complaint as feedback tagged `creator_type: agent`, prints a terminal de-loop message, and exits `0` so the agent stops and moves on. The de-loop always fires — even if the feedback could not be recorded (not logged in or a server error) — because the missing capability is real regardless of whether the server was reachable, and a logged-out agent in a sandbox is exactly who this command is for. When recording fails the message says so plainly and a warning is logged, so the failure still surfaces without trapping the agent in the retry loop the command exists to break.
|
|
215
|
-
|
|
216
|
-
Set `COOLHAND_AGENT_NAME` to avoid passing `--agent-name` on every call. Optional `--thinking` attaches the reasoning that led to the blocker; `--log-id` ties it to a specific LLM request log.
|
|
217
|
-
|
|
218
214
|
## Configuration file
|
|
219
215
|
|
|
220
216
|
Located at `$HOME/.coolhand/config.json` (override with `COOLHAND_CONFIG_DIR` for testing). Schema:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"last-sync.d.ts","sourceRoot":"","sources":["../../src/api/last-sync.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"last-sync.d.ts","sourceRoot":"","sources":["../../src/api/last-sync.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;GAWG;AACH,wBAAsB,aAAa,CAAC,IAAI,GAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAO,GAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAuD1F"}
|
package/dist/api/last-sync.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { loadConfig, getClient } from '../config.js';
|
|
2
2
|
import { DEFAULT_BASE_URL } from '../types.js';
|
|
3
|
+
import { PACKAGE_IDENTIFIER } from '../version.js';
|
|
3
4
|
/** Identifies this tool's logs in the server's collector field (matches the ingest collector). */
|
|
4
|
-
const COLLECTOR =
|
|
5
|
+
const COLLECTOR = `${PACKAGE_IDENTIFIER}/claude-code`;
|
|
5
6
|
/**
|
|
6
7
|
* Ask the server for the timestamp of the most recent log it already holds from this collector, so
|
|
7
8
|
* `capture-sessions` only re-scans files newer than that. This is a server-authoritative cutoff that
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"last-sync.js","sourceRoot":"","sources":["../../src/api/last-sync.ts"],"names":[],"mappings":"AAAA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ot":"","sources":["../../src/commands/wildcard.ts"],"names":[],"mappings":"AAKA,OAAO,EAAoB,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAoBzE;;;;;;;;;GASG;AACH,wBAAsB,GAAG,CAAC,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,CA4CpE"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Coolhand } from 'coolhand-node';
|
|
2
2
|
import { ExitCode } from '../errors.js';
|
|
3
|
+
import { PACKAGE_IDENTIFIER } from '../version.js';
|
|
3
4
|
import { logger, redact } from '../logger.js';
|
|
4
5
|
import { loadConfig, getClient } from '../config.js';
|
|
5
6
|
import { DEFAULT_BASE_URL } from '../types.js';
|
|
@@ -43,6 +44,7 @@ export async function run(opts) {
|
|
|
43
44
|
explanation: opts.complaint,
|
|
44
45
|
creator_unique_id: opts.agentName,
|
|
45
46
|
creator_type: 'agent',
|
|
47
|
+
collector: `${PACKAGE_IDENTIFIER}/wildcard`,
|
|
46
48
|
...(opts.thinking ? { original_output: opts.thinking } : {}),
|
|
47
49
|
...(opts.logId !== undefined ? { llm_request_log_id: opts.logId } : {}),
|
|
48
50
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wildcard.js","sourceRoot":"","sources":["../../src/commands/wildcard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAA8B,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAA4B,MAAM,aAAa,CAAC;AAEzE,6EAA6E;AAC7E,kFAAkF;AAClF,iEAAiE;AACjE,MAAM,aAAa,GACjB,0GAA0G,CAAC;AAE7G,kEAAkE;AAClE,MAAM,eAAe,G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AAI,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aACxE,CAAC;YACF,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;YACvD,QAAQ,GAAG,MAAM,KAAK,IAAI,IAAI,MAAM,KAAK,SAAS,CAAC;YACnD,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACd,MAAM,CAAC,IAAI,CAAC,0EAA0E,CAAC,CAAC;YAC1F,CAAC;QACH,CAAC;IACH,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,CAAC,IAAI,CAAC,sCAAsC,MAAM,CAAE,GAAa,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACtF,CAAC;IAED,kFAAkF;IAClF,oFAAoF;IACpF,mFAAmF;IACnF,6DAA6D;IAC7D,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,iBAAiB,CAAC;IAC/D,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI,EAAE,CAAC;QACvB,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC;IAC/C,CAAC;SAAM,CAAC;QACN,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACvB,CAAC;IACD,OAAO,QAAQ,CAAC,EAAE,CAAC;AACrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log-request.d.ts","sourceRoot":"","sources":["../src/log-request.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"log-request.d.ts","sourceRoot":"","sources":["../src/log-request.ts"],"names":[],"mappings":"AASA;;;;;;;;;;GAUG;AACH,wBAAsB,UAAU,CAC9B,UAAU,EAAE,OAAO,EACnB,IAAI,GAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAO,GAC/B,OAAO,CAAC,OAAO,CAAC,CAwClB"}
|
package/dist/log-request.js
CHANGED
|
@@ -2,8 +2,9 @@ import { Coolhand } from 'coolhand-node';
|
|
|
2
2
|
import { CliError } from './errors.js';
|
|
3
3
|
import { loadConfig, getClient } from './config.js';
|
|
4
4
|
import { DEFAULT_BASE_URL } from './types.js';
|
|
5
|
+
import { PACKAGE_IDENTIFIER } from './version.js';
|
|
5
6
|
/** Identifies submissions from this tool in the server's collector field. */
|
|
6
|
-
const COLLECTOR =
|
|
7
|
+
const COLLECTOR = `${PACKAGE_IDENTIFIER}/claude-code`;
|
|
7
8
|
/**
|
|
8
9
|
* Submit one captured request/response envelope to the Coolhand ingest endpoint.
|
|
9
10
|
*
|
package/dist/log-request.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log-request.js","sourceRoot":"","sources":["../src/log-request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAyB,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"log-request.js","sourceRoot":"","sources":["../src/log-request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAyB,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,6EAA6E;AAC7E,MAAM,SAAS,GAAG,GAAG,kBAAkB,cAAc,CAAC;AAEtD;;;;;;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;IACzF,CAAC;IAED,6FAA6F;IAC7F,4FAA4F;IAC5F,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;QACpB,MAAM,IAAI,QAAQ,CAAC,cAAc,EAAE,wBAAwB,CAAC,CAAC;IAC/D,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/dist/version.d.ts
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Auto-generated from package.json — do not edit manually.
|
|
3
3
|
* Run `npm run sync-version` or `npm run build` to regenerate.
|
|
4
4
|
*/
|
|
5
|
-
export declare const PACKAGE_VERSION = "0.5.
|
|
5
|
+
export declare const PACKAGE_VERSION = "0.5.2";
|
|
6
6
|
export declare const PACKAGE_NAME = "coolhand-cli";
|
|
7
7
|
/**
|
|
8
8
|
* Full package identifier
|
|
9
9
|
*/
|
|
10
|
-
export declare const PACKAGE_IDENTIFIER = "coolhand-cli-0.5.
|
|
10
|
+
export declare const PACKAGE_IDENTIFIER = "coolhand-cli-0.5.2";
|
|
11
11
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Auto-generated from package.json — do not edit manually.
|
|
3
3
|
* Run `npm run sync-version` or `npm run build` to regenerate.
|
|
4
4
|
*/
|
|
5
|
-
export const PACKAGE_VERSION = '0.5.
|
|
5
|
+
export const PACKAGE_VERSION = '0.5.2';
|
|
6
6
|
export const PACKAGE_NAME = 'coolhand-cli';
|
|
7
7
|
/**
|
|
8
8
|
* Full package identifier
|