@heart-of-gold/toolkit 0.1.22 → 0.1.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heart-of-gold/toolkit",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "type": "module",
5
5
  "description": "Cross-platform installer for Heart of Gold skills — works with Codex, OpenCode, Pi, Claude Code, and more",
6
6
  "bin": {
@@ -41,11 +41,11 @@ Hard rule: do not use `plan` for ordinary reviews just because it sounds safe. F
41
41
  - review / analysis / debugging: `default`
42
42
  - implementation / refactor / fix: `acceptEdits`
43
43
  - strict read-only planning requested by the user: `plan`
44
- 3. Pick a sane `--max-turns`:
44
+ 3. Treat `--max-turns` as an optional circuit breaker, not a default quality knob.
45
+ - omit it for long repo reviews or investigations unless you specifically need a hard cap
45
46
  - narrow question or follow-up: `3`
46
47
  - normal file or diff review: `6`
47
- - multi-directory repo review or investigation: `8`
48
- - implementation / refactor: `10` to `12`
48
+ - implementation / refactor when you must bound automation: `10` to `12`
49
49
  4. Do not add `--effort high` by default. Use the CLI default unless the user explicitly wants deeper reasoning or the task is unusually ambiguous.
50
50
  5. Assemble the direct `claude` command with the appropriate options:
51
51
  - `-p, --print`
@@ -53,7 +53,7 @@ Hard rule: do not use `plan` for ordinary reviews just because it sounds safe. F
53
53
  - `--output-format stream-json --verbose` for long repo reviews, investigations, or any run where you need progress visibility
54
54
  - `--model <MODEL>`
55
55
  - `--permission-mode <MODE>`
56
- - `--max-turns <N>`
56
+ - `--max-turns <N>` only when you intentionally want to cap the run
57
57
  - `"your prompt here"` immediately after `-p` when using variadic flags like `--allowedTools`
58
58
  - `--allowedTools <TOOL> [<TOOL> ...]` only to pre-approve tools without prompting
59
59
  - `--disallowedTools <TOOL> [<TOOL> ...]` when you actually need to prevent specific tools
@@ -67,6 +67,7 @@ When this skill is used from Codex, use the execution path that actually works h
67
67
  - For real Claude runs in this environment, prefer `exec_command` with `sandbox_permissions: "require_escalated"`.
68
68
  - Do not treat the sandboxed path as normal. Direct `claude -p` has been verified to work outside the sandbox and to hang or misbehave inside it.
69
69
  - For long repo reviews from Codex, prefer `--output-format stream-json --verbose` so progress is visible. Plain `text` output can remain silent for a long time even when Claude is actively working.
70
+ - For long repo reviews from Codex, do not default to a low `--max-turns`. Claude may spend several turns exploring the repo before producing the review.
70
71
  - Use a narrow approval request tied to the Claude invocation, for example:
71
72
  - "Do you want me to run Claude Code outside the sandbox so it can complete this review?"
72
73
  - "Do you want me to run Claude Code with network/auth access so it can complete this task?"
@@ -85,7 +86,6 @@ claude -p \
85
86
  --verbose \
86
87
  --model sonnet \
87
88
  --permission-mode default \
88
- --max-turns 8 \
89
89
  --allowedTools "Read" "Grep" "Glob" "LS" "Bash(git status:*)" "Bash(git diff:*)" \
90
90
  --disallowedTools "Edit" "Write" "NotebookEdit"
91
91
  ```
@@ -112,7 +112,6 @@ claude -p \
112
112
  --verbose \
113
113
  --model opus \
114
114
  --permission-mode default \
115
- --max-turns 8 \
116
115
  --allowedTools "Read" "Grep" "Glob" "LS" "Bash(git status:*)" "Bash(git diff:*)" \
117
116
  --disallowedTools "Edit" "Write" "NotebookEdit"
118
117
  ```
@@ -145,6 +144,7 @@ claude -r latest -p "Focus only on the open issue you identified earlier and pro
145
144
 
146
145
  - Stop and report failures whenever `claude --version` or a `claude -p` command exits non-zero.
147
146
  - If Claude reaches `max turns`, report that plainly. Do not paraphrase it as a hang.
147
+ - Do not assume a repo review should fit in `6` or `8` turns. Exploration-heavy runs can legitimately need more.
148
148
  - If `--output-format text` stays silent during a long repo review, do not assume it is hung. Re-run or start with `--output-format stream-json --verbose` to confirm whether Claude is actively working.
149
149
  - If Claude truly hangs or returns no output even in streaming mode, report that plainly and stop.
150
150
  - Do not substitute your own review and imply it came from Claude.
package/src/index.ts CHANGED
@@ -7,7 +7,7 @@ import { targetsCommand } from "./commands/targets";
7
7
  const main = defineCommand({
8
8
  meta: {
9
9
  name: "heart-of-gold",
10
- version: "0.1.22",
10
+ version: "0.1.23",
11
11
  description:
12
12
  "Cross-platform installer for Heart of Gold skills — Codex, OpenCode, Pi, Claude Code, and more",
13
13
  },