@nanobpm/nano-coder 1.2.1 → 1.5.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 +19 -6
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -407,7 +407,7 @@ argument: a type-ahead list narrows as you type and Tab completes it.
407
407
  - `/help` - Show available commands
408
408
  - `/compact [--smart|--standard] [focus]` - Summarize older messages with the current model,
409
409
  keeping the latest message. `--smart` / `--standard` override `compaction_mode` for this
410
- compaction (see [Smart compaction](#smart-compaction-experimental)). Optional text tells the
410
+ compaction (see [Smart compaction](#smart-compaction)). Optional text tells the
411
411
  summary what to focus on. Esc Esc or Ctrl-C cancels
412
412
  - `/verbosity [quiet|normal|verbose|debug]` - Show or set how much is printed (see below)
413
413
  - `/context` - Show context usage, window, session token totals, AI Credits (GitHub Copilot), auto-compaction state and the loaded instruction files
@@ -557,7 +557,7 @@ session_titles = false # ask the model for a few-word title per
557
557
  # title_model = "openai/gpt-4o-mini" # model for titles (default: the session's model)
558
558
  auto_compact = true # summarize automatically when the context fills up
559
559
  auto_compact_threshold = 0.8 # fraction of the context window
560
- compaction_mode = "standard" # standard | smart (experimental, see Smart compaction)
560
+ compaction_mode = "smart" # smart | standard (see Smart compaction)
561
561
  # context_window = 128000 # override the window (providers can set it too)
562
562
  verbosity = "normal" # quiet | normal | verbose | debug (or --verbosity)
563
563
  timestamps = true # prefix CLI messages with the local time (HH:MM:SS)
@@ -1011,13 +1011,13 @@ another 10% of the window, so a context that can't shrink isn't summarized on ev
1011
1011
  If summarizing fails, the older messages are dropped with a note. The session log records
1012
1012
  the new conversation, so `--resume` continues from it.
1013
1013
 
1014
- ### Smart compaction (experimental)
1014
+ ### Smart compaction
1015
1015
 
1016
1016
  A summary is lossy: whatever it leaves out is gone for the agent, even though the session
1017
1017
  log still has every original message. Smart compaction keeps the whole history reachable.
1018
- It is off by default (`compaction_mode = "standard"`); try it on one compaction with
1019
- `/compact --smart`, or set `compaction_mode = "smart"` to use it for auto-compaction too.
1020
- It needs a session log, and falls back to a standard summary when `persist_sessions` is off.
1018
+ It is the default (`compaction_mode = "smart"`); set `compaction_mode = "standard"` for plain
1019
+ summaries, or override one compaction with `/compact --standard` or `--smart`. It needs a
1020
+ session log, and falls back to a standard summary when `persist_sessions` is off.
1021
1021
 
1022
1022
  - **Message IDs.** A message's ID is the line of the session log where it was first
1023
1023
  recorded, shown as `#N`. IDs are stable across compactions and `--resume`.
@@ -1322,6 +1322,19 @@ prompt. A saved session is reported with the command that resumes it
1322
1322
  can reopen it after a restart (Herdr 0.9.2 or later). The pane is released on exit.
1323
1323
  Reports run in the background and failures are ignored; outside Herdr nothing is sent.
1324
1324
 
1325
+ While the agent has a timer set, nano-coder also reports a `timer` token showing ⏰.
1326
+ Herdr's state icon is fixed per state, so put `$timer` next to it in your Herdr
1327
+ `config.toml`. Herdr only takes per-agent layouts for its built-in agents, so this is the
1328
+ layout for every agent; the token takes no space where no timer is reported:
1329
+
1330
+ ```toml
1331
+ [ui.sidebar.agents]
1332
+ rows = [
1333
+ ["state_icon", "$timer", "workspace", "tab"],
1334
+ ["agent"],
1335
+ ]
1336
+ ```
1337
+
1325
1338
  ## Formal Verification
1326
1339
 
1327
1340
  `tla/` holds TLA+ specifications of ACP turn routing (steer, cancel, deferred
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nanobpm/nano-coder",
3
- "version": "1.2.1",
3
+ "version": "1.5.0",
4
4
  "description": "A 4MB coding agent. Run a fleet on your laptop.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -28,9 +28,9 @@
28
28
  "node": ">=18"
29
29
  },
30
30
  "optionalDependencies": {
31
- "@nanobpm/nano-coder-darwin-arm64": "1.2.1",
32
- "@nanobpm/nano-coder-darwin-x64": "1.2.1",
33
- "@nanobpm/nano-coder-linux-arm64": "1.2.1",
34
- "@nanobpm/nano-coder-linux-x64": "1.2.1"
31
+ "@nanobpm/nano-coder-darwin-arm64": "1.5.0",
32
+ "@nanobpm/nano-coder-darwin-x64": "1.5.0",
33
+ "@nanobpm/nano-coder-linux-arm64": "1.5.0",
34
+ "@nanobpm/nano-coder-linux-x64": "1.5.0"
35
35
  }
36
36
  }