@kolisachint/hoocode 0.1.8 → 0.1.9

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.
Files changed (3) hide show
  1. package/LICENSE +2 -2
  2. package/README.md +33 -36
  3. package/package.json +5 -5
package/LICENSE CHANGED
@@ -1,9 +1,9 @@
1
1
  MIT License
2
2
 
3
3
  Copyright (c) 2025 Mario Zechner (original "pi-mono" project — https://github.com/badlogic/pi-mono and https://github.com/earendil-works/pi-mono)
4
- Copyright (c) 2026 Sachin Koli (HooCode fork — https://github.com/kolisachint/cortexcode)
4
+ Copyright (c) 2026 Sachin Koli (HooCode fork — https://github.com/kolisachint/hoocode)
5
5
 
6
- This project ("cortexcode") is a Rust migration of the HooCode / pi-mono project by
6
+ This project ("hoocode") is a Rust migration of the HooCode / pi-mono project by
7
7
  Mario Zechner. All upstream copyright and authorship is preserved. Modifications
8
8
  and additions made in this fork are released under the same MIT terms below.
9
9
 
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # cortexcode
1
+ # hoocode
2
2
 
3
3
  Rust migration of the [HooCode](https://github.com/kolisachint/hoocode-ts) TypeScript coding-agent framework.
4
4
 
@@ -8,17 +8,12 @@ This is a multi-crate workspace that mirrors the structure of the [pycortex](htt
8
8
 
9
9
  ```
10
10
  crates/
11
- cortexcode/ # Top-level umbrella crate
12
- cortexcode-ai/ # AI namespace umbrella
13
- cortexcode-ai-types/
14
- cortexcode-ai-models/
11
+ hoocode-ai-types/
12
+ hoocode-ai-models/
15
13
  ...
16
- cortexcode-agent/ # Agent namespace umbrella
17
- cortexcode-agent-core/
14
+ hoocode-agent-core/
18
15
  ...
19
- cortexcode-code/ # Code namespace umbrella
20
16
  ...
21
- cortexcode-tui/ # TUI namespace umbrella
22
17
  ...
23
18
  ```
24
19
 
@@ -54,19 +49,19 @@ This Rust build is installed as **`hoocode`**. The TypeScript original is reache
54
49
  **`hoocode-ts`**, a small shim (`scripts/shims/hoocode-ts`) that runs the npm package
55
50
  `@kolisachint/hoocode-agent` (a global npm install if present, otherwise `npx`; set
56
51
  `HOOCODE_TS_BIN` to point it anywhere else). Only the installed names changed: the crates,
57
- the cargo binary (`cortex`), the config directory and the in-app name are unchanged. If you
52
+ the cargo binary (`hoocode`), the config directory and the in-app name are unchanged. If you
58
53
  also have the TS one installed globally from npm, put the Rust `hoocode` earlier on `PATH`
59
54
  (npm's `hoo` alias still runs the TS one).
60
55
 
61
56
  ```bash
62
- git clone https://github.com/kolisachint/cortexcode
63
- cd cortexcode
57
+ git clone https://github.com/kolisachint/hoocode
58
+ cd hoocode
64
59
  scripts/install.sh # → updates ~/.hoocode/bin/hoocode if installed, else ~/.local/bin
65
- scripts/install.sh --prefix /usr/local/bin --also-cortex # also keep a `cortex` link
60
+ scripts/install.sh --prefix /usr/local/bin --also-hoocode # also keep a `hoocode` link
66
61
  ```
67
62
 
68
- Plain cargo still works and installs the binary as `cortex`:
69
- `cargo install --path crates/cortexcode-code-main --bin cortex`.
63
+ Plain cargo still works and installs the binary as `hoocode`:
64
+ `cargo install --path crates/hoocode-code-main --bin hoocode`.
70
65
 
71
66
  ### Pre-built binaries
72
67
 
@@ -79,17 +74,17 @@ on your `PATH`. Linux builds are static (musl) and run on any distro.
79
74
 
80
75
  ```bash
81
76
  # Single-shot print mode (text or JSON)
82
- cortex -p "Explain this codebase"
83
- cortex -p --mode json "Explain this codebase"
77
+ hoocode -p "Explain this codebase"
78
+ hoocode -p --mode json "Explain this codebase"
84
79
 
85
80
  # Interactive TUI mode
86
- cortex
81
+ hoocode
87
82
 
88
83
  # JSON-RPC server mode
89
- cortex --mode rpc
84
+ hoocode --mode rpc
90
85
 
91
- # Subagent mode (used internally by the Task tool)
92
- cortex --mode subagent --task-id <id>
86
+ # Subagent mode (used internally by the Agent tool)
87
+ hoocode --mode subagent --task-id <id>
93
88
  ```
94
89
 
95
90
  ## Development
@@ -116,7 +111,7 @@ crates.io, off by default). Manual runs: Actions → Release.
116
111
 
117
112
  ## Migration status (paused 2026-10-01, ready to use)
118
113
 
119
- The port of hoocode **v0.6.0** (commit `2223437c`) is paused, and `cortex` is usable as a
114
+ The port of hoocode **v0.6.0** (commit `2223437c`) is paused, and `hoocode` is usable as a
120
115
  daily coding agent. Phases 7, 8 and 11 are complete. Phase 10 is complete apart from the
121
116
  deferred items listed below. Every remaining task is **deferred** by user decision; none is
122
117
  in progress. Status per task: `python3 migration/ledger.py status`.
@@ -128,10 +123,10 @@ What works (the pinned hoocode behavior, checked against hoocode itself):
128
123
  - **Providers:** every catalog provider, plus OAuth logins (`/login`) and `models.json`.
129
124
  - **Sessions:** AgentSession with compaction, `/new`, `/resume`, `/fork`, `/tree`,
130
125
  `--continue`, `--session`, and `/export <file>.jsonl`.
131
- - **Tools:** read, bash, edit, write, lexical SearchCodebase, TodoWrite, ask_options, and the
126
+ - **Tools:** Read, Shell, Edit, Write, lexical CodeSearch, TodoWrite, AskUserQuestion, and the
132
127
  Yes/No/Always permission prompt.
133
128
  - **Agent modes:** ask/plan/build/debug (`/mode`, `/plan`, `/grill`, `/approve`, alt+a).
134
- - **Subagents:** the Task/TaskOutput tools, the task panel, and the subagent roster.
129
+ - **Subagents:** the Agent/AgentOutput tools, the task panel, and the subagent roster.
135
130
  - **Resources:** skills, prompt templates and slash commands, AGENTS.md/CLAUDE.md context
136
131
  files, themes, settings (`/settings`) and keybindings.
137
132
 
@@ -140,9 +135,9 @@ Deferred (not available yet, even though `--help` still lists some of them):
140
135
  | Area | Ledger task |
141
136
  |---|---|
142
137
  | MCP servers (`mcp.json`, stdio/HTTP/SSE, OAuth) | 9.1, 10.11 |
143
- | `webfetch` / `websearch` (`--enable-webtools`) | 10.2e |
138
+ | `WebFetch` / `WebSearch` (`--enable-webtools`) | 10.2e |
144
139
  | Plugins and marketplace (`--enable-plugintools`) | 12.1 |
145
- | `cortex install/remove/update/list` package manager | 12.2 |
140
+ | `hoocode install/remove/update/list` package manager | 12.2 |
146
141
  | Code extensions (`-e`, extension flags) | 12.3 |
147
142
  | Semantic and hybrid search (`embsearch`). Search is lexical-only. | 12.4 |
148
143
  | `/loop`, `/goal` autonomous loop, cron/scheduler | 12.5 |
@@ -150,25 +145,27 @@ Deferred (not available yet, even though `--help` still lists some of them):
150
145
  | HTML export and `/share`, `/learn`, canvas, `--team`, voice, telemetry, version check | 12.7 |
151
146
 
152
147
  Known parity gaps: tasks 10.2a/b/c/d/f/g, 10.4c and 10.5 pass Level 1 but not Level 2. The
153
- default-bundle system prompt in hoocode also advertises the SearchHooCode self-knowledge tool
148
+ default-bundle system prompt in hoocode also advertises the DocSearch self-knowledge tool
154
149
  from 12.4, so model requests differ in that one block.
155
150
 
156
151
  The plan and its rationale are in
157
- [`docs/design/hoocode-to-cortexcode-migration.md`](docs/design/hoocode-to-cortexcode-migration.md)
152
+ [`docs/design/ts-to-rust-migration.md`](docs/design/ts-to-rust-migration.md)
158
153
  (§0 status, §9 phases), and the handoff log is in `migration/PROGRESS.md`. To resume, take a
159
154
  deferred task out of `deferred` and say "continue migration" (see `CLAUDE.md`).
160
155
 
161
156
  ## Quick start
162
157
 
163
158
  ```bash
164
- cargo install --path crates/cortexcode-code-main --bin cortex # puts `cortex` on PATH
165
- export ANTHROPIC_API_KEY=... # or any provider key from `cortex --help`, or /login
166
- cortex # interactive TUI
167
- cortex -p "Summarize this repo" # one-shot
159
+ cargo install --path crates/hoocode-code-main --bin hoocode # puts `hoocode` on PATH
160
+ export ANTHROPIC_API_KEY=... # or any provider key from `hoocode --help`, or /login
161
+ hoocode # interactive TUI
162
+ hoocode -p "Summarize this repo" # one-shot
168
163
  ```
169
164
 
170
- - Config, auth, sessions and settings live in `~/.cortexcode/agent` (override with
171
- `CORTEX_CODING_AGENT_DIR`). Project overrides go in `./.cortexcode/`.
165
+ - Config, auth, sessions and settings live in `~/.hoocode` (override with
166
+ `HOOCODE_CODING_AGENT_DIR`), shared with hoocode-ts. Project overrides go in `./.hoocode/`.
167
+ Data from the pre-1.2 home and project folders is merged in once, with backups
168
+ (`hoocode migrate --dry-run` shows what would change).
172
169
  - The settings, `models.json`, `auth.json`, session JSONL and `hoo-config.json` formats match
173
170
  hoocode's, so an existing hoocode setup can be copied over.
174
171
 
@@ -179,6 +176,6 @@ Publishing is driven from GitHub Actions:
179
176
  - `Reserve crates.io names` — one-off workflow that publishes `0.0.1` placeholder crates.
180
177
  - `Release` — bump, build, publish, and create a GitHub release.
181
178
  - `Merge Release` — auto-releases PRs labeled `rust:patch`, `rust:minor`, or `rust:major`.
182
- - `Build binaries` — cross-compiles the `cortex` binary for Linux, macOS (Intel/Apple Silicon), and Windows.
179
+ - `Build binaries` — cross-compiles the `hoocode` binary for Linux, macOS (Intel/Apple Silicon), and Windows.
183
180
 
184
- Crates marked with `[package.metadata.cortex] publish = true` are included in automated releases.
181
+ Crates marked with `[package.metadata.hoocode] publish = true` are included in automated releases.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kolisachint/hoocode",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "HooCode, the terminal coding agent (Rust build)",
5
5
  "bin": {
6
6
  "hoocode": "bin/hoocode.js",
@@ -13,10 +13,10 @@
13
13
  "node": ">=18"
14
14
  },
15
15
  "optionalDependencies": {
16
- "@kolisachint/hoocode-darwin-arm64": "0.1.8",
17
- "@kolisachint/hoocode-darwin-x64": "0.1.8",
18
- "@kolisachint/hoocode-linux-arm64": "0.1.8",
19
- "@kolisachint/hoocode-linux-x64": "0.1.8"
16
+ "@kolisachint/hoocode-darwin-arm64": "0.1.9",
17
+ "@kolisachint/hoocode-darwin-x64": "0.1.9",
18
+ "@kolisachint/hoocode-linux-arm64": "0.1.9",
19
+ "@kolisachint/hoocode-linux-x64": "0.1.9"
20
20
  },
21
21
  "license": "MIT",
22
22
  "repository": {