kompactor 0.7.6__tar.gz → 0.7.7__tar.gz
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.
- {kompactor-0.7.6 → kompactor-0.7.7}/PKG-INFO +6 -6
- {kompactor-0.7.6 → kompactor-0.7.7}/README.md +5 -5
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor/__init__.py +1 -1
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor/cli.py +1 -1
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor/installer.py +1 -1
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor/static/usage.html +5 -5
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor/ui.html +2 -2
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor.egg-info/PKG-INFO +6 -6
- {kompactor-0.7.6 → kompactor-0.7.7}/pyproject.toml +1 -1
- {kompactor-0.7.6 → kompactor-0.7.7}/tests/test_kompactor.py +1 -1
- {kompactor-0.7.6 → kompactor-0.7.7}/LICENSE +0 -0
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor/__main__.py +0 -0
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor/_launch.py +0 -0
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor/config.py +0 -0
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor/estimate.py +0 -0
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor/filters.py +0 -0
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor/graph.py +0 -0
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor/hooks.py +0 -0
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor/langs.py +0 -0
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor/outline.py +0 -0
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor/prove.py +0 -0
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor/rules.py +0 -0
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor/samples.py +0 -0
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor/server.py +0 -0
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor/shellwrap.py +0 -0
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor/static/fonts/OFL.txt +0 -0
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor/static/fonts/plex-mono-400.woff2 +0 -0
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor/static/fonts/plex-mono-500.woff2 +0 -0
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor/static/fonts/plex-sans-400.woff2 +0 -0
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor/static/fonts/plex-sans-500.woff2 +0 -0
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor/static/fonts/plex-sans-600.woff2 +0 -0
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor/static/logo-mark.svg +0 -0
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor/store.py +0 -0
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor/tokens.py +0 -0
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor.egg-info/SOURCES.txt +0 -0
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor.egg-info/dependency_links.txt +0 -0
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor.egg-info/entry_points.txt +0 -0
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor.egg-info/requires.txt +0 -0
- {kompactor-0.7.6 → kompactor-0.7.7}/kompactor.egg-info/top_level.txt +0 -0
- {kompactor-0.7.6 → kompactor-0.7.7}/setup.cfg +0 -0
- {kompactor-0.7.6 → kompactor-0.7.7}/tests/test_graph.py +0 -0
- {kompactor-0.7.6 → kompactor-0.7.7}/tests/test_shell.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: kompactor
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.7
|
|
4
4
|
Summary: Cut the tokens Claude Code spends on noise: compacted command output (failing runs included), outline-first reads, a local code graph, and per-turn savings.
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Project-URL: Homepage, https://github.com/amarkum/kompactor
|
|
@@ -51,7 +51,7 @@ Pick one. All of them set up the same thing, and the CLI and the VS Code extensi
|
|
|
51
51
|
**Claude Code plugin** (recommended). In any Claude Code session, one line at a time:
|
|
52
52
|
```
|
|
53
53
|
/plugin marketplace add amarkum/kompactor
|
|
54
|
-
/plugin install
|
|
54
|
+
/plugin install amarkum@kompactor
|
|
55
55
|
/kompactor setup
|
|
56
56
|
```
|
|
57
57
|
The last step adds the status line and the shell prefix that compacts failing commands, which a plugin can't set itself. Then restart Claude Code.
|
|
@@ -62,7 +62,7 @@ pipx install kompactor # or: pip install kompactor · uv tool install kom
|
|
|
62
62
|
kompactor setup
|
|
63
63
|
```
|
|
64
64
|
|
|
65
|
-
**VS Code.** Download `kompactor-0.7.
|
|
65
|
+
**VS Code.** Download `kompactor-0.7.7.vsix` from [Releases](https://github.com/amarkum/kompactor/releases), install it (Extensions › `⋯` › *Install from VSIX…*), and click **Enable** when Kompactor asks.
|
|
66
66
|
|
|
67
67
|
## After you install
|
|
68
68
|
|
|
@@ -70,7 +70,7 @@ kompactor setup
|
|
|
70
70
|
2. **Work as usual.** You don't call Kompactor; it acts on Claude's tool calls by itself. After each reply you'll see a line such as `Kompactor: −8.2k tokens this turn`, and the status line shows the running total.
|
|
71
71
|
3. **Check it's on:** run `kompactor` in a terminal (or `/kompactor` in Claude Code). It shows whether it's on, your level, savings so far and how to change things:
|
|
72
72
|
```
|
|
73
|
-
Kompactor 0.7.
|
|
73
|
+
Kompactor 0.7.7: ON
|
|
74
74
|
Connected via the Claude Code plugin. New Claude Code sessions are compacted.
|
|
75
75
|
Level: Balanced (level 3 of 5). Change it: `kompactor config preset 1-5`, the dashboard, or /kompactor balanced
|
|
76
76
|
Saved so far: 41.3k tokens (−38%) over 52 tool calls. Details: `kompactor gain`
|
|
@@ -153,7 +153,7 @@ kompactor stop # pause: Claude Code output passes through untouched; sett
|
|
|
153
153
|
kompactor start # turn it back on
|
|
154
154
|
kompactor uninstall # remove hooks, status line, shell prefix and skill (add --purge to delete ~/.kompactor too)
|
|
155
155
|
```
|
|
156
|
-
Then remove the package the way you installed it: `claude plugin uninstall
|
|
156
|
+
Then remove the package the way you installed it: `claude plugin uninstall amarkum@kompactor`, `pipx uninstall kompactor`, or uninstall the extension in VS Code. Setup never replaces a status line or shell prefix you already had, and keeps a backup in `~/.claude/settings.json.kompactor-backup`.
|
|
157
157
|
|
|
158
158
|
## What Kompactor runs and changes
|
|
159
159
|
|
|
@@ -237,7 +237,7 @@ Supported languages and what Kompactor knows about each: [docs/languages.md](htt
|
|
|
237
237
|
"extraKnownMarketplaces": {
|
|
238
238
|
"kompactor": { "source": { "source": "github", "repo": "amarkum/kompactor" }, "autoUpdate": true }
|
|
239
239
|
},
|
|
240
|
-
"enabledPlugins": { "
|
|
240
|
+
"enabledPlugins": { "amarkum@kompactor": true }
|
|
241
241
|
}
|
|
242
242
|
```
|
|
243
243
|
When a teammate trusts the folder, Claude Code installs the plugin; each person then runs `/kompactor setup` once.
|
|
@@ -29,7 +29,7 @@ Pick one. All of them set up the same thing, and the CLI and the VS Code extensi
|
|
|
29
29
|
**Claude Code plugin** (recommended). In any Claude Code session, one line at a time:
|
|
30
30
|
```
|
|
31
31
|
/plugin marketplace add amarkum/kompactor
|
|
32
|
-
/plugin install
|
|
32
|
+
/plugin install amarkum@kompactor
|
|
33
33
|
/kompactor setup
|
|
34
34
|
```
|
|
35
35
|
The last step adds the status line and the shell prefix that compacts failing commands, which a plugin can't set itself. Then restart Claude Code.
|
|
@@ -40,7 +40,7 @@ pipx install kompactor # or: pip install kompactor · uv tool install kom
|
|
|
40
40
|
kompactor setup
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
**VS Code.** Download `kompactor-0.7.
|
|
43
|
+
**VS Code.** Download `kompactor-0.7.7.vsix` from [Releases](https://github.com/amarkum/kompactor/releases), install it (Extensions › `⋯` › *Install from VSIX…*), and click **Enable** when Kompactor asks.
|
|
44
44
|
|
|
45
45
|
## After you install
|
|
46
46
|
|
|
@@ -48,7 +48,7 @@ kompactor setup
|
|
|
48
48
|
2. **Work as usual.** You don't call Kompactor; it acts on Claude's tool calls by itself. After each reply you'll see a line such as `Kompactor: −8.2k tokens this turn`, and the status line shows the running total.
|
|
49
49
|
3. **Check it's on:** run `kompactor` in a terminal (or `/kompactor` in Claude Code). It shows whether it's on, your level, savings so far and how to change things:
|
|
50
50
|
```
|
|
51
|
-
Kompactor 0.7.
|
|
51
|
+
Kompactor 0.7.7: ON
|
|
52
52
|
Connected via the Claude Code plugin. New Claude Code sessions are compacted.
|
|
53
53
|
Level: Balanced (level 3 of 5). Change it: `kompactor config preset 1-5`, the dashboard, or /kompactor balanced
|
|
54
54
|
Saved so far: 41.3k tokens (−38%) over 52 tool calls. Details: `kompactor gain`
|
|
@@ -131,7 +131,7 @@ kompactor stop # pause: Claude Code output passes through untouched; sett
|
|
|
131
131
|
kompactor start # turn it back on
|
|
132
132
|
kompactor uninstall # remove hooks, status line, shell prefix and skill (add --purge to delete ~/.kompactor too)
|
|
133
133
|
```
|
|
134
|
-
Then remove the package the way you installed it: `claude plugin uninstall
|
|
134
|
+
Then remove the package the way you installed it: `claude plugin uninstall amarkum@kompactor`, `pipx uninstall kompactor`, or uninstall the extension in VS Code. Setup never replaces a status line or shell prefix you already had, and keeps a backup in `~/.claude/settings.json.kompactor-backup`.
|
|
135
135
|
|
|
136
136
|
## What Kompactor runs and changes
|
|
137
137
|
|
|
@@ -215,7 +215,7 @@ Supported languages and what Kompactor knows about each: [docs/languages.md](htt
|
|
|
215
215
|
"extraKnownMarketplaces": {
|
|
216
216
|
"kompactor": { "source": { "source": "github", "repo": "amarkum/kompactor" }, "autoUpdate": true }
|
|
217
217
|
},
|
|
218
|
-
"enabledPlugins": { "
|
|
218
|
+
"enabledPlugins": { "amarkum@kompactor": true }
|
|
219
219
|
}
|
|
220
220
|
```
|
|
221
221
|
When a teammate trusts the folder, Claude Code installs the plugin; each person then runs `/kompactor setup` once.
|
|
@@ -390,7 +390,7 @@ def cmd_uninstall(a):
|
|
|
390
390
|
(store.home() / "paused").unlink(missing_ok=True)
|
|
391
391
|
print(" Kept savings history and config in ~/.kompactor (add --purge to delete).")
|
|
392
392
|
if installer.status()["plugin_enabled"]:
|
|
393
|
-
print(" The Claude Code plugin is still enabled; run: claude plugin uninstall
|
|
393
|
+
print(" The Claude Code plugin is still enabled; run: claude plugin uninstall amarkum@kompactor")
|
|
394
394
|
print(" Installed it as a Python package? Remove that too, with the tool you installed it with (pip, pipx or uv).")
|
|
395
395
|
return 0
|
|
396
396
|
|
|
@@ -152,7 +152,7 @@ def _prefix_state(settings: dict) -> str:
|
|
|
152
152
|
|
|
153
153
|
|
|
154
154
|
def plugin_enabled(settings: dict) -> bool:
|
|
155
|
-
return any(k in ("
|
|
155
|
+
return any(k in ("amarkum@kompactor", "kompactor@claude-plugins-official") and v for k, v in (settings.get("enabledPlugins") or {}).items())
|
|
156
156
|
|
|
157
157
|
|
|
158
158
|
def status(project: str = "") -> dict:
|
|
@@ -133,13 +133,13 @@ svg.chev { width: 11px; height: 11px; stroke: var(--ink-3); fill: none; stroke-w
|
|
|
133
133
|
<div class="cards">
|
|
134
134
|
<div class="card"><b>Claude Code plugin</b><span class="muted">Recommended. Run these in any Claude Code session, one at a time. The last one adds the status line and the shell prefix, which a plugin can't set itself.</span>
|
|
135
135
|
<pre><code>/plugin marketplace add <span data-repo>your-org/kompactor</span>
|
|
136
|
-
/plugin install
|
|
136
|
+
/plugin install amarkum@kompactor
|
|
137
137
|
/kompactor setup</code></pre></div>
|
|
138
138
|
<div class="card"><b>pip / pipx / uv</b><span class="muted">macOS, Linux and Windows. Needs Python 3.9 or newer and nothing else.</span>
|
|
139
139
|
<pre><code>pipx install kompactor
|
|
140
140
|
kompactor setup</code></pre></div>
|
|
141
141
|
<div class="card"><b>VS Code</b><span class="muted">Download the extension file from the repo's Releases page, then click <b>Enable</b> when Kompactor asks.</span>
|
|
142
|
-
<pre><code>code --install-extension kompactor-0.7.
|
|
142
|
+
<pre><code>code --install-extension kompactor-0.7.7.vsix</code></pre></div>
|
|
143
143
|
</div>
|
|
144
144
|
<p class="muted">Windows: run <code>.\kompactor\install.ps1</code> from a clone, or use the VS Code extension. The CLI and the VS Code extension read the same <code>~/.claude/settings.json</code>, so one install covers both. A backup of that file is kept as <code>settings.json.kompactor-backup</code>.</p>
|
|
145
145
|
<p class="muted">Setup adds hooks, a status line (if you don't have one) and, on macOS and Linux, Claude Code's <code>CLAUDE_CODE_SHELL_PREFIX</code> setting pointing at <code>~/.kompactor/bin/kompactor-shell</code>, which is what lets Kompactor compact failing commands. It never replaces a status line or shell prefix you already have. Restart open Claude Code sessions after setup.</p>
|
|
@@ -151,7 +151,7 @@ kompactor setup</code></pre></div>
|
|
|
151
151
|
<p>Everyone can install from the public repo or PyPI. To control what your team runs, fork the repo (privately if you like) and point the commands at your fork; each person's own git access is enough.</p>
|
|
152
152
|
<div class="tbl"><table>
|
|
153
153
|
<tr><th>Way</th><th>Who it's for</th><th>What each person does</th><th>Updating</th></tr>
|
|
154
|
-
<tr><td><b>Plugin</b></td><td>Everyone on Claude Code, CLI or VS Code</td><td>The three plugin commands under Install, once</td><td>Automatic with <code>autoUpdate</code> (below); or <code>claude plugin marketplace update kompactor</code>, then <code>claude plugin update
|
|
154
|
+
<tr><td><b>Plugin</b></td><td>Everyone on Claude Code, CLI or VS Code</td><td>The three plugin commands under Install, once</td><td>Automatic with <code>autoUpdate</code> (below); or <code>claude plugin marketplace update kompactor</code>, then <code>claude plugin update amarkum@kompactor</code></td></tr>
|
|
155
155
|
<tr><td><b>Project settings</b></td><td>Everyone who works in a given repo</td><td>Trust the project folder when Claude Code asks, then <code>/kompactor setup</code> once; you commit the snippet below</td><td>Same as the plugin</td></tr>
|
|
156
156
|
<tr><td><b>pip / pipx / uv</b></td><td>People who manage Python tools that way</td><td><code>pipx install kompactor</code>, then <code>kompactor setup</code></td><td><code>pipx upgrade kompactor</code></td></tr>
|
|
157
157
|
<tr><td><b>Terminal install</b></td><td>Scripted machine setup, or people who don't use plugins</td><td><code>git clone</code>, then <code>./kompactor/install.sh</code></td><td><code>git pull</code>, then run <code>./install.sh</code> again</td></tr>
|
|
@@ -163,7 +163,7 @@ kompactor setup</code></pre></div>
|
|
|
163
163
|
"extraKnownMarketplaces": {
|
|
164
164
|
"kompactor": { "source": { "source": "github", "repo": "<span data-repo>your-org/kompactor</span>" }, "autoUpdate": true }
|
|
165
165
|
},
|
|
166
|
-
"enabledPlugins": { "
|
|
166
|
+
"enabledPlugins": { "amarkum@kompactor": true }
|
|
167
167
|
}</code></pre>
|
|
168
168
|
<p class="muted">When a teammate opens the project and accepts Claude Code's prompt to trust the folder, Claude Code adds the marketplace and turns the plugin on. Each person then runs <code>/kompactor setup</code> once (plugins can't set the status line or the shell prefix themselves). <code>autoUpdate</code> keeps everyone on your latest release: teammates get a new version when <code>version</code> in <code>.claude-plugin/plugin.json</code> changes, and <code>python scripts/bump_version.py 0.4.1</code> bumps it everywhere.</p>
|
|
169
169
|
<h3>Private-repo access</h3>
|
|
@@ -175,7 +175,7 @@ kompactor setup</code></pre></div>
|
|
|
175
175
|
<h3>Script it</h3>
|
|
176
176
|
<p>The plugin commands also work outside the chat, for onboarding scripts:</p>
|
|
177
177
|
<pre><code>claude plugin install kompactor --marketplace <span data-repo>your-org/kompactor</span> <span class="c"># Claude Code 2.1.292+</span>
|
|
178
|
-
claude plugin marketplace add <span data-repo>your-org/kompactor</span> && claude plugin install
|
|
178
|
+
claude plugin marketplace add <span data-repo>your-org/kompactor</span> && claude plugin install amarkum@kompactor <span class="c"># older</span></code></pre>
|
|
179
179
|
<h3>Roll out to every machine</h3>
|
|
180
180
|
<p>For admins: managed settings take the same <code>extraKnownMarketplaces</code> and <code>enabledPlugins</code> keys. They live in <code>/Library/Application Support/ClaudeCode/managed-settings.json</code> on macOS, <code>/etc/claude-code/managed-settings.json</code> on Linux and WSL, <code>C:\Program Files\ClaudeCode\managed-settings.json</code> on Windows, or the managed settings in your claude.ai organisation. <code>strictKnownMarketplaces</code> limits people to approved marketplaces.</p>
|
|
181
181
|
<h3>Plain <code>pip install kompactor</code></h3>
|
|
@@ -720,9 +720,9 @@ function renderSetup() {
|
|
|
720
720
|
: `Replace <span class="mono">your-org/kompactor</span> with your team's private repo. Teammates need read access to it.`;
|
|
721
721
|
const code = (c, block) => `<div class="snip${block ? " block" : ""}"><code>${esc(c)}</code><button class="btn sm ghost" data-copy="${esc(c)}" aria-label="Copy">${icon("copy")}</button></div>`;
|
|
722
722
|
const group = (label, ...codes) => `<div class="share-group"><div class="lbl">${label}</div>${codes.join("")}</div>`;
|
|
723
|
-
const teamSettings = JSON.stringify({ extraKnownMarketplaces: { kompactor: { source: m.includes("://") ? { source: "git", url: clone } : { source: "github", repo: m }, autoUpdate: true } }, enabledPlugins: { "
|
|
723
|
+
const teamSettings = JSON.stringify({ extraKnownMarketplaces: { kompactor: { source: m.includes("://") ? { source: "git", url: clone } : { source: "github", repo: m }, autoUpdate: true } }, enabledPlugins: { "amarkum@kompactor": true } }, null, 2);
|
|
724
724
|
$("snips").innerHTML =
|
|
725
|
-
group("Claude Code plugin: run these in any Claude Code session, one at a time", code(`/plugin marketplace add ${m}`), code("/plugin install
|
|
725
|
+
group("Claude Code plugin: run these in any Claude Code session, one at a time", code(`/plugin marketplace add ${m}`), code("/plugin install amarkum@kompactor"), code("/kompactor setup")) +
|
|
726
726
|
group(`Everyone on a project: commit this as <span class="mono">.claude/settings.json</span>; Claude Code turns the plugin on once a teammate trusts the folder, then they run <span class="mono">/kompactor setup</span>`, code(teamSettings, true)) +
|
|
727
727
|
group("pip, pipx or uv, straight from the repo", code(`pipx install "git+${clone}"`), code("kompactor setup")) +
|
|
728
728
|
group("Terminal (macOS, Linux), from a clone", code(`git clone ${clone} && ./${dir}/install.sh`)) +
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: kompactor
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.7
|
|
4
4
|
Summary: Cut the tokens Claude Code spends on noise: compacted command output (failing runs included), outline-first reads, a local code graph, and per-turn savings.
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Project-URL: Homepage, https://github.com/amarkum/kompactor
|
|
@@ -51,7 +51,7 @@ Pick one. All of them set up the same thing, and the CLI and the VS Code extensi
|
|
|
51
51
|
**Claude Code plugin** (recommended). In any Claude Code session, one line at a time:
|
|
52
52
|
```
|
|
53
53
|
/plugin marketplace add amarkum/kompactor
|
|
54
|
-
/plugin install
|
|
54
|
+
/plugin install amarkum@kompactor
|
|
55
55
|
/kompactor setup
|
|
56
56
|
```
|
|
57
57
|
The last step adds the status line and the shell prefix that compacts failing commands, which a plugin can't set itself. Then restart Claude Code.
|
|
@@ -62,7 +62,7 @@ pipx install kompactor # or: pip install kompactor · uv tool install kom
|
|
|
62
62
|
kompactor setup
|
|
63
63
|
```
|
|
64
64
|
|
|
65
|
-
**VS Code.** Download `kompactor-0.7.
|
|
65
|
+
**VS Code.** Download `kompactor-0.7.7.vsix` from [Releases](https://github.com/amarkum/kompactor/releases), install it (Extensions › `⋯` › *Install from VSIX…*), and click **Enable** when Kompactor asks.
|
|
66
66
|
|
|
67
67
|
## After you install
|
|
68
68
|
|
|
@@ -70,7 +70,7 @@ kompactor setup
|
|
|
70
70
|
2. **Work as usual.** You don't call Kompactor; it acts on Claude's tool calls by itself. After each reply you'll see a line such as `Kompactor: −8.2k tokens this turn`, and the status line shows the running total.
|
|
71
71
|
3. **Check it's on:** run `kompactor` in a terminal (or `/kompactor` in Claude Code). It shows whether it's on, your level, savings so far and how to change things:
|
|
72
72
|
```
|
|
73
|
-
Kompactor 0.7.
|
|
73
|
+
Kompactor 0.7.7: ON
|
|
74
74
|
Connected via the Claude Code plugin. New Claude Code sessions are compacted.
|
|
75
75
|
Level: Balanced (level 3 of 5). Change it: `kompactor config preset 1-5`, the dashboard, or /kompactor balanced
|
|
76
76
|
Saved so far: 41.3k tokens (−38%) over 52 tool calls. Details: `kompactor gain`
|
|
@@ -153,7 +153,7 @@ kompactor stop # pause: Claude Code output passes through untouched; sett
|
|
|
153
153
|
kompactor start # turn it back on
|
|
154
154
|
kompactor uninstall # remove hooks, status line, shell prefix and skill (add --purge to delete ~/.kompactor too)
|
|
155
155
|
```
|
|
156
|
-
Then remove the package the way you installed it: `claude plugin uninstall
|
|
156
|
+
Then remove the package the way you installed it: `claude plugin uninstall amarkum@kompactor`, `pipx uninstall kompactor`, or uninstall the extension in VS Code. Setup never replaces a status line or shell prefix you already had, and keeps a backup in `~/.claude/settings.json.kompactor-backup`.
|
|
157
157
|
|
|
158
158
|
## What Kompactor runs and changes
|
|
159
159
|
|
|
@@ -237,7 +237,7 @@ Supported languages and what Kompactor knows about each: [docs/languages.md](htt
|
|
|
237
237
|
"extraKnownMarketplaces": {
|
|
238
238
|
"kompactor": { "source": { "source": "github", "repo": "amarkum/kompactor" }, "autoUpdate": true }
|
|
239
239
|
},
|
|
240
|
-
"enabledPlugins": { "
|
|
240
|
+
"enabledPlugins": { "amarkum@kompactor": true }
|
|
241
241
|
}
|
|
242
242
|
```
|
|
243
243
|
When a teammate trusts the folder, Claude Code installs the plugin; each person then runs `/kompactor setup` once.
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "kompactor"
|
|
7
|
-
version = "0.7.
|
|
7
|
+
version = "0.7.7"
|
|
8
8
|
description = "Cut the tokens Claude Code spends on noise: compacted command output (failing runs included), outline-first reads, a local code graph, and per-turn savings."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
|
@@ -519,7 +519,7 @@ class TurnAndSetupTests(unittest.TestCase):
|
|
|
519
519
|
self.assertTrue(p.with_suffix(".json.kompactor-backup").exists())
|
|
520
520
|
self.assertFalse(skill.exists())
|
|
521
521
|
# with the plugin enabled, only the status line is managed
|
|
522
|
-
d["enabledPlugins"] = {"
|
|
522
|
+
d["enabledPlugins"] = {"amarkum@kompactor": True}
|
|
523
523
|
d.pop("statusLine")
|
|
524
524
|
p.write_text(json.dumps(d))
|
|
525
525
|
installer.install()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|