pi-condense 2.1.1 → 2.1.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/CHANGELOG.md +12 -0
- package/README.md +13 -3
- package/package.json +11 -3
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,18 @@ publishes via OIDC trusted publishing. See `.agents/skills/release/SKILL.md`.
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
+
## [2.1.2] - 2026-07-05
|
|
13
|
+
|
|
14
|
+
Branding, funding, and gallery preview. No behavior change.
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
- **Logo + pi.dev gallery preview.** Repo-root `pi-condense.png` (640x640), shown in the README and wired as `pi.image`.
|
|
18
|
+
- **Buy Me a Coffee funding.** `funding` in `package.json`, `.github/FUNDING.yml`, and a README badge.
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
- Sharpened `description`; added `context-pruning`, `llm`, `prompt-caching` keywords.
|
|
22
|
+
- README reframed product-first (credit to `championswimmer/pi-context-prune` kept as attribution); fixed a stale `pi-superpowers` -> `pi-gauntlet` reference in a spec doc.
|
|
23
|
+
|
|
12
24
|
## [2.1.1] - 2026-07-04
|
|
13
25
|
|
|
14
26
|
- **`release.yml` posts GitHub Release notes.** A new `release-notes` job (`needs: publish`, `contents: write`) extracts the CHANGELOG section matching the pushed tag with `awk` (skipping `## [Unreleased]`) and publishes it as the GitHub Release body via `gh release create` (falling back to `gh release edit`). No LLM or API key; only `github.token`.
|
package/README.md
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/jjuraszek/pi-condense/main/pi-condense.png" alt="pi-condense" width="180">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
1
5
|
# pi-condense
|
|
2
6
|
|
|
3
|
-
A
|
|
7
|
+
[](https://buymeacoffee.com/jjurasszek)
|
|
8
|
+
|
|
9
|
+
A [Pi coding-agent](https://github.com/earendil-works/pi) extension that summarizes completed tool-call batches, replaces raw tool outputs with short stubs in future context, and lets the LLM recover any original via the `context_tree_query` tool.
|
|
4
10
|
|
|
5
11
|
The session JSONL file is never modified — pruning only affects what each *next* request sees.
|
|
6
12
|
|
|
7
|
-
|
|
13
|
+
Adds pre-flush safeguards, agent-message batching, chain compression, and an npm release flow on top of the original approach from [`championswimmer/pi-context-prune`](https://github.com/championswimmer/pi-context-prune).
|
|
8
14
|
|
|
9
15
|
📖 For the algorithm, design rationale, prompt-cache interaction, and the research behind summarization-based context management, see **[PRUNING.md](PRUNING.md)**.
|
|
10
16
|
|
|
@@ -42,7 +48,7 @@ pi -e ~/repos/pi-condense/index.ts
|
|
|
42
48
|
|
|
43
49
|
Pin a specific version with `npm:pi-condense@X.Y.Z`. Upgrade by re-running `pi install`. Remove with `pi remove pi-condense`. Once installed, the extension auto-loads on every `pi` invocation; no flags needed.
|
|
44
50
|
|
|
45
|
-
>
|
|
51
|
+
> See [CHANGELOG.md](CHANGELOG.md) for release history.
|
|
46
52
|
|
|
47
53
|
## Quick start
|
|
48
54
|
|
|
@@ -236,6 +242,10 @@ Semantics:
|
|
|
236
242
|
- Content-hash dedup only matches against records already in the indexer (cross-flush). Two identical outputs within the *same* flush are not deduped — both go through the summarizer.
|
|
237
243
|
- The tree browser does not inline original tool outputs — use `context_tree_query` for that.
|
|
238
244
|
|
|
245
|
+
## Support
|
|
246
|
+
|
|
247
|
+
If this saves you tokens, [buy me a coffee](https://buymeacoffee.com/jjurasszek).
|
|
248
|
+
|
|
239
249
|
## References
|
|
240
250
|
|
|
241
251
|
- Anthropic prompt caching: <https://docs.claude.com/en/docs/build-with-claude/prompt-caching>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-condense",
|
|
3
|
-
"version": "2.1.
|
|
4
|
-
"description": "Pi extension that summarizes completed tool-call batches, replaces raw outputs with short stubs
|
|
3
|
+
"version": "2.1.2",
|
|
4
|
+
"description": "Pi coding-agent extension that summarizes completed tool-call batches, replaces raw outputs with short stubs, compresses closed tool-call chains, and recovers any original on demand via context_tree_query.",
|
|
5
5
|
"author": "Jacek Juraszek",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -19,8 +19,11 @@
|
|
|
19
19
|
"pi-coding-agent",
|
|
20
20
|
"context",
|
|
21
21
|
"context-management",
|
|
22
|
+
"context-pruning",
|
|
22
23
|
"pruning",
|
|
23
24
|
"summarization",
|
|
25
|
+
"llm",
|
|
26
|
+
"prompt-caching",
|
|
24
27
|
"ai"
|
|
25
28
|
],
|
|
26
29
|
"engines": {
|
|
@@ -40,7 +43,12 @@
|
|
|
40
43
|
"pi": {
|
|
41
44
|
"extensions": [
|
|
42
45
|
"./index.ts"
|
|
43
|
-
]
|
|
46
|
+
],
|
|
47
|
+
"image": "https://raw.githubusercontent.com/jjuraszek/pi-condense/main/pi-condense.png"
|
|
48
|
+
},
|
|
49
|
+
"funding": {
|
|
50
|
+
"type": "buymeacoffee",
|
|
51
|
+
"url": "https://buymeacoffee.com/jjurasszek"
|
|
44
52
|
},
|
|
45
53
|
"peerDependencies": {
|
|
46
54
|
"@earendil-works/pi-coding-agent": "*",
|