@nanobpm/nano-coder 0.65.0 → 0.66.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 +15 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -587,6 +587,7 @@ session_titles = false # ask the model for a few-word title per
|
|
|
587
587
|
auto_compact = true # summarize automatically when the context fills up
|
|
588
588
|
auto_compact_threshold = 0.8 # fraction of the context window
|
|
589
589
|
compaction_mode = "standard" # standard | smart (experimental, see Smart compaction)
|
|
590
|
+
# compaction_pin_requests = true # re-attach the user's requests verbatim after each summary (issue #66)
|
|
590
591
|
# context_window = 128000 # override the window (providers can set it too)
|
|
591
592
|
verbosity = "normal" # quiet | normal | verbose | debug (or --verbosity)
|
|
592
593
|
timestamps = true # prefix CLI messages with the local time (HH:MM:SS)
|
|
@@ -1107,6 +1108,20 @@ another 10% of the window, so a context that can't shrink isn't summarized on ev
|
|
|
1107
1108
|
If summarizing fails, the older messages are dropped with a note. The session log records
|
|
1108
1109
|
the new conversation, so `--resume` continues from it.
|
|
1109
1110
|
|
|
1111
|
+
After the summary, compaction re-attaches the **user's requests verbatim** (a pinned block,
|
|
1112
|
+
`compaction_pin_requests`, on by default). A summary of a summary would otherwise paraphrase
|
|
1113
|
+
the user's original words away over repeated compactions; the pinned block is rebuilt from the
|
|
1114
|
+
original messages each time, so an exact flag, number or phrase the user stated once survives
|
|
1115
|
+
intact. The block is bounded by an allowance derived from the context window (about an eighth
|
|
1116
|
+
of it): when a long session's requests outgrow it, the oldest follow-ups are dropped with an
|
|
1117
|
+
explicit omission note — the goal and the newest requests are kept — so the pin can never push
|
|
1118
|
+
the context past the window. The note names the dropped requests by one covering session-log span
|
|
1119
|
+
(`#2-#40`), so however many requests are dropped the note stays a fixed, small size. Hook output appended to a prompt is not pinned as the user's
|
|
1120
|
+
words — the user-typed text is recorded separately, so a prompt that itself mentions a
|
|
1121
|
+
`<system-reminder>` tag (even at its very start) keeps its whole task in the pin. In smart mode each pinned request is
|
|
1122
|
+
labelled with its `#N` log ID, so the full text is
|
|
1123
|
+
one `history_read` away.
|
|
1124
|
+
|
|
1110
1125
|
### Smart compaction (experimental)
|
|
1111
1126
|
|
|
1112
1127
|
A summary is lossy: whatever it leaves out is gone for the agent, even though the session
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nanobpm/nano-coder",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.66.0",
|
|
4
4
|
"description": "A 6MB coding agent. Run a fleet on your laptop.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"node": ">=18"
|
|
28
28
|
},
|
|
29
29
|
"optionalDependencies": {
|
|
30
|
-
"@nanobpm/nano-coder-darwin-arm64": "0.
|
|
31
|
-
"@nanobpm/nano-coder-darwin-x64": "0.
|
|
32
|
-
"@nanobpm/nano-coder-linux-arm64": "0.
|
|
33
|
-
"@nanobpm/nano-coder-linux-x64": "0.
|
|
30
|
+
"@nanobpm/nano-coder-darwin-arm64": "0.66.0",
|
|
31
|
+
"@nanobpm/nano-coder-darwin-x64": "0.66.0",
|
|
32
|
+
"@nanobpm/nano-coder-linux-arm64": "0.66.0",
|
|
33
|
+
"@nanobpm/nano-coder-linux-x64": "0.66.0"
|
|
34
34
|
}
|
|
35
35
|
}
|