@kolisachint/hoocode-agent 0.5.29 → 0.5.30
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 +24 -0
- package/dist/core/light.d.ts +9 -0
- package/dist/core/light.d.ts.map +1 -1
- package/dist/core/light.js +12 -4
- package/dist/core/light.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector.d.ts +20 -0
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +105 -35
- package/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +21 -1
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/docs/settings.md +21 -0
- package/docs/usage.md +3 -3
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/with-deps/package.json +1 -1
- package/package.json +4 -4
package/docs/settings.md
CHANGED
|
@@ -101,6 +101,27 @@ Set `HOOCODE_SKIP_VERSION_CHECK=1` to disable the HooCode version update check.
|
|
|
101
101
|
}
|
|
102
102
|
```
|
|
103
103
|
|
|
104
|
+
### Context budget
|
|
105
|
+
|
|
106
|
+
Everything in the system prompt and in an active tool's schema is re-sent on
|
|
107
|
+
every request. These three settings decide how large that is, and `/settings`
|
|
108
|
+
groups them under **Context** with the live per-turn cost printed under the
|
|
109
|
+
list.
|
|
110
|
+
|
|
111
|
+
| Setting | Type | Default | Description |
|
|
112
|
+
|---------|------|---------|-------------|
|
|
113
|
+
| `light` | boolean | `false` | Low-token preset: `read`/`write`/`edit`/`bash` only with stripped schemas, a terse system prompt, and no subagents/TodoWrite/skills/context files |
|
|
114
|
+
| `contextGc` | boolean | `true` | Stub superseded read results out of the outgoing context |
|
|
115
|
+
|
|
116
|
+
`light` is read at startup to pick the tool set and the system prompt, so
|
|
117
|
+
toggling it in `/settings` applies on the next session. `--light` turns it on
|
|
118
|
+
for a single run. Auto-compaction lives in the same category and is documented
|
|
119
|
+
under [Compaction](#compaction).
|
|
120
|
+
|
|
121
|
+
`/settings` also prices each tool by what its schema costs per turn, on the
|
|
122
|
+
switch itself, so it is clear which one is worth turning off. `hoocode
|
|
123
|
+
--print-token-surface` prints the same measurement as text.
|
|
124
|
+
|
|
104
125
|
### Branch Summary
|
|
105
126
|
|
|
106
127
|
| Setting | Type | Default | Description |
|
package/docs/usage.md
CHANGED
|
@@ -371,9 +371,9 @@ hoocode --no-extensions -e ./my-extension.ts
|
|
|
371
371
|
|
|
372
372
|
#### Light mode
|
|
373
373
|
|
|
374
|
-
`--light` (or the `light` setting
|
|
375
|
-
fixed per-turn surface, for small or
|
|
376
|
-
boilerplate:
|
|
374
|
+
`--light` (or the `light` setting, editable in `/settings` under **Context**)
|
|
375
|
+
trims the session to the smallest useful fixed per-turn surface, for small or
|
|
376
|
+
local models that waste context on harness boilerplate:
|
|
377
377
|
|
|
378
378
|
- Only `read`, `write`, `edit`, and `bash`, with short descriptions and stripped
|
|
379
379
|
parameter schemas. `bash` subsumes grep/find/ls — search happens via the shell.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolisachint/hoocode-agent",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.30",
|
|
4
4
|
"description": "Coding agent CLI with read, bash, edit, write tools and session management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"hoocodeConfig": {
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"prepublishOnly": "npm run clean && npm run build"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@kolisachint/hoocode-agent-core": "^0.5.
|
|
53
|
-
"@kolisachint/hoocode-ai": "^0.5.
|
|
54
|
-
"@kolisachint/hoocode-tui": "^0.5.
|
|
52
|
+
"@kolisachint/hoocode-agent-core": "^0.5.30",
|
|
53
|
+
"@kolisachint/hoocode-ai": "^0.5.30",
|
|
54
|
+
"@kolisachint/hoocode-tui": "^0.5.30",
|
|
55
55
|
"@silvia-odwyer/photon-node": "^0.3.4",
|
|
56
56
|
"chalk": "^5.5.0",
|
|
57
57
|
"cli-highlight": "^2.1.11",
|