@ekravo/cli 0.0.0-stage → 0.1.113

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/README.md CHANGED
@@ -1,3 +1,556 @@
1
- # Temporary Holding Version
1
+ # Ekravo
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Ekravo is a coding agent CLI for the terminal. It's a fork of the open-source `ache` CLI ([getache/ache](https://github.com/getache/ache), Apache 2.0), built on the same [pi-mono](https://github.com/badlogic/pi-mono) coding agent SDK, adapted to run against [ekravo.com](https://ekravo.com) as its LLM provider and extended with:
4
+
5
+ - A **Read / Plan / Edit / Auto / YOLO** permission model (`Shift+Tab` cycles between them)
6
+ - **Persistent, cross-session project memory** in `ekravo.md` + `.ekravo/` (`/init` to scaffold, `/memory` to inspect)
7
+ - An Ekravo LLM provider alongside the upstream provider, so both can be configured at once during the transition
8
+
9
+ Everything the upstream CLI already does well — the terminal UI, sessions, MCP support, skills, subagents, LSP integration — is unchanged and reused as-is. See [NOTICE](NOTICE) for full attribution; Ekravo does not claim the upstream project's original code as its own and is not affiliated with CAST AI Group, Inc.
10
+
11
+ ## Quick start
12
+
13
+ This repository does not have packaged releases yet — build and run it from source.
14
+
15
+ ```bash
16
+ git clone https://github.com/EOSKILLZ/ACHECLI.git
17
+ cd ACHECLI
18
+ corepack enable
19
+ pnpm install
20
+ node ./scripts/copy-resources.js --dev
21
+ ```
22
+
23
+ Configure your API key and launch:
24
+
25
+ ```bash
26
+ pnpm run dev setup # one-time interactive setup (Ekravo API key)
27
+ pnpm run dev # launch the coding agent
28
+ ```
29
+
30
+ Or build a standalone binary (see [Development](#development) below):
31
+
32
+ ```bash
33
+ pnpm run build:binary
34
+ ./dist/bin/ekravo
35
+ ```
36
+
37
+ Once installed globally (`npm link` or similar), `ekravo` is the command name.
38
+
39
+ Run `pnpm run dev -- --help` to see all available subcommands and flags.
40
+
41
+ ## Models
42
+
43
+ ### Model selection
44
+
45
+ The supported model list is fetched at startup from the ekravo metadata service. Use `/model` or `ctrl+p` in the interactive CLI to switch between available models.
46
+
47
+ Ekravo operates in one of two modes:
48
+
49
+ | Mode | Status line indicator | Behavior |
50
+ |------|-----------------|----------|
51
+ | **Multi-model** | `multi-model (orchestrator-id)` | The orchestrator delegates each task to the model assigned for that role |
52
+ | **Single-model** | model name | All work runs on the selected model directly |
53
+
54
+ Use `ctrl+p` to cycle through models. The last entry in the cycle is `multi-model`. You can also open the `/model` picker and select a specific model or `multi-model` from the list.
55
+
56
+ In single-model mode the orchestration system prompt (environment, tools, research rules, guidelines, phase tagging) stays active, but task classification and delegation are disabled. The subagent tool remains available if you explicitly ask the agent to delegate.
57
+
58
+ ### Model roles
59
+
60
+ In multi-model mode, each task type is handled by a specific role. Each role can have one model or a **pool of candidates** — the orchestrator reads model tier and description and picks the best fit for each task.
61
+
62
+ Use `/multi-model` in the interactive CLI to toggle models on/off per role, or edit `~/.config/ekravo/harness/settings.json` directly:
63
+
64
+ ```json
65
+ {
66
+ "modelRoles": {
67
+ "orchestrator": "ekravo-dev/kimi-k2.6",
68
+ "builder": ["ekravo-dev/minimax-m2.7", "anthropic/claude-sonnet-4-5"],
69
+ "reviewer": "anthropic/claude-sonnet-4-5",
70
+ "explorer": "ekravo-dev/nemotron-3-ultra-fp4"
71
+ }
72
+ }
73
+ ```
74
+
75
+ | Role | Default | Description |
76
+ |------|---------|-------------|
77
+ | **orchestrator** | `kimi-k2.6` | Runs the main loop, classifies tasks, delegates work. Single model. |
78
+ | **planner** | `kimi-k2.6` | Designs the approach, writes specs. When same as orchestrator, planning is done in-process. |
79
+ | **builder** | `kimi-k2.6`, `minimax-m2.7` | Code implementation. For complex tasks the orchestrator may pick a heavier model from the pool. |
80
+ | **reviewer** | `kimi-k2.6`, `minimax-m2.7` | Code review. Orchestrator picks the strongest by tier for initial review. |
81
+ | **explorer** | `nemotron-3-ultra-fp4` | Codebase exploration — navigating files, reading code, tracing architecture. |
82
+ | **researcher** | `kimi-k2.6` | Research beyond the codebase — web search, documentation lookup, external sources. |
83
+
84
+ Defaults are hardcoded in `DEFAULT_MODEL_ROLES`. Roles accept any `provider/model-id` string or an array of strings. Only non-default values need to be specified; missing keys fall back to defaults.
85
+
86
+ #### How delegation works
87
+
88
+ The orchestrator receives explicit per-phase directives generated from the role configuration. For each pipeline phase (plan, build, review, explore, research), the system prompt tells the orchestrator exactly what to do:
89
+
90
+ - **Roles it owns** (its model ID appears in the role pool): "DO perform this work yourself."
91
+ - **Roles it does not own**: "DO NOT perform this work yourself. Delegate to Agent(type: X, model: Y)." — with the concrete model IDs from the pool.
92
+ - **Review is always delegated**, even when the orchestrator has the reviewer role, to ensure independence via a fresh context.
93
+
94
+ When a role pool has multiple models, the orchestrator picks the lightest-tier model that fits the task and escalates to heavy-tier only for complex work (concurrency, algorithms) or as a retry after a standard-tier model has failed.
95
+
96
+ Built-in models (ekravo-dev) have tier and description baked in. External models need metadata — see below.
97
+
98
+ #### Model metadata
99
+
100
+ External models (Anthropic, OpenAI, or any non-builtin provider) have no built-in tier or description. Without metadata, they default to `standard` tier, `vision: false`, and an auto-generated description based on their assigned roles. To give the orchestrator better routing information, add a `modelMetadata` section to `settings.json`:
101
+
102
+ ```json
103
+ {
104
+ "modelRoles": {
105
+ "builder": ["ekravo-dev/minimax-m2.7", "anthropic/claude-sonnet-4-5"],
106
+ "reviewer": "anthropic/claude-sonnet-4-5"
107
+ },
108
+ "modelMetadata": {
109
+ "anthropic/claude-sonnet-4-5": {
110
+ "tier": "heavy",
111
+ "description": "Strong general-purpose model — use for complex builds and thorough reviews."
112
+ }
113
+ }
114
+ }
115
+ ```
116
+
117
+ | Field | Default | Description |
118
+ |-------|---------|-------------|
119
+ | `tier` | `standard` | `light`, `standard`, or `heavy`. Used for complexity-based routing. |
120
+ | `description` | Auto-generated | Shown to the orchestrator so it can match model strengths to task requirements. |
121
+ | `vision` | `false` | Whether the model supports image input. |
122
+
123
+ With the metadata above, the orchestrator will use minimax for simple build chunks and Claude for complex ones. Without it, both models look like standard-tier to the orchestrator and selection is arbitrary.
124
+
125
+ Metadata can also be managed interactively via `/multi-model` → "Edit model metadata" — this is the only in-app path for configuring or overriding metadata, so model selection stays uninterrupted. Custom overrides can be reset to defaults from the same menu. Metadata for builtin models can be overridden the same way.
126
+
127
+ #### Completion token limits
128
+
129
+ Ekravo omits Pi's estimated `max_completion_tokens` and `max_tokens` fields from requests to managed Ekravo providers. The gateway determines how much output fits using the model's actual tokenizer; output-budget enforcement belongs at the gateway rather than in Pi's approximate client-side context calculation.
130
+
131
+ ### Phase tracking
132
+
133
+ Ekravo tags every LLM request with a `phase:{name}` label for usage analytics and cost attribution. The orchestrator sets the phase as work progresses and it is displayed in the status line.
134
+
135
+ | Phase | Description |
136
+ |-------|-------------|
137
+ | `explore` | Navigating the codebase, reading files to understand structure |
138
+ | `plan` | Designing, breaking down tasks, writing specs |
139
+ | `build` | Writing, modifying, or refactoring code |
140
+ | `review` | Analyzing output, verifying correctness |
141
+ | `research` | Investigating documentation, researching issues |
142
+
143
+ Subagents inherit the current phase from the orchestrator but cannot change it.
144
+
145
+ ## Permission modes
146
+
147
+ `Shift+Tab` cycles through five modes:
148
+
149
+ | Mode | Behavior |
150
+ |------|----------|
151
+ | **Read** | Inspect and explain only -- no file modifications, no writes |
152
+ | **Plan** | Plan and ask questions -- no implementation, same read-only tool restriction as Read plus the structured planning workflow (`<!-- PLAN_COMPLETE -->` menu) |
153
+ | **Edit** | Modify files, asks for approval before each change (this is the `default` mode internally) |
154
+ | **Auto** | Runs freely; a classifier still gates high-risk actions |
155
+ | **YOLO** | Skips every permission check with no classifier -- see the warning below |
156
+
157
+ **YOLO** is last in the cycle, one `Shift+Tab` past Auto, and landing on it shows a persistent warning in the status line. It disables *all* permission checks, so it is intended for sandboxed environments only. You can also enter it directly via `/permissions mode yolo`, `--yolo`, or `--dangerously-skip-permissions`.
158
+
159
+ ## Project memory
160
+
161
+ Ekravo adds persistent, cross-session project memory on top of the upstream CLI's existing session persistence:
162
+
163
+ ```
164
+ ekravo.md -- concise, always-visible project overview
165
+ .ekravo/
166
+ ├── architecture.md -- technical structure, important systems
167
+ ├── decisions.md -- architectural decisions and reasoning
168
+ ├── changelog.md -- completed implementations, newest first
169
+ ├── tasks.md -- current, future, and unfinished work
170
+ └── known-issues.md -- unresolved bugs, limitations, risks
171
+ ```
172
+
173
+ `ekravo.md` is injected into the system prompt like `AGENTS.md`/`CLAUDE.md`. The `.ekravo/*.md` files are not force-injected -- the agent reads them on demand via the standard Read tool, guided by a standing system-prompt note that appears whenever `.ekravo/` exists in the project.
174
+
175
+ | Command | Description |
176
+ |---------|--------------|
177
+ | `/init` | Scaffold `ekravo.md` and any missing `.ekravo/*.md` files. Never overwrites an existing file. |
178
+ | `/memory` | Show which memory files exist, with a short excerpt of each. |
179
+
180
+ The status line shows scaffold progress as `Memory N/6` when pinned (on by default).
181
+
182
+ **Updates aren't just a polite suggestion.** If a turn writes or edits files outside `.ekravo/` and the model
183
+ then stops normally without having touched `.ekravo/*.md` itself, it gets nudged once to consider updating
184
+ memory before moving on -- capped at a few nudges per session so a genuinely-not-memory-worthy change
185
+ doesn't get nagged forever. This mirrors the upstream CLI's existing plan-mode stop-nudge pattern.
186
+
187
+ ## Tags
188
+
189
+ Ekravo supports tagging LLM requests for usage tracking and cost attribution. Tags are included with every request and displayed in the status line, grouped by key with color coding.
190
+
191
+ ### Commands
192
+
193
+ | Command | Description |
194
+ |---------|-------------|
195
+ | `/tags` | List all active tags |
196
+ | `/tags add key:value ...` | Add one or more tags (e.g., `/tags add project:myapp team:backend`) |
197
+ | `/tags remove tag ...` | Remove one or more user-defined tags |
198
+ | `/tags clear` | Remove all user-defined tags |
199
+
200
+ ### Tag format
201
+
202
+ Tags use `key:value` format. Key and value must start and end with alphanumeric characters (middle characters may include `-`, `_`, `.`), each 64 characters max, 10 tags total.
203
+
204
+ ### Static tags
205
+
206
+ Set via the `EKRAVO_TAGS` environment variable (comma-separated). Static tags are read-only within the session and shown with a `[static]` marker.
207
+
208
+ ```bash
209
+ export EKRAVO_TAGS="team:backend,project:api"
210
+ ```
211
+
212
+ ### Auto-tags
213
+
214
+ Two tags are added automatically to every request and do not count toward the 10 tag limit:
215
+
216
+ - `model:{model_id}` -- the model handling the request
217
+ - `phase:{phase}` -- the current work phase
218
+
219
+ ### Persistence
220
+
221
+ User-defined tags (added via `/tags add`) are persisted to `~/.config/ekravo/tags.json` and survive across sessions. Static tags from `EKRAVO_TAGS` must be set each session.
222
+
223
+ ## LSP Integration
224
+
225
+ ekravo ships with built-in Language Server Protocol (LSP) support, giving the agent type-aware code intelligence. The extension loads by default — no configuration required.
226
+
227
+ ### Supported languages
228
+
229
+ | Language | Server | Install |
230
+ |---|---|---|
231
+ | TypeScript / JavaScript | `typescript-language-server` | `npm i -g typescript-language-server typescript` |
232
+ | Go | `gopls` | `go install golang.org/x/tools/gopls@latest` |
233
+
234
+ Servers are auto-detected via `which` on `PATH`. If a server binary is not found, the corresponding tools are silently unavailable.
235
+
236
+ ### Tools
237
+
238
+ | Tool | Description |
239
+ |---|---|
240
+ | `lsp_diagnostics` | Get type errors, warnings, and linter diagnostics for a file |
241
+ | `lsp_hover` | Get type information and documentation for a symbol at a position |
242
+ | `lsp_definition` | Navigate to the definition of a symbol (supports `typeDefinition` and `implementation` variants) |
243
+ | `lsp_references` | Find all references to a symbol across the codebase |
244
+ | `lsp_rename` | Atomically rename a symbol across all files |
245
+
246
+ The agent is prompted to prefer LSP tools over text-based alternatives (e.g., `lsp_definition` over `grep` for navigating to definitions). File changes made via `edit`, `write`, or `read` are automatically synced to the language server.
247
+
248
+ ### Status bar
249
+
250
+ When LSP servers are active, the status bar shows the server name(s) and current diagnostic error count (e.g., `LSP: typescript-language-server (3 diags)`).
251
+
252
+ ## Remote Sessions
253
+
254
+ Hand off an in-progress session to a cloud sandbox with `/teleport` — the agent keeps running when you close your laptop, switch machines, or hand off to a teammate. Resume from the CLI, the Ekravo console, or VS Code.
255
+
256
+ > **Requires Ekravo CLI v0.1.52+.** Check with `ekravo --version`, update with `ekravo update`. Not available on Windows.
257
+
258
+ ```bash
259
+ /teleport
260
+ ```
261
+ ### Commands
262
+
263
+ | Command | Description |
264
+ |---------|-------------|
265
+ | `/teleport [name] [flags]` | Rsync working tree to a cloud sandbox and foreground it |
266
+ | `/remote-sessions` | Browse all workspaces and sessions; reattach with Enter |
267
+ | `/sync up\|down --workspace <name> --source <path> --target <path>` | Push or pull files without restarting the session |
268
+ | `/terminal [name-or-id]` | Open a raw SSH shell on the sandbox |
269
+
270
+
271
+ ### `/teleport` flags
272
+
273
+ | Flag | Description |
274
+ |------|-------------|
275
+ | `--workspace <id\|name>` | Reuse an existing workspace instead of creating a new one |
276
+ | `--git-repo <url>` | Clone from a git URL instead of rsyncing local files |
277
+ | `--branch <branch>` | Branch to check out after cloning (requires `--git-repo`) |
278
+ | `--allow-dirty` | Proceed with uncommitted changes |
279
+ | `--force` | Override the 5 GB workspace size limit |
280
+ | `--no-git-token` | Skip git credentials prompt |
281
+ | `--skip-session` | Start remote agent fresh (don't upload current session history) |
282
+
283
+
284
+ Once teleported, you're in the **PTY overlay** — a fullscreen tabbed terminal. Use `Ctrl+B c` / `n` / `p` to open and switch tabs. Press `Ctrl+D` to drop back to local ekravo; the sandbox and agent keep running.
285
+
286
+ For full documentation see [docs.ekravo.com/docs/coding-remote-sessions](https://docs.ekravo.com/docs/coding-remote-sessions).
287
+
288
+ ## Configuration
289
+
290
+ ### Authentication
291
+
292
+ The Ekravo API key is resolved in this order:
293
+
294
+ 1. `EKRAVO_API_KEY` environment variable (takes precedence)
295
+ 2. `~/.config/ekravo/config.json` field `ekravoApiKey`
296
+
297
+ The upstream provider key is resolved independently, so both can be configured at once:
298
+
299
+ 1. `EKRAVO_API_KEY` environment variable (takes precedence)
300
+ 2. `~/.config/ekravo/config.json` field `api_key` (or `apiKey`)
301
+
302
+ Run `ekravo setup` for an interactive first-time configuration, which now offers an optional upstream-key step alongside the Ekravo one.
303
+
304
+ **Legacy environment variables:** installs that predate the rename can keep using `ACHE_*` names — at startup every inherited `ACHE_*` variable is mirrored onto its `EKRAVO_*` equivalent, so `ACHE_API_KEY` still works as `EKRAVO_API_KEY`. Explicit `EKRAVO_*` values always win over a stale `ACHE_*` one. Set `EKRAVO_QUIET_LEGACY=1` to silence the rename warning. <!-- brand-boundary-allow: documents the compatibility layer --> The same compatibility layer migrates the old config directory and `.ache/` project memory in place, so an existing install keeps its settings, sessions and memory.
305
+
306
+ **Usage and cost:** The CLI preserves model IDs exactly as returned by the catalog; it does not rewrite provider IDs or infer transport slugs. Requests authenticated with an Ekravo subscription/API key are billed according to the associated Ekravo account and plan. ACHECLI does not add a separate per-token markup or determine plan entitlements; consult the account's current billing terms for subscription limits, credits, and API usage charges.
307
+
308
+ ### Agent config
309
+
310
+ Ekravo stores its configuration (settings, sessions, models) under:
311
+
312
+ ```
313
+ ~/.config/ekravo/harness/
314
+ ```
315
+
316
+ ### Context files
317
+
318
+ You can provide custom instructions that are injected into the system prompt on every session. Ekravo discovers two kinds of context files:
319
+
320
+ **Global** — applied to every session, regardless of project:
321
+
322
+ ```
323
+ ~/.config/ekravo/harness/AGENTS.md
324
+ ```
325
+
326
+ Place rules that apply everywhere (e.g., your name, code style preferences, or global tool defaults) in this file. It is loaded before any project-level files.
327
+
328
+ **Project-level** — applied when working in a specific directory tree. Ekravo walks from the working directory up to the filesystem root and collects one context file per directory:
329
+
330
+ ```
331
+ AGENTS.md
332
+ CLAUDE.md
333
+ ```
334
+
335
+ Per directory, `AGENTS.md` takes priority over `CLAUDE.md`. A `.local.md` variant (e.g. `AGENTS.local.md`) is appended to its primary file for user-specific, gitignored overrides.
336
+
337
+ When both global and project files exist, global instructions appear first in the prompt, followed by ancestor directories, and finally the working directory. This means project-level rules can refine or override global ones.
338
+
339
+ ### Packages
340
+
341
+ Ekravo supports native Pi packages. `ekravo install npm:<package>` installs a package only for Ekravo, while `pi install npm:<package>` keeps the package owned by the original Pi harness. Ekravo can also load original Pi packages through the **Pi package lookup** resource, so both CLIs can use Pi packages without sharing Ekravo's install scope.
342
+
343
+ If the same package is installed in both places, the Ekravo install wins. Disable original Pi package lookup with:
344
+
345
+ ```bash
346
+ ekravo resources disable extensions.pi-package-lookup
347
+ ```
348
+
349
+ Update packages with:
350
+
351
+ ```bash
352
+ ekravo update # update installed packages, then Ekravo itself
353
+ ekravo update --extensions # update installed packages only
354
+ ekravo update context-mode # update one package by source or display name
355
+ ekravo update self # update Ekravo itself only
356
+ ekravo update v1.2.3 # install a specific Ekravo release (downgrades work too)
357
+ ekravo update v1.2.3-rc.1 # install a release candidate
358
+ ekravo update --canary # install the latest canary build from master
359
+ ```
360
+
361
+ ### HTTP proxy
362
+
363
+ Ekravo respects `HTTP_PROXY` / `HTTPS_PROXY` environment variables for network requests.
364
+
365
+ ### Token optimization (RTK)
366
+
367
+ Ekravo installs [RTK](https://github.com/rtk-ai/rtk) during setup and keeps the `rtk` command available on startup. When enabled, ekravo rewrites bash tool calls through `rtk rewrite` before execution. This compresses command output (git, cargo, npm, docker, etc.) by 60-90%, reducing LLM context usage.
368
+
369
+ Before every bash tool execution, ekravo calls `rtk rewrite "<command>"`. If RTK returns a rewritten command (e.g. `git status` becomes `rtk git status`), the rewritten version is executed instead.
370
+
371
+ ```bash
372
+ brew install rtk # macOS / Linux
373
+ ```
374
+
375
+ RTK rewrite is managed from resources:
376
+
377
+ ```bash
378
+ ekravo resources disable hooks.rtk-rewrite
379
+ ekravo resources enable hooks.rtk-rewrite
380
+ ```
381
+
382
+ ### Hooks
383
+
384
+ Users can add custom Bash hooks to rewrite or block shell commands before they run. Global hooks live in `~/.config/ekravo/harness/hooks/bash/`; project hooks live in `.ekravo/hooks/bash/` and default to disabled until enabled from `/resources` or `ekravo resources enable ...`.
385
+
386
+ See `docs/hooks.md` for the hook protocol and examples.
387
+
388
+ ### Migrating from another coding agent
389
+
390
+ On first run, ekravo looks for an existing **Claude Code**, **OpenCode**, or **Cursor** installation and offers to migrate its MCP servers. If anything is migratable you will see a one-shot prompt:
391
+
392
+ ```
393
+ + Claude Code + OpenCode + Cursor configuration found
394
+ |
395
+ | MCP servers: filesystem, github, ripgrep
396
+ | Claude Code skills: 4 in ~/.claude/skills
397
+ | OpenCode skills: 2 in ~/.config/opencode/skills
398
+ | Cursor skills: 3 in ~/.cursor/skills
399
+ |
400
+ * Migrate MCP servers to Ekravo?
401
+ | * Migrate now
402
+ | * Skip this time
403
+ | * Never ask again
404
+ ```
405
+
406
+ Discovered MCP servers are merged into `~/.config/ekravo/harness/mcp.json`. Existing Ekravo entries always win on name collisions, so re-running the migration is safe.
407
+
408
+ The prompt is only shown when something is actually worth migrating. If neither agent is installed or both are empty, the wizard skips silently.
409
+
410
+ #### Sources scanned
411
+
412
+ | Agent | Config files (read in order, results merged) | Skills directory |
413
+ |---|---|---|
414
+ | Claude Code | `~/.claude.json` (top-level `mcpServers` + per-project `projects[*].mcpServers`) | `~/.claude/skills/` |
415
+ | OpenCode | `$OPENCODE_CONFIG`, then `~/.config/opencode/opencode.json`, `opencode.jsonc`, `config.json`, `~/.opencode.json` | `~/.config/opencode/skills/` |
416
+ | Cursor | `~/.cursor/mcp.json`, then `~/.config/cursor/mcp.json` | `.cursor/skills/`, then `~/.cursor/skills/` |
417
+
418
+ For OpenCode, both the modern (`mcp` block) and legacy Go-binary (`mcpServers` block) schemas are supported. Servers with `enabled: false` are skipped. For Cursor, servers with `disabled: true` are skipped.
419
+
420
+ #### Conflict resolution
421
+
422
+ When the same MCP server name appears in multiple sources:
423
+
424
+ 1. **Within one agent**: earlier files win; project-level entries win over top-level (Claude Code); modern `mcp` block wins over legacy `mcpServers` (OpenCode); `~/.cursor/mcp.json` wins over `~/.config/cursor/mcp.json` (Cursor).
425
+ 2. **Across agents**: Claude Code wins over OpenCode, which wins over Cursor.
426
+ 3. **Against existing Ekravo config**: your entries in `~/.config/ekravo/harness/mcp.json` always win.
427
+
428
+ #### "Never ask again"
429
+
430
+ Stored in `~/.config/ekravo/config.json` (`migrationState: "skip-forever"`). Delete that field to re-trigger the prompt. Adding support for another agent is a small change -- drop a new definition into `src/agent-discovery/agents/` and append it to the registry.
431
+
432
+ ## Development
433
+
434
+ ### Prerequisites
435
+
436
+ - Node.js 22 (LTS)
437
+ - [Bun](https://bun.sh/) (dev server and binary compilation)
438
+ - [corepack](https://nodejs.org/api/corepack.html) enabled (`corepack enable`)
439
+ - pnpm (installed automatically via corepack)
440
+
441
+ ### Quick setup
442
+
443
+ ```bash
444
+ ./scripts/dev-startup.sh
445
+ ```
446
+
447
+ This script checks and installs node, pnpm, and bun if missing, initializes git submodules, runs `pnpm install`, copies resources, and starts the harness with `pnpm run dev`.
448
+
449
+ ### Manual setup
450
+
451
+ ```bash
452
+ git clone https://github.com/EOSKILLZ/ACHECLI.git
453
+ cd ACHECLI
454
+ # Currently a no-op (no submodules after superpowers removal); kept for future use
455
+ git submodule update --init --recursive
456
+ corepack enable
457
+ pnpm install
458
+ ```
459
+
460
+ ### Commands
461
+
462
+ | Command | Description |
463
+ |---------|-------------|
464
+ | `pnpm run build` | Compile TypeScript to `dist/` and copy theme assets |
465
+ | `pnpm run dev` | Run the CLI locally via Bun |
466
+ | `pnpm run check` | Biome lint + TypeScript type check |
467
+ | `pnpm run lint` | Biome lint only |
468
+ | `pnpm run lint:fix` | Biome lint with auto-fix |
469
+ | `pnpm run test` | Run tests with vitest |
470
+ | `pnpm run test:smoke` | End-to-end smoke tests |
471
+
472
+ ### Running locally
473
+
474
+ Propagate resources before first run:
475
+
476
+ ```bash
477
+ node ./scripts/copy-resources.js --dev
478
+ ```
479
+
480
+ Run the CLI directly via Bun:
481
+
482
+ ```bash
483
+ pnpm run dev
484
+ ```
485
+
486
+ Or build a standalone binary:
487
+
488
+ ```bash
489
+ pnpm run build:binary
490
+ ./dist/bin/ekravo
491
+ ```
492
+
493
+ ### Project structure
494
+
495
+ ```
496
+ src/
497
+ entry.ts -- Entry point
498
+ cli.ts -- CLI logic & harness initialization
499
+ cli-args.ts -- Argument parsing
500
+ config.ts -- Auth & config loading
501
+ models.ts -- Model metadata fetching & registration
502
+ setup-wizard.ts -- First-run wizard
503
+ commands/ -- CLI subcommands (setup, login, config, update, ...)
504
+ extensions/ -- Agent extensions
505
+ agents/ -- Subagent system (personas, manager, memory)
506
+ orchestration/ -- Task classification, model registry, delegation
507
+ mcp-adapter/ -- MCP server integration
508
+ permissions/ -- Tool auth flows
509
+ behaviours/ -- Contextual prompt behaviours
510
+ web-fetch/ -- Web content fetching
511
+ web-search/ -- Web search
512
+ lsp/ -- Language Server Protocol
513
+ login/ -- OAuth flows
514
+ onboarding/ -- Session mode startup wizard
515
+ modes/
516
+ interactive/ -- TUI harness
517
+ acp/ -- JSON-RPC over stdio (IDE integration)
518
+ teleport/ -- Remote session multiplexing
519
+ agent-discovery/ -- Detection & migration of other coding agents
520
+ config/ -- Config loading & merging
521
+ auth/ -- API key management
522
+ utils/ -- Shared helpers
523
+ ```
524
+
525
+ ## Benchmarking
526
+
527
+ The `benchmark/` directory contains tools for smoke-testing ekravo sessions and auditing their quality.
528
+
529
+ - **Manual benchmarks** (`benchmark/manual/`) -- run predefined tasks against different models and compare results. See `benchmark/manual/README.md`.
530
+ - **Terminal-bench-2** (`benchmark/terminal-bench-2/`) -- run the [terminal-bench](https://www.harborframework.com/) suite (89 tasks) against ekravo inside Docker containers. See `benchmark/terminal-bench-2/README.md`.
531
+ - **Session audit** (`benchmark/audit-session/`) -- audit a completed session for phase discipline, code quality, architecture, testing, model alignment, and cost efficiency. See `benchmark/audit-session/README.md`.
532
+
533
+ ## Release
534
+
535
+ `pnpm run build:binary` compiles a standalone binary with `bun build --compile` (no runtime required on the
536
+ user's machine) and produces `dist/bin/ekravo`.
537
+
538
+ Supported platforms:
539
+
540
+ - macOS (amd64, arm64)
541
+ - Linux (amd64, arm64)
542
+ - Windows (amd64)
543
+
544
+ `.github/workflows/release.yml`, `scripts/install.sh`, and `scripts/install.ps1` are adapted for this fork:
545
+ GitHub Actions builds and uploads the `ekravo` binary, release assets follow `ekravo_{os}_{arch}.tar.gz`
546
+ (macOS/Linux) / `ekravo_windows_amd64.zip` naming with a `checksums.txt` (SHA256), and the install scripts pull
547
+ from `EOSKILLZ/ACHECLI` releases by default. **Homebrew publishing was removed, not reworked** -- the upstream
548
+ release pipeline pushed formula updates to `getache/homebrew-tap`, a repository this fork has no
549
+ access to, and no Ekravo-owned tap exists yet (see `.ekravo/decisions.md` for how to reinstate it later). Nothing
550
+ in this pipeline has actually been run yet -- no tag has been pushed and no release has been cut.
551
+
552
+ Windows build and local VM testing notes live in [`docs/windows/README.md`](docs/windows/README.md).
553
+
554
+ ## License
555
+
556
+ [Apache License 2.0](LICENSE) -- see [CONTRIBUTING.md](CONTRIBUTING.md) for the CLA and contributor guidelines.