agentleFS
AdityaRonAdityaRon/claude-code-skills/skills/harness-checkup/SKILL.md

harness-checkup

Skill0 starsChanged 15 days agoMITView on GitHub

Run the harness's own checkup and relay what it finds. Use when asked what is costing the most on this machine, to check my setup, or why sessions are slow or expensive. Not for general advice about Claude Code.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run python3 ~/.claude/harness-checkup.py (--days N for another window, --json for data).

    line 11
  2. Distinctive:

    Never read raw transcripts or chat text to add to the script's numbers.

    line 32
  3. Distinctive:

    Never print a dollar amount.

    line 33
  4. Distinctive:

    Never clone, install, or use the network.

    line 34
  5. Distinctive:

    Keep the reply to one screen.

    line 35

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Harness checkup

The harness measures its own costs. This skill runs that and relays it; it adds no measurement of its own.

  1. Run python3 ~/.claude/harness-checkup.py (--days N for another window, --json for data). It takes up to about 30 s and is offline. If the file is missing, say the harness is not installed and stop.
  2. Relay the three costs as printed: the value, its n, its window, and the line it is measured against (the multiple is value / line). Say in a clause what each line means. Then the "Below these" line.
  3. Give each cost its fix, from the harness docs:
CostFix
cache rewrites after a lapsed TTLrestart from a handoff (docs/long-running-sessions.md); for a loop or cron, python3 ~/.claude/spend-report.py --tick-prompt '<words from the tick prompt>' says which ticks' first call rewrote after the TTL lapsed
calls held by prompts then approveddocs/permission-friction.md: which guard asked, and which asks are policy calls for the owner
slowest Bash guard p95bash doctor.sh --latency, in the harness clone
job folders on diskpython3 ~/.claude/disk-space.py prune (a listing; only --apply deletes)
memory indexthe memory-archive skill
  1. Say what it could not tell: a tool it names as failed (with its exit status) leaves that cost out of the ranking, so the ranking is of what ran.

Rules

  • Never read raw transcripts or chat text to add to the script's numbers.
  • Never print a dollar amount; the script shows spend as a share, so relay that.
  • Never clone, install, or use the network. Offer a fix; do not run it.
  • Keep the reply to one screen.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.