Widal.Code MCP Server
Shows what your AI coding agents spend, and helps to spend less.
Widal.Code scores 64 (Good), licensed MIT and written in JavaScript. It installs as a local process. It does not declare tools yet. Filed under AI and memory. GitHub shows 1 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
64 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
65/100 for listing completeness. Lost points: no listed tools, short summary.
How quality is graded
Where the 64 comes from
22 + 20 + 1 + 10 + 4 + 7 = 64. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 1 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "widal-inc-widal-code": { "command": "npx", "args": [ "-y", "https://github.com/Widal-Inc/widal-code/releases/download/v0.3.2/widal-code.mcpb" ] } }}
Environment variables
This server does not declare environment variables.
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
Widal.Code
Widal.Code shows what the AI coding agents on your machine spend, and what the spend pays for. It reads the session logs of Claude Code, Codex and Cowork. Nothing leaves the machine, unless you link it to your team's Widal.Code board (see "The Widal.Code board"). In Claude Code it also shows your plan's limits in the status line, warns you before a cache ends, says when to compact the context, proposes a cheaper model or effort level, and can hold a limit. It checks the agents' settings, what they did and the code they changed for security risks (see "Security and compliance").
The project is called Widal.Code. Its command is widal, and its folder on your machine is ~/.widal. It was called Kestrel until 17 Nov 2026: see "Coming from Kestrel".
Status: version 0.3.2, started on 2026-11-12. So far it has run on macOS only. No dependencies, Node 22 or newer. Made by Widal, Inc. Free and open source under the MIT licence (see "Licence").
What it looks like
The screenshots use made-up data: invented projects and two weeks of invented sessions. Nothing in them comes from a real computer.
The status line in Claude Code. The model and effort level, the context, how long the prompt cache stays warm, the plan's limits and how fast they fill, the task in progress and the other sessions.

Every agent session on this computer, now (widal top). Which session works, which waits for you, how warm each cache is, and what each one spent today.

What the dollars paid for (widal summary). The dollars by account, day, project and model: spend for an account that pays by the token, API value for one on a subscription. The plans with their price, and the share that paid for carrying context and for lost caches. (The picture shows an earlier version of this report.)

Changes that would have saved money (widal advise). Each one comes from a replay of your own logs, with the reason, the setting, the risk and the command that applies it.

Security risks of your agents (widal check). Each finding names the controls it touches in the frameworks you turn on, and the command that fixes it where there is one.

