@nanobpm/nano-coder 1.2.1 → 1.3.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 +6 -6
- 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
|
|
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 = "
|
|
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
|
|
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
|
|
1019
|
-
|
|
1020
|
-
|
|
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`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nanobpm/nano-coder",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.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.
|
|
32
|
-
"@nanobpm/nano-coder-darwin-x64": "1.
|
|
33
|
-
"@nanobpm/nano-coder-linux-arm64": "1.
|
|
34
|
-
"@nanobpm/nano-coder-linux-x64": "1.
|
|
31
|
+
"@nanobpm/nano-coder-darwin-arm64": "1.3.0",
|
|
32
|
+
"@nanobpm/nano-coder-darwin-x64": "1.3.0",
|
|
33
|
+
"@nanobpm/nano-coder-linux-arm64": "1.3.0",
|
|
34
|
+
"@nanobpm/nano-coder-linux-x64": "1.3.0"
|
|
35
35
|
}
|
|
36
36
|
}
|