costclaw 0.5.8 → 0.7.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 +45 -2
- package/dist/index.js +865 -84
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,6 +30,14 @@ Model spend: opus 71% / sonnet 24% / haiku 5%
|
|
|
30
30
|
Top projects by spend:
|
|
31
31
|
C--Projects-demo $XXX.XX 312 sessions cache 96.4% opus
|
|
32
32
|
|
|
33
|
+
Burn Clock (spend by day):
|
|
34
|
+
Monday [###########.........] $XXX.XX
|
|
35
|
+
...
|
|
36
|
+
Friday [####################] $X,XXX.XX
|
|
37
|
+
|
|
38
|
+
Friday is your most expensive day ($X,XXX.XX), about 2.0x an average day across
|
|
39
|
+
42 active days. Peak stretch: Friday morning.
|
|
40
|
+
|
|
33
41
|
Overall setup score: 91 / 100 (Dialed in)
|
|
34
42
|
CLAUDE.md quality [#################...] 85
|
|
35
43
|
Context hygiene [###################.] 95
|
|
@@ -40,10 +48,17 @@ Overall setup score: 91 / 100 (Dialed in)
|
|
|
40
48
|
|
|
41
49
|
Top fixes by recoverable spend:
|
|
42
50
|
- [$XXX.XX] Recover spend lost to cache misses
|
|
43
|
-
|
|
51
|
+
Your longest sessions started at 71% cache reuse and finished at 9%.
|
|
52
|
+
Compact or start a fresh session before the context outgrows the cache.
|
|
44
53
|
Evidence: XX% of input tokens missed the cache across N sessions.
|
|
45
54
|
```
|
|
46
55
|
|
|
56
|
+
The cache fix names the specific reason your cache is missing, picked from what
|
|
57
|
+
your logs actually show: sessions whose cache decayed as they ran, a `CLAUDE.md`
|
|
58
|
+
churning with dates and TODOs, or a project that keeps starting cold. Burn Clock
|
|
59
|
+
needs at least 7 active days of logs; below that it is left out rather than
|
|
60
|
+
guessed at.
|
|
61
|
+
|
|
47
62
|
## On a subscription? Declare your plan
|
|
48
63
|
|
|
49
64
|
Every dollar the audit prints is an API-equivalent price: what those tokens
|
|
@@ -169,8 +184,36 @@ scaffold, a prioritized fix playbook, and a conservative, project-derived
|
|
|
169
184
|
(default: the current directory) to auto-fill the scaffold from your real files.
|
|
170
185
|
By default it dry-runs into `./costclaw-out` and touches none of your files.
|
|
171
186
|
|
|
187
|
+
It also writes `DASHBOARD.html` and opens it: one page that browses every
|
|
188
|
+
artifact, the ranked fixes, and a before and after of your CLAUDE.md (by section,
|
|
189
|
+
as line changes, or side by side). Self-contained, no JavaScript, no network.
|
|
190
|
+
Pass `--no-dashboard` to skip it.
|
|
191
|
+
|
|
192
|
+
And it tells you what it actually did to the file that rides on every turn:
|
|
193
|
+
|
|
194
|
+
```
|
|
195
|
+
Your CLAUDE.md: an estimated 5,266 tokens to 2,479 (52.9% smaller), paid on every turn.
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
The playbook breaks the recoverable headline down by project, so you can see
|
|
199
|
+
which repo owes which dollars and at what cache hit rate:
|
|
200
|
+
|
|
201
|
+
```
|
|
202
|
+
### Where that money is
|
|
203
|
+
|
|
204
|
+
| Project | Recoverable | Cache hit | Main sessions |
|
|
205
|
+
| --- | --- | --- | --- |
|
|
206
|
+
| some-app | $490.43 | 98% | 229 |
|
|
207
|
+
| another-app | $312.43 | 99% | 131 |
|
|
208
|
+
|
|
209
|
+
39 smaller projects account for the remaining $172.06.
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
The rows plus that remainder line always add up to the headline figure above
|
|
213
|
+
them, so the breakdown reconciles rather than approximating.
|
|
214
|
+
|
|
172
215
|
```
|
|
173
|
-
costclaw optimize [--path <dir>] [--claude-md <file>] [--project <dir>] [--out <dir>] [--write <file>] [--apply-settings [file]] [--force]
|
|
216
|
+
costclaw optimize [--path <dir>] [--claude-md <file>] [--project <dir>] [--out <dir>] [--write <file>] [--apply-settings [file]] [--no-dashboard] [--force]
|
|
174
217
|
```
|
|
175
218
|
|
|
176
219
|
- `--write <file>` applies the optimized `CLAUDE.md` in place, after backing up
|