Install as a plugin
Type these three commands in Claude Code:
/plugin marketplace add Widal-Inc/widal-code
/plugin install widal@widal
/widal:connect
The first two add the plugin from this repo. The third one sets the tool up. It does five things, and says each one:
- It copies the tool to
~/.widal/app/. Claude Code keeps a plugin's files in a folder that changes with every update, so Claude Code's settings must not point there. - It makes the link
~/.widal/bin/widalto that copy. Claude Code's settings call the tool through this link. - It links the command to
~/.local/bin/widal, so that you can typewidal. That folder has to be on your PATH. Another program at that path stays as it is (see "Another program named widal" below). - It sets Claude Code's status line in
~/.claude/settings.json, with a refresh every 30 seconds. A copy of the file is saved in~/.widal/backup/first. Another tool's status line is kept. - It adds the three hooks of the security checks to the same file: at the start of a session, at the end of a turn, and before a shell command (see "Security and compliance").
Widal.Code needs Node 22 or newer. The setup says so when your Node is older.
What the plugin brings.
- Ten commands.
/widal:connect,/widal:report(the last 7 days, aswidal summaryshows it),/widal:findings(aswidal findingsshows it),/widal:session(the latest session, aswidal sessionshows it),/widal:compactions,/widal:advise,/widal:doctor,/widal:hudfollowed by what you want to change in the status line, and/widal:openand/widal:settings, which open the Widal.Code pane. The first seven show the tool's output as it is. - A command typed with
!. In Claude Code,!widal findingsruns the command in the session's shell at once, and shows its output as it is. It needs the command on your PATH, which the setup puts there. Any report works this way, for example!widal summary --days 30. - A pane. The Widal.Code pane beside the chat, with the sessions that run now, the spend, the settings as checkboxes and the open security findings. See "The Widal.Code pane".
- A skill. When you ask what your agents spend, where the tokens go or how to spend less, Claude runs the report that fits and passes on the numbers. A prompt that is only a command, such as
widal findings, makes Claude run that command and show its output as it is. Claude never opens a session log itself: the tool reads the logs and prints only numbers. - Seven hooks. Three are hooks that you can also add with
widal apply: the text a summary has to keep at a compaction, the warning when a prompt goes to a session whose cache has ended, and the cost of a change of model. Three start the security checks and ask before a push while a high risk is open. The seventh keeps the copy in~/.widal/app/at the plugin's version. See "The plugin's hooks".
The commands, the skill, the hooks and the pane work before the setup too. Only the warning for a sent prompt needs the status line, which saves when each cache ends.
Install in the Claude desktop app
The desktop extension answers questions about your agents' spend in a chat in the Claude desktop app. It needs no terminal and no Claude Code. Download widal-code.mcpb from the newest release, and drag it onto Settings, Extensions in the app. See docs/desktop.md.
The extension is also listed in the official MCP Registry as io.github.Widal-Inc/widal-code.
In the Claude desktop app
- The Code tab is Claude Code. It reads the same
~/.claude/settings.jsonand runs the same hooks. So whatwidal connectandwidal applyset works there too. - Cowork, the agent mode of the app, can add the same plugin. It loads the plugin's commands, its skill and its hooks. That is why the plugin carries the hooks: Cowork does not read
~/.claude/settings.json. Cowork does not install a plugin that has a top-levelbin/folder, so the command's files are incli/. - The status line: whether it shows in the desktop app is not known yet.
- The reports read the logs of the Cowork sessions that ran on this computer, with or without the plugin.
The plugin's hooks
The plugin carries seven of this tool's hooks, so that they also run where Claude Code's settings are not read:
| Hook | When it runs | What it does | The same hook in the settings |
|---|---|---|---|
compact-keep | Before a compaction | Gives Claude Code the text that a summary has to keep (see "Compaction") | widal apply compact-keep |
cold-start | When you send a prompt | Says what the prompt cost, when the session's cache had ended (see "Before a cache ends") | widal apply cold-start-warn |
model-switch | Before a change of model | Shows what the switch costs, and asks first from $0.50 (see "Before a cache ends") | widal apply model-switch-cost |
check-settings | When a session starts | Starts the check of the settings in the background (see "Security and compliance"). On a computer linked to a Widal.Code board, it also starts a sync with the board when the last one is 10 minutes old (see "The Widal.Code board"). Once a day it starts the run of the default changes, and it shows once what the last run did (see "Default changes"). | widal connect |
check-turn | When an agent's turn ends | Starts the checks of what the agent did and of the code it changed in the background. On a computer linked to a Widal.Code board, it also starts a sync with the board, as above. | widal connect |
push-gate | Before a shell command | Asks you first before a push while a high risk is open in the repository | widal connect |
load-gate | Before a subagent or a workflow starts | Holds the subagent in a queue while the computer's CPU or memory is busy, and refuses it if the computer stays busy (see "Too many agents at once") | none: plugin only |
- A hook never acts twice. Claude Code runs a plugin's hook next to the same hook in the settings. So the plugin's hook first looks at
~/.claude/settings.json. When the settings hold this tool's own hook for the same event, the plugin's hook does nothing: the one in the settings is in charge. A settings file that cannot be read counts as one without the hook. - You can turn each one off.
widal hooksshows, for each of the seven, whether it runs and from where: Claude Code's settings, the plugin, or off.widal hooks off cold-startturns the plugin's hook off, andwidal hooks on cold-startturns it on again. The choice is kept in~/.widal/config.json. The hooks are on until you turn them off. - Where Node is missing, they print nothing. Each hook's command looks for
nodefirst, and always ends without an error. On any error a hook prints nothing. The one exception is the hook before a compaction: it then gives the default text. - The keep-warm experiment is not in the plugin. Add it with
widal apply keep-warm. - The sync with the board is not a part of the security checks.
check-settingsandcheck-turnstart it also while you turned them off withwidal hooks off. Only a linked computer syncs: stop it withwidal board logout. - An eighth hook keeps the copy fresh. At the start of each session it compares the version of the copy in
~/.widal/app/with the plugin's version. When they differ, it copies the plugin's files over the copy. When they agree, it reads two small files and does nothing else. It also moves an install from before the change of name to the new name, once (see "Coming from Kestrel"). It prints nothing, because what a hook prints at the start of a session goes to Claude.
The Widal.Code pane
Inside Claude Code, Widal.Code can show a pane beside the chat. In a narrow terminal it sits above the prompt. The pane comes with the plugin. It is a mod: a part of a plugin that Claude Code runs itself, with buttons and tabs (see Anthropic's documentation of mods at code.claude.com).
Two commands open it:
/widal:openopens it on the tab Now./widal:settingsopens it on the tab Settings.
Where no pane can show, the same commands print text instead. /widal:settings prints the settings, with the widal settings set commands that change them. /widal:open prints widal top --once --no-names. That is the case in claude -p, in the Agent SDK, and in a Claude Code older than 2.1.287.
Where it works: in the terminal with Claude Code 2.1.287 or newer, in the Code tab of the Claude desktop app, and in VS Code (the extension from version 2.1.299). In VS Code the buttons have no keys: click them.
The four tabs. Press the digit of a tab to show it. The pane has the keyboard when a command opened it. Otherwise press Ctrl+X then Tab, or click it. Esc closes the pane.
| Tab | What it shows | What each button does |
|---|---|---|
1: Now | The sessions on this computer, as widal top shows them. They are read again every 5 seconds while the pane is open. | Each row is a button. It opens the details of that session: project, tool, ticket, state, context, cache with the minutes left, tokens today, agents that run, the task (only while names are on), and for Claude Code the command that resumes it, claude --resume <id>. b: Back goes back to the list. |
2: Spend | Today and the last 7 days, at list prices: spend for what is paid by the token, API value for what runs on a subscription, both apart when they mix. The dollars of each account and the price of its plan, when widal accounts is there. The top 3 proposals of widal advise. | Apply <name> asks once more: "Apply ? It changes Claude Code's settings, with a backup." Then y: Yes, apply runs widal apply <name>, and n: No does nothing. An applied change has Undo <name>, which runs widal undo <name>. r: Read again reads the tab again. |
3: Settings | Every setting of widal settings in its group: the status line, the hints, the security frameworks and the checks (see "Settings" below). | A row with [x] or [ ] turns its setting on or off, through widal settings set. The layout of the status line moves to its other value. A value with more than two choices is a list to pick from. Healthcare set, Life sciences set and Fintech set switch their frameworks on. [ ] For this project makes the frameworks those of the session's folder. A field for each account takes a new label, through widal accounts label. u: Undo the last change runs widal settings undo. |
4: Security | At the top: the frameworks that are on, the open findings by severity, and the sentence that Widal.Code checks technical controls and does not certify anything. Then one row per open finding, the most severe first: its severity, title, where it is, and the controls of the frameworks that are on. They come from widal check --json, for the session's folder. | A row opens the finding's detail: all its fields, its fix command, and when it was first and last seen. f: Fix is there when Widal.Code can make the fix. It asks once: "Apply ? It changes Claude Code's settings, with a backup." Then y runs widal apply <name>, and the fix gets Undo <name>. h: Hand to the agent asks once: "Send this finding to Claude in this session? It uses tokens." Then y sends one prompt in the session (see below). b: Back goes back to the list. r: Run checks for this folder runs widal check --run and reads the findings again. |
- The Spend tab replays the logs, as
widal advisedoes, so it can take a while the first time. It is read once each time the pane opens. - The pane runs Widal.Code's own command from the plugin's folder, with a list of arguments and no shell. When a run fails, the pane shows one plain line that says why.
- What the pane shows is for your screen only. The two commands give Claude nothing to read.
- Hand to the agent is the only button that uses tokens. After you say yes, it sends this prompt in the session: "Widal.Code found: in . Controls: . Please fix it, explain what you changed, and do not print any secret." Only the finding's own title, place and controls go in. A finding never holds what was found, so no secret and no patient data can go in. Claude Code runs the prompt as a turn of its own once the session is idle, and shows it as sent by the Widal.Code plugin.
- A version of Widal.Code without
widal checksays on the Security tab that the checks are not part of it yet. - Cloud checks do not run from the pane. Run
widal cloud-checkin a terminal (see "Cloud checks"); the tab then shows what it found. - The names of tasks follow the setting
hud.names, as on the status line.
Settings
widal settings shows every setting you may change, in one place: its key, its value and what it does.
| Group | Keys | Values |
|---|---|---|
| Status line | hud.layout | lines (up to four lines) or one (one line) |
hud.lines.session, hud.lines.plan, hud.lines.work, hud.lines.hint | on or off. At least one line stays on. | |
hud.bars, hud.names | on or off | |
| Hints | hint.effort, hint.compact, hint.nudge | on or off: the hint about the effort level, the hint to compact, and the notification before a cache ends |
| Frameworks | security.frameworks.<id> | on or off, for each framework in the next table |
| Checks | security.checks.settings, security.checks.actions, security.checks.code, security.checks.data, security.checks.cloud, security.checks.push | on or off |
The security frameworks, in their groups, with the id of each:
| Group | Frameworks |
|---|---|
| Healthcare | HIPAA (hipaa), HITRUST CSF (hitrust), SOC 2 (soc2), ISO 27001 (iso27001) |
| Life sciences | 21 CFR Part 11 (part11), EU GMP Annex 11 (annex11), GDPR (gdpr) |
| Fintech | PCI DSS (pci), GLBA Safeguards Rule (glba), NYDFS 23 NYCRR 500 (nydfs), EU DORA (dora) |
| AI agents | OWASP Top 10 for Agentic Applications (owasp-agentic), OWASP Top 10 for LLM Applications (owasp-llm), NIST AI RMF (nist-ai-rmf), ISO/IEC 42001 (iso42001) |
- OWASP Top 10 for Agentic Applications is on until you turn it off. The other frameworks are off.
- Sets switch several frameworks on at once, and switch none off.
widal settings set security.set healthcareswitches on HIPAA, SOC 2 and HITRUST CSF.life-sciencesswitches on 21 CFR Part 11, EU GMP Annex 11 and SOC 2.fintechswitches on SOC 2, PCI DSS and GLBA Safeguards Rule. - The checks: settings, actions, code and the gate before a push are on. Data is off, because it reads the text of sessions. Cloud is off: it runs only on request. What each check does is in "Security and compliance".
- The checks run now: settings, actions and code on their own, data only when you turn it on, and the cloud only when you ask, with
widal cloud-check(see "Cloud checks"). Widal.Code checks technical controls and flags risks. It does not make a company compliant or certify it.
| Command | What it does |
|---|---|
widal settings | In a terminal: a list. Up and down (or j and k) move. Space or Enter turns a setting on or off, moves a choice to its next value, or switches a set on. u undoes, q quits. Without a terminal: the settings as text, with the commands that change them. |
widal settings --json | The same as data: each setting with its key, label, group, value, allowed values and default, the sets, and the accounts. The pane reads this. |
widal settings set <key> <value> | Changes one setting, for example widal settings set security.frameworks.hipaa on. A wrong key or value gives one sentence and exit code 1, and nothing changes. |
widal settings undo | Puts back what the last widal settings set changed. It goes back one step. |
- Where they are kept. Your settings are in
~/.widal/config.json, wherewidal hud,widal hintandwidal nudgekeep the same values. Those commands keep working.widal hint onandwidal hint offset both hints at once.widal settingssets each one. - For one repository.
--project <folder>writes the frameworks for that repository instead, into<folder>/.claude/loobster-frameworks.json, as{ "frameworks": [ ... ] }. Another plugin already uses that file, so every other key in it stays. When the file names frameworks, they win over your own setting for that repository.widal settings --project <folder>shows them. Only the frameworks and the sets take--project. A file that is not a JSON object is never written over. - Accounts. When
widal accountsis there,widal settingslists the accounts with their labels. Change a label withwidal accounts label <key> "<label>", or in the pane. - Nothing here changes Claude Code's settings.
Security and compliance
Widal.Code checks what your agents may do, what they did, and the code they changed. It flags the risks it finds, and names the controls they touch in the frameworks you switched on (see "Settings").
Widal.Code checks technical controls and flags risks. It does not make a company compliant or certify it. Every list of findings ends with this sentence.
What is checked, and when.
| Check | What it reads | When it runs | On by default |
|---|---|---|---|
| Settings | Claude Code's user settings, the organization's managed settings when they can be read, the project's .claude/settings.json, .claude/settings.local.json and .mcp.json, the MCP servers in .claude.json, and Codex's config.toml | When a session starts, and with widal check --run | Yes |
| Actions | The whole session's log, read a piece at a time: the names of tools, the paths of files, and the words of shell commands | When an agent's turn ends, and with widal check --run | Yes |
| Code | The files the agent changed in the session's repository: those that differ from the last commit, and new files git does not know yet. At most 200 files and 2 MB per file. Binary files and node_modules are skipped. | When an agent's turn ends, and with widal check --run | Yes |
| Data | The user messages and tool results in the whole session's log | When an agent's turn ends, and with widal check --run, only after widal settings set security.checks.data on | No |
- The hooks start the checks in the background and return at once. A session never waits for a check. A second start for the same repository within 60 seconds is skipped.
- Each check can be turned off with
widal settings set security.checks.<name> off:settings,actions,code,data. widal connectadds the three hooks to Claude Code's settings, and the plugin carries the same three (see "The plugin's hooks"). A hook never acts twice.widal disconnecttakes them out.
The rules.
| Rule | Severity | It flags | Fix |
|---|---|---|---|
set.bypass-mode | high | permissions.defaultMode is bypassPermissions or auto in the user or managed settings, or skipDangerousModePermissionPrompt is true, while bypass mode is not disabled | widal apply no-bypass |
set.allow-any-shell | high | An allow rule Bash or Bash(*) | |
set.no-secret-deny | medium | No deny rule in the user or managed settings for reading .env files and private keys | widal apply deny-secret-files |
set.sandbox-off | medium | sandbox.enabled is not true in the user or managed settings | |
set.all-project-mcp | medium | enableAllProjectMcpServers is true | |
set.remote-mcp | low | An MCP server with an address on another host | |
set.provider-not-hipaa | medium, only with HIPAA on | CLAUDE_CODE_USE_BEDROCK, CLAUDE_CODE_USE_VERTEX, or an ANTHROPIC_BASE_URL that points away from Anthropic's API: Claude Code's HIPAA configuration does not cover such sessions | |
set.transcripts-kept | low, medium with HIPAA, PCI DSS, 21 CFR Part 11 or GDPR on | cleanupPeriodDays missing (30 days) or above 7, or desktopSessionCleanupPeriodDays missing (kept without end) or above 7. Transcripts are plain text on disk. | widal apply transcript-days |
set.otel-prompts | medium | OTEL_LOG_USER_PROMPTS or OTEL_LOG_TOOL_DETAILS turned on | |
codex.approval-never, codex.full-access | high | approval_policy = "never", sandbox_mode = "danger-full-access", at the top of Codex's config.toml or in a profile | |
codex.network, codex.history | medium, low | sandbox_workspace_write.network_access = true, history.persistence = "save-all" | |
act.read-secret-file | high | A read of .env, .env.* (not .env.example), *.pem, id_rsa* (not .pub), .aws/credentials, *.p12, .npmrc or .netrc | |
act.self-config | medium | An edit of .claude/settings*.json, .mcp.json, .codex/config.toml or a hooks file | |
act.send-out | medium | curl with -T, --upload-file, -d @, --data-binary @ or -F, scp, rsync to a host, nc | |
act.force-push | medium | git push with --force or -f | |
act.destroy | high | terraform destroy, kubectl delete, an aws delete, aws s3 rm, aws s3api put-bucket-acl, gcloud ... delete, vercel --prod, vercel rm, prisma migrate reset, dropdb | |
act.no-verify | low | git commit or git push with --no-verify | |
code.iac | the scanner's | Infrastructure code with a risky setting (see "Scanners" below) | |
code.secret | high | A secret key in the code | |
code.tls-off | high | verify=False, rejectUnauthorized: false, NODE_TLS_REJECT_UNAUTHORIZED set to 0, InsecureSkipVerify: true, or curl -k in a script | |
code.phi-log | medium, only with HIPAA or GDPR on | A log or print call in the same line as a field named like ssn, dob, date_of_birth, mrn, medical_record, patient_name, diagnosis or insurance_id | |
code.card-number | medium, only with PCI DSS on | A 13 to 19 digit number that passes the check of card numbers, outside folders and files named as test fixtures | |
code.http | low | An http:// address to a host that is not this computer, in a config file | |
data.us-ssn, data.card-number, data.secret | high | A US social security number, a card number or a secret key in the session's text. The finding says that the transcript holds it in plain text, where, and for how long. | widal apply transcript-days |
A command is split into words as a shell splits it, so a word inside a quoted argument does not count: git commit -m "no --force" is no force push.
Scanners. No check needs an installed program. With one, Widal.Code uses it:
- Infrastructure code: Checkov, Trivy (
trivy config) or KICS, the first one found, with a time limit of 60 seconds. They check Terraform, CloudFormation, Kubernetes YAML and Dockerfiles. Without one, or when it fails or runs out of time, Widal.Code's own rules check Terraform only: an S3 bucket with a public ACL or without encryption, a security group open to0.0.0.0/0on a port other than 80 and 443,publicly_accessible = true, andstorage_encrypted = false. CloudFormation, Kubernetes YAML and Dockerfiles need a scanner. - Secret keys: gitleaks when it is installed, run with
--redact, with the same time limit. Without it, Widal.Code's own patterns: AWS access key ids, private key blocks, GitHub tokens, Anthropic and OpenAI API keys, and Slack tokens. - Each finding says which program found it.
What is read, and what is never kept. The findings are in ~/.widal/findings.json. A finding holds the rule, the severity, where (a file and line, a path inside the repository, a session), when it was first and last seen, and the controls. It never holds what was matched: no key, no number, no command, no text of a session.
- Actions: Widal.Code looks at the name of a tool, the path of a file and the words of a shell command only to compare them with the rules. It keeps the rule, the time and, for a file, its path inside the repository. Never the command. A read or an edit of a file that was denied or failed is no finding: Widal.Code looks only at the error flag of its result, never at the text. A shell command counts also when it failed, because it may have done part of its work first.
- Data: only the kind and the count.
- MCP servers: only the name, the type and the host. Never the headers or the environment of a server.
- A finding that a later run does not find again is resolved. Resolved findings older than 30 days are dropped.
The gate. Before git push, gh pr create or gh pr merge, while a high finding of the code or the actions is open in that repository, Claude Code asks you first:
Widal.Code: 2 high risks are open in this repository: A secret key is in the code; The code turns off the check of TLS certificates. See them with widal check.
It never refuses: you answer the question. It also sees git -C <folder> push and cd <folder> && git push, and then looks at that folder's repository. Turn it off with widal settings set security.checks.push off.
- A hook that answers for you. The question is a normal permission question of Claude Code. If you have a hook of your own that answers every permission question with "allow" (a
PermissionRequesthook), that hook answers this question too, and the push goes ahead. The live test on 14 Nov 2026 showed exactly that: Claude Code said "Allowed by PermissionRequest hook". To keep the gate, let such a hook leave outgit push,gh pr createandgh pr merge.
Where findings show.
| Where | What |
|---|---|
| The status line | At the start of line session, and at the start of the one line: 2 high risks in red, or 1 medium risk in yellow, for the settings and the session's repository. Nothing when there are none. It reads only the findings file. |
widal check | The frameworks that are on, then the open findings by kind, the most severe first, each with what it is, where, the controls of the frameworks that are on, and its fix. Then the sentence about not certifying. |
widal check --run | Runs the checks that are on for this folder first: the settings, the code of its repository, and the Claude Code sessions of this folder of the last 7 days. |
widal check --json | The same as data: at, frameworks, counts, findings and note. The pane and the desktop extension read it. |
widal check --export findings.csv | The open and the resolved findings with their dates and controls, as a CSV file, for an audit. The last line is the sentence about not certifying. A cell that starts with =, +, - or @ gets a ' in front, so a spreadsheet never runs it as a formula. |
The fixes. Three findings name a change that Widal.Code can make. Each saves a copy of ~/.claude/settings.json first, and widal undo <name> takes it back (see "Every change the tool can make to Claude Code's settings").
| Command | What it changes |
|---|---|
widal apply no-bypass | Sets permissions.disableBypassPermissionsMode to "disable", and takes out skipDangerousModePermissionPrompt. Bypass mode can no longer start. |
widal apply deny-secret-files | Adds deny rules for .env files, .pem files, id_rsa keys and .aws/credentials. Your other rules stay. |
widal apply transcript-days | Sets cleanupPeriodDays and desktopSessionCleanupPeriodDays to 7 days, or to --days. Claude Code then deletes older transcripts at the start of a session. Widal.Code's reports read the same transcripts, so they see that many days at most. |
Frameworks and controls.
- A finding names the controls of the frameworks that are on: your own (
widal settings), or for code in a repository with.claude/loobster-frameworks.json, that file's. A finding that touches none of them keeps its controls of the AI agents group: OWASP Top 10 for Agentic Applications, OWASP Top 10 for LLM Applications, NIST AI RMF and ISO/IEC 42001. - "(id to check)" follows every control id that was not checked against the framework's own text. The ids that were checked: the HIPAA Security Rule 45 CFR 164.312(a), (a)(2)(i), (a)(2)(iv), (b), (c), (d), (e) and 164.514(b)(2)(i), 21 CFR 11.10(a), (c), (d), (e), (g) and (k), PCI DSS 6.4.3 and 11.6.1, GLBA 16 CFR 314.4, DORA Art. 28, and the OWASP Top 10 for LLM Applications 2025.
- HITRUST has no ids here. Its findings name the HIPAA and ISO 27001 controls they touch, with the words "HITRUST: through the controls it shares with HIPAA and ISO 27001".
- ISO/IEC 42001 has no ids here either. The NIST AI RMF is named by its four functions: Govern, Map, Measure and Manage.
- The catalog is in
src/controls.mjs, and the rules with their controls are insrc/rules.mjs.
Cloud checks
widal cloud-check reads the security settings of one cloud account, project or repository, and saves what it finds, so that widal check and the pane's Security tab show it too. It only reads. It runs only when you type it: never on a timer and never from a hook. It uses the sign-in you already have in the provider's own command line tool. Widal.Code never reads a credentials file and never keeps a key.
| Command | What it reads | What it needs |
|---|---|---|
widal cloud-check aws [--profile <name>] [--region <r>] [--minutes 20] | With Prowler: Prowler's checks for the frameworks that are on. Without Prowler: the results AWS already has, from AWS Config conformance packs and Security Hub CSPM. | The AWS CLI (aws), signed in. Read access: the AWS managed policy SecurityAudit. Prowler is optional. |
widal cloud-check vercel [--project <name>] [--team <id>] | Deployment protection, Password Protection and Trusted IPs, environment variables that look like secrets, and the firewall | The Vercel CLI (vercel), signed in. For two of the checks: a token in VERCEL_TOKEN. |
widal cloud-check github [--repo <owner/name>] | A review before a merge into the default branch, secret scanning and push protection, the counts of open alerts, and two-factor sign-in in the organisation | The GitHub CLI (gh), signed in |
- A run prints what it checked, what it skipped and why, the open findings with their controls, and the sentence that Widal.Code checks technical controls and does not certify anything.
- A finding never holds what was found: no secret, no value of a variable, no text that a scanner wrote about a resource. It holds the check's title, the resource's id, and the controls.
- What one run covers: one AWS account (and the region, when you name one), one Vercel project, or one GitHub repository. A later run of the same resolves what was fixed since. A run that could not finish (a time limit, a tool that failed in the middle) saves nothing, so it resolves nothing either.
- A tool that is not installed, or a sign-in that does not work, gives one sentence and exit code 1.
- A run keeps the 500 most severe findings at most, and says how many it left out.
AWS. First aws sts get-caller-identity says which account the sign-in is for. Only the account id is kept. Then one of two paths:
- With Prowler. Prowler is an open source scanner (Apache 2.0). When it is installed, Widal.Code runs
prowler awswith the compliance frameworks that match the frameworks that are on, and only those that Prowler has: HIPAA (hipaa_aws), SOC 2 (soc2_aws), ISO 27001 (iso27001_2022_aws), PCI DSS (pci_4.0_aws), 21 CFR Part 11 (gxp_21_cfr_part_11_aws), EU GMP Annex 11 (gxp_eu_annex_11_aws) and GDPR (gdpr_aws). HITRUST runs through HIPAA and ISO 27001. Prowler has nothing for GLBA or NYDFS, and its DORA results do not reach the file Widal.Code reads. When no framework that is on has one in Prowler, Prowler runs all its checks.- Prowler scans every region, unless you name one with
--region. It stops after 20 minutes.--minutes 60gives it longer. - Widal.Code reads the failed checks from Prowler's JSON-OCSF file, in a new temp folder. That report names your resources, so Widal.Code deletes it and its folder right after reading it, also after a failed run. For the full report, run Prowler yourself.
- Prowler's own documentation asks for the policies SecurityAudit and ViewOnlyAccess, and an extra policy for some checks. That extra policy has one permission that writes (
securityhub:BatchImportFindings), and it can read content such as log events. Read it before you add it.
- Prowler scans every region, unless you name one with
- Without Prowler. Widal.Code reads what AWS already has, in the CLI's region or the one you name: the rules that are not compliant in each AWS Config conformance pack that is deployed, and the findings of Security Hub CSPM's controls with severity high or critical.
- AWS has conformance packs for HIPAA Security, PCI DSS, 21 CFR Part 11, GxP EU Annex 11, GLBA, NYDFS 23 and many more, and none for SOC 2, ISO 27001 or HITRUST. A pack has to be deployed first.
- Security Hub CSPM (the Security Hub from before 2025) has standards for AWS Foundational Security Best Practices, CIS, NIST 800-53, NIST 800-171 and PCI DSS, and none for HIPAA or SOC 2.
- When neither is there, or neither may be read, the run saves one finding of severity info that says what to switch on and what it costs.
- What the AWS services cost (AWS's prices in Nov 2026, for US East). Security Hub CSPM costs about $0.001 per check of one resource in one region, for the first 100,000 checks a month, after a free trial of 30 days per account and region. It needs AWS Config, which is paid on its own. AWS Config costs $0.003 per configuration item it records, and $0.001 per rule evaluation and per conformance pack evaluation, for the first 100,000. See aws.amazon.com/security-hub/cspm/pricing and aws.amazon.com/config/pricing. Prowler is free.
- AWS Audit Manager takes no new customers since 30 Apr 2026, so Widal.Code does not use it.
Vercel. The project is the one this folder is linked to, or the one --project names. --team names its team.
- Deployment protection and Password Protection, with
vercel project protection <project> --json. Previews that nothing protects are a finding of severity high. URLs of production deployments that nothing protects are one of severity medium. Production domains are public on purpose for most sites, so Widal.Code does not flag them. - The firewall on or off, with
vercel firewall status --json. - Trusted IPs, and environment variables that stay readable after they are saved (Config, not Secret) while their name ends in
_KEY,_SECRETor_TOKENor holdsPASSWORD. Only Vercel's REST API answers these. Widal.Code callsGET /v9/projects/<id>on api.vercel.com, and only when you setVERCEL_TOKEN(make a token in your account settings on vercel.com). It sends the token there only, and never writes it anywhere. Of each variable it reads the name and the kind, never the value. Without the token the run says that these checks were skipped, and their findings from an earlier run stay as they were. - With HIPAA on: one finding of severity info. Vercel signs a HIPAA BAA only on Pro with the paid add-on, and on Enterprise. Widal.Code cannot see whether yours is signed.
- Vercel itself has a SOC 2 Type 2 attestation and is ISO 27001 certified. That covers Vercel, not your project.
GitHub. The repository of this folder, or the one --repo names. Each check is a gh api call:
- The default branch needs at least one approving review before a merge, by a ruleset or by branch protection.
- Secret scanning and push protection are on. GitHub shows this only to admins of the repository.
- Open secret scanning alerts (asked without the secrets), open Dependabot alerts of severity high and critical, and open code scanning alerts: the counts only. When GitHub answers 403 or 404 for code scanning, it is not enabled.
- For a repository of an organisation: two-factor sign-in is required. GitHub shows this only to owners.
- What your sign-in may not see is one sentence in the output, and no finding.
Controls. A cloud finding names the controls of the frameworks that the provider's tool reported: Prowler's requirement ids, the rule of a conformance pack, and Security Hub's PCI DSS requirements. Widal.Code's own checks of Vercel and GitHub name controls that Widal.Code chose. Every id that is not checked against the framework's own text shows "(id to check)".
The Widal.Code board
The Widal.Code board is a web app for a team. Each person links their computer to it once. From then on Widal.Code on that computer sends what it records to the board, on its own. The board joins that with the team's pull requests on GitHub, and shows the spend, the cost of each pull request, parallel work, waste and the security findings of the whole team in one place. The board is a separate project.
Link this computer. Run this in a terminal, with your board's address:
widal board login https://code.widal.com
- Widal.Code prints an address and a code, such as
BCDF-GHJK, and opens the address in your browser (openon macOS,xdg-openon Linux). - Sign in to the board with GitHub. Check that the board shows the same code and your computer's name, pick the team when you are in more than one, and click Approve.
- Widal.Code saves the link and sends the first data right away: the last 30 days. It says what it sent.
The code works for 15 minutes. Ctrl-C stops the waiting. The address has to start with https://. Plain http:// works only for a test board on this computer (localhost or 127.0.0.1).
| Command | What it does |
|---|---|
widal board login <address> | Links this computer to the board, as above |
widal board status | The board, the team, your user on the board, this computer, the last sync and what it sent, whether background sync is on, and whether the board still knows this computer |
widal board sync | Sends now. --days 30 sends that many days again. |
widal board logout | Unlinks this computer. Widal.Code sends nothing more. |
When Widal.Code sends. Right after the link, and then about every 10 minutes while you work: the status line and the plugin's hooks at the start of a session and at the end of a turn start a sync in the background when the last one is 10 minutes old or more. They read two small files for that and never wait for the sync. The status line itself never uses the network. A lock file (~/.widal/board.lock) keeps two syncs from running at once. Without the status line and the plugin, run widal board sync yourself.
What is sent. Once you link a computer, Widal.Code sends everything it records, with no further question:
- The model calls: for each call its time, session, agent (Claude Code, Codex or Cowork), model and effort level, the tokens of each kind, the cost at list prices, the folder, the GitHub repository (
owner/nameof the folder's git remoteorigin), the git branch and its ticket, the account, whether it came from a subagent and its parent session, the names of the tools with 8 characters of a hash of their input, the sizes of what entered the context, and the counts of failed tool results and interrupts. - The sessions, with their folder, repository, branch and ticket. For the sessions that are open now: whether they work, wait for you or are idle. While the names of tasks and agents are on (
widal hud names on, the default), also the names of their tasks, and the kind and short description of each agent that runs. With names off, none of these. - The commits made while a session worked in a repository, from your local git: the commit's id and time, and the session. Only your own commits: when git knows your email (
user.email), a commit with another committer email came with a pull and is left out. That email is read on your computer only, and never sent. - The security findings (the whole list), the plan's limits of each account, the accounts (their key, label, how they pay, their plan, and the price of their plan a month: the one you set, else a public price that Widal.Code knows, else none), the settings as
widal settings --jsongives them, and the proposals aswidal advise --jsongives them (at most every 6 hours, because the replay takes time).
What is never sent. The text of a prompt, an answer, a tool result or a file. Widal.Code never keeps that text, so it has none to send. The name of the program of a shell command, which Widal.Code keeps for widal findings, is not sent either. Folders are sent with ~ for your home folder, so your user name on the computer is not sent. No email address and no person's name is sent.
The token. The board gives this computer a token that starts with kbm_. It is the one secret Widal.Code keeps. It is in ~/.widal/board.json, which only you can read (mode 600), and Widal.Code never prints it in full (widal board status shows kbm_… and its last 4 characters). The board keeps only a hash of it.
How it works. Each sync sends the calls since one hour before the last sync, to catch a call that reached its log a little late. The board keeps a call by its id, so a call sent twice changes nothing. A request holds at most 2000 calls, packed with gzip, and is split in half while it is bigger than 3.5 MB. Each request has a time limit of 60 seconds. The time of the sync is saved only after the board took every request. When the network or the board fails, nothing is saved and the next sync sends the same again. widal board status shows the last failure.
Stop it. widal board logout tells the board, which stops taking the token at once, and deletes ~/.widal/board.json. When the board cannot be reached, the link on your computer is deleted all the same: remove the computer on the board's Machines page. You, or an admin of your team, can also click Revoke there. Widal.Code then stops its background syncs at the next try, and widal board status says that the board removed the computer. To link again, run widal board login again.
Install from this folder
node cli/widal.mjs connect
Run it in this folder. This is the way to use a checkout of the repo instead of the plugin. It links to this folder and copies nothing. It does four things:
- It makes the link
~/.widal/bin/widalto the command in this folder. Claude Code's settings call the tool through this link. - It links the command to
~/.local/bin/widal, so that you can typewidal. That folder has to be on your PATH. - It sets Claude Code's status line in
~/.claude/settings.json, with a refresh every 30 seconds. A copy of the file is saved in~/.widal/backup/first. Another tool's status line is kept, unless you runwidal connect --force. - It adds the three hooks of the security checks to the same file (see "Security and compliance"). Hooks of other tools stay.
Another program named widal. Widal.Factory, another tool of Widal, also has a command named widal, and its folder can be on your PATH. So two programs named widal can be on one computer:
- The tool never replaces or removes another program at
~/.local/bin/widal, and says so. It leaves another program at~/.local/bin/kestrelor~/.local/bin/agent-spendalone in the same way. - When another program named
widalcomes first on your PATH,widal connectandwidal doctorsay where it is. Then type~/.widal/bin/widalinstead ofwidal, for example~/.widal/bin/widal summary. Or put~/.local/binbefore the other program's folder in your PATH. - Claude Code's settings never call the link on the PATH, so they always run this tool.
- The tool only ever changes or takes out an entry in Claude Code's settings that calls its own files:
~/.widal/bin/widal,~/.kestrel/bin/kestrel, its own link on the PATH, or its own command file. An entry that calls the bare wordwidal, or a program namedwidalin another folder, belongs to the other program and stays as it is. - For the same reason,
widaldoes not take the four commands that had other names before 17 Nov 2026:installiswidal connect,uninstalliswidal disconnect,statusiswidal doctor, andmcpiswidal desktop-mcp. Typed with the old name,widal installsays the new one.
Codex and Cowork need no setup. Their logs are read as they are.
widal doctor shows what is installed. widal disconnect takes the tool out of Claude Code again.
The tool keeps its files in ~/.widal. Set WIDAL_HOME to use another folder.
Coming from Kestrel
The tool was called Kestrel until 17 Nov 2026. Its command was kestrel, its folder was ~/.kestrel, the plugin was kestrel@kestrel, and the board was at https://kestrel.widal.com. You do not need to do much:
- Update the tool: update the plugin in Claude Code, or pull this folder.
- Type any command once, for example
widal doctor, orkestrel doctorwhilewidalis not on your PATH yet. With the plugin, starting a new Claude Code session does the same. - From then on, type
widalin place ofkestrel.
The first command, or the plugin at the start of a session, moves the install to the new name. It prints each thing it did, and does it only once:
- The folder. It renames
~/.kestrelto~/.widal, with everything in it, and leaves~/.kestrelas a link to~/.widal. Sessions that are open call~/.kestrel/bin/kestrelfor their status line and hooks, and that path keeps working through the link. When both folders are there, it changes neither. WhenWIDAL_HOME(orKESTREL_HOME) is set, it moves no folder. - The links. It makes the link
~/.widal/bin/widal, which Claude Code's settings call from now on. It adds the link~/.local/bin/widalnext to~/.local/bin/kestrel. The old links stay. - Claude Code's settings. In
~/.claude/settings.jsonit changes the status line and this tool's hooks to call~/.widal/bin/widal, with the same words after the command. A copy of the file is saved in~/.widal/backup/first. Nothing else in the file changes. - The board. A computer that was linked to
https://kestrel.widal.comis linked tohttps://code.widal.comfrom then on. It is the same board under its new address, so the link stays valid and you do not log in again.
The status line and the hooks never run the move. A command typed in a checkout that the install does not run moves nothing either: there, run widal migrate to move the install to that checkout.
What keeps working for one release.
- The command
kestrel, with every command, alsokestrel install,kestrel uninstall,kestrel statusandkestrel mcp. Each command typed this way prints a note on stderr to typewidal. The status line and the hooks never print it. - The links
~/.kestreland~/.widal/bin/kestrel, so that sessions from before the move keep working. - The settings
KESTREL_HOME,KESTREL_COWORK_DIR,KESTREL_MANAGED_SETTINGS,KESTREL_MCP_WAIT_MSandKESTREL_NO_BROWSERare still read. TheWIDAL_name wins when both are set. - A change that you applied under the old name stays applied.
widal doctorshows it, andwidal undotakes it back.
The plugin. The plugin is now called widal, so its commands are /widal:connect, /widal:report, /widal:open and so on. /kestrel:setup is now /widal:connect, and /kestrel:status is now /widal:doctor. Add the new plugin and take out the old one:
/plugin uninstall kestrel@kestrel
/plugin marketplace remove kestrel
/plugin marketplace add Widal-Inc/widal-code
/plugin install widal@widal
Take the old plugin out first: two plugins with the same hooks would run each hook twice.
The desktop extension. The extension is now called Widal.Code, in the file widal-code.mcpb, and the skill for the web and the phone is in widal-code-skill.zip. An installed Kestrel extension keeps working, because it carries its own copy of the tool. To move to the new one, remove Kestrel under Settings, Extensions in the app, and install widal-code.mcpb (see "Install in the Claude desktop app").
Coming from agent-spend
The tool was called agent-spend until 13 Nov 2026. The same move brings an install from that time to the new name: it renames ~/.agent-spend to ~/.widal, and leaves ~/.agent-spend as a link to it. To run it by hand, type in this folder:
node cli/widal.mjs migrate
Once you have pulled this version, the old command does not run: its file moved from bin/ to cli/, and the link still points at the old place. So run the move right after the pull. widal connect runs the same steps first.
- The links. It makes the link
~/.widal/bin/widal, and adds the link~/.local/bin/widalnext to~/.local/bin/agent-spend. A link that points at the command's files inbin/, where they were before 13 Nov 2026, is pointed at the same file incli/. - Claude Code's settings. An entry is changed when its program is one of these: the full path of
~/.local/bin/agent-spendor~/.local/bin/kestrel, the linkbin/kestrelin~/.agent-spend,~/.kestrelor~/.widal, the bare wordagent-spendorkestrel, ornodewith a path that ends inagent-spend.mjsorkestrel.mjsin the foldercliorbin. A program that only has the name in a longer name, or a command that has it only in an argument, belongs to another tool and stays. - The link
~/.local/bin/agent-spendstays, andcli/agent-spend.mjsruns the same program ascli/widal.mjs.widal disconnectremoves the old links, when they are this tool's. - A second
widal migratechanges nothing, and says that nothing was left to do. AGENT_SPEND_HOMEis no longer read. SetWIDAL_HOME.
How you pay decides what you see
There are two ways to pay for Claude Code. A dollar figure means something else in each.
- A subscription (Pro, Max, Ultra). You pay a fixed price. The plan has a limit per 5 hours and a limit per week. What counts is how much of those limits is used. So the status line, the notification and the warnings show percent of the plan's limits, and tokens.
- By the token (an API key or a cloud provider). Every token is billed. So the same places show dollars.
The tool finds out how you pay. It takes the first of these that holds:
- You set it by hand, with
widal plan subscriptionorwidal plan usage. In the commands, paying by the token is called "usage". - Claude Code gives the session the plan's limits. It does that for subscribers only. So this is a subscription.
- One of Claude Code's switches for a cloud provider is set in the environment (
CLAUDE_CODE_USE_BEDROCK,CLAUDE_CODE_USE_VERTEX,CLAUDE_CODE_USE_FOUNDRY,CLAUDE_CODE_USE_MANTLE). So you pay by the token. ANTHROPIC_API_KEYis set in the environment. So you pay by the token. The tool only looks whether the variable is set. It never keeps or prints the key.- The plan's limits were seen on this machine in the last 24 hours. So this is a subscription.
- None of these holds. The tool then shows dollars and says that it is not sure. The status line marks them with
(list prices).
widal plan shows the answer and the reason. Right after the install no session has shown its limits yet, so it can say "not sure" to a subscriber. widal plan auto takes back what you set by hand.
The reports always show dollars, and say what they are. widal summary, widal findings and the other reports price every call at list prices: the public price per token of each model. They still show which work is large and which is small. What the dollars mean depends on the account of each call:
- Spend. For an account that pays by the token (an API key, a cloud provider), the dollars are what you pay. The reports call them spend.
- API value. For an account on a subscription (Claude Pro, Max or Ultra, a Team or Enterprise seat, a ChatGPT plan for Codex), you pay the plan's price instead. The reports call the same dollars API value: what the same use would cost by the token.
- Both. When a period has calls of both kinds, the reports show them apart, for example:
Paid by the token: $12.50 (spend, at list prices)
On subscriptions: $412 of API value (what the same use would cost by the token)
- Not known. An account whose way to pay Widal.Code cannot tell shows its dollars "at list prices".
widal plan subscriptionorwidal plan usagetells it for such accounts.
How an account pays comes from the same signs as above, per account: a reading of its plan's limits, what Claude Code's file .claude.json says about it, a Codex plan type, the key api (an API key) or cloud (a cloud provider). widal summary, widal findings, widal accounts, widal session, the pane and the desktop extension all use these words. A limit that you set with widal limit is in dollars at list prices.
The price of a plan. For each subscription in the period, widal summary and widal accounts show a block "Plans": the plan's limits now, then the API value of the period next to the plan's price for the same number of days (the price a month, times the days, divided by 30):
Plans
Acme (claude:1a2b3c4d): Claude Max, $100 a month (the plan's public price)
Limits now: week 41% used, 52% of the week gone; 5 hour limit 33% used, 60% of its time gone
API value in 7 days: $412. The plan's price for 7 days: $23.33. That is 17.7 times the plan's price.
- Widal.Code knows the price of these plans, as claude.com/pricing gave them on 16 Nov 2026: Claude Pro $20 a month (billed monthly; billed yearly it is $17 a month), Claude Max $100 and Claude Ultra $200, and ChatGPT Plus $20 and ChatGPT Free $0 for Codex. Team and Enterprise seats and other plans have no price there.
- Claude Code names both Max and Ultra
claude_max. Widal.Code tells them apart by the rate limit tier in.claude.json: a tier that ends inmax_5xis Max, and one that ends inmax_20xis Ultra (the pricing page links Ultra tomax_20x). Widal.Code keeps only5xor20xof it. Without a tier the plan shows as "Claude Max or Ultra", with no price: set it withwidal accounts price. widal accounts price claude:1a2b3c4d 100sets the price of an account's plan, in dollars a month (0 to 100,000, such as 100 or 19.99). A price you set wins over the one Widal.Code knows.widal accounts price claude:1a2b3c4d --cleartakes it away. It is kept with the account in~/.widal/accounts.json.- A plan without a price says so, with the command that sets one:
Price not set: widal accounts price claude:1a2b3c4d <dollars>. - A Cowork account runs on the plan of the Claude account with the same id, so both count as one plan, with one price.
The status line
Claude Code shows a status line at the bottom of a session. This tool fills it with up to four lines. If you want one line instead, run widal hud one (see "One line" below).
The four lines. With the sample that widal hud shows:
[Opus 5.5 · high] │ my-app git:(main) │ context ████░░░░░░ 42% of 1M │ cache warm, 52 min left
week ████████▌░ 85%, full 2.2 days early │ 5h ███░░░░░░░ 33% │ today 41M tokens, 96% from the cache
▸ Writing the tests (3/5) │ Explore: find where the hooks run (4 min), general-purpose: check the guide (2 min) │ other sessions: 1 waits for you
context 420k: a good moment to /compact
| Line | What it shows | Where the numbers come from |
|---|---|---|
session | First, the open security risks of the settings and of the folder's repository: 2 high risks in red, or 1 medium risk in yellow when none is high. They come first because a terminal cuts a long line at its end. Then the model and its effort level. The folder and its git branch. The context as a bar, the percent used, and the size of the context window. The cache. A lost cache and keep-warm show here too. | Claude Code's input to the status line. The branch is read from the folder's git files, without running git. The risks: the file ~/.widal/findings.json (see "Security and compliance"). |
plan | When more than one account was used in the last 7 days, the name of the session's account first, as in Widal, Inc. · week ... (see "More than one account"). On a subscription: each limit of the plan as a bar with its percent, the week first. A limit that is on pace to be full before its reset says how much earlier, and an old reading says how old it is. By the token: the dollars of the session and of today. Then today's tokens of all agents on this computer, and how much of them came from the cache. | The limits: the newest reading of all sessions of the same account (see "Every session shows the newest reading of the limits" below). Today's tokens: the file ~/.widal/today.json, which the command widal refresh-today makes from the logs. When that file is missing or more than 5 minutes old, the status line starts the command in the background, at most once in 2 minutes. Until the file is there, the part is left out. |
work | The task in progress and how many tasks are done (▸ Writing the tests (3/5)), or tasks done (5/5). Up to two agents that run, each with its kind, what it does and the minutes since it started, then +1 more. The other open sessions: how many work and how many wait for you (yellow when one waits). A warning in yellow when another open session works on the same ticket: ABC-321 is also open in Projects/other, with and 2 more when there are more folders. The line is left out when it has nothing to show. | The task list and the agents: the end of this session's log (its last 256 KB), read once per run. The task list is the newest TodoWrite, or the tasks of TaskCreate and TaskUpdate. An agent is a call of the tool Task or Agent that has no result yet. The other sessions: the small file that each session's status line keeps in ~/.widal/sessions/. A session is open when its status line ran in the last 2 minutes, and it works when it made a model call in the last 60 seconds. The ticket comes from the git branch: user/abc-321-lines gives ABC-321. |
hint | The hint about the effort level and the hint to compact, in their colours (see "Model and effort" and "Compaction"). The line is left out when there is no hint. | The same as on one line. |
- Bars have 10 cells. A full cell
█is 10%, and▌is half a cell (5%). 0% to 4% is all░, and only 100% or more is all█. A bar has the colour of its part. - The names of tasks and agents show on your screen. They come from the session's log. Widal.Code shows them on the status line and never writes them to a file: not to a session's file, not to
today.json, not to the cache.widal hud names offshows counts only:tasks 3/5,2 agents running. A computer linked to a Widal.Code board sends the names of the tasks and agents of its open sessions to the board while names are on, and none while they are off (see "The Widal.Code board"). - The parts are separated by
│. With colours, each line ends with a reset. Without colours (see "The colours" below) the bars stay, because they are characters. - A line that fails is left out, and the other lines are still shown.
Choose the lines. widal hud shows the settings in words and a preview made with the sample above. Each change prints the new preview. The settings are kept under hud in ~/.widal/config.json. They change nothing in Claude Code's settings.
| Command | What it does |
|---|---|
widal hud | The settings, a preview, what each line shows, and the commands |
widal hud lines session,plan,work,hint | The lines to show, in this order. Any of the four. |
widal hud lines | All four lines again |
widal hud one | One line, as described below |
widal hud bars on or widal hud bars off | Bars for the context and the limits, or numbers only |
widal hud names on or widal hud names off | The names of tasks and agents, or counts only |
widal hud undo | Puts back the settings from before the last change. It goes back one step. |
A wrong word gives one sentence that lists the right ones. In Claude Code, the plugin's command /widal:hud does the same with your own words, for example /widal:hud hide the names, /widal:hud only two lines or /widal:hud go back. Claude runs widal hud, picks the one command that does what you asked, runs it and shows the preview. /widal:hud undo takes the change back.
One line. After widal hud one the status line is one line of parts, separated by |. It has no bars, no work line and no today's tokens. This is how the status line looked before the four lines.
On a subscription:
5 hour limit 42% used, 60% of its time gone | week 36% used, 44% of the week gone | cache warm, 52 min left | context 527k (53%) | effort high
By the token:
$12.40 session, $3.10 per hour | cache warm, 52 min left, then $8.43 | context 527k (53%) | effort high | today $12.40
What the parts of the one line mean. The four lines show the same facts, some in shorter words:
| Part | What it means |
|---|---|
5 hour limit 42% used, 60% of its time gone | On a subscription. How much of the plan's 5 hour limit is used, and how much of that window's time has passed. week is the same for the weekly limit. |
: full about 75 min early | Added to a limit when the use so far, at the same pace, fills the limit before it resets. It says how much earlier. |
(read 12 min ago) | Added to a limit when its reading is 5 minutes old or more. |
plan limits not reported yet | On a subscription, before Claude Code has given a reading. |
$12.40 session, $3.10 per hour | By the token. What this session cost so far, by Claude Code's own figure, and the cost per hour once the session is 10 minutes old. (list prices) is added when the tool is not sure how you pay. |
cache warm, 52 min left | How long the provider still keeps this session's context in its cache. By the token, then $8.43 is what the next call costs after that time. |
cache gone: the next call re-sends 527k | The cache has ended. The next call sends that many tokens again. By the token the part reads cache gone, next call about $8.43. |
next call at least $0.11 | By the token, when Claude Code gives no end time for the cache. It is what a read of the whole context from the cache costs. |
cache lost: model changed | Shown for 10 minutes after a cache was lost, with the cause that Claude Code gives, in short words: timed out, model changed, messages rewritten, or Claude Code's own name for another cause. |
kept warm, 1.5 of 3 hours used | Only with keep-warm (see "Before a cache ends"), and only while the session is idle. Once its cap is reached: keep-warm stopped after 3 hours. The part goes away with the first model call after you are back. |
context 527k (53%) | The tokens in the context, and the share of the model's context window that is used. |
effort high | The effort level of the session. |
2 high risks | Open security findings of the settings and of the folder's repository, in red. Without a high one, 1 medium risk in yellow. Nothing when there are none. It is the first part of the line, so that a terminal that cuts the line still shows it. See "Security and compliance". |
today $12.40 | By the token. What the sessions on this machine spent today. With a limit per day it reads today $12.40 of $200, and limit $50 is your limit per session. |
limit $50 per session at list prices, $12.40 so far | On a subscription, when you set a limit. These are the only dollars on a subscriber's line. |
mostly simple work at high effort: /effort medium keeps the cache | The hint about the effort level, at the end of the line (see "Model and effort"). |
context 420k: a good moment to /compact | The hint to compact, as the last part of the line, at a break in the work (see "Compaction"). |
The colours say how urgent a part is.
- A limit of the plan is green, yellow from 75% used, and red from 90%. It is also yellow when it is on pace to be full before its reset. It is red when it would be full within 30 minutes (the weekly limit: within 1 day).
- The cache is green while it is warm, and yellow in its last 10 minutes (the last minute of a cache that lasts 5 minutes). It is red once it is gone and the next call sends 100,000 tokens or more again.
- The context is yellow from 80% of the window, and red from 95%. It is also yellow above the size from which the model costs more per token.
- A limit in dollars is yellow from 80% of it, and red when it is reached.
- A lost cache, a keep-warm that has stopped, the hint to raise the effort and the hint that the automatic compaction is near are yellow.
- Colours are off when
NO_COLORis set in the environment, or with"color": falsein~/.widal/config.json.
The refresh timer. Claude Code runs the status line after each answer. An idle session would keep showing an old cache time and an old percent. So the install also sets a timer. After widal connect --refresh 30 Claude Code runs the status line every 30 seconds too. A plain install sets the same 30 seconds. widal connect --refresh 0 takes the timer out. The timer costs no tokens: a run of the status line makes no model call. It reads a few small files and the last 256 KB of the session's log. One run took about 0.04 seconds on the Mac it was built on, also with a log of 100 MB and 30 sessions open.
Every session shows the newest reading of the limits. Claude Code gives a session the plan's limits only with that session's own last answer. An idle session would show a percent that is hours old, while another session has used the plan since. So every session saves the reading it was given in one shared file, ~/.widal/limits.json, and every status line shows the newest reading of its own account on the machine. Each account has a reading of its own (see "More than one account"). When that reading is 5 minutes old or more, the line says so. The percent also counts what chat and Cowork used, because all three draw from the same limits.
After a change of account. Each session knows its account, and saves and shows the reading of that account only. So a session of one account never shows the week of another. Within one account, a session that has just had an answer gives limits that are true now, so its reading replaces the kept one, also when its week ends earlier. A session that has had answers but gets no limits from Claude Code runs on an account without them: it shows the session's dollars at list prices, and no reading that another session saved.
All agents at once
widal top shows every agent session on this computer in the terminal: Claude Code, Codex and Cowork. It draws the view again every 2 seconds. Press q or Ctrl+C to end it. Without a terminal, and with widal top --once, it prints the view once.
Widal.Code · 4 sessions on this computer · 5 hour limit 33% used, 60% of its time gone · 12:00:00
SESSION TOOL TICKET STATE CONTEXT CACHE TODAY AGENTS TASK
work/app Claude ABC-322 also in work/web working 313k warm, 50 min left 625k 1 Writing the notes
work/api Codex ABC-7 working 100k (25%) not known 110k
work/web Claude ABC-322 also in work/app waits for you (12 min) 55k warm, 20 min left 55k
sessions/calm-river Cowork idle (10 min) 100k not known 101k
Waste today: 1 cold start sent 300k tokens again (34% of today).
Next: work/web waits for you, and its cache ends at 12:20. Answer before then, or /compact first.
The first line has the number of sessions, the plan's limits as the status line words them (on a subscription, of the account signed in now), and the time.
Which sessions it shows.
- Claude Code: the sessions whose status line ran in the last 2 minutes. So these rows need Widal.Code's status line. A session is working when it made a model call in the last 60 seconds. Otherwise it waits for you, and the row says for how many minutes.
- Codex and Cowork: the sessions whose log was written to in the last 30 minutes. A session is working when its log was written to in the last 60 seconds. Otherwise it is idle, with the minutes.
- The rows come in this order: working, waits for you, idle.
The columns.
| Column | What it shows |
|---|---|
| SESSION | The project folder: its last two parts |
| TOOL | Claude (Claude Code), Codex or Cowork |
| TICKET | The ticket in the name of the session's git branch, for example ABC-322 for the branch user/abc-322-login. When another row has the same ticket, also in and that row's folder follow, in yellow. Cowork's log names no branch. |
| STATE | Working, waits for you, or idle, with the minutes |
| CONTEXT | The tokens in the context. For Codex also the share of the model's context window. |
| CACHE | Claude Code: warm with the minutes left, or gone. Codex and Cowork: not known. |
| TODAY | The session's tokens today: input, cache writes, cache reads and output |
| AGENTS | Claude Code: the subagents that run now. A subagent runs from the tool call that starts it until its result comes back, as the end of the session's log shows. |
| TASK | Claude Code: the task in progress, from the session's task list |
The line "Next". It names one step, from the first rule that holds:
- A session waits for you, and its cache ends within 30 minutes:
work/web waits for you, and its cache ends at 12:20. Answer before then, or /compact first. - A session waits for you with 150,000 tokens of context or more:
work/big waits with 400k of context: a good moment to /compact. - Otherwise there is no line "Next".
The line "Waste today" counts today's cold starts: calls that wrote 100,000 tokens or more to the cache again because the cache had ended. A break that is longer than the cache lasts causes one. The share is of all tokens today.
- Colours are those of the status line: working is green, waits for you is yellow, idle is dim, and the cache and the limits have the colours of the status line. No colours with
NO_COLOR, or when the output is not a terminal. - For the agents and the task, and for the context of Codex and Cowork, the view reads the last 256 KB of a log at most. Of a Codex log it also reads the first line, which names the session.
- Nothing in the view makes a model call.
The names of tasks stay on your screen. The TASK column shows text of a session: the name of a task. It is shown in widal top in your terminal, and it is never written to a file. A computer linked to a Widal.Code board sends the tasks of its open sessions to the board while names are on (see "The Widal.Code board"). Set "hud": { "names": false } in ~/.widal/config.json to leave the column out. widal top --once --no-names leaves it out for one view: the plugin's skill runs the view that way, because what it runs goes to the model. The desktop extension never shows it.
Today's numbers. widal refresh-today works out today's numbers from the logs of all three agents, and writes them to ~/.widal/today.json: the tokens of each session, of each ticket and of each account, and the cold starts. The file holds only numbers, session ids, ticket names, folder names and the keys of accounts. The same run brings ~/.widal/accounts.json up to date (see "More than one account").
- The status line starts it in the background when the numbers are older than 5 minutes, and never waits for it. It does so only when it shows the line
plan, where today's tokens stand. Withwidal hud one, or without that line,widal topand the desktop extension work the numbers out when they need them. It prints nothing. widal topruns it once at its start when the numbers are missing or older than 5 minutes, and says "reading the logs" while it works.- It reads the logs through Widal.Code's cache, so a run after the first one is quick. On the Mac it was built on it took 1.5 seconds the first time and 0.1 seconds after that. On made-up logs of 126,000 calls today, it took 1.2 seconds the first time and 0.4 seconds after that.
- One run works at a time. A run that finds another one at work ends at once. A run that has held the lock for 10 minutes counts as dead, and the next run takes over.
Spend per ticket. widal tickets shows, per ticket, the tokens, the cost at list prices and the number of sessions of the last 7 days, most tokens first. widal tickets --days 30 looks further back. A call counts to the ticket in the name of the git branch that its log names. One line at the end counts the calls without a ticket.
Spend per ticket, last 7 days, list prices. A call counts to the ticket in the name of the git branch that its log names.
ticket tokens cost sessions
ABC-322 981k $5.32 2 sessions
ABC-7 110k $0.23 1 session
Without a ticket: 101k tokens, $0.21, 1 session.
A ticket is 2 to 6 letters, a dash and a number, standing alone in the branch name: user/abc-322-login gives ABC-322. Words such as fix or release are not ticket keys.
More than one account
A person can use more than one account: a work and a personal Claude account, two organisations, Codex on a ChatGPT plan. Widal.Code keeps them apart: the spend of each, and the plan's limits of each.
widal accounts shows one row per account that was used in the last 7 days, the newest first:
Accounts, last 7 days, the newest first. Tokens, dollars and sessions are of the 7 days. Dollars are at list prices: spend for an account that pays by the token, API value for one on a subscription (what the same use would cost by the token).
account tool kind and plan plan's limits tokens today dollars today tokens dollars dollars are sessions last seen
Acme Claude Code subscription, team_tier_1 week 41%; 5h 33% 4.1M $1.96 13M $61.20 API value 2 2026-11-14 10:20
claude:1a2b3c4d (signed in now)
api Claude Code usage 0 $0.00 2.1M $12.50 spend 1 2026-11-13 16:05
codex:plus Codex subscription, plus 410k $0.67 410k $0.67 API value 1 2026-11-14 08:20
Personal Claude Code subscription, claude_max week 12% (read 2 days ago) 0 $0.00 824k $4.40 API value 1 2026-11-12 09:20
claude:9f8e7d6c
Paid by the token: $12.50 (spend, at list prices)
On subscriptions: $66.27 of API value (what the same use would cost by the token)
Plans
Acme (claude:1a2b3c4d): team_tier_1
Limits now: week 41% used, 43% of the week gone; 5 hour limit 33% used, 60% of its time gone
API value in 7 days: $61.20. Price not set: widal accounts price claude:1a2b3c4d <dollars>
Personal (claude:9f8e7d6c): Claude Max, $100 a month (the plan's public price)
Limits now: week 12% used (read 2 days ago), 57% of the week gone
API value in 7 days: $4.40. The plan's price for 7 days: $23.33. That is 0.2 times the plan's price.
codex:plus: ChatGPT Plus, $20 a month (the plan's public price)
API value in 7 days: $0.67. The plan's price for 7 days: $4.67. That is 0.1 times the plan's price.
Give an account your own name with: widal accounts label <key> "<label>"
Set the price of an account's plan with: widal accounts price <key> <dollars a month>
- Each row has the account's name with its short key below it, the tool, how it pays and its plan, the plan's limits with the pace (in the words of the status line), the tokens and the dollars of today and of the period, what those dollars are (spend, API value, or list prices when Widal.Code does not know how the account pays), the sessions, and when it was last used. The account that is signed in now in Claude Code says so.
- Below the table: the dollars of the period apart by how they are paid, and the block "Plans" (see "How you pay decides what you see").
- With one account, the table has one row, and a line says that Widal.Code found one account.
widal accounts --days 30looks further back.widal accounts --jsongives the same as one JSON object. Each account in it hasdollars("API value","spend"or"list prices") andprice({ "monthly": 100, "source": "table" }, with"set"for a price you set, ornull).widal summaryhas a part "By account" when more than one account was used in the period.- In the Claude desktop app, ask "Which of my accounts used the most this week?" (see docs/desktop.md).
How Widal.Code tells the accounts apart.
- Claude Code: each session's log names its account, with the ids of the account and of its organisation. A call counts to that account, and an agent's calls count to the account of its session. W
Frequently asked questions
What is Widal.Code MCP Server?
Shows what your AI coding agents spend, and helps to spend less.
How do I install Widal.Code MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Widal.Code MCP Server runs locally from the MCP bundle https://github.com/Widal-Inc/widal-code/releases/download/v0.3.2/widal-code.mcpb with the command npx -y https://github.com/Widal-Inc/widal-code/releases/download/v0.3.2/widal-code.mcpb.
Is Widal.Code MCP Server free and open source?
Yes. Widal.Code MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Widal.Code MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Widal.Code MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is Widal.Code MCP Server's trust score calculated?
Widal.Code MCP Server scores 64 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.