@wular/coder 0.1.20 → 0.1.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wular/coder",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "description": "Delegating coding-agent runtime",
5
5
  "type": "module",
6
6
  "bin": {
@@ -10,6 +10,7 @@
10
10
  "build": "bun build src/cli.ts src/lib/broker.ts --outdir dist --root src --target node --format esm --minify",
11
11
  "dev": "bun run build --watch",
12
12
  "typecheck": "tsc -p tsconfig.json --noEmit",
13
+ "validate-plugin:cursor": "node scripts/validate-template.mjs",
13
14
  "version-bump:patch": "node scripts/bump.mjs patch",
14
15
  "version-bump:minor": "node scripts/bump.mjs minor",
15
16
  "version-bump:major": "node scripts/bump.mjs major",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coder",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "description": "Delegate coding tasks to a Coder subagent. Your main context stays clean.",
5
5
  "author": {
6
6
  "name": "muzam1l"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coder",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "interface": {
5
5
  "displayName": "Coder (plugin)"
6
6
  },
@@ -1,8 +1,23 @@
1
1
  {
2
2
  "name": "coder",
3
- "version": "0.1.19",
3
+ "displayName": "Coder",
4
+ "version": "0.1.22",
4
5
  "description": "Delegate coding tasks to a Coder subagent. Your main context stays clean.",
5
6
  "author": {
6
7
  "name": "muzam1l"
7
- }
8
+ },
9
+ "license": "MIT",
10
+ "homepage": "https://github.com/muzam1l/coder",
11
+ "repository": "https://github.com/muzam1l/coder",
12
+ "keywords": [
13
+ "cursor",
14
+ "coder",
15
+ "codex",
16
+ "claude",
17
+ "agent",
18
+ "subagent",
19
+ "delegation",
20
+ "orchestration"
21
+ ],
22
+ "logo": "assets/logo.png"
8
23
  }
@@ -0,0 +1,119 @@
1
+ <div align="center">
2
+
3
+ # Coder
4
+
5
+ ### Delegate the coding. Keep your context.
6
+
7
+ </div>
8
+
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
+
11
+ Plugs into Claude Code or Codex to enable the harness with Coder instances.
12
+
13
+ ## Why Coder
14
+
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
+ - **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
+ - **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
+ - **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
+ - **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.
21
+
22
+ ## Get started
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
+ Follow the install host specific guides below, then you can ask like:
27
+
28
+ > Use Coder to explain the directory structure of the workspace.
29
+
30
+ You can also add this to CLAUDE.md.
31
+
32
+ > Always use Coder for all implementation and system exploring tasks.
33
+
34
+ The work happens in the engine, and your session gets the result. Codex is the primary engine when available, with a Claude subagent as fallback.
35
+
36
+ ### Cursor
37
+
38
+ ```
39
+ /add-plugin Coder
40
+ ```
41
+
42
+ ### Claude Code
43
+
44
+ ```
45
+ /plugin marketplace add muzam1l/coder
46
+
47
+ /plugin install coder@coder-plugins
48
+
49
+ /reload-plugins
50
+
51
+ /coder:setup
52
+ ```
53
+
54
+ Or from the shell:
55
+
56
+ ```
57
+ npm install -g @wular/coder
58
+ coder host-setup --claude
59
+ ```
60
+
61
+ ### Codex
62
+
63
+ ```
64
+ codex plugin marketplace add muzam1l/coder
65
+ codex plugin add coder@coder-plugins
66
+ ```
67
+
68
+ Or from the npm directly:
69
+
70
+ ```
71
+ npm install -g @wular/coder
72
+ coder host-setup --codex
73
+ ```
74
+
75
+ Note: Codex 'Approve for me' just disables invoking CLI agents, so just use 'Ask for approval'/'Full Access' when using Codex/ChatGPT app as host.
76
+
77
+ ## Staying up to date
78
+
79
+ ```bash
80
+ coder upgrade
81
+ ```
82
+
83
+ It updates the CLI through whichever package manager installed it (npm, pnpm, yarn, or bun, auto-detected) and refreshes the host plugins to match. Narrow it with `--cli-only`, `--plugins-only`, `--codex`, `--claude`, or force a manager with `--pm <npm|pnpm|yarn|bun>`.
84
+
85
+ Set `CODER_NO_UPDATE_CHECK=1` to silence the update notice.
86
+
87
+ ## Configuration
88
+
89
+ Machine defaults live in `~/.coder/config.json`; drop a `coder.config.json` in a repo to override per project.
90
+
91
+ ```json
92
+ {
93
+ "chain": ["codex", "claude"],
94
+ "agents": {
95
+ "codex": { "model": "terra", "effort": "high", "permissions": "auto" },
96
+ "claude": { "model": "opus", "effort": "medium", "permissions": "auto" }
97
+ }
98
+ }
99
+ ```
100
+
101
+ ## Advanced usage
102
+
103
+ 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`.
104
+
105
+ ```bash
106
+ coder run "<text>" # dispatch a task (--wait to block for the answer)
107
+ coder result [task-id] # status + final answer (--wait blocks until done)
108
+ coder list [--all|--stopped] # list tasks (running by default)
109
+ coder task steer <id> "<text>" # continue a task with new instructions
110
+ coder task stop <id> # interrupt it
111
+ coder task stream [id] # watch the live progress log (you/debugging)
112
+ coder task archive <id> # archive a session (--all-stopped for all finished)
113
+ coder task delete <id> # delete a session (--all-archived for all archived)
114
+ coder task approve <id> <appr> # answer an escalated permission (--deny)
115
+ ```
116
+
117
+ `run`/`list`/`result`/`stream` are shortcuts for the `task` subcommand. Any `[task-id]` defaults to the most recent task and accepts a unique prefix.
118
+
119
+ 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`.
Binary file
@@ -7,7 +7,7 @@ description: Use Coder for any coding, implementation, or investigation task - f
7
7
 
8
8
  You dispatch coding tasks through the `coder` runtime instead of implementing them yourself. By default the runtime picks the engine from its configured chain; `--agent`/`--model`/`--effort` override it. You never spawn agents yourself; the runtime spawns and supervises them.
9
9
 
10
- If `coder` is not on PATH, install it yourself without asking: `npm install -g @wular/coder`, then `coder host-setup --cursor`. Only if that fails, show the user the error and those two commands. The engines need their own CLIs: codex (`npm install -g @openai/codex`, then `codex login`) and claude (`npm install -g @anthropic-ai/claude-code`, then run `claude` once to log in) - ask the user before installing an engine CLI. The configured chain (`coder config`) decides which engine runs first and which is the fallback; set it with `coder config set chain <first>,<second>`.
10
+ If `coder` is not on PATH, install it yourself without asking: `npm install -g @wular/coder`, then run `coder host-setup` to seed the config and check engine readiness (no host plugin is installed - Cursor gets this skill from the marketplace). Only if that fails, show the user the error and those commands. Coder needs at least one engine CLI installed and logged in: codex (`npm install -g @openai/codex`, then `codex login`) and/or claude (`npm install -g @anthropic-ai/claude-code`, then run `claude` once to log in) - ask the user before installing an engine CLI. The configured chain (`coder config`) decides which engine runs first and which is the fallback; set it with `coder config set chain <first>,<second>`.
11
11
 
12
12
  When you run setup, also check codex is new enough for the default GPT-5.6 model, which needs codex `>= 0.144` (`codex --version`). If it is older, update it automatically without asking with `codex update` (codex's own updater; fall back to `npm install -g @openai/codex@latest` if it fails), then tell the user to restart their codex session so the update takes effect.
13
13