@nanobpm/nano-coder 0.15.0 → 0.16.0

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 (2) hide show
  1. package/README.md +30 -6
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -20,7 +20,7 @@ cargo install nano-coder # or build from source
20
20
  - **Sessions**: Append-only JSONL session logs with resume and input-ID deduplication
21
21
  - **Lifecycle Hooks**: 6 hook events for observing/intercepting agent behavior
22
22
  - **Configuration**: TOML-based config file at `~/.config/nano-coder/config.toml`
23
- - **Commands**: `/help`, `/compact`, `/context`, `/verbosity`, `/settings`, `/tools`, `/skills`, `/restart`, `/exit`
23
+ - **Commands**: `/help`, `/compact`, `/context`, `/verbosity`, `/settings`, `/tools`, `/skills`, `/queue`, `/restart`, `/exit`
24
24
  - **Streaming output**: answers stream in, thinking shows collapsed (Ctrl-O expands it), tool calls show inline
25
25
  - **Status line** pinned to the bottom of the terminal, plus manual and automatic context compaction
26
26
  - **Task plans**: `plan_*` tools keep a plan with notes outside the conversation, so long tasks survive compaction, resume and a change of worker
@@ -38,9 +38,14 @@ cargo run
38
38
 
39
39
  Starts the interactive REPL where you can chat with the agent and use slash commands.
40
40
 
41
- While a turn is running you can type a message and press Enter to **steer** it: the
42
- message joins the conversation before the next model call (even if the model had
43
- just produced its final answer, the turn continues with the steer). **Esc Esc** (twice within a second) or **Ctrl-C** cancels
41
+ While a turn is running you can type a message and press Enter to **queue** it: the
42
+ message waits in a queue and runs as a later prompt — one per turn, in the order you
43
+ sent them. The status line shows how many are waiting. Edit the queue at any time
44
+ (even mid-turn) with `/queue`: `/queue` lists the waiting messages, `/queue remove N`
45
+ drops one (or several, `/queue remove N M`), `/queue edit N new text` rewrites one, and
46
+ `/queue clear` empties the queue. A queued message is never injected while the agent is
47
+ asking for input (the `question` tool's picker owns the terminal until you answer).
48
+ **Esc Esc** (twice within a second) or **Ctrl-C** cancels
44
49
  the running turn, killing any running bash command; a second Ctrl-C at the prompt exits.
45
50
  With piped (non-terminal) stdin, lines read during a turn are queued as later prompts.
46
51
 
@@ -136,9 +141,10 @@ src/
136
141
  ├── context.rs # Token accounting, context-window heuristics, overflow detection
137
142
  ├── status.rs # Bottom-of-terminal status line
138
143
  ├── ui.rs # Verbosity levels and the streaming output renderer
139
- ├── lineedit.rs # Key-by-key prompt input (Ctrl-O, steering on the status line)
144
+ ├── lineedit.rs # Key-by-key prompt input (Ctrl-O, mid-turn input on the status line)
140
145
  ├── instructions.rs # AGENTS.md / CLAUDE.md discovery for the system prompt
141
146
  ├── plan.rs # Task plan and the plan_add / plan_update / plan_show tools
147
+ ├── queue.rs # The interactive message queue and the /queue editor
142
148
  ├── goal.rs # report_outcome tool (completed / blocked / needs_input)
143
149
  ├── mode.rs # Agent mode (normal / plan / auto) and the plan-mode tool gate
144
150
  ├── question.rs # question tool and the mid-turn question / turn-cap rendezvous
@@ -294,6 +300,7 @@ argument: a type-ahead list narrows as you type and Tab completes it.
294
300
  - `/tools` - List registered tools
295
301
  - `/skills` - List the skills the agent can load, where each lives, and any loading warnings
296
302
  - `/plan` - Show the agent's task plan with all notes
303
+ - `/queue [list|remove N...|edit N text|clear]` - Show or edit the queued messages. Works while a turn runs, so a queued message can be removed or rewritten before it is sent.
297
304
  - `/model [provider/model]` - Show the current model and pick a new one: scroll the provider list, then the model list (Esc steps back). With an argument, switches directly (conversation is kept). Typing `/model ` shows a type-ahead of the current model, recently used models, and each configured provider's default model; Tab completes (a bare provider name completes to its default model). Recently used models are kept in `~/.local/share/nano-coder/recent-models.json`
298
305
  - `/mode [normal|plan|auto]` - Show or set the agent mode (Shift+Tab cycles it, at the prompt or mid-turn):
299
306
  - **normal** - full tools; reaching the turn cap asks whether to keep going
@@ -453,6 +460,22 @@ which becomes `openai` if it was `mock`.
453
460
  List a provider's models with `--list-models <provider>` (OpenAI-compatible endpoints and
454
461
  `github-copilot`).
