@kolisachint/hoocode-agent 0.5.26 → 0.5.27
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 +49 -0
- package/dist/core/capabilities/lexical.d.ts +4 -0
- package/dist/core/capabilities/lexical.d.ts.map +1 -1
- package/dist/core/capabilities/lexical.js +104 -4
- package/dist/core/capabilities/lexical.js.map +1 -1
- package/dist/core/capabilities/registry.d.ts +3 -1
- package/dist/core/capabilities/registry.d.ts.map +1 -1
- package/dist/core/capabilities/registry.js.map +1 -1
- package/dist/core/self-docs.d.ts +103 -0
- package/dist/core/self-docs.d.ts.map +1 -0
- package/dist/core/self-docs.js +351 -0
- package/dist/core/self-docs.js.map +1 -0
- package/dist/core/system-prompt.d.ts +12 -0
- package/dist/core/system-prompt.d.ts.map +1 -1
- package/dist/core/system-prompt.js +11 -1
- package/dist/core/system-prompt.js.map +1 -1
- package/dist/extensions/core/hoo-core.d.ts +1 -0
- package/dist/extensions/core/hoo-core.d.ts.map +1 -1
- package/dist/extensions/core/hoo-core.js +3 -0
- package/dist/extensions/core/hoo-core.js.map +1 -1
- package/dist/extensions/core/mcp-loader.d.ts.map +1 -1
- package/dist/extensions/core/mcp-loader.js +8 -2
- package/dist/extensions/core/mcp-loader.js.map +1 -1
- package/dist/extensions/core/self-knowledge.d.ts +28 -0
- package/dist/extensions/core/self-knowledge.d.ts.map +1 -0
- package/dist/extensions/core/self-knowledge.js +199 -0
- package/dist/extensions/core/self-knowledge.js.map +1 -0
- package/docs/canvas.md +117 -0
- package/docs/compaction.md +4 -4
- package/docs/custom-provider.md +1 -1
- package/docs/development.md +1 -1
- package/docs/docs.json +27 -2
- package/docs/extensions.md +12 -12
- package/docs/index.md +8 -0
- package/docs/keybindings.md +2 -2
- package/docs/mcp.md +97 -0
- package/docs/models.md +1 -1
- package/docs/modes.md +87 -0
- package/docs/packages.md +4 -4
- package/docs/plugins.md +124 -0
- package/docs/prompt-templates.md +1 -1
- package/docs/providers.md +2 -2
- package/docs/quickstart.md +2 -2
- package/docs/rpc.md +5 -5
- package/docs/sdk.md +5 -5
- package/docs/session-format.md +3 -3
- package/docs/sessions.md +1 -1
- package/docs/settings.md +3 -3
- package/docs/shell-aliases.md +1 -1
- package/docs/skills.md +2 -2
- package/docs/terminal-setup.md +1 -1
- package/docs/termux.md +2 -2
- package/docs/themes.md +3 -3
- package/docs/usage.md +93 -4
- package/docs/windows.md +1 -1
- 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/usage.md
CHANGED
|
@@ -54,8 +54,56 @@ Type `/` in the editor to open command completion. Extensions can register custo
|
|
|
54
54
|
| `/reload` | Reload keybindings, extensions, skills, prompts, and context files |
|
|
55
55
|
| `/hotkeys` | Show all keyboard shortcuts |
|
|
56
56
|
| `/changelog` | Display version history |
|
|
57
|
+
| `/import <file>` | Import and resume a session from a JSONL file |
|
|
58
|
+
| `/cost` | Session token and cost totals, broken down by model |
|
|
57
59
|
| `/quit` | Quit hoocode |
|
|
58
60
|
|
|
61
|
+
### Modes and planning
|
|
62
|
+
|
|
63
|
+
See [Modes](modes.md) for what each mode changes.
|
|
64
|
+
|
|
65
|
+
| Command | Description |
|
|
66
|
+
|---------|-------------|
|
|
67
|
+
| `/mode <ask\|plan\|build\|debug>` | Switch the active mode |
|
|
68
|
+
| `/plan` | Shorthand for `/mode plan` |
|
|
69
|
+
| `/approve` | Approve the current plan and switch to build mode to execute it |
|
|
70
|
+
| `/grill [me\|plan]` | Stress-test the current plan before committing to it |
|
|
71
|
+
| `/goal [--max-turns N] <objective>` | Work autonomously toward a goal |
|
|
72
|
+
|
|
73
|
+
### Plugins and extensibility
|
|
74
|
+
|
|
75
|
+
See [Plugins](plugins.md) for the marketplace and trust model.
|
|
76
|
+
|
|
77
|
+
| Command | Description |
|
|
78
|
+
|---------|-------------|
|
|
79
|
+
| `/plugin marketplace add <git-url\|path>` | Register a marketplace |
|
|
80
|
+
| `/plugin marketplace list\|refresh` | List registered marketplaces, or re-fetch their indices |
|
|
81
|
+
| `/plugin list` | List installed plugins |
|
|
82
|
+
| `/plugin install <name> [--scope user\|project]` | Install a plugin |
|
|
83
|
+
| `/plugin remove <name>` | Uninstall a plugin |
|
|
84
|
+
| `/plugin trust [list]`, `/plugin untrust` | Inspect or revoke workspace trust |
|
|
85
|
+
| `/plugin publish <name> [--to <dir>]` | Package a plugin for distribution |
|
|
86
|
+
| `/new-skill <name>` | Scaffold a new skill |
|
|
87
|
+
| `/new-agent <name>` | Scaffold a new subagent |
|
|
88
|
+
| `/new-command <name>` | Scaffold a new slash command |
|
|
89
|
+
| `/new-canvas <what it should do>` | Scaffold a canvas extension and build it; `/new-canvas <name>` scaffolds the template only |
|
|
90
|
+
|
|
91
|
+
### Canvas and scheduling
|
|
92
|
+
|
|
93
|
+
| Command | Description |
|
|
94
|
+
|---------|-------------|
|
|
95
|
+
| `/canvas list` | List canvases the loaded extensions provide |
|
|
96
|
+
| `/canvas open <extension>[:<canvas>]` | Open a canvas |
|
|
97
|
+
| `/canvas reload [extension]` | Pick up code changes without restarting the session |
|
|
98
|
+
| `/canvas close <instanceId>` | Close a running canvas |
|
|
99
|
+
| `/canvas rename <extension> <new-name>` | Rename a canvas everywhere its name appears |
|
|
100
|
+
| `/canvas remove <extension>` | Delete a canvas, after confirming |
|
|
101
|
+
| `/loop "<cron>" <prompt>` | Schedule a prompt on a cron expression |
|
|
102
|
+
| `/loop <5m\|2h> <prompt>` | Schedule a prompt on an interval |
|
|
103
|
+
| `/loop once "<cron>" <prompt>` | Schedule a one-shot prompt |
|
|
104
|
+
| `/loop list`, `/loop delete <id>`, `/loop stop` | Inspect and cancel schedules |
|
|
105
|
+
| `/loop auto [--max-turns N] <task>` | Run an autonomous loop on a task |
|
|
106
|
+
|
|
59
107
|
## Message Queue
|
|
60
108
|
|
|
61
109
|
You can submit messages while the agent is still working:
|
|
@@ -71,7 +119,7 @@ Configure delivery in [Settings](settings.md) with `steeringMode` and `followUpM
|
|
|
71
119
|
|
|
72
120
|
## Sessions
|
|
73
121
|
|
|
74
|
-
Sessions are saved automatically to `~/.hoocode/
|
|
122
|
+
Sessions are saved automatically to `~/.hoocode/sessions/`, organized by working directory.
|
|
75
123
|
|
|
76
124
|
```bash
|
|
77
125
|
hoocode -c # Continue most recent session
|
|
@@ -96,7 +144,7 @@ See [Sessions](sessions.md) and [Compaction](compaction.md) for details.
|
|
|
96
144
|
HooCode loads `AGENTS.md` or `CLAUDE.md` at startup from, least specific first:
|
|
97
145
|
|
|
98
146
|
- `~/.agents/AGENTS.md` — the cross-vendor user scope, shared with other agent tools
|
|
99
|
-
- `~/.hoocode/
|
|
147
|
+
- `~/.hoocode/AGENTS.md` — hoocode's own global instructions, which win on conflict
|
|
100
148
|
- parent directories, walking up from the current working directory
|
|
101
149
|
- the current directory
|
|
102
150
|
|
|
@@ -182,7 +230,7 @@ the same path the sessions were recorded under.
|
|
|
182
230
|
Replace the default system prompt with:
|
|
183
231
|
|
|
184
232
|
- `.hoocode/SYSTEM.md` for a project
|
|
185
|
-
- `~/.hoocode/
|
|
233
|
+
- `~/.hoocode/SYSTEM.md` globally
|
|
186
234
|
|
|
187
235
|
Append to the default prompt without replacing it with `APPEND_SYSTEM.md` in either location.
|
|
188
236
|
|
|
@@ -259,11 +307,34 @@ cat README.md | hoocode -p "Summarize this text"
|
|
|
259
307
|
| Option | Description |
|
|
260
308
|
|--------|-------------|
|
|
261
309
|
| `--tools <list>`, `-t <list>` | Allowlist specific built-in, extension, and custom tools |
|
|
310
|
+
| `--disallowed-tools <list>` | Comma-separated denylist, subtracted from the allowlist or default set |
|
|
262
311
|
| `--no-builtin-tools`, `-nbt` | Disable built-in tools but keep extension/custom tools enabled |
|
|
263
312
|
| `--no-tools`, `-nt` | Disable all tools |
|
|
264
313
|
|
|
265
314
|
Built-in tools: `read`, `bash`, `edit`, `write`, `grep`, `find`, `ls`.
|
|
266
315
|
|
|
316
|
+
#### Optional tool bundles
|
|
317
|
+
|
|
318
|
+
Off by default unless noted; each adds a capability rather than a single tool.
|
|
319
|
+
|
|
320
|
+
| Option | Enables |
|
|
321
|
+
|--------|---------|
|
|
322
|
+
| `--enable-todowrite` | The TodoWrite tool — a live todo list in the task panel |
|
|
323
|
+
| `--enable-webtools` | `webfetch` and `websearch` (network access) |
|
|
324
|
+
| `--enable-search-tool` | The semantic index behind the `search` tool (on by default). Legacy alias: `--enable-embsearchtools` |
|
|
325
|
+
| `--enable-plugintools` | The autonomous plugin system — see [Plugins](plugins.md) |
|
|
326
|
+
|
|
327
|
+
#### Subagents
|
|
328
|
+
|
|
329
|
+
See [Subagent delegation](routing.md).
|
|
330
|
+
|
|
331
|
+
| Option | Description |
|
|
332
|
+
|--------|-------------|
|
|
333
|
+
| `--enable-subagents` | Enable the subagent tool (delegate to isolated agent loops) |
|
|
334
|
+
| `--no-subagents`, `--disable-subagents` | Disable it for this session, overriding the setting |
|
|
335
|
+
| `--max-subagent-depth <n>` | Tree-wide nesting cap (default 2 — one level of nesting) |
|
|
336
|
+
| `--warm-subagents` | Dispatch eligible subagents on reused warm RPC workers (experimental) |
|
|
337
|
+
|
|
267
338
|
### Resource Options
|
|
268
339
|
|
|
269
340
|
| Option | Description |
|
|
@@ -290,10 +361,28 @@ hoocode --no-extensions -e ./my-extension.ts
|
|
|
290
361
|
|--------|-------------|
|
|
291
362
|
| `--system-prompt <text>` | Replace default prompt; context files and skills are still appended |
|
|
292
363
|
| `--append-system-prompt <text>` | Append to system prompt |
|
|
364
|
+
| `--light` | Minimal low-token preset for small/local models (see below) |
|
|
365
|
+
| `--print-token-surface` | Print the fixed per-turn surface (system prompt + serialized tool schemas) and exit |
|
|
366
|
+
| `--platform <list>` | Platform layout(s) to target when writing artifacts: `claude`, `copilot` (alias `github`, `gh`), `agents` (alias `native`). Comma-separated and/or repeated |
|
|
367
|
+
| `--team <url\|auto>` | Bridge a hooteams server into the task panel's teams view — focus roles, nudge, attach, answer approval gates. `auto` searches upward from cwd for `.agents/teams/default.json` or `hooteams.config.json` and spawns hooteams locally |
|
|
293
368
|
| `--verbose` | Force verbose startup |
|
|
294
369
|
| `-h`, `--help` | Show help |
|
|
295
370
|
| `-v`, `--version` | Show version |
|
|
296
371
|
|
|
372
|
+
#### Light mode
|
|
373
|
+
|
|
374
|
+
`--light` (or the `light` setting) trims the session to the smallest useful
|
|
375
|
+
fixed per-turn surface, for small or local models that waste context on harness
|
|
376
|
+
boilerplate:
|
|
377
|
+
|
|
378
|
+
- Only `read`, `write`, `edit`, and `bash`, with short descriptions and stripped
|
|
379
|
+
parameter schemas. `bash` subsumes grep/find/ls — search happens via the shell.
|
|
380
|
+
- A terse replacement system prompt.
|
|
381
|
+
- No subagents, TodoWrite, skills, context files, mode appendix, or the
|
|
382
|
+
self-documentation section.
|
|
383
|
+
|
|
384
|
+
`--print-token-surface` reports what that surface actually costs.
|
|
385
|
+
|
|
297
386
|
### File Arguments
|
|
298
387
|
|
|
299
388
|
Prefix files with `@` to include them in the message:
|
|
@@ -336,7 +425,7 @@ hoocode --tools read,grep,find,ls -p "Review the code"
|
|
|
336
425
|
|
|
337
426
|
| Variable | Description |
|
|
338
427
|
|----------|-------------|
|
|
339
|
-
| `HOOCODE_AGENT_DIR` | Override config directory; default is `~/.hoocode
|
|
428
|
+
| `HOOCODE_AGENT_DIR` | Override config directory; default is `~/.hoocode` |
|
|
340
429
|
| `HOOCODE_AGENT_SESSION_DIR` | Override session storage directory; overridden by `--session-dir` |
|
|
341
430
|
| `HOOCODE_PACKAGE_DIR` | Override package directory, useful for Nix/Guix store paths |
|
|
342
431
|
| `HOOCODE_OFFLINE` | Disable startup network operations, including update checks, package update checks, and install/update telemetry |
|
package/docs/windows.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
HooCode requires a bash shell on Windows. Checked locations (in order):
|
|
4
4
|
|
|
5
|
-
1. Custom path from `~/.hoocode/
|
|
5
|
+
1. Custom path from `~/.hoocode/settings.json`
|
|
6
6
|
2. Git Bash (`C:\Program Files\Git\bin\bash.exe`)
|
|
7
7
|
3. `bash.exe` on PATH (Cygwin, MSYS2, WSL)
|
|
8
8
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolisachint/hoocode-agent",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.27",
|
|
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.27",
|
|
53
|
+
"@kolisachint/hoocode-ai": "^0.5.27",
|
|
54
|
+
"@kolisachint/hoocode-tui": "^0.5.27",
|
|
55
55
|
"@silvia-odwyer/photon-node": "^0.3.4",
|
|
56
56
|
"chalk": "^5.5.0",
|
|
57
57
|
"cli-highlight": "^2.1.11",
|