@heart-of-gold/toolkit 0.1.22 → 0.1.24

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.24",
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,12 @@ 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`:
45
- - narrow question or follow-up: `3`
46
- - normal file or diff review: `6`
47
- - multi-directory repo review or investigation: `8`
48
- - implementation / refactor: `10` to `12`
44
+ 3. Treat `--max-turns` as an optional circuit breaker, not a default quality knob.
45
+ - default: omit `--max-turns`
46
+ - use it only when the user explicitly asks for a bounded run, or when you are intentionally doing a narrow one-shot
47
+ - narrow question or follow-up when a hard cap is intentionally desired: `3`
48
+ - normal file or diff review when a hard cap is intentionally desired: `6`
49
+ - implementation / refactor when a hard cap is intentionally desired: `10` to `12`
49
50
  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
51
  5. Assemble the direct `claude` command with the appropriate options:
51
52
  - `-p, --print`
@@ -53,7 +54,7 @@ Hard rule: do not use `plan` for ordinary reviews just because it sounds safe. F
53
54
  - `--output-format stream-json --verbose` for long repo reviews, investigations, or any run where you need progress visibility
54
55
  - `--model <MODEL>`
55
56
  - `--permission-mode <MODE>`
56
- - `--max-turns <N>`
57
+ - `--max-turns <N>` only when you intentionally want to cap the run
57
58
  - `"your prompt here"` immediately after `-p` when using variadic flags like `--allowedTools`
58
59
  - `--allowedTools <TOOL> [<TOOL> ...]` only to pre-approve tools without prompting
59
60
  - `--disallowedTools <TOOL> [<TOOL> ...]` when you actually need to prevent specific tools
@@ -67,6 +68,7 @@ When this skill is used from Codex, use the execution path that actually works h
67
68
  - For real Claude runs in this environment, prefer `exec_command` with `sandbox_permissions: "require_escalated"`.
68
69
  - 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
70
  - 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.
71
+ - For long repo reviews from Codex, do not add `--max-turns` unless the user explicitly wants a hard cap. Claude may spend several turns exploring the repo before producing the review.
70
72
  - Use a narrow approval request tied to the Claude invocation, for example:
71
73
  - "Do you want me to run Claude Code outside the sandbox so it can complete this review?"
72
74
  - "Do you want me to run Claude Code with network/auth access so it can complete this task?"
@@ -85,7 +87,6 @@ claude -p \
85
87
  --verbose \
86
88
  --model sonnet \
87
89
  --permission-mode default \
88
- --max-turns 8 \
89
90
  --allowedTools "Read" "Grep" "Glob" "LS" "Bash(git status:*)" "Bash(git diff:*)" \
90
91
  --disallowedTools "Edit" "Write" "NotebookEdit"
91
92
  ```
@@ -97,8 +98,7 @@ git diff --staged | claude -p \
97
98
  "Review this diff and return findings ordered by severity with concise explanations." \
98
99
  --output-format text \
99
100
  --model sonnet \
100
- --permission-mode default \
101
- --max-turns 6
101
+ --permission-mode default
102
102
  ```
103
103
 
104
104
  ### 3. Multi-directory repo investigation
@@ -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
  ```
@@ -124,8 +123,7 @@ claude -p \
124
123
  "Implement the requested change in this repo, keep the diff minimal, and summarize what changed." \
125
124
  --output-format text \
126
125
  --model sonnet \
127
- --permission-mode acceptEdits \
128
- --max-turns 12
126
+ --permission-mode acceptEdits
129
127
  ```
130
128
 
131
129
  ### 5. Resume the latest session
@@ -145,6 +143,8 @@ claude -r latest -p "Focus only on the open issue you identified earlier and pro
145
143
 
146
144
  - Stop and report failures whenever `claude --version` or a `claude -p` command exits non-zero.
147
145
  - If Claude reaches `max turns`, report that plainly. Do not paraphrase it as a hang.
146
+ - Do not add `--max-turns` by default. If the user did not ask for a hard cap, leave it out.
147
+ - Do not assume a repo review should fit in a small fixed turn count. 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.24",
11
11
  description:
12
12
  "Cross-platform installer for Heart of Gold skills — Codex, OpenCode, Pi, Claude Code, and more",
13
13
  },