@nanobpm/nano-coder 0.15.1 → 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.
- package/README.md +14 -6
- 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 **
|
|
42
|
-
message
|
|
43
|
-
|
|
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,
|
|
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
|
|
@@ -531,7 +538,8 @@ enabled (e.g. `extra_body = { thinking = { type = "enabled", budget_tokens = 400
|
|
|
531
538
|
error).
|
|
532
539
|
|
|
533
540
|
**Input.** On a terminal, input is read key by key. While a turn runs, what you type shows
|
|
534
|
-
on the status line; Enter
|
|
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
|
|
535
543
|
editing: Left/Right move the cursor, Home/End (or Ctrl-A/Ctrl-E) jump to the start/end,
|
|
536
544
|
Alt/Option-Left/Right (or Alt-B/Alt-F) move by word, and clicking with the mouse places the
|
|
537
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.
|
|
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.
|
|
35
|
-
"@nanobpm/nano-coder-darwin-x64": "0.
|
|
36
|
-
"@nanobpm/nano-coder-linux-arm64": "0.
|
|
37
|
-
"@nanobpm/nano-coder-linux-x64": "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
|
}
|