costclaw 0.6.0 → 0.8.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.
Files changed (3) hide show
  1. package/README.md +45 -3
  2. package/dist/index.js +711 -74
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -179,11 +179,53 @@ npx costclaw optimize
179
179
  ```
180
180
 
181
181
  Turns the same audit into done-for-you artifacts: an optimized `CLAUDE.md`
182
- scaffold, a prioritized fix playbook, and a conservative, project-derived
183
- `settings.suggested.json` permission allowlist. It scans `--project <dir>`
182
+ scaffold, a prioritized fix playbook, a conservative, project-derived
183
+ `settings.suggested.json` permission allowlist, and a `HARNESS-UPGRADE.md` work
184
+ order for your own Claude Code. It scans `--project <dir>`
184
185
  (default: the current directory) to auto-fill the scaffold from your real files.
185
186
  By default it dry-runs into `./costclaw-out` and touches none of your files.
186
187
 
188
+ It also writes `DASHBOARD.html` and opens it: one page that browses every
189
+ artifact, the ranked fixes, and a before and after of your CLAUDE.md (by section,
190
+ as line changes, or side by side). Self-contained, no JavaScript, no network.
191
+ Pass `--no-dashboard` to skip it.
192
+
193
+ And it tells you what it actually did to the file that rides on every turn:
194
+
195
+ ```
196
+ Your CLAUDE.md: an estimated 5,266 tokens to 2,479 (52.9% smaller), paid on every turn.
197
+ ```
198
+
199
+ costclaw never calls a model, so it does not rewrite your prose: your own sections
200
+ are carried through exactly as written. When that carried prose is most of what is
201
+ left, the receipt says so rather than presenting a small percentage as a win:
202
+
203
+ ```
204
+ About 1,714 of those tokens are your own prose, carried through as written.
205
+ costclaw does not rewrite prose, so trimming it is judgment work: HARNESS-UPGRADE.md
206
+ ranks your heaviest sections and flags the dated lines to move into docs/.
207
+ ```
208
+
209
+ `HARNESS-UPGRADE.md` is the fourth artifact: a work order you hand to your own
210
+ Claude Code (`claude "Follow costclaw-out/HARNESS-UPGRADE.md"`). It carries the
211
+ merge and permission tasks plus evidence-conditional ones, and when your carried
212
+ prose is heavy it ranks it so the trimming is a worklist instead of a guess:
213
+
214
+ ```
215
+ Heaviest carried sections, largest first:
216
+
217
+ - Core Philosophy: est. 1,382 tokens.
218
+ - How to Work: est. 1,267 tokens, 2 dated lines.
219
+ - Communication and Output: est. 550 tokens, 3 dated lines.
220
+
221
+ The remaining 6 carried sections account for the other 1,880 tokens.
222
+ ```
223
+
224
+ Those rows plus the remainder line add up to the stated total, the same way the
225
+ playbook's per-project table reconciles. costclaw sets no target line count
226
+ anywhere: it measures what your sections cost and which lines carry dates, and
227
+ leaves the keep-or-move judgment to you.
228
+
187
229
  The playbook breaks the recoverable headline down by project, so you can see
188
230
  which repo owes which dollars and at what cache hit rate:
189
231
 
@@ -202,7 +244,7 @@ The rows plus that remainder line always add up to the headline figure above
202
244
  them, so the breakdown reconciles rather than approximating.
203
245
 
204
246
  ```
205
- costclaw optimize [--path <dir>] [--claude-md <file>] [--project <dir>] [--out <dir>] [--write <file>] [--apply-settings [file]] [--force]
247
+ costclaw optimize [--path <dir>] [--claude-md <file>] [--project <dir>] [--out <dir>] [--write <file>] [--apply-settings [file]] [--no-dashboard] [--force]
206
248
  ```
207
249
 
208
250
  - `--write <file>` applies the optimized `CLAUDE.md` in place, after backing up