@henryqw/pi-auto-compact 1.0.1 → 1.0.2
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 +11 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,13 @@ pi install npm:@henryqw/pi-task-models
|
|
|
9
9
|
pi install npm:@henryqw/pi-auto-compact
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Requires Pi Coding Agent 0.84.2+.
|
|
13
|
+
|
|
14
|
+
## With
|
|
15
|
+
|
|
16
|
+
| Package | Why |
|
|
17
|
+
| --- | --- |
|
|
18
|
+
| `@henryqw/pi-task-models` | Required. Shared model profiles for compaction routes. |
|
|
13
19
|
|
|
14
20
|
Disable Pi's built-in auto-compaction in `~/.pi/agent/settings.json`:
|
|
15
21
|
|
|
@@ -21,14 +27,13 @@ Disable Pi's built-in auto-compaction in `~/.pi/agent/settings.json`:
|
|
|
21
27
|
}
|
|
22
28
|
```
|
|
23
29
|
|
|
24
|
-
Restart Pi after install or settings changes. Trusted project settings in `.pi/settings.json` must not set `compaction.enabled` back to `true`.
|
|
30
|
+
Restart Pi after install or settings changes. Trusted project settings in `.pi/settings.json` must not set `compaction.enabled` back to `true`.
|
|
25
31
|
|
|
26
32
|
## Use
|
|
27
33
|
|
|
28
|
-
| Surface | Purpose |
|
|
29
|
-
| --- | --- |
|
|
30
|
-
| `/auto-compact` | Set the compaction threshold. |
|
|
31
|
-
| `/task-models` | Configure the shared `pi-auto-compact/autoCompact` profile (default `balanced`). |
|
|
34
|
+
| Surface | Type | Purpose |
|
|
35
|
+
| --- | --- | --- |
|
|
36
|
+
| `/auto-compact` | command | Set the compaction threshold. |
|
|
32
37
|
|
|
33
38
|
Refuses to activate unless effective `compaction.enabled` is `false`. Checks `turn_start`, tool-call `turn_end`, `agent_end`, `context`, and resumed or forked `session_start`. Tries the assigned profile primary, then fallback; if neither route works, the current session model still compacts. After mid-task compaction, a follow-up message continues the current task.
|
|
34
39
|
|