455
462
 
463
+ ### Local servers on another machine (macOS)
464
+
465
+ macOS Local Network privacy can block nano-coder from reaching a model server on your
466
+ LAN (e.g. `http://192.168.0.141:8888/v1` or `http://merlin.local:11434/v1`). Requests fail
467
+ with `tcp connect error … No route to host (os error 65)`, while `curl` to the same URL
468
+ works. `localhost` is not affected.
469
+
470
+ - Allow it in **System Settings → Privacy & Security → Local Network**. The prompt and the
471
+ entry go to the app that launched nano-coder (your terminal, or the editor running it over
472
+ ACP). A locally built binary is unsigned, so macOS may treat each rebuild as a new app and
473
+ ask again.
474
+ - Or forward a local port, which needs no permission:
475
+ `ssh -N -L 18888:localhost:8888 user@192.168.0.141` (or `socat
476
+ TCP-LISTEN:18888,bind=127.0.0.1,fork TCP:192.168.0.141:8888`), then set
477
+ `base_url = "http://127.0.0.1:18888/v1"`.
478
+
456
479
  ### GitHub Copilot (unofficial)
457
480
 
458
481
  The `github-copilot` provider uses a GitHub Copilot subscription by authenticating **as the
@@ -515,7 +538,8 @@ enabled (e.g. `extra_body = { thinking = { type = "enabled", budget_tokens = 400
515
538
  error).
516
539
 
517
540
  **Input.** On a terminal, input is read key by key. While a turn runs, what you type shows
518
- on the status line; Enter sends it as a steer, Esc Esc or Ctrl-C cancels the turn. The prompt supports
541
+ on the status line; Enter adds it to the message queue (one queued message runs per
542
+ following turn; `/queue` lists, edits and removes them), Esc Esc or Ctrl-C cancels the turn. The prompt supports
519
543
  editing: Left/Right move the cursor, Home/End (or Ctrl-A/Ctrl-E) jump to the start/end,
520
544
  Alt/Option-Left/Right (or Alt-B/Alt-F) move by word, and clicking with the mouse places the
521
545
  cursor. Backspace and Delete remove the character before/under the cursor, Ctrl-U clears the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nanobpm/nano-coder",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "A 6MB coding agent. Run a fleet on your laptop.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -31,9 +31,9 @@
31
31
  "node": ">=18"
32
32
  },
33
33
  "optionalDependencies": {
34
- "@nanobpm/nano-coder-darwin-arm64": "0.15.0",
35
- "@nanobpm/nano-coder-darwin-x64": "0.15.0",
36
- "@nanobpm/nano-coder-linux-arm64": "0.15.0",
37
- "@nanobpm/nano-coder-linux-x64": "0.15.0"
34
+ "@nanobpm/nano-coder-darwin-arm64": "0.16.0",
35
+ "@nanobpm/nano-coder-darwin-x64": "0.16.0",
36
+ "@nanobpm/nano-coder-linux-arm64": "0.16.0",
37
+ "@nanobpm/nano-coder-linux-x64": "0.16.0"
38
38
  }
39
39
  }