@wular/coder 0.1.16 → 0.1.18

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
@@ -6,7 +6,7 @@
6
6
 
7
7
  </div>
8
8
 
9
- One runtime that hands your coding tasks to the best engine available and lets you steer, inspect, or stop any job while it works.
9
+ One runtime that hands your coding tasks to the best engine available and lets you steer, inspect, or stop any task while it works.
10
10
 
11
11
  Plugs into Claude Code or Codex to enable the harness with Coder instances.
12
12
 
@@ -15,11 +15,15 @@ Plugs into Claude Code or Codex to enable the harness with Coder instances.
15
15
  - **A clean main thread.** Installed in Claude Code or Codex, dispatch is a single command from your session; the actual coding runs in a Coder subagent. File dumps, test output, and retries stay there; only the outcome returns to your conversation.
16
16
  - **Fast dispatch.** Coder keeps a single Codex engine warm in the background and hands tasks to it directly, instead of booting the CLI for every request. A handoff starts in seconds.
17
17
  - **Unified permissions.** One permission model across agents, with three modes: **Read-only**, **Workspace-write**, and **Auto**. Auto is the default: safe commands run, dangerous ones are blocked, and anything in between is brought to you for a yes/no.
18
- - **Jobs you can steer.** Every task is a job. Check on it, read its result, give it follow-up instructions, or stop it, all by id, while it keeps working in the background.
18
+ - **Tasks you can steer.** Every dispatch is a task. Check on it, read its result, give it follow-up instructions, or stop it, all by id, while it keeps working in the background.
19
19
  - **Graceful fallback.** If Codex can't start (auth, usage limits, not installed), the task flows to a Claude subagent with the same instructions. You configure the chain and the default model and effort for each agent.
20
+ - **Any model, anywhere.** Codex can point at local models (Ollama, LM Studio, and other OpenAI-compatible endpoints) and third-party providers, so Coder can run your tasks on those too - not just the hosted defaults. That opens up the whole scope of engines you can delegate to.
20
21
 
21
22
  ## Get started
22
23
 
24
+ Coder runs your tasks on an **engine CLI** - it needs at least one of the [codex CLI](https://github.com/openai/codex) (`npm install -g @openai/codex`, then `codex login`) or the [Claude Code CLI](https://github.com/anthropics/claude-code) (`npm install -g @anthropic-ai/claude-code`, then `claude auth login`) installed and logged in. `coder host-setup` reports which are ready; if none is, install one of them to run tasks.
25
+
26
+
23
27
  ### Claude Code
24
28
 
25
29
  ```
@@ -36,7 +40,7 @@ Or from the shell:
36
40
 
37
41
  ```
38
42
  npm install -g @wular/coder
39
- coder setup --claude
43
+ coder host-setup --claude
40
44
  ```
41
45
 
42
46
  Then you can ask like:
@@ -60,7 +64,7 @@ Or from the npm directly:
60
64
 
61
65
  ```
62
66
  npm install -g @wular/coder
63
- coder setup --codex
67
+ coder host-setup --codex
64
68
  ```
65
69
 
66
70
  Then ask like:
@@ -95,24 +99,20 @@ Machine defaults live in `~/.coder/config.json`; drop a `coder.config.json` in a
95
99
 
96
100
  ## Advanced usage
97
101
 
98
- You rarely need these: the agent creates and controls jobs on its own. But you can ask it explicitly ("steer that job", "approve that command", "stop it"), or run the commands yourself:
102
+ You rarely need these - the agent drives tasks itself - but you can run them. Task commands live under `coder task <sub>`; the common ones have a top-level shortcut. Full docs: `coder --help`, `coder task <sub> --help`.
99
103
 
100
104
  ```bash
101
- coder task "<text>" # run a task in the background (--wait to block)
102
- coder status [job] # progress and pending approvals
103
- coder result [job] # the final answer
104
- coder steer <job> "<follow-up>" # continue a job with new instructions
105
- coder stop <job> # interrupt it
106
- coder approve <job> <id> # answer an escalated permission (--deny)
105
+ coder run "<text>" # dispatch a task (--wait to block for the answer)
106
+ coder result [task-id] # status + final answer (--wait blocks until done)
107
+ coder list [--all|--stopped] # list tasks (running by default)
108
+ coder task steer <id> "<text>" # continue a task with new instructions
109
+ coder task stop <id> # interrupt it
110
+ coder task stream [id] # watch the live progress log (you/debugging)
111
+ coder task archive <id> # archive a session (--all-stopped for all finished)
112
+ coder task delete <id> # delete a session (--all-archived for all archived)
113
+ coder task approve <id> <appr> # answer an escalated permission (--deny)
107
114
  ```
108
115
 
109
- Common flags:
116
+ `run`/`list`/`result`/`stream` are shortcuts for the `task` subcommand. Any `[task-id]` defaults to the most recent task and accepts a unique prefix.
110
117
 
111
- | Flag | Values | Default |
112
- | ------------------ | ------------------------------------------------------------------------- | ----------------- |
113
- | `--wait` | run in the foreground and print the answer | background |
114
- | `--agent` | `codex`, `claude` | first in`chain` |
115
- | `--model` | `spark`, `luna`, `terra`, `sol`, `opus`, `sonnet`, `fable` or any raw model slug | from config |
116
- | `--effort` | `low`, `medium`, `high` | from config |
117
- | `--permissions` | `read-only`, `workspace-write`, `auto` | `auto` |
118
- | `--resume <job>` | continue that job's thread instead of starting fresh | fresh run |
118
+ Run flags (`run`/`steer`): `--wait` (foreground), `--agent codex|claude`, `--model spark|luna|terra|sol|opus|sonnet|fable`, `--effort low|medium|high`, `--permissions read-only|workspace-write|auto`, `--resume <task-id>`, `--json`.