sw-explain
Skill8 starsChanged 4 months agoMITView on GitHub
Use when the user asks what a Session Watcher metric means (br, mf, pp, u, wall, sweet, valley) or runs /sw-explain — explains the requested metric in plain language and contextualizes it for the current session.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- mhmtsrfglu/superwikitheir own version, first seen Oct 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- mhmtsrfglu/superwiki★ 30same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- llms-full.txtllms.txt
- llms.txtllms.txt
- sw-handoffSkill
- sw-loadSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
When the user asks about a metric:
≈ “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.
Files
Explain a Session Watcher metric
When the user asks about a metric:
- Call
watcher_status. Readbr,u(the arm it puts the session on), the lamp and the wallet clock'sphasefrom the reply'sreading; a falsereading.reliablemeans the session is still measuring, so say that instead of quoting values.mf,pp,wallandsweet / valleyare not inreading: point the user at where the host shows them, in Claude Code the dashboard at the URL the reply carries, in DSH the SW Meter tab.mfis the hero chart's movable reading; the others are landmarks with no numeric readout. - Explain the requested metric in plain language.
- Contextualize against the flat-valley / AM-GM bound where relevant.
Metric glossary
- br (bill premium) — how far the bill sits above its cost at the sweet spot, as a fraction.
BR_AMBERandBR_REDare the zone boundaries.br = mf × pp. - mf (movable fraction) — the share of cost that timing can affect. AM-GM caps it at
√2−1, which is also why the reminder interval has a natural floor, except on DSH after an inner compaction: there a request whose calls only read earlier events back or are repeat reads DSH blocked is priced at its own bill and adds no cost that restart timing cannot reach, so the range is[0, 1]and the floor does not hold. Whatever sits outside the movable share is cost no restart timing can reach. - pp — the timing-penalty shape term
(u−1)²/(2u); minimized at u=1 (the sweet spot). - u — normalized position, accumulated causally: each API call adds the fraction of a restart interval that the conditions in force for it imply, so u only moves forward and loading more files never walks it back. Short of a whole interval = left arm (cost still falling, so the lamp stays white or green); one whole interval = sweet; beyond it = past sweet. The lamp's colour is arm-gated this way; the carry-rent reminder is not, because it reads accumulated rent instead of the position.
uInst, the(x−1)/dhatratio, is reported beside the causaluas a diagnostic that nothing acts on. - wall — where continuing costs more per turn than a full restart.
- sweet / valley — the cost-curve minimum, reported as
xSweetand read off the reference skeleton fitted across the session's own path; the valley around it is flat (small timing penalty).
Frame reassuringly where the numbers allow it: the movable fraction bounds how much of the bill timing can reach at all, and the valley around the sweet spot is flat, so a moderate br on the left arm carries no urgency. br itself has no ceiling — pp grows without bound on the late arm.
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
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.

