costclaw-live
Reviewed
at commit b468b10
Caution: Answers repeated Reads of unchanged files from its own cache instead of the file, and writes its evidence log to a fixed author path outside your project.
COSTCLAW LIVE: per-request cost, cache decay and repeated-read detection while the session runs, and it serves the Nth identical Read of an unchanged file…
0 upvotes
Log in to upvote or save- Made by
- Wes Sander
- Pinned commit
-
b468b10503c9104109141c45f93f4a373160d9d1 - What we checked
-
Shows per-request cost, cache hit rate, repeated-read and tool-loop findings in a box above the prompt. After the Nth identical Read of an unchanged file (default 4) it returns its own cached copy instead of running the tool. It keeps a log of tool names and file paths in a fixed folder. No network calls.
Review details
Static review of the source at the pinned commit; not run. Registers session.start, turn.step, tool.call, turn.complete, command.run (/costclaw, /costclaw serve N) and ui.render (AbovePrompt). turn.step records usage per model request and prices it with a built-in rate card. tool.call records tool, target (file path, command head, search pattern, URL) and result size, flags results over 20,000 characters, and caches the first successful Read result in memory together with the file's size and mtime from $.fs.stat. When the same Read (same path, offset, limit) comes in for the serve-after threshold time (default 4, setting 2 to 50 via userConfig, $.store or /costclaw serve) and no Write/Edit touched the file and size and mtime are unchanged, it returns the cached result plus a context note without running the tool. turn.complete reads $.session.usage and cross-checks cost. An evidence JSONL log is written with $.fs.write to the hard-coded path C:/Projects/claude-mods-rnd/prototypes/costclaw-live/evidence/live-<session>.jsonl, which on other machines is outside the project or a relative folder. It holds tool names, targets, sizes, costs and findings, not file contents. A 2-second timer refreshes the status line. No network, env, process or model calls.
- What it uses
-
- Reads your prompts: no
- Sees tool calls: yes
- Blocks or changes tool calls: yes
- Reads or writes files: yes
- Runs programs on your machine: no
- Calls the model (uses tokens): no
- Sends data over the network: no
- Stores data: yes
- Shows something on screen: yes
- Hooked events
COSTCLAW LIVE: per-request cost, cache decay and repeated-read detection while the session runs, and it serves the Nth identical Read of an unchanged file from its own cache instead of paying for it
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/costclaw-live/)