Repository avatar
Other Tools
v0.7.0
active

aretuza

io.github.Widal-Inc/aretuza

What your coding agents spend, where the tokens go, and a board with all your agent sessions.

Documentation

The Aretuza.Code logo in pixel art: the letter A as a tower, with a ring around it and a lavender globe

Aretuza.Code

Aretuza.Code is a free tool for people who work with AI coding agents. It shows every Claude Code and Codex session on your computer on one page, with what each one needs from you, so that you can run many at once and still know which one waits for you. It also shows what your agents spend and how to spend less, checks what they may do and what they did for security risks, and teaches you to work with them through short lessons. It runs on your own computer.

Status: version 0.7.0, 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"). The command is aretuza, and the tool keeps its files in ~/.aretuza.

A short tour

All the pictures use made-up sessions. Nothing in them comes from a real computer.

The tower. aretuza ui opens the sessions board in your browser. It looks like the picture below, the Quiet pixel tower: your sessions stand on the floors of a tower in pixel art, each as a window with its mage inside, and the floor says what each one does: Needs you at the top, then Working, Waiting on its own work, Idle and Ended today. A mage that needs you holds up a lantern. Beside each window, a plaque shows the session's task, the first thing it needs from you or what it does now, and how long it has waited or worked. Only a session at work moves, a little: its mage writes and the sign of its step glows. Above the floors, the decision board shows the 3 most urgent things your sessions ask of you, such as a key to give or a choice to make, and Show all lists the rest. Decide or dismiss each one, and every answer goes in a decision log. Click a card to see what the session is doing, what you asked it and the files it changed. From there, Go to tab brings its terminal tab to the front, and you can write to it, close it, resume it when it has ended, or split one of your requests off into a new session. A card also says when its session may be stuck, running the same failing command again and again, and when another session changed the same file. When you come back after 30 minutes or more away, one line at the top says what changed: the sessions that came to need you, the ones that finished a turn or ended, and the new decisions. You can answer from the keyboard too: e decides, x dismisses, 1 to 4 pick the thing, c goes to Done, and ? lists every key.

The Quiet pixel tower, the board's default look: under a pixel spire with the logo, the decision board with the 3 most urgent things that sessions ask of you, a line saying two sessions changed the same file, then the floors Needs you, Working (where one session may be stuck), Waiting on its own work and Idle, each session a window with its mage and a plaque of two lines, and the details of one session at the side

The board has one other look with the same features, the Drawn tower: a tower drawn with one thin line, with each session as a card set in its wall like a window, and small line icons. To switch, open Settings, then Board, then Look, or use Look in the Settings menu of the top bar. The board keeps your choice for every browser; an install that never chose a look shows the Quiet pixel tower.

The same board in the Drawn tower: under a drawn roof, the same decision board, the line about the shared file, and the floors with each session as a card with a small icon

A session's question, in full. Click Read it all on the decision board, or choose a card and press o, to read everything a session asks of you, a few plain sentences on what it is doing for someone who has not looked at it, and its whole last message. The board types into a session's tab only after you confirm it in a small dialog of its own that shows the exact text, also for a message you wrote, and only while the agent is the program in front in that tab. A quick reply such as "Continue" only fills the message box.

All that one session needs from you: one thing to do and one to decide, a plain explanation of its work, and its last message

The Library. A page of short lessons on building software with AI coding agents, from the basics to running many sessions at once, built on Mihail Eric's Stanford course CS146S. Each lesson has a few questions. You answer in your own words, your own Claude Code grades the answer with Claude Haiku and says what is missing, and the lesson counts as learned when its questions pass. The Library also gives you one thing to practice in each running session, and courses and public pages to read. The basics need no account; the other lessons open with a free account on code.widal.com.

A lesson in the Library: an answer that passed with 2 of 3, with what it got, what is missing and a hint, next to the reading list

Summon an agent. Start a session with a fixed role, called a class, in a new terminal tab: a Scout that researches, an Enricher that writes a spec, a Builder, a Tester, a Judge that reviews on another model, a Warden that checks security, or a Scribe that updates the docs. Each class has its own rules for what it may change, and names a tier (strongest, everyday or fast) that always means the newest model the agent can use with how it signs in. You pick the agent it runs on, Claude Code, Codex or Antigravity CLI (Gemini), and the account when you saved several keys, and the card shows which agents are installed and signed in. You see the command and the rules before anything starts.

The card to check before an Enricher starts: the agent, the account it runs on (a saved key named work), the model tier Strongest, the folder, and what it may and may not do

Pull requests. The board reads, with your own gh sign-in, the open pull requests of the repositories your sessions work in and every one on GitHub that involves you, and gives each one job for you: review it, fix the failing checks, answer the review, rebase, merge, ask for a review, or close a stale one. They are on a page of their own, not on the tower: the Pull requests link in the top bar counts the ones that need you and opens the page, where you can tell the session that owns one, merge, ask for a review, run failed checks again, or summon a Judge or a Builder. Nothing merges on its own.

The pull requests page: made-up pull requests grouped by your job, Review it first, then Fix the failing checks, each with why, its facts, and its actions

Settings. One page in six tabs: Connections (the Team dashboard on code.widal.com, a Widal.Factory hub and your Linear key), Agents (keys for each agent's model provider, several per provider such as one per Claude subscription, what each tier of model means now, kept on the newest or pinned, and each default agent to summon), Notifications in this browser, Pull requests, Board (the look, the summaries and the motion) and Library.

The Settings page on its Agents tab: three Claude subscription keys named work, personal and team-2, and one OpenAI key named team, each shown by its name and last 4 characters, with the default marked

The menu bar app. On a Mac, the Aretuza.Code menu bar app shows how many decisions wait for you and lists the sessions that need you. It sends the notifications, also while the board is closed: they show as Aretuza.Code, and a click opens the board at that session. For now you build it yourself (see "The menu bar app on macOS").

Everything the board shows and does is in "The sessions board". It works on macOS with sessions in Terminal or iTerm2. The summaries and the Library's grades are written by your own Claude Code with Claude Haiku, at about a tenth of a cent each.

Install

Type these three commands in Claude Code:

/plugin marketplace add Widal-Inc/aretuza
/plugin install aretuza@aretuza
/aretuza:connect

The third one puts the command aretuza in ~/.local/bin (that folder has to be on your PATH) and sets Claude Code's status line. Then open the sessions board from a terminal:

aretuza ui

aretuza doctor shows what is installed, and aretuza help lists every command. "Install as a plugin" below says what each step does. To use a checkout of this repo instead, see "Install from this folder". For the Claude desktop app, see "Install in the Claude desktop app".

Old installs move by themselves. The tool was called Widal.Code until 3 Dec 2026, and Kestrel before that. An install under one of those names moves to Aretuza.Code on its own: update the tool, then type any widal command once, or start a Claude Code session with the plugin. The folder ~/.widal (or ~/.kestrel) becomes ~/.aretuza. Only a plugin installed as widal@widal has to be installed again, as aretuza@aretuza. See "Installs under an old name".

What it does

Aretuza.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, and counts Antigravity CLI (agy, with Gemini 4 Neon) through agy's status line (see "Antigravity CLI"). Nothing leaves the machine, unless you link it to your team's board or to your free account there (see "The team board"), or connect a hub or your Linear key on the sessions board's Settings page. The one exception: the Library of the sessions board reads a public list of courses from code.widal.com once a day, with nothing about you in the request. 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. In Codex it caps how much of each tool's output enters the context (see "Codex"). It checks the agents' settings, what they did and the code they changed for security risks (see "Security and compliance").

In the terminal

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.

The status line that Aretuza.Code adds to Claude Code

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

aretuza top: the open sessions of Claude Code and Codex

What the dollars paid for (aretuza 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.)

aretuza summary: the spend of the last 7 days

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

aretuza advise: the first two proposals

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

aretuza check: the open security findings

Install as a plugin

Of the three commands in "Install" above, the first two add the plugin from this repo. The third one, /aretuza:connect, sets the tool up. It does five things, and says each one:

  • It copies the tool to ~/.aretuza/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 ~/.aretuza/bin/aretuza to that copy. Claude Code's settings call the tool through this link.
  • It links the command to ~/.local/bin/aretuza, so that you can type aretuza. That folder has to be on your PATH. Another program at that path stays as it is (see "Another program with the same name" 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 ~/.aretuza/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").

Aretuza.Code needs Node 22 or newer. The setup says so when your Node is older.

What the plugin brings.

  • Ten commands. /aretuza:connect, /aretuza:report (the last 7 days, as aretuza summary shows it), /aretuza:findings (as aretuza findings shows it), /aretuza:session (the latest session, as aretuza session shows it), /aretuza:compactions, /aretuza:advise, /aretuza:doctor, /aretuza:hud followed by what you want to change in the status line, and /aretuza:open and /aretuza:settings, which open the Aretuza.Code pane. The first seven show the tool's output as it is. The commands are for you to type. Each one has disable-model-invocation: true, so Claude Code keeps its name and description out of what the model reads at the start of every session, and the plugin does not make your sessions more expensive. Claude Code's documentation says so in "Control who invokes a skill": with that key the description is not in the context, and you can still run the command.
  • A command typed with !. In Claude Code, !aretuza findings runs 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 !aretuza summary --days 30.
  • A pane. The Aretuza.Code pane beside the chat, with the sessions that run now, the spend, the settings as checkboxes and the open security findings. See "The Aretuza.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 aretuza 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. The skill is the one part of the plugin that the model sees in every session: its name and a description of about 250 characters. It stays visible because the model has to pick it when you ask in your own words.
  • Eight hooks. Three are hooks that you can also add with aretuza 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. One holds a new subagent while the computer is busy (see "Too many agents at once"). The eighth keeps the copy in ~/.aretuza/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 aretuza-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/aretuza.

In the Claude desktop app

  • The Code tab is Claude Code. It reads the same ~/.claude/settings.json and runs the same hooks. So what aretuza connect and aretuza apply set 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-level bin/ folder, so the command's files are in cli/.
  • 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:

HookWhen it runsWhat it doesThe same hook in the settings
compact-keepBefore a compactionGives Claude Code the text that a summary has to keep (see "Compaction")aretuza apply compact-keep
cold-startWhen you send a promptSays what the prompt cost, when the session's cache had ended (see "Before a cache ends")aretuza apply cold-start-warn
model-switchBefore a change of modelShows what the switch costs, and asks first from $0.50 (see "Before a cache ends")aretuza apply model-switch-cost
check-settingsWhen a session startsStarts the check of the settings in the background (see "Security and compliance"). On a computer linked to a team board, it also starts a sync with the board when the last one is 10 minutes old (see "The team board"). Once a day it starts the run of the default changes, and it shows once what the last run did (see "Default changes").aretuza connect
check-turnWhen an agent's turn endsStarts the checks of what the agent did and of the code it changed in the background. On a computer linked to a team board, it also starts a sync with the board, as above.aretuza connect
push-gateBefore a shell commandAsks you first before a push while a high risk is open in the repositoryaretuza connect
load-gateBefore a subagent or a workflow startsHolds 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. aretuza hooks shows, for each of the seven, whether it runs and from where: Claude Code's settings, the plugin, or off. aretuza hooks off cold-start turns the plugin's hook off, and aretuza hooks on cold-start turns it on again. The choice is kept in ~/.aretuza/config.json. The hooks are on until you turn them off.
  • Where Node is missing, they print nothing. Each hook's command looks for node first, 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 aretuza apply keep-warm.
  • The sync with the board is not a part of the security checks. check-settings and check-turn start it also while you turned them off with aretuza hooks off. Only a computer linked to a team syncs: stop it with aretuza board logout.
  • An eighth hook keeps the copy fresh. At the start of each session it compares the version of the copy in ~/.aretuza/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 made under one of the tool's old names to the new name, once (see "Installs under an old name"). It prints nothing, because what a hook prints at the start of a session goes to Claude.

The Aretuza.Code pane

Inside Claude Code, Aretuza.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:

  • /aretuza:open opens it on the tab Now.
  • /aretuza:settings opens it on the tab Settings.

Where no pane can show, the same commands print text instead. /aretuza:settings prints the settings, with the aretuza settings set commands that change them. /aretuza:open prints aretuza 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.

TabWhat it showsWhat each button does
1: NowThe sessions on this computer, as aretuza 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: SpendToday 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 aretuza accounts is there. The top 3 proposals of aretuza advise.Apply <name> asks once more: "Apply ? It changes Claude Code's settings, with a backup." Then y: Yes, apply runs aretuza apply <name>, and n: No does nothing. An applied change has Undo <name>, which runs aretuza undo <name>. r: Read again reads the tab again.
3: SettingsEvery setting of aretuza 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 aretuza 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 aretuza accounts label. u: Undo the last change runs aretuza settings undo.
4: SecurityAt the top: the frameworks that are on, the open findings by severity, and the sentence that Aretuza.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 aretuza 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 Aretuza.Code can make the fix. It asks once: "Apply ? It changes Claude Code's settings, with a backup." Then y runs aretuza 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 aretuza check --run and reads the findings again.
  • The Spend tab replays the logs, as aretuza advise does, so it can take a while the first time. It is read once each time the pane opens.
  • The pane runs Aretuza.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: "Aretuza.Code found:
  • A version of Aretuza.Code without aretuza check says on the Security tab that the checks are not part of it yet.
  • Cloud checks do not run from the pane. Run aretuza cloud-check in 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

aretuza settings shows every setting you may change, in one place: its key, its value and what it does.

GroupKeysValues
Status linehud.layoutlines (up to four lines) or one (one line)
hud.lines.session, hud.lines.plan, hud.lines.work, hud.lines.hinton or off. At least one line stays on.
hud.bars, hud.nameson or off
Hintshint.effort, hint.compact, hint.nudgeon or off: the hint about the effort level, the hint to compact, and the notification before a cache ends
Frameworkssecurity.frameworks.<id>on or off, for each framework in the next table
Checkssecurity.checks.settings, security.checks.actions, security.checks.code, security.checks.data, security.checks.cloud, security.checks.pushon or off
Antigravity CLIantigravity.output-cap, antigravity.read-capon or off: the cap on shell output and the cap on file reads in agy. aretuza output-cap and aretuza read-cap set their sizes (see "Antigravity CLI").

The security frameworks, in their groups, with the id of each:

GroupFrameworks
HealthcareHIPAA (hipaa), HITRUST CSF (hitrust), SOC 2 (soc2), ISO 27001 (iso27001)
Life sciences21 CFR Part 11 (part11), EU GMP Annex 11 (annex11), GDPR (gdpr)
FintechPCI DSS (pci), GLBA Safeguards Rule (glba), NYDFS 23 NYCRR 500 (nydfs), EU DORA (dora)
AI agentsOWASP 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. aretuza settings set security.set healthcare switches on HIPAA, SOC 2 and HITRUST CSF. life-sciences switches on 21 CFR Part 11, EU GMP Annex 11 and SOC 2. fintech switches 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 aretuza cloud-check (see "Cloud checks"). Aretuza.Code checks technical controls and flags risks. It does not make a company compliant or certify it.
CommandWhat it does
aretuza settingsIn 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.
aretuza settings --jsonThe same as data: each setting with its key, label, group, value, allowed values and default, the sets, and the accounts. The pane reads this.
aretuza settings set <key> <value>Changes one setting, for example aretuza settings set security.frameworks.hipaa on. A wrong key or value gives one sentence and exit code 1, and nothing changes.
aretuza settings undoPuts back what the last aretuza settings set changed. It goes back one step.
  • Where they are kept. Your settings are in ~/.aretuza/config.json, where aretuza hud, aretuza hint, aretuza nudge, aretuza output-cap and aretuza read-cap keep the same values. Those commands keep working. aretuza hint on and aretuza hint off set both hints at once. aretuza settings sets 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. aretuza 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 aretuza accounts is there, aretuza settings lists the accounts with their labels. Change a label with aretuza accounts label <key> "<label>", or in the pane.
  • Nothing here changes Claude Code's settings.

Security and compliance

Aretuza.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").

Aretuza.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.

CheckWhat it readsWhen it runsOn by default
SettingsClaude 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.tomlWhen a session starts, and with aretuza check --runYes
ActionsThe whole session's log, read a piece at a time: the names of tools, the paths of files, and the words of shell commandsWhen an agent's turn ends, and with aretuza check --runYes
CodeThe 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 aretuza check --runYes
DataThe user messages and tool results in the whole session's logWhen an agent's turn ends, and with aretuza check --run, only after aretuza settings set security.checks.data onNo
  • 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 aretuza settings set security.checks.<name> off: settings, actions, code, data.
  • aretuza connect adds 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. aretuza disconnect takes them out.

The rules.

RuleSeverityIt flagsFix
set.bypass-modehighpermissions.defaultMode is bypassPermissions or auto in the user or managed settings, or skipDangerousModePermissionPrompt is true, while bypass mode is not disabledaretuza apply no-bypass
set.allow-any-shellhighAn allow rule Bash or Bash(*)
set.no-secret-denymediumNo deny rule in the user or managed settings for reading .env files and private keysaretuza apply deny-secret-files
set.sandbox-offmediumsandbox.enabled is not true in the user or managed settings
set.all-project-mcpmediumenableAllProjectMcpServers is true
set.remote-mcplowAn MCP server with an address on another host
set.provider-not-hipaamedium, only with HIPAA onCLAUDE_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-keptlow, medium with HIPAA, PCI DSS, 21 CFR Part 11 or GDPR oncleanupPeriodDays missing (30 days) or above 7, or desktopSessionCleanupPeriodDays missing (kept without end) or above 7. Transcripts are plain text on disk.aretuza apply transcript-days
set.otel-promptsmediumOTEL_LOG_USER_PROMPTS or OTEL_LOG_TOOL_DETAILS turned on
codex.approval-never, codex.full-accesshighapproval_policy = "never", sandbox_mode = "danger-full-access", at the top of Codex's config.toml or in a profile
codex.network, codex.historymedium, lowsandbox_workspace_write.network_access = true, history.persistence = "save-all"
act.read-secret-filehighA read of .env, .env.* (not .env.example), *.pem, id_rsa* (not .pub), .aws/credentials, *.p12, .npmrc or .netrc
act.self-configmediumAn edit of .claude/settings*.json, .mcp.json, .codex/config.toml or a hooks file
act.send-outmediumcurl with -T, --upload-file, -d @, --data-binary @ or -F, scp, rsync to a host, nc
act.force-pushmediumgit push with --force or -f
act.destroyhighterraform 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-verifylowgit commit or git push with --no-verify
code.iacthe scanner'sInfrastructure code with a risky setting (see "Scanners" below)
code.secrethighA secret key in the code
code.tls-offhighverify=False, rejectUnauthorized: false, NODE_TLS_REJECT_UNAUTHORIZED set to 0, InsecureSkipVerify: true, or curl -k in a script
code.phi-logmedium, only with HIPAA or GDPR onA 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-numbermedium, only with PCI DSS onA 13 to 19 digit number that passes the check of card numbers, outside folders and files named as test fixtures
code.httplowAn http:// address to a host that is not this computer, in a config file
data.us-ssn, data.card-number, data.secrethighA 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.aretuza 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, Aretuza.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, Aretuza.Code's own rules check Terraform only: an S3 bucket with a public ACL or without encryption, a security group open to 0.0.0.0/0 on a port other than 80 and 443, publicly_accessible = true, and storage_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, Aretuza.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 ~/.aretuza/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: Aretuza.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: Aretuza.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:

Aretuza.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 aretuza 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 aretuza 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 PermissionRequest hook), 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 out git push, gh pr create and gh pr merge.

Where findings show.

WhereWhat
The status lineAt 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.
aretuza checkThe 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.
aretuza check --runRuns 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.
aretuza check --jsonThe same as data: at, frameworks, counts, findings and note. The pane and the desktop extension read it.
aretuza check --export findings.csvThe 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 Aretuza.Code can make. Each saves a copy of ~/.claude/settings.json first, and aretuza undo <name> takes it back (see "Every change the tool can make to Claude Code's settings").

CommandWhat it changes
aretuza apply no-bypassSets permissions.disableBypassPermissionsMode to "disable", and takes out skipDangerousModePermissionPrompt. Bypass mode can no longer start.
aretuza apply deny-secret-filesAdds deny rules for .env files, .pem files, id_rsa keys and .aws/credentials. Your other rules stay.
aretuza apply transcript-daysSets cleanupPeriodDays and desktopSessionCleanupPeriodDays to 7 days, or to --days. Claude Code then deletes older transcripts at the start of a session. Aretuza.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 (aretuza 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 in src/rules.mjs.

Cloud checks

aretuza cloud-check reads the security settings of one cloud account, project or repository, and saves what it finds, so that aretuza 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. Aretuza.Code never reads a credentials file and never keeps a key.

CommandWhat it readsWhat it needs
aretuza 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.
aretuza cloud-check vercel [--project <name>] [--team <id>]Deployment protection, Password Protection and Trusted IPs, environment variables that look like secrets, and the firewallThe Vercel CLI (vercel), signed in. For two of the checks: a token in VERCEL_TOKEN.
aretuza 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 organisationThe 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 Aretuza.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, Aretuza.Code runs prowler aws with 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 Aretuza.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 60 gives it longer.
    • Aretuza.Code reads the failed checks from Prowler's JSON-OCSF file, in a new temp folder. That report names your resources, so Aretuza.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.
  • Without Prowler. Aretuza.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 Aretuza.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 Aretuza.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, _SECRET or _TOKEN or holds PASSWORD. Only Vercel's REST API answers these. Aretuza.Code calls GET /v9/projects/<id> on api.vercel.com, and only when you set VERCEL_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. Aretuza.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. Aretuza.Code's own checks of Vercel and GitHub name controls that Aretuza.Code chose. Every id that is not checked against the framework's own text shows "(id to check)".

The team board

The team board is a web app for a team, at https://code.widal.com. Each person links their computer to it once. From then on Aretuza.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.

Anyone can also get a free account on the board, with no team and no payment. A computer linked to a free account sends no usage data. It keeps only your Library progress on the board (the lessons you mark as learned in aretuza ui), so it is the same on every computer you link, and it turns on the rest of the Library (see "The sessions board").

Link this computer from the sessions board. In aretuza ui, open the Library and click Connect to code.widal.com, or click it under Team dashboard on the Settings page (the Settings page calls the team board the Team dashboard). The board shows a code and opens code.widal.com in your browser. Sign in with GitHub (the first time, that makes your free account), check the code, pick "Just me" (chosen first) or a team, and approve. The Library and the Settings page then say who is connected, and have a Disconnect button. The sessions board's own server does every step and keeps the token, as the command below does: the page never sees it. The button links to https://code.widal.com, or to the address in ARETUZA_BOARD_ADDRESS (for a test board on this computer).

Link this computer from a terminal. Run this, with your board's address:

aretuza board login https://code.widal.com
  1. Aretuza.Code prints an address and a code, such as BCDF-GHJK, and opens the address in your browser (open on macOS, xdg-open on Linux).
  2. Sign in to the board with GitHub. Check that the board shows the same code and your computer's name, pick the team (or "Just me" for your free account), and click Approve. With no team, the computer is linked to your free account.
  3. Aretuza.Code saves the link and sends the first data right away: the last 30 days. It says what it sent. For a free account it says "Linked to your free account on code.widal.com (no team board)", sends no usage data, and sends your Library progress instead.

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).

CommandWhat it does
aretuza board login <address>Links this computer to the board, as above. Run it again to move the computer from your free account to a team.
aretuza board statusThe board, the team (or "Linked to your free account on code.widal.com (no team board)"), your user on the board, this computer, the last sync and what it sent, whether background sync is on, the Library progress on the board, and whether the board still knows this computer
aretuza board syncSends now. --days 30 sends that many days again.
aretuza board logoutUnlinks this computer. Aretuza.Code sends nothing more.

When Aretuza.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 (~/.aretuza/board.lock) keeps two syncs from running at once. Without the status line and the plugin, run aretuza board sync yourself.

What is sent. Once you link a computer, Aretuza.Code sends everything it records, with no further question:

  • The model calls: for each call its time, session, agent (Claude Code, Codex, Cowork or Antigravity CLI), model and effort level, the tokens of each kind, the cost at list prices, the folder, the GitHub repository (owner/name of the folder's git remote origin), 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 (aretuza 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 Aretuza.Code knows, else none), the settings as aretuza settings --json gives them, and the proposals as aretuza advise --json gives 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. Aretuza.Code never keeps that text, so it has none to send. The name of the program of a shell command, which Aretuza.Code keeps for aretuza 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 Aretuza.Code keeps. It is in ~/.aretuza/board.json, which only you can read (mode 600), and Aretuza.Code never prints it in full (aretuza 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. aretuza board status shows the last failure.

A free account. A computer linked with "Just me" (or by a person with no team) never sends usage data: no sync runs, in the background or with aretuza board sync. When the board answers a sync with "no team" (an older link), Aretuza.Code reads that as a free account, not as a removed computer: the link stays and it sends no usage data again. aretuza board status and aretuza doctor say "Linked to your free account on code.widal.com (no team board)".

The Library progress. On any linked computer, a free account or a team one, the sessions board's own server sends the ids of the lessons you mark as learned to your account (/api/library/progress), with the computer's token, and reads back the lessons you learned on your other computers. With them go the lessons' titles and tracks, as they ship with the tool, so your account page on code.widal.com can list your lessons by name; each title goes once. The page in your browser never talks to code.widal.com and never sees the token. The board only adds lessons: a computer that is behind takes nothing away, and a lesson your account keeps cannot be marked as not learned. Aretuza.Code writes only when the board lacks a lesson, at most once a minute, reads at most once in 5 minutes, and waits as long as the board asks when it is busy. It also keeps the lessons in ~/.aretuza/library/progress.json.

Stop it. aretuza board logout, or Disconnect in the Library or on the Settings page, tells the board, which stops taking the token at once, and deletes ~/.aretuza/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. Aretuza.Code then stops its background syncs at the next try, and aretuza board status says that the board removed the computer. To link again, run aretuza board login again.

Install from this folder

node cli/aretuza.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 ~/.aretuza/bin/aretuza to the command in this folder. Claude Code's settings call the tool through this link.
  • It links the command to ~/.local/bin/aretuza, so that you can type aretuza. 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 ~/.aretuza/backup/ first. Another tool's status line is kept, unless you run aretuza 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 with the same name. Another program named aretuza can be on your computer, and its folder can be on your PATH. Widal.Factory, another tool of Widal, has a command named widal, an old name of this tool:

  • The tool never replaces or removes another program at ~/.local/bin/aretuza, and says so. It leaves another program under one of the tool's old names in ~/.local/bin alone in the same way.
  • When another program named aretuza comes first on your PATH, aretuza connect and aretuza doctor say where it is. Then type ~/.aretuza/bin/aretuza instead of aretuza, for example ~/.aretuza/bin/aretuza summary. Or put ~/.local/bin before 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: ~/.aretuza/bin/aretuza, its link under an old name, its own link on the PATH, or its own command file. An entry that calls the bare word aretuza or widal, or a program with one of those names in another folder, belongs to the other program and stays as it is.
  • For the same reason, aretuza does not take the four commands that had other names before 17 Nov 2026: install is aretuza connect, uninstall is aretuza disconnect, status is aretuza doctor, and mcp is aretuza desktop-mcp. Typed with the old name, aretuza install says the new one.

Cowork needs no setup: its logs are read as they are. So are Codex's. When Codex is on the computer, aretuza connect also sets the cap on tool output in Codex: see "Codex".

When Antigravity CLI is on the computer (its folder ~/.gemini/antigravity-cli is there), aretuza connect also sets it up: see "Antigravity CLI".

aretuza doctor shows what is installed. aretuza disconnect takes the tool out of Claude Code again.

The tool keeps its files in ~/.aretuza. Set ARETUZA_HOME to use another folder.

Antigravity CLI

Antigravity CLI (agy) is Google's coding agent. It replaced Gemini CLI on 18 Jun 2026, and the Google AI Pro and Ultra plans work only there now.

All numbers of Antigravity CLI are estimates for now. They follow Google's documentation, but nobody has checked them against a real session with a signed-in account yet. Aretuza.Code counts its sessions with every model, and knows the price of Gemini 4 Neon: $3 per million input tokens, $15 per million output tokens and $0.15 per million tokens read from its cache, at every effort level (gemini-4-neon-low, -medium, -high and -xhigh), from Google's Gemini API pricing page on 29 Nov 2026. A model with no price shows its tokens and no cost. Gemini CLI's old logs are not read.

Set it up. Start agy once, then run aretuza connect. It does four things in agy, and keeps what you had:

  • It sets agy's status line command in ~/.gemini/antigravity-cli/settings.json to Aretuza.Code. agy's own status line stays. When you had your own command, Aretuza.Code runs it after its own work, for at most 3 seconds, and shows what it prints. Your padding stays, and a command you had turned off ("enabled": false) stays off. A copy of your status line setting is kept next to it, in settings.widal-backup.json.
  • It adds the gate before a push to ~/.gemini/config/hooks.json, as the hook widal-push-gate. Your other hooks stay.
  • It adds the cap on shell output to the same file, as the hook widal-output-cap.
  • It adds the cap on file reads to the same file, as the hook widal-read-cap.

aretuza disconnect takes all four out again and puts your own status line command back (from Aretuza.Code's settings, else from the copy). When neither is left, it takes out Aretuza.Code's own command and puts nothing back. A file that is not plain JSON (for example with comments) is left as it is, and aretuza connect says so.

Where the numbers come from. agy keeps a transcript of each conversation in ~/.gemini/antigravity-cli/brain/<conversation id>/.system_generated/logs/transcript.jsonl, but Google does not document its fields, and it shows no tokens. The status line is the one place on the computer where Google documents a session's tokens: on every change of the session, agy gives the status line command the tokens of the conversation so far, the model and its effort level, and the plan of the account. Aretuza.Code writes one line to ~/.aretuza/antigravity/<conversation id>.jsonl each time those tokens grow. Each such line is one model call in the reports, with the tokens that the totals grew by. Google does not say whether its input total counts cache reads: Aretuza.Code learns that for each conversation from a call whose latest answer explains the growth exactly. When agy answered more than once between two looks, the growth is split by the cache share of the latest answer, and the call is marked estimated: aretuza calls puts a ~ before its cost, and aretuza summary and aretuza session say how many calls are. Two runs of the status line can finish out of order: a line with lower totals than the one before is left out, and only totals that fall to near nothing count as a new start. agy gives no split of thinking from output.

How you pay. A session on a Google account counts to the account antigravity:<plan>, such as antigravity:pro, as a subscription: the dollars are API value, the same as for a Claude plan. A session on a Gemini API key or a Google Cloud project counts to antigravity:api, which pays by the token. The signs, from Google's documentation: "modelProvider": "gemini" in agy's settings (agy then takes the key from GEMINI_API_KEY only, never from a file), AGY_ADC_AUTH=true, or an auth.type of gemini-api-key or agent-platform. These win over a plan tier. Without any sign the account is antigravity:unknown.

The gate before a push. While a high risk of the code or the actions is open in the repository, a git push, gh pr create or gh pr merge that agy runs makes agy ask you first, also when your rules allow the command (the decision force_ask). It never refuses. Without the hook (for example when ~/.gemini/config/hooks.json is not plain JSON), agy does not ask, and the push goes ahead. A git pre-push check that stops a push for any agent is planned, not built yet.

The cap on shell output. Without it, agy gives its model the whole output of a shell command, and that output stays in the context for every later call of the session. With the hook widal-output-cap, agy runs each shell command through Aretuza.Code's own runner. The runner runs the same command, in the same folder, with your shell ($SHELL), or with bash when $SHELL is not set, as agy itself does then. The model gets the output as it comes, up to 10,000 characters of stdout and stderr together. When a command prints more:

  • Aretuza.Code writes the whole output to a file in ~/.aretuza/antigravity/output/, readable by you only (mode 600). Files older than 7 days are deleted.
  • At the end, the model gets one line that says where the output was cut and names the file, and then the last 2,000 characters. The end of a test run or a build is where the errors are. The model can read more of the file with grep, head or tail.
  • The command's exit code stays the same. Ctrl+C and a stop at a time limit reach the command.

How to change it:

  • aretuza output-cap shows the setting. It is on, at 10,000 characters, after aretuza connect.
  • aretuza output-cap on --chars 20000 sets another size, from 4,000 to 128,000 characters.
  • aretuza output-cap off turns it off, and so does aretuza settings set antigravity.output-cap off. The setting is in ~/.aretuza/config.json. A change counts from agy's next command. While the cap is off, the hook stays in agy's hooks and changes nothing.

What to know:

  • agy shows a short notice that a hook changed the command.
  • agy does not document whether a later hook sees the command as written or as changed. Aretuza.Code's gate before a push looks at both. A hook of your own that reads the command may see the changed one.
  • Some commands are left as they are: a command that keeps running in a terminal, a command sent to a terminal that is already open, and an empty command. On Windows the hook changes nothing.
  • The command writes into a pipe. A program that looks for a terminal can leave out colours and progress bars.
  • It is not proven by a benchmark yet. No stage of the benchmark has measured what the cap saves in agy, or whether agy solves as many tasks with it. A stage that measures it against the Gemini baseline is planned (HER-555). Until then, it is not one of the default changes that a stage proved (see "Default changes").
  • It was tested with made-up hook input only. No real agy session has run with it yet.

The cap on file reads. With the hook widal-read-cap, a read of a file (agy's tool read_file, which agy's hooks may name by its step, view_file, so the hook takes both names) that asks for more than 200 lines, or for the whole file, brings the model the first 200 lines from where the read starts. agy's guide to hooks says that agy then shows the model a notice that the range was changed, so it can ask for the next lines. That notice has not been seen in a real session yet. A read of 200 lines or fewer, a file that ends within the cap, and an image or another binary file are left as they are. aretuza read-cap on --lines 500 sets another size, from 100 to 2,000 lines, and aretuza read-cap off or aretuza settings set antigravity.read-cap off turns it off. Like the cap on shell output, it is on after aretuza connect, and it is not proven yet: no stage of the benchmark has measured it (the stage planned in HER-555 measures both caps against the Gemini baseline), and no real agy session has run with it.

What is kept. Of the status line JSON, only numbers and ids: the time, the conversation id, the model, the effort level, the plan, whether it runs on an API key, the token counts, agy's cost estimate, the folder and its git branch. The title of the conversation, the email of the account and everything else are never written. Each act of a cap is noted in ~/.aretuza/antigravity/caps.log: the time, the conversation id and what the cap did (a command rewritten, run or cut, or a read shortened), nothing of the command or the file. The cap on shell output is the one exception: the whole output of a command that went over the cap stays in its file on this computer for 7 days, so that the model can read the rest. It is never sent to a team board, and no report reads it.

What is not built yet.

  • A run of agy -p (headless) shows no status line, so it is not counted.
  • aretuza top does not show agy's open sessions, and the security checks of actions and data do not read agy's transcripts.
  • The numbers were checked against Google's documentation and its example, not against a session with an account: no session of agy with a Google account or an API key has run for the tests.

Codex

Aretuza.Code reads Codex's session logs as they are. They need no setup. It makes one change in Codex that is meant to save money: the cap on tool output.

The cap on tool output. When Codex is on the computer (its folder ~/.codex, or the folder that CODEX_HOME names, is there), aretuza connect sets tool_output_token_limit = 1000 at the top of Codex's config.toml. That setting says how many tokens of each tool's output Codex keeps in the context. Codex counts 4 characters as one token here, and keeps a fifth more for the lines it adds around an output, so it keeps at most about 1,200 tokens, about 4,800 characters, of each output. Of a longer output it keeps the start and the end, cuts out the middle, and says how many tokens it cut. Every later call of a session carries what an output left in the context, so a shorter output costs less on each call after it.

Why 1,000 tokens. The setting replaces the model's own limit on tool output. It is not a maximum on top of that limit, so it saves only when it is below it, and a larger value lets Codex keep more than without the setting. The model's own limit comes from Codex's list of models: 10,000 tokens for every model in the list built into Codex 0.171.0. When Codex runs with an OpenAI API key, it downloads OpenAI's list instead, which can set another limit; the first block of the benchmark's Codex stages on 30 Nov 2026 raised the question whether that list gives GPT-6.2 Sol 2,500 tokens (see "Not proven yet" below). 1,000 tokens is below both. In the Codex sessions that the benchmark saved (24 and 30 Nov 2026), the median tool output had 600 to 1,500 characters, depending on the stage, and stays whole under the cap. Outputs longer than about 4,800 characters are cut, among them the one output in ten that had more than 6,000 to 9,000 characters. The size was 2,500 tokens until 30 Nov 2026.

How it differs from the cap in Claude Code:

  • It covers the output of every tool, not only of shell commands. Codex reads files with shell commands too (such as sed -n or cat), so a long file is cut in the same way. The model then runs a command again for the part it needs, and each such run is one more tool call.
  • Codex keeps no file of the whole output. Claude Code saves a long output to a file.
  • A value in a Codex profile file (<name>.config.toml), in a trusted project's .codex/config.toml, or after -c on Codex's command line wins over the one in config.toml.

How it is set, and how to take it back:

  • Before the change, config.toml is copied to ~/.aretuza/backup/ as codex-config.<time>.toml. Only one line changes. Aretuza.Code adds it after the last setting at the top of the file, before the first table, with a comment that says where it came from. Your comments and the rest of the file stay as they were.
  • A value of your own stays. When config.toml already sets tool_output_token_limit, aretuza connect keeps it and says so. aretuza apply codex-output-cap sets 1,000 anyway and says what your value was, and aretuza undo codex-output-cap puts your value back.
  • aretuza apply codex-output-cap --tokens 4000 sets another size, from 1000 to 32000 tokens. aretuza connect keeps a size that you named this way.
  • A cap of 2,500 that an earlier version of Aretuza.Code set by default becomes 1,000 at the next aretuza connect, which says so. aretuza undo codex-output-cap and aretuza disconnect still put back what you had before the first change.
  • aretuza undo codex-output-cap takes it back. After that, aretuza connect leaves the cap off until you run aretuza apply codex-output-cap again. A value that you changed by hand after the change stays, and undo says so.
  • aretuza disconnect takes it back too.
  • aretuza measure codex-output-cap shows what the Codex calls cost before and after the change.

Not proven yet. No benchmark stage has measured the cap in Codex, so it is not a default change (see "Default changes"), and its saving is not known. Seven stages that measure it are registered in bench/PREREGISTRATION.md (change 16 and its corrections of 30 Nov 2026): GPT-6.2 Sol at the effort levels low, medium, high and xhigh, and GPT-6.2 Astra at low, medium and high, with $2,000 of OpenAI spend approved over all of them. They first ran with the cap of 2,500 tokens, and the first of them stopped after its first block on a check that read 2 outputs of the baseline as cut at 2,500 tokens. No result of those first blocks counts. The stages are registered again with the cap of 1,000 tokens as codex-cap1000-<model>-<level> (correction of 30 Nov 2026, "a cap of 1,000 tokens"), and have not run yet. A shorter output can also make the model run more commands, which costs money too. Nobody has watched it in a live Codex session either. It rests on Codex's documentation and source code:

  • The setting is tool_output_token_limit in Codex's configuration reference ("Token budget for storing individual tool/function outputs in history"). In the source of Codex 0.171.0 and 0.172.0, with_config_overrides in codex-rs/models-manager/src/model_info.rs makes it the model's limit on tool output, in place of the limit in Codex's list of models.
  • The 10,000 tokens without the setting come from the list of models built into Codex 0.171.0 (codex-rs/models-manager/models.json). With an OpenAI API key, Codex 0.171.0 downloads OpenAI's list instead (the feature api_key_model_discovery, on by default, in codex-rs/models-manager/src/manager.rs) and keeps it in models_cache.json in Codex's folder. That list can set other limits.
  • The fifth more is with_serialization_allowance in codex-rs/utils/output-truncation/src/lib.rs. The cut of the middle, and 4 characters per token, are in codex-rs/utils/string/src/truncate.rs.

Why a setting and not a hook. Codex's hook before a tool call can rewrite a shell command, so a hook could run each command through a program that cuts its output and saves the whole of it to a file, as Aretuza.Code does in Antigravity CLI. But Codex checks its approval rules and its sandbox against the command after the rewrite. A rule for git push would then no longer see git push, a command that Codex runs without a question would ask you first, and in Codex's default sandbox the command could not write its file to ~/.aretuza. Codex also runs a new hook only after you review it with /hooks. So Aretuza.Code uses the setting, and Codex cuts each output itself.

Installs under an old name

The tool was called Widal.Code until 3 Dec 2026, and Kestrel before that. An install under one of those names moves to the new name by itself: update the tool, then type any widal command once, or start a Claude Code session with the plugin. aretuza migrate does the same by hand (from a checkout: node cli/aretuza.mjs migrate). The folder ~/.widal (or ~/.kestrel) becomes ~/.aretuza, and the old folder stays as a link to it, so open sessions keep working. Claude Code's settings then call ~/.aretuza/bin/aretuza. For one release, the command widal and the settings named WIDAL_... keep working, and widal prints a note to type aretuza.

A plugin installed as widal@widal does not move by itself: remove it with /plugin uninstall widal@widal and /plugin marketplace remove widal, then install aretuza@aretuza (see "Install as a plugin"). A desktop extension under the old name keeps working. To move, remove it under Settings, Extensions and install aretuza-code.mcpb.

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:

  1. You set it by hand, with aretuza plan subscription or aretuza plan usage. In the commands, paying by the token is called "usage".
  2. Claude Code gives the session the plan's limits. It does that for subscribers only. So this is a subscription.
  3. 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.
  4. ANTHROPIC_API_KEY is 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.
  5. The plan's limits were seen on this machine in the last 24 hours. So this is a subscription.
  6. None of these holds. The tool then shows dollars and says that it is not sure. The status line marks them with (list prices).

aretuza 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. aretuza plan auto takes back what you set by hand.

The reports always show dollars, and say what they are. aretuza summary, aretuza 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 Aretuza.Code cannot tell shows its dollars "at list prices". aretuza plan subscription or aretuza plan usage tells 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). aretuza summary, aretuza findings, aretuza accounts, aretuza session, the pane and the desktop extension all use these words. A limit that you set with aretuza limit is in dollars at list prices.

The price of a plan. For each subscription in the period, aretuza summary and aretuza 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.
  • Aretuza.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. Aretuza.Code tells them apart by the rate limit tier in .claude.json: a tier that ends in max_5x is Max, and one that ends in max_20x is Ultra (the pricing page links Ultra to max_20x). Aretuza.Code keeps only 5x or 20x of it. Without a tier the plan shows as "Claude Max or Ultra", with no price: set it with aretuza accounts price.
  • aretuza accounts price claude:1a2b3c4d 100 sets 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 Aretuza.Code knows. aretuza accounts price claude:1a2b3c4d --clear takes it away. It is kept with the account in ~/.aretuza/accounts.json.
  • A plan without a price says so, with the command that sets one: Price not set: aretuza 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 aretuza hud one (see "One line" below).

The four lines. With the sample that aretuza 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
LineWhat it showsWhere the numbers come from
sessionFirst, 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 ~/.aretuza/findings.json (see "Security and compliance").
planWhen 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 ~/.aretuza/today.json, which the command aretuza 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.
workThe 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 ~/.aretuza/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.
hintThe 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. Aretuza.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. aretuza hud names off shows counts only: tasks 3/5, 2 agents running. A computer linked to a team 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 team 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. aretuza 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 ~/.aretuza/config.json. They change nothing in Claude Code's settings.

CommandWhat it does
aretuza hudThe settings, a preview, what each line shows, and the commands
aretuza hud lines session,plan,work,hintThe lines to show, in this order. Any of the four.
aretuza hud linesAll four lines again
aretuza hud oneOne line, as described below
aretuza hud bars on or aretuza hud bars offBars for the context and the limits, or numbers only
aretuza hud names on or aretuza hud names offThe names of tasks and agents, or counts only
aretuza hud undoPuts 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 /aretuza:hud does the same with your own words, for example /aretuza:hud hide the names, /aretuza:hud only two lines or /aretuza:hud go back. Claude runs aretuza hud, picks the one command that does what you asked, runs it and shows the preview. /aretuza:hud undo takes the change back.

One line. After aretuza 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:

PartWhat it means
5 hour limit 42% used, 60% of its time goneOn 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 earlyAdded 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 yetOn a subscription, before Claude Code has given a reading.
$12.40 session, $3.10 per hourBy 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 leftHow 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 527kThe 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.11By 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 changedShown 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 usedOnly 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 highThe effort level of the session.
2 high risksOpen 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.40By 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 farOn 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 cacheThe hint about the effort level, at the end of the line (see "Model and effort").
context 420k: a good moment to /compactThe 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_COLOR is set in the environment, or with "color": false in ~/.aretuza/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 aretuza connect --refresh 30 Claude Code runs the status line every 30 seconds too. A plain install sets the same 30 seconds. aretuza 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, ~/.aretuza/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. Once the 5 hour limit is used up and a session goes on with extra usage, Claude Code sends only the week. A session that has just made a call and gets the week without the 5 hour window drops the saved 5 hour reading, so no line shows an old "5h 100%" as current. The 5 hour part comes back with the next reading that has it.

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

aretuza 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 aretuza top --once, it prints the view once.

Aretuza.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 Aretuza.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.

ColumnWhat it shows
SESSIONThe project folder: its last two parts
TOOLClaude (Claude Code), Codex or Cowork
TICKETThe 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.
STATEWorking, waits for you, or idle, with the minutes
CONTEXTThe tokens in the context. For Codex also the share of the model's context window.
CACHEClaude Code: warm with the minutes left, or gone. Codex and Cowork: not known.
TODAYThe session's tokens today: input, cache writes, cache reads and output
AGENTSClaude 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.
TASKClaude Code: the task in progress, from the session's task list

The line "Next". It names one step, from the first rule that holds:

  1. 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.
  2. 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.
  3. 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 aretuza top in your terminal, and it is never written to a file. A computer linked to a team board sends the tasks of its open sessions to the board while names are on (see "The team board"). Set "hud": { "names": false } in ~/.aretuza/config.json to leave the column out. aretuza 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. aretuza refresh-today works out today's numbers from the logs of all three agents, and writes them to ~/.aretuza/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 ~/.aretuza/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. With aretuza hud one, or without that line, aretuza top and the desktop extension work the numbers out when they need them. It prints nothing.
  • aretuza top runs 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 Aretuza.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. aretuza tickets shows, per ticket, the tokens, the cost at list prices and the number of sessions of the last 7 days, most tokens first. aretuza 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.

Start an agent

Aretuza.Code starts new sessions of three coding agents, each in a new Terminal or iTerm2 tab with your task as its first prompt: from the terminal with aretuza start, and from the sessions board with Summon, Split off and Resume. Each agent runs as you installed it, with its own sign-in, unless you saved a key for it (see "Keys" below).

AgentModelsHow it signs inClasses it runs (Summon)
Claude Code (--agent claude, the default)A tier (strongest, everyday, fast), or Claude Haiku, Sonnet, Opus and Fable: haiku, sonnet, opus, fable, or a full name such as claude-sonnet-5-5. Effort low to max, none for Haiku. Without --model, Claude Code's own defaultIts own sign-in, as you set it up: a Claude subscription, an Anthropic API key, Amazon Bedrock, Google Vertex AI or Microsoft Foundry. The board never picks a cloud for you. Or a key you save: a subscription's setup-token made with claude setup-token, or an Anthropic API keyAll seven
Codex (--agent codex)A tier, or an OpenAI model such as gpt-6-astra or gpt-5.6-luna. With a ChatGPT sign-in Codex refuses GPT-6.2 (gpt-6.2-sol, gpt-6.2-astra): it needs an OpenAI key. Effort low to max. Without --model, Codex's own defaultChatGPT or an OpenAI API key, with codex login. Or an OpenAI key you saveAll seven. The Scout, Judge and Warden run in Codex's read-only sandbox, the others in its workspace-write sandbox
Antigravity CLI (--agent gemini, the program agy)A tier, or a Gemini model that agy models lists for your account, such as gemini-4-hydrogen (hydrogen for short). --effort picks the level, medium when you pick none, and agy gets it in the model's name (gemini-4-hydrogen-high). Without --model, the everyday tierYour Google account, a Google Cloud project, or a Gemini API key in GEMINI_API_KEY with agy's setting "modelProvider": "gemini". Or a Gemini key you saveOnly the four that change files: Enricher, Builder, Tester and Scribe. agy has no read-only mode the board can set, so the Scout, Judge and Warden do not run on it
aretuza start "Find why the login page is slow" --agent codex --model strongest --effort high
aretuza start "Write the tests for the parser" --agent gemini --model hydrogen
aretuza start "Fix the flaky test" --model sonnet --effort medium --dir ~/code/shop
aretuza start "Review the auth change" --account work

Always the newest models. The classes, and --model when you give a tier, name a tier instead of a fixed model: strongest, everyday or fast. When a session starts, the tier becomes the newest model that the agent can use with how it signs in:

  • Claude Code takes opus, sonnet and haiku, its own names that always mean its newest model of that family.
  • Codex with its own sign-in (ChatGPT): its own list of models, ~/.codex/models_cache.json, which Codex fetches for that sign-in. The models it shows count, the newest generation first by the version in the name (GPT-6 before GPT-5.6), then Codex's own order. On 3 Dec 2026 that made the strongest and everyday tiers GPT-6 Astra and the fast tier GPT-5.6 Luna.
  • Codex with a saved OpenAI key: OpenAI's model list for that key (GET https://api.openai.com/v1/models, which reads only), asked once a day. With a key the strongest tier is GPT-6.2 Sol.
  • Antigravity CLI: what agy models lists for your account, asked once a day.

When a list cannot be read, a built-in list of the models, updated with each release, takes its place. A model your sign-in refuses is never offered: with a ChatGPT sign-in, the pickers show GPT-6.2 as "needs an OpenAI key", and --model gpt-6.2-sol is refused with that sentence before anything starts. A fixed model still works wherever a tier does, on the command line, in Summon and in a class file of your own.

aretuza models tiers prints, for each agent and tier, the model it means now and where that came from. aretuza models tiers pinned pins them: each tier then keeps the model it meant at its first start after the pin, until aretuza models tiers newest (the default) lets them follow new models again. Settings, Default agents on the sessions board does the same, and says in one quiet line when a newer model came since the last start. The setting is kept in ~/.aretuza/models.json, the lists read from OpenAI and agy in ~/.aretuza/model-lists.json (model names only, never a key).

Before it starts an agent, the tool checks that its program is on this computer (on your PATH, or in ~/.local/bin, ~/.claude/local, /opt/homebrew/bin or /usr/local/bin) and that it is signed in, and refuses with a plain message when it is not, such as "Codex is not signed in. Run codex login in a terminal, or save an OpenAI key with: aretuza keys add openai." It asks only claude auth status, codex login status and agy models, which change nothing. Antigravity CLI keeps its Google sign-in in its own keyring, which the board cannot see: the card says so, and agy asks you in the new tab when it is not signed in. A key you saved counts as a sign-in.

What each agent gets: Claude Code --session-id (an id the board gives it, so that it knows the session's account), --model and --effort; Codex -C <folder>, -m <model> and -c model_reasoning_effort="<level>"; Antigravity CLI --model <model with its level> and the task with --prompt-interactive. The task goes through a file only you can read, which is deleted before the agent starts, as for every start of the board.

Keys. You can save keys for each model provider, so that the sessions you start with that agent use one of them instead of the agent's own sign-in. A provider can have several keys, each with a name of its own, such as three Claude subscriptions named work, home and team. One key of each provider is its default:

aretuza keys                               the keys saved: provider, name, kind, when, last 4 characters, the default
aretuza keys add claude --name work        a Claude subscription's setup-token (from: claude setup-token) or an Anthropic API key
aretuza keys add openai --name team        an OpenAI API key, for Codex
aretuza keys add gemini                    a Gemini API key, for Antigravity CLI (named Default when you give no name)
aretuza keys default claude home           the key sessions use when you pick none
aretuza keys remove claude work            delete it; with no key left, Claude Code signs in its own way again

For a Claude subscription, run claude setup-token in a terminal and sign in with that subscription's account. It prints a token that starts with sk-ant-oat: paste it into aretuza keys add claude --name <name>, once per subscription. aretuza keys add asks for the key without showing what you type, or reads it from standard input (pbpaste | aretuza keys add openai --name team). A key saved under a name that is there already takes its place. The first key of a provider becomes its default; when the default is removed, the oldest key left takes its place. It checks the key's form only, not with the provider. On macOS each key goes to your login keychain (service aretuza-keys, account <provider>:<name>); elsewhere, to a file of its own in ~/.aretuza/keys/, readable by you only. A key saved before keys had names is the key named Default, and stays where it was kept (account <provider>). ~/.aretuza/keys.json holds only what may be shown: each key's name, kind, last 4 characters and when you saved it, and which one is the default. The key is never printed and never written to any other file. Aretuza.Code sends a key to one place only: an OpenAI key to OpenAI, to ask which models it may use. Settings, Keys on the sessions board does the same as aretuza keys: the key goes from the page to the board on this Mac once and never comes back.

The account a session runs on. A session runs on the provider's default key unless you pick another: aretuza start --account <name>, the Account choice in Summon (shown when the agent's provider has a saved key, with the agent's own sign-in as one more choice), or --account own for the agent's own sign-in. Split off and Resume keep the account the session ran on; when that key was removed since, Resume starts on the default and says so. The card of a session the board started shows the name of the key it runs on (only the name), and nothing for the agent's own sign-in. A class session keeps its account in its record (ui-classes.json), a plain start in ui-starts.json in the tool's folder: a Claude Code session by the id the board gave it, a Codex or Antigravity CLI session by its folder and the time its process started.

A session gets its key in its environment only, and no other session does: a setup-token as CLAUDE_CODE_OAUTH_TOKEN, an Anthropic API key as ANTHROPIC_API_KEY, an OpenAI key as OPENAI_API_KEY, a Gemini key as GEMINI_API_KEY. The command of the new tab reads the key from the keychain right in front of the agent's program, as OPENAI_API_KEY="$(security find-generic-password -s aretuza-keys -a openai:team -w)" codex ..., so the key is on no command line and in no shell history. Codex then gets a provider of its own that reads OPENAI_API_KEY (-c model_provider="aretuza_openai" with env_key = "OPENAI_API_KEY"), and Antigravity CLI gets --settings '{"modelProvider":"gemini"}' for that session only, the setting that makes it read GEMINI_API_KEY. Claude Code reads its variable by itself; with an Anthropic API key it may ask you once in the new tab whether to use it.

Not built yet: the next account at a limit. When one Claude subscription is at its limit, the board does not yet start new sessions on the next one by itself. You pick the account in Summon or with --account.

The sessions board

aretuza ui opens a page in your browser that shows every agent session on this computer, sorted by what needs you. It answers three questions without a look through every terminal: which session waits for you, what each one is doing, and where it runs.

aretuza ui

It prints the address, http://127.0.0.1:4777, and opens it. --port 5000 takes another port, and --no-open does not open the browser. Ctrl-C stops it. The page listens on this computer only.

What it shows. It reads the sessions again every 3 seconds.

PartWhat it shows
Since you lookedOne line at the very top of the tower, only after you were away from the board's page for 30 minutes or more (the tab was hidden or closed, or the computer slept): "Since you last looked, at 14:10: 2 came to need you (shop-api, reports), 1 finished a turn (auth-service), 1 ended, 5 new decisions." Each name shows that session. The line goes after your first answer, or with Hide. It never shows on a page that stayed in front. The page keeps a small look at the board for this in your browser's storage every minute while it is in front, and when it is hidden or closed: each session's state and the keys of its open things, never any text of a session.
DecisionsA notice board at the top of the tower, under its roof: every open thing your sessions ask you to do, give, confirm or decide, grouped by session, for example "Provide the Slack app token". The most urgent come first: questions, then finished turns, then sessions idle for hours, then sessions that wait for their own work or have ended. The board shows the 3 most urgent, in both looks, and Show all N (or d) opens every one in a sheet that scrolls. Each item has two buttons. Decide opens a small form under it: write what you decided, then press Log it, which only writes it down, or Log and tell the session, which also types Decision on "<the ask>": <what you decided> into the session's tab. Before that the board shows you the exact text and asks you to confirm in a small dialog of its own (never a window of the browser: Esc cancels, Enter confirms), and it types only into a tab where the agent is the program in front. When the ask offers clear choices, such as "A or B" or a yes or no question, buttons with those choices fill the box. Let it choose, the third button of that form, is for a choice you leave to the session: after the same confirm it logs "Left to you: go on with your best choice and write down what you chose." and types it into the tab as the decision. Log and tell the session and Let it choose show only where the board can type into the session's tab; elsewhere one line says why, and Log it still writes the answer down. Dismiss drops the item, with a short reason if you want to give one. A plain thing to do rather than a choice, such as "Give the signing key", has Done instead of Decide. Every answer takes the item off the board, goes in the decision log and counts for the Library's streak. The board keeps which items are answered in ui-actions.json in the tool's folder. Each session also has Read it all and Write a message (Resume when it has ended). Write a message opens the message form in the session's details, or in the sheet. Where the board cannot type into the session's tab, one line on the note says why. An item goes away on its own when the session's newest summary no longer names it. The items come from the summaries; without one, from a line of the session's last message such as "Waiting on you: ...". The top bar counts the open decisions.
Decision logThe Decision log button on the decision board, in the sheet of all decisions, or in a session's details. Every thing you decided, dismissed or marked done, newest first and grouped by day: the session, what it asked, your answer, and whether it was sent to the session. It shows the newest 200. The log is the file decisions.jsonl in the tool's folder, one line per answer, and it stays on this computer. A session's details show its last three answers.
Needs youSessions that finished a turn or ask a question in the last 3 hours, and sessions idle for longer that still have open decisions: questions first, then finished turns, then the idle ones, the longest wait first within each. Each card shows the session's task, the first thing it needs from you and how long it has waited, with one short flag when something is wrong (Not sent yet, May be stuck, a cache that ends within 10 minutes, or Shared files); the rest is in its details. The top bar counts these sessions, so its two numbers agree with the board and this floor. While two running sessions changed the same file in the last 2 hours, one line at the top of this floor names them, such as "Shared files: shop-api and billing-service both changed invoices.ts", and each of the two cards has the flag Shared files, whose tip names the other session and the file. Their details list every shared file, and also another session in the same folder or on the same branch, which shows there only.
WorkingSessions that work now, with the step or task they are on, which also shows as a small sign in the mage's window in the Quiet pixel tower (a prompt for a command, a pencil for an edit), or as the card's icon in the Drawn tower. A card here or under Waiting on its own work says "May be stuck" when its session ran the same command 4 times in 10 minutes without changing a file (or 6 times, 4 of them failing), or ran 15 commands over 25 minutes without changing a file, for example "May be stuck: the same command ran 7 times in 9 min, each one failed (Run the tests)". These are the numbers of the Library's practice cards. A card shows one such line at most, this one first.
Waiting on its own workSessions that finished their turn but wait for background work they started themselves (a command, a watch or a helper agent): they go on by themselves when it ends. Such a session shows under Needs you only when its last message asks you something. Background work older than 6 hours counts no more.
IdleSessions that have been idle for more than 3 hours and have no open decisions. They still run.
Ended todaySessions that ran today and whose program has ended.
RequestsIn the Requests tab of a session's details: what you asked it, grouped into threads, with the state of each: in progress, waiting for you, not started, dropped or done. The tab shows how many are not done. A long session holds many requests, and this shows which ones got lost on the way. Each thread can be split off into a session of its own (see below).
CI and deploysA floor at the foot of the tower, folded until you open it; its sign says how many runs fail. For each GitHub repository the sessions work in: the newest deploy to each environment (live, deploying or failed, with its commit), and the newest runs of GitHub Actions, failing ones first.
Search/ or the search field in the top bar. The tower shows only the sessions and decisions that match, and says above the tower how many match, with a button that clears the search.
Needs you, in fullRead it all on the decision board, or o on the chosen card. A dialog shows all it asks of you, each with Decide and Dismiss (or Done), the plain explanation from its summary, its whole last message as readable text, how long it has waited, and Go to tab, Write a message and Close session.
LibraryIts own page, http://127.0.0.1:4777/library: the Library button in the top bar, the Library line at the foot of the tower, or l goes there, and Tower goes back. Each part has an address: /library for the lessons, /library/practice, /library/courses, /library/reading, /library/notes, and /library/<lesson id> for one lesson, such as /library/context-window. The page has the same top bar as the tower: the counts of what waits for you, the limit, Tower, Library and Pull requests, Summon an agent (which opens the Summon dialog on the tower) and Settings. Browser notices keep coming while you read. 21 lessons in three tracks (basics, practice, advanced), each with what to try and where to see it on the board, and a bar per track for how far you are. They follow the topics and order of CS146S, The Modern Software Developer, Mihail Eric's course at Stanford University, with thanks to him. The text is our own short summary, with links to public pages. A lesson whose earlier lessons are not learned yet shows as locked and can still be read. Check what you learned: each lesson has 2 to 4 questions in our own words. Write an answer in your own words and press Check my answer: your own Claude Code grades it with Claude Haiku (claude -p, no tools) against the key points a good answer covers, gives a score from 0 to 3, what you got, what is missing, a hint and what to do next, and then shows the key points. The page never gets the key points before you answer. A score of 2 passes, and when every question of a lesson passes, the lesson counts as learned, with a short celebration (it keeps still with reduced motion or Motion off). Explain it back grades your own telling of the whole lesson against its key points the same way; it does not count for learned. Mark as learned by hand stays, and says that the questions are the real way. A grade costs about a tenth of a cent, and the page shows today's calls and their cost. Only the question, its key points and your answer go to Claude Code, and nowhere else. The board keeps the last result of each question (the score, what was right and missing, and the hint) in ~/.aretuza/library/answers.json, never your answer. Without the free account only the Basics lessons are graded. Ask the Library: the bar at the foot of the page takes a question in plain words, and Claude Haiku answers it from the lessons you can open and the titles of the reading list, with buttons to the lessons and pages it used. Grading, Ask the Library and Did I do it? share one limit: one call at a time, at most 30 an hour (ARETUZA_UI_LIBRARY_PER_HOUR sets another number, 0 turns them off). Practice on your work: cards that each name a session that runs now, a lesson it can practice and one thing to try in it. They come from the summaries, where Claude Haiku picks one of the 21 lessons and says what to try, and from rules over what the board already knows, with no extra model call: CI that fails on the session's branch or pull request, a context window over 150k tokens, a cache that runs out within 10 minutes on a session that waits for you, 3 or more open asks, two sessions in one folder or that changed the same file, a high cost today, and 15 or more commands over 25 minutes with no file changed. At most 12 cards, the most useful first, one per session and lesson; the cards of a session that ends go away. Go to tab brings the session's tab to the front. Did I do it? looks at what the session did since the card came and says yes or not yet: a check command such as npm test that passed after its last change, a compaction or a smaller context, the session answered or closed, a git worktree or no more shared folder or files, a session no longer stuck. These rules need no AI call; only a card that no rule fits goes to Claude Haiku, with the session's steps and your requests since the card came. Done hides a card for 7 days (kept in your browser) and counts as a decision answered. Courses and reading: first Mihail Eric's live courses on Maven, each with what it is, the next cohort, the price when it is public and a button to its page, and his free resources (the CS146S course site, its assignments, and an article); a line under the lessons names his next course too. The list comes from code.widal.com, which reads his public Maven pages every day: the board's server asks for it at most once a day when you open the Library, with no token and nothing about you, keeps it in ~/.aretuza/library/courses.json, and shows the list that ships with the tool until then or when code.widal.com cannot be reached (ARETUZA_UI_COURSES=0 keeps to that list and never asks). Then Reading: 40 public articles, docs and guides by others, by level (basics, practice, advanced), each with the lessons it fits; each lesson lists them under Read more. Then your notes: markdown files in ~/.aretuza/library/shelf listed in its index.json, and your notes on talks under a Talks heading, from ~/.aretuza/library/talks listed the same way. They are private to this Mac: the board shows them on this page only and never sends them anywhere. Field notes: the lessons the summaries draw from what your sessions did, newest first, at most 50. The Library never links a video. The basics track is free; practice and advanced need a free account on code.widal.com, and without one their lessons show only the title and a lock. With the account the Library shows your rank (Novice to Archmage, by lessons learned) and your streak at the top of every part, a streak of days with a lesson learned or a decision answered, and badges. Your rank also makes the mages in the Quiet pixel tower look stronger. To connect the account, click Connect to code.widal.com in the Library: the board shows a code and opens code.widal.com, where you sign in with GitHub (that makes the free account the first time), pick "Just me" or your team, and approve. Or run aretuza board login https://code.widal.com in a terminal. Once connected, the Library says who is connected, with Disconnect. Your lessons then follow you to every computer you link, and your account page on code.widal.com lists them by name (see "The team board"). A lesson learned, by its questions or by hand, is kept in your browser and in ~/.aretuza/library/progress.json.
DetailsClick a card, or press Enter on the chosen card or on one reached with Tab (j and k move between cards). At the top, What is going on: three or four plain sentences on what the session works on, how far it has got and whether it needs you, for a reader who has not looked at it, and Right now, what its last step does in plain words (such as "changing a file"). Below: its open decisions with the same buttons, its last three logged answers, its branch, the files it changed and its pull requests with their checks, then all its threads of requests with their state, its steps with their times (a command opens to show all of it), the files it changed, and the last messages both ways. A long text scrolls in its own box instead of being cut.
AskA question in plain words at the bottom, such as "what waits for me". Your own Claude Code answers it with Claude Haiku from a summary of the board (claude -p), at about a tenth of a cent to a cent a question.

The tower. The board has three views, each its own page: the tower, the Library at /library, and the pull requests at /prs. Tower, Library and Pull requests in the top bar go between them, and Pull requests carries how many need you. Next to them, Summon an agent opens the Summon dialog (see below). The Settings page has the same top bar. The top bar also shows the plan's 5-hour and weekly limits. A reading of a limit is kept until a session gives a new one, so once its reset time has passed, a reading from before it shows as reset: 5-hour limit 0%, reset at 04:40. The board has two looks with the same features, picked with Look in the Settings menu or under Board on the Settings page, and kept for every browser (in ui.json in the tool's folder). The Quiet pixel tower, the default, is a tower of pixel art in muted stone: each session is a window with its mage inside, and a plaque of two lines beside it: its task with one short flag at most, then the first thing it needs from you or what it does now, with the time. The Drawn tower is a tower drawn with one thin line, with a spire behind battlements and a door at the foot, and each session as a card of the same two lines set in its wall like a window, with a small line icon of its state or class. In both, the decision board is a compact list and the Library is one line with your rank. The details panel, the dialogs, the Library, the pull requests and Settings look the same in both looks, with pixel pictures in the Quiet pixel tower and line icons in the Drawn tower. An install that never chose a look shows the Quiet pixel tower, and a look you chose stays; a look chosen in an older version shows the one of these two that is closest to it. What moves, with Motion at its default, Working sessions and new needs: a session at work moves a little (in the Quiet pixel tower its mage writes and the sign of its step glows, in the Drawn tower a small dot on its card glows), and a card that just started to need you fades once. Motion in the Settings menu offers Only new needs, which keeps that fade alone, and Off, which stops all of it, and so does the system setting for reduced motion. Nothing moves while the page is hidden. The drawings and icons are made in code for this page; they come from no game and no icon library.

Summaries. Each session gets three lines: its goal, what it has done so far, and what it does now or needs from you, a plain explanation of the same for the details, the list of things it asks you for, which fills the decision board, a lesson for the Library's field notes when the session's work so far teaches one, and one thing to practice in the session, with the lesson it practices, for the Library's practice cards. Claude Haiku writes them from the session's log, through your own Claude Code (claude -p), so the session's text goes only where your sessions already go. A summary is written again when the session changes its state, or every five minutes while it works. One is written at a time, at most 60 an hour (set ARETUZA_UI_SUMMARIES_PER_HOUR for another number), at about a tenth of a cent each; the page shows what they cost today. Summaries in the Settings menu, or on the Settings page, turns them off and on (kept in ui.json in the tool's folder), and the summaries are kept in ui-summaries.json there. Without a summary yet, a session shows what it said last.

Requests. The board reads the whole log of each session for what you asked: the prompts you typed and the messages you sent while it worked, never the notices of the tool. The summary groups them into threads, at most 10 a session, from the newest 30 requests, and gives each thread its state and what is left. A thread is done only when the log shows it done. The state is judged from the newest part of the log, so in a long session a thread finished long ago can show as not started.

Sessions on Widal.Factory. When you have an account on a Widal.Factory hub, the board also shows the agent sessions you run there, in the same tower, in their own robe color. Make a personal token in the Aretuza.Code card of the hub's Set up page, then paste it with the hub's address under Hub on the board's Settings page, or run aretuza hub connect <the hub's address> and paste it when asked (it is not shown). Either way the board checks it with one read of your sessions and never shows it again. The board reads your sessions from the hub every 30 seconds while its page is open, and only yours: the hub answers for no one else. A Factory session shows its role, the work it took and its state (running, starting, asleep, or waiting for you to sign in to Claude), and Open on the hub opens its page there. On macOS the token is kept in your login keychain, elsewhere in hub.json in the tool's folder, readable by you only; it is sent to that hub and nowhere else. aretuza hub (or the Settings page) says whether this computer is connected and how many of your sessions run there, and aretuza hub disconnect (or Disconnect on the Settings page) forgets the token; revoke it on the hub to make it useless. It needs a hub updated on 2 Dec 2026 or later. Not a client yet? Talk to us on the Settings page opens www.widal.com/contact, where you can book a call.

Settings. Settings in the top bar is a menu for what you change often: Summaries, Browser notices, Look, Motion, and All settings, which opens the Settings page at /settings. The /prs page has a Settings link instead. The Settings page, under the same top bar as the tower, has six tabs, each with its own address: Connections (/settings#connections), Agents, Notifications, Pull requests, Board and Library. An address of one part, such as /settings#linear, opens the tab that holds it, the browser's Back goes to the tab before, and the arrow keys move between the tabs. The parts:

Tab, partWhat it does
Connections, Team dashboardUnder it, code.widal.com. Who this computer is connected as, and to which team, or Just me (a free account). Connect runs the same link as the Library's Connect button: the board shows a code and opens code.widal.com, where you approve. Disconnect asks first, in the page.
Connections, HubConnected: the hub's address, how many of your sessions run there, Open the hub and Disconnect. Not connected: a field for the hub's address and one for your personal token (whub_...), which goes to the board on this Mac only, is checked, kept as aretuza hub connect keeps it, and never shown again. Not a client yet? Talk to us.
Connections, LinearYour own personal API key of Linear, for Summon on the hub (below). The board checks it with one read of who the key belongs to and their teams, changes nothing in Linear, and keeps it in your login keychain on macOS (service aretuza-linear), elsewhere in linear.json in the tool's folder, readable by you only. It is never shown again. You pick the team the tickets go to. Check again reads the viewer again; Disconnect forgets the key on this computer (revoke it in Linear to make it useless).
Agents, KeysOne part per model provider (Claude, OpenAI, Gemini), with its agent and whether that agent is installed and signed in. Each saved key shows its name, its kind, its last 4 characters, when you saved it and whether it is the default, with Make default and Remove, which asks first in the page. Add saves one more key under a name; it goes to the board on this Mac once and is never shown again. The Claude part says how to get a subscription's token: run claude setup-token and sign in with that subscription's account. The same as aretuza keys (see "Start an agent").
Agents, Default agentsModels: Always the newest (the default) or Pinned, and what each tier means now for each agent and where that came from, such as "Codex: Strongest GPT-6 Astra, from Codex's own list for your ChatGPT sign-in; GPT-6.2 Sol and GPT-6.2 Astra need an OpenAI key". One quiet line when a newer model came since the last start. Then the seven classes of Summon with their picture (their icon in the Drawn tower), what each does, its tier on Claude Code and on the other agents that run it, and what it may change, each with a Summon button that opens the board with that class picked.
NotificationsHow to start the menu bar app, which sends the notifications (below), and that the kinds of notification are set in the app. Browser notices on or off, and Send a test notification, which tests this browser only.
Pull requestsThe board's own tells to a session about a failing check or new review comments on its pull request, each on or off, and after how many days a pull request of yours counts as stale (below).
BoardLook: the Quiet pixel tower (the default) or the Drawn tower, kept for every browser. Summaries on or off, with their cost today, and Motion: Working sessions and new needs (the default), Only new needs, or Off. Keys: the keys that answer decisions, and All keys, which opens the list of every key on the tower.
LibraryHow many lessons you learned in this browser, and Open the Library.

Notifications. The board's server sends no notification itself. On a Mac they come from the Aretuza.Code menu bar app (see "The menu bar app on macOS"), also while the board's page is closed: when a session asks you something, finishes a turn or has a new decision for you, when the cache of a session that waits for you ends within 5 minutes, and when a Widal.Factory session asks you something. They show as Aretuza.Code, and a click opens the board at that session. Which kinds come is set in the app's own Notifications menu, which keeps them in the app's own settings, not on the Settings page. Start the app with scripts/build-macos-app.sh, then open dist/Aretuza.Code.app. The browser's own notices are a second way, only while a page of the board is open in a tab: Browser notices, in the Settings menu or on the Settings page, turns them on in this browser, for a session or a pull request that starts to need you, and a click on one opens the board at that session, or the pull request on the /prs page. With the menu bar app running, leave Browser notices off, or each notice comes twice. Send a test notification on the Settings page sends one through this browser and asks whether it arrived, with how to allow it when it did not.

CI and deploys. The board reads GitHub with your own gh sign-in: for each repository, its runs (gh run list), its deployments and their newest status per environment, and the checks of the pull requests the sessions opened. It reads each one at most every 90 seconds, in the background, and only while the page is open. Without gh, or when you are not signed in, the lane says so. ARETUZA_UI_CI=0 turns it off.

Pull requests. The board also manages your pull requests, so one page says what each one needs from you. It reads, with your own gh sign-in, the open pull requests of the repositories your sessions work in, and every open pull request on GitHub that involves you: yours, the ones you are asked to review, the ones assigned to you and the ones that name you. It reads in the background, every 90 seconds while the board is open, and the page never waits for GitHub. GitHub's search is slow, so the board first reads a short list, then the details 10 pull requests at a time, and after that only the ones that changed or whose checks still run (the others every 10 minutes).

Each pull request gets one job for you, the first that fits, in this order:

Your jobWhen
Review itSomeone asked you to review it.
Fix the failing checksIt is yours and a check fails.
Answer the reviewIt is yours, and a reviewer asked for changes or left a comment that waits for an answer (the reviewer spoke last on a thread that is still open).
RebaseIt is yours, and it has conflicts, or it is behind a base branch that the repository wants up to date.
MergeIt is approved, its checks pass, GitHub says it can be merged, it is not a draft, and you may merge in that repository.
Ask for a reviewIt is yours and ready, and nobody is asked to review it.
StaleIt is yours and had no activity for 14 days (pick 3 to 60 on the Settings page). Close it, or update it.
Waiting on othersNothing for you now. The row says who it waits on: a reviewer, its author, a check that still runs, someone who may merge, or its session.

"Yours" means you opened it, or a session on the board owns it. A session owns a pull request when its log links it, or when it works on the same repository and branch, on this Mac or on your hub. While that session works, fixing, answering and rebasing wait on the session, not on you. The first six jobs need you: they come first on the page and count on the Pull requests link in the top bar. The pull requests are not on the tower.

The pull requests page: made-up pull requests grouped by your job, Review it first, then Fix the failing checks, each with why, its facts, and its actions

The page /prs lists all of them, grouped by your job, with a filter by repository and a search. Each row says what it is, your job and why (the failing check, the reviewer's state, the conflict), its author, branch, age, last activity, reviews, open comments, checks and conflicts, the session that owns it, and links to GitHub. Its actions:

  • Tell the session, when a session on this Mac owns it: the board prepares the message, such as Pull request 142 (acme/shop-api): the check "test" fails with: <first error line>. Fix it, run the check here first, and push., or the open review comments to address, and shows you the exact text before it types it into the session's tab, through the same path as Write a message. The first error line comes from the log of the failed GitHub Actions job.
  • Review on GitHub, for a review asked of you, opens its changed files.
  • Summon a Judge to review it, or a Builder to fix it: the Summon dialog opens at that class, with the pull request, or what to fix, filled in.
  • Merge, only when GitHub says it can be merged, its checks are green and it is approved. You pick the method the repository allows (squash, a merge commit or rebase). The board asks you to confirm, naming the repository, the number and the method, then asks GitHub again, and merges with gh pr merge --match-head-commit only when it is still green and still at the commit you saw. Nothing merges on its own.
  • Request review, from the people who reviewed the repository's recent pull requests (gh pr edit --add-reviewer).
  • Run failed checks again (gh run rerun --failed), Mark ready (gh pr ready), and Close it (gh pr close, after a confirm).

Every action is written in the decision log, with the pull request and what was done. The confirms are the board's own dialog, never a window of the browser.

Tell sessions on their own. Off until you turn it on, under Pull requests on the Settings page (the foot of the /prs page links there): one switch for failing checks, one for new review comments. Then, when a check fails on a session's own pull request, or it gets a new review comment, and that session waits for you with its agent in front in its tab, the board types the same message as Tell the session into it. Once for each failing check run and each comment, never twice (kept in ui-pr-told.json in the tool's folder, so a restart does not send it again), never to a session that works or waits on its own background work, and never a merge. What is there when you turn a switch on counts as seen. Each one goes in the decision log as told on its own. While a switch is on, the board reads GitHub every minute also when its page is closed. These settings are kept in ui.json in the tool's folder.

With Browser notices on, the board's page also shows one when a pull request starts to need you; a click opens it on the /prs page. ARETUZA_UI_PRS=0 turns pull requests off; without that setting, ARETUZA_UI_CI=0 turns them off too.

What it can do.

  • Go to tab brings the Terminal or iTerm2 tab that runs the session to the front.
  • Write a message types one line into that tab and sends it with Return, as if you typed it. Quick replies fill the box with "Continue.", a status question or "Yes, go ahead.", and with "Go on with your best choice and write down what you chose." (Your best choice) when the session's summary or last message recommends a way. A quick reply sends nothing. Send first shows the exact text and the session in the board's own dialog, also for a message you typed: Send it (or Enter) types it, and Cancel (or Esc) keeps it in the box. A session that works gets the message in its queue. You write the message in the details panel of the session, which a click on its card opens, or in the sheet of all decisions. Where the board cannot type into the tab (no Terminal or iTerm2 tab was found, or the agent is not the program in front), there is no Write a message button, and one line says why.
  • Close session ends a session that is done: one that waits for you, or has been idle for hours, and runs nothing of its own. The board asks first, in a small dialog of its own, then ends the Claude Code or Codex process the way /exit does, so a text you left half typed in its prompt is not sent. Its tab stays open at the shell, its history is kept, and the session moves to Ended. The board does not close a session that works or waits for its own background work.
  • Resume in a new tab starts a session that has ended again, always on the agent it ran on: a new terminal tab in the session's folder runs claude --resume with its id. A class session that the board started on Codex or Antigravity CLI shows under Ended today too, and Resume runs codex resume <its id> or agy --conversation <its id>. A session started as a class gets its class's rules and model again. It runs on the same account (saved key) as before; when that key was removed, on the default, and the board says so. The board asks first, in its own dialog, since the session reads its whole history again on its first turn; g on an ended session asks the same.
  • Copy resume copies that command.
  • Split off moves one thread of a session into a new session of its own, so that each session keeps one job. A new terminal tab starts the agent you pick (the session's own by default, or Codex or Antigravity CLI) in the same folder, with a first prompt that hands over the thread: what you asked about it, its state, what is left, the files the first session changed and its pull requests. A new Claude Code session keeps the permission mode and extra folders of the first one, and a new session on the same agent keeps its account (saved key). You pick the model, a tier or a model the agent's sign-in may use, and the effort for the new session, or keep the defaults. The first session goes on as it was. The board marks the thread as split off (kept in ui-threads.json in the tool's folder).
  • Browser notices in the Settings menu: this browser tells you when a session or a pull request starts to need you, while a page of the board is open in a tab, and a click opens the board at that session. The browser tab shows how many sessions need you. For notifications while the board is closed, use the menu bar app (see "Notifications" above).
  • No window of the browser asks you anything. Every question before an action (Send, Log and tell the session, Let it choose, Tell it now, Resume, Close session, Disconnect, and on the /prs page Tell the session, Merge and Close it) is a small dialog of the page itself, which shows the exact text that will be typed or the change that will be made. Tab moves between its buttons and stays inside it, Esc or a click outside it cancels, and Enter confirms.

Summon an agent. Summon an agent in the top bar, the door at the foot of the tower, Summon for this session in a session's details, a class's Summon button on the Settings page, or s starts a new session with a fixed role, called a class, in a new Terminal or iTerm2 tab, on Claude Code, Codex or Antigravity CLI. Seven classes come with the tool:

ClassWhat it doesModel on Claude CodeOn CodexOn Antigravity CLIWhat it may change
ScoutFinds out how something works today, in the code or on the web, and reports facts with sourcesFast (Haiku)Fast, read-only, with web searchNot offeredNothing
EnricherTurns a vague request into a spec: research, two options, your choice, then a plan in small slicesStrongest (Opus), highStrongest, highStrongest, highThe spec file under docs/specs
BuilderBuilds one slice of a plan, runs its check after each step, commits, and never pushesEveryday (Sonnet), mediumEveryday, mediumEveryday, mediumFiles in the folder, and commits
TesterWrites and runs tests for another session's change and lists what is not coveredEveryday (Sonnet), mediumEveryday, mediumEveryday, mediumTest files only
JudgeReviews one change on another model than the one that wrote it, at most three rounds per branchStrongest (Opus), high, or Sonnet when the author ran on OpusStrongest, high, read-onlyNot offeredNothing
WardenReviews one change for security problemsStrongest (Opus), high, or Fable when the author ran on OpusStrongest, high, read-onlyNot offeredNothing
ScribeUpdates the README, the docs and the changelog for a changeFast (Haiku)Fast, mediumFast, mediumMarkdown files only

Each tier is the newest model of that tier the agent can use with the account the class runs on (see "Always the newest models" under "Start an agent"). On 3 Dec 2026, with a ChatGPT sign-in, Codex's strongest and everyday were GPT-6 Astra and its fast GPT-5.6 Luna; with an OpenAI key, GPT-6.2 Sol, GPT-6.2 Astra and GPT-5.6 Luna. For one Google account agy models listed only Gemini 4 Hydrogen, so every tier there was Hydrogen. The card names the model a tier means before anything starts, and the Model choice there lists the tiers first, then the models the sign-in may use, then the ones it refuses, which cannot be picked.

The agent. Each class starts on Claude Code unless you pick another agent on the card. The Agent choice there lists Claude Code, Codex and Antigravity CLI, each with whether it is installed and signed in, and says why an agent cannot run the class. The Judge and the Warden review on a model of another family than the one that wrote the change: when the author ran on Claude and Codex is installed and not signed out, they start on Codex; when the author ran on Codex or Gemini, they start on Claude Code. You can always pick another agent, and the model list then shows that agent's models. When the agent's provider has a saved key, an Account choice lists the saved keys and the agent's own sign-in; the default key is picked first.

You pick a class, then what it works on: a session on the board (the class uses its folder and branch), a pull request, or a folder and a question. A card then shows the command it will run, its first prompt, which you can change, and what it may and may not do. Nothing starts until you click Summon on that card, and the board never types into a tab that is already open. A class that a Library lesson teaches is suggested after that lesson, and you can summon it anyway.

Run on: This Mac or Hub. With a hub connected, the form also asks where the class runs. This Mac is as above. Hub hands the task to your hub agents as a Linear ticket: the card shows its title and its text, with what you asked, the repository and branch of the folder, and the class's instructions and rules, and you can change both before anything is sent. Make the ticket creates it in the Linear team you picked in Settings, assigned to you, in Todo, with your own Linear key. A hub takes a ticket that is assigned to you and enters Todo when your automatic pickup is on (My agents on the hub), and starts your coder on it within a few minutes; its session then shows in the tower. The ticket never names the folder on your Mac, and a text that looks like it holds a secret is refused. The hub's coder works with the hub's own rules: the class's rules go in the text as instructions. A direct start of a session on the hub, without a ticket, is not built yet.

The class's instructions are added to Claude Code's own (--append-system-prompt-file), and --permission-mode, --allowedTools and --disallowedTools set what it may do. A class starts with --setting-sources "", so no settings file loads in its session: not yours, not the project's and not the local one. The class's own rules are then the only allow rules. This is on purpose, and it means that your hooks, your status line and your other settings, Aretuza.Code's own included, do not apply inside a class session. Only your sign-in comes along: when your own Claude Code settings (~/.claude/settings.json) set an apiKeyHelper, awsAuthRefresh or awsCredentialExport, or env variables for Amazon Bedrock, Google Vertex AI or Microsoft Foundry (such as CLAUDE_CODE_USE_BEDROCK, AWS_REGION, AWS_PROFILE or ANTHROPIC_MODEL), the board copies exactly those values, and nothing else, into a settings file of the session's own, readable by you only, and passes it with --settings. Your permissions, hooks, status line and every other setting and variable stay out. The card lists the names of the values that come along. A repository's settings never count for this, because an apiKeyHelper there would run that repository's command. Deny rules win over every allow rule, so no class may push, merge, release, use cloud command line tools, run rm -rf or read .env files and keys. Every class but the Builder runs in dontAsk mode: what its rules do not allow is refused, and it never stops to ask. The Enricher, the Tester and the Scribe have Edit and Write rules for their own paths only, so they change and create files there and nowhere else. No class file may allow a Bash rule that does not start with the name of a program (such as Bash(* *) or Bash(:*)), and the checks you type for the Builder follow the same rule. The rules are a fence, not a sandbox: the tests and scripts a class may run can still change files. The class's instructions (and its sign-in settings file) are kept in ~/.aretuza/classes/run/ for you only, and deleted 7 days after the session ends.

On Codex and Antigravity CLI. On Codex a class runs as codex -C <folder> -m <model> -c model_reasoning_effort="<level>" -c "developer_instructions=$di" -s <sandbox> -a <approval> "$p": its instructions are added to Codex's own (developer_instructions, read from a file only you can read, like the first prompt), the Scout, Judge and Warden run in the read-only sandbox and never ask (-a never), and the others in the workspace-write sandbox, which writes in the folder only and has no network, and ask before a command that needs more (-a on-request). Your Codex settings load as usual; these flags win over them. On Antigravity CLI a class runs as agy --model <model> --mode accept-edits --settings '<rules>' --prompt-interactive="$p". agy has no flag that adds instructions, so the class's instructions are at the top of its first prompt, which the card shows in full. Its --settings, for this session only, add deny rules for pushes, merges, releases, cloud command line tools and deletes in bulk (command(git push) and the like) to your own agy permission rules. Neither agent has rules per path: on them the Enricher, the Tester and the Scribe could change any file in the folder, and only their instructions keep them to the spec, the tests or the Markdown. The card says so. A class file may not give Codex the danger-full-access sandbox, may not give agy the auto mode, and may not give agy a class that reads only; a class that reads only runs on Codex in the read-only sandbox only.

The board starts each class with its own session id and keeps a record of it (ui-classes.json in the tool's folder), with the agent it runs on. Codex and Antigravity CLI choose their own session ids, so there the first line of the first prompt names the session too (aretuza-class: judge judge-shop-api-3f2a), and the board finds its record by that name. So the room shows the class's look (its robe, hat, the item it holds, its banner and the prop on its desk), the details name the class, its round and its lesson, and Resume starts it again with the same rules. A session started elsewhere with a name such as judge-shop-api-3f2a or the first line aretuza-class: judge shows the look too, marked "Named as a Judge".

A class is a JSON file. Your own files in ~/.aretuza/classes/ change a built-in class or add one: a file changes only the fields it sets, and its deny rules are added, never taken away. A team can commit classes to .aretuza/classes/ in its repository; the board shows what they change and uses them only after you trust them, and asks again when a file changes. The notice names every field a file changes (rules, model, effort, permission mode, inputs and their defaults, and any field the board does not know), with new prompts in full. You trust each file as the notice showed it: if a file changes before you click Trust, nothing is trusted and the board asks you to look again. The notice also names a change to a class's settings for Codex or Antigravity CLI.

Keys: j and k or the arrows move between sessions, n goes to the next one that needs you, Enter opens the details, g goes to the tab (or resumes an ended session, after a confirm), m writes a message, o reads in full what a session that needs you asks, d shows all decisions, l goes to the Library (there t goes back to the tower and a asks the Library), p goes to your pull requests (there t goes back to the tower, s summons an agent and / searches), s summons an agent, / searches, a asks, Esc closes, ? lists the keys. The list is also under Board on the Settings page.

Answer from the keyboard. These keys act on the selected session, or on the session in the Needs you view while it is open, where its note is: on the decision board, in the Needs you view, or in its details. e opens Decide on its open thing, x opens Dismiss, and 1 to 4 pick its first to fourth open thing, outlined, for e, x and c. On a plain thing to do, e and c go to its Done button, and Enter marks it done; c on a decision says to press e. In the Decide form, Enter is Log it and Shift Enter is Log and tell the session, which shows the exact text in the board's own confirm before anything is typed. A key alone never answers, logs or types anything, and the confirm takes a fresh Enter only, never a held one. After an answer the session stays selected while it has open things, and then the next session to answer is selected, in the same order as the decision board.

How it finds a session and its tab. Claude Code keeps a file for each running session, <Claude folder>/sessions/<process id>.json, with the session's id, folder, name and whether it is busy or idle. ps gives the terminal the process runs in, and AppleScript finds the Terminal or iTerm2 tab that owns that terminal. A tab is never found by its title. What a session did comes from the newest 3 MB of its log, read again as it grows. Codex sessions are found from the running codex programs and their logs, and Antigravity CLI sessions from the running agy programs in a terminal tab (not its subcommands and not agy -p), with their model, branch and conversation from what Aretuza.Code records of agy's status line.

Safety. The page answers only under this computer's own address (127.0.0.1 or localhost), so a web page that points its own name at this computer cannot read the board. A message is typed only into the tab of an agent session that is on the board, and only while the agent is the program in front in that tab, never into a shell. It is one line of at most 2,000 characters, typed and then sent with a Return of its own, so that a long message is sent too. The page refuses calls from any other web page. What a session wrote is shown as text, never run as part of the page. The first time you use Go to tab or Write a message, macOS asks whether your terminal may control Terminal or iTerm2: allow it once.

Where it works. macOS, with sessions in Terminal or iTerm2. On Linux the board shows the sessions, but Go to tab, Write a message and Resume need AppleScript and are off. Sessions inside an editor or the desktop app have no terminal tab, so the board has no Go to tab or Write a message for them, and one line says why.

The menu bar app on macOS

Aretuza.Code also runs in the macOS menu bar: its icon shows how many decisions your sessions wait for, its menu lists the sessions that need you, the most urgent first, and it sends a notification when a session asks you something, finishes a turn, names a new decision, or its cache ends within 5 minutes while it waits. A click on a notification or on a session opens the sessions board at that session, in the board's tab when Safari or a Chromium browser already shows it. When the board is not running, the app starts it with aretuza ui --no-open and stops it when you quit. It needs macOS 14 or newer.

For now you build it yourself, with Xcode or its command line tools and Node 22:

scripts/build-macos-app.sh
open dist/Aretuza.Code.app

The script signs the app ad hoc, so it runs on the Mac that built it. A signed and notarized download for any Mac comes once Widal, Inc. has a Developer ID from Apple; the script already does that signing when it is given one. Everything about the app, its settings and its signing is in docs/macos-app.md.

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. Aretuza.Code keeps them apart: the spend of each, and the plan's limits of each.

aretuza 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: aretuza 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: aretuza accounts label <key> "<label>"
Set the price of an account's plan with: aretuza 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 Aretuza.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 Aretuza.Code found one account.
  • aretuza accounts --days 30 looks further back. aretuza accounts --json gives the same as one JSON object. Each account in it has dollars ("API value", "spend" or "list prices") and price ({ "monthly": 100, "source": "table" }, with "set" for a price you set, or null).
  • aretuza summary has 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 Aretuza.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. When you sign in with another account in the middle of a session, the session's log keeps naming the account it started with (seen on Claude Code 2.1.325), so its later calls still count to that account. The plan's limits do follow the new account: Claude Code hands the status line the limits of the account signed in now, and Aretuza.Code keeps them for that account.
  • Logs of older versions of Claude Code do not name the account (on the Mac this was checked on: 2.1.314 and before). Their calls count to unknown. Calls through Amazon Bedrock or Vertex AI count to cloud: those providers give the answers ids of their own. A log does not show that a session used an API key, so such a session counts to unknown in the reports. Its status line calls it api.
  • Cowork: the desktop app keeps the logs of each account in a folder of its own, and the folder is the account. When the folder has the id of a Claude account, the Cowork account takes that account's name.
  • Codex: its log names no account. Some of its lines name the plan, such as free or plus, and the calls count to that plan, else to codex:unknown. Aretuza.Code never reads Codex's sign-in file.

Names and labels.

  • An account shows with your own label, else with the name of its organisation, else with its short key: the tool and the first 8 characters of its id, such as claude:1a2b3c4d.
  • Aretuza.Code learns the name of the account that is signed in now from Claude Code's file ~/.claude.json, or .claude.json in another config folder. aretuza refresh-today, aretuza accounts and aretuza doctor read it. The status line never does, because the file can be large. An account that is not signed in now keeps the name from the last time it was.
  • aretuza accounts price claude:1a2b3c4d 100 sets the price of the account's plan a month, and --clear takes it away (see "How you pay decides what you see").
  • aretuza accounts label claude:1a2b3c4d "Work" gives an account your own name, up to 60 characters. The start of the id is enough: aretuza accounts label 1a2b3c4d "Work". aretuza accounts label 1a2b3c4d --clear takes the label away. A key that fits no account, or more than one, gives one sentence that lists the accounts.
  • What Aretuza.Code keeps about each account is in ~/.aretuza/accounts.json: the organisation's name and id, the billing type, the seat tier and the type of the organisation, when the account was first and last used, your label, the size of a Max plan (5x or 20x, from the rate limit tier), and the price of the plan when you set one.

The plan's limits of each account.

  • Each account has limits of its own. ~/.aretuza/limits.json keeps one reading per account, and a session shows the reading of its own account only. So after a change of account, a session no longer shows the week of the account before.
  • The status line finds the account of its session once: it reads the first 8 KB of the session's log, and keeps the account in the session's file in ~/.aretuza/sessions/. Until the log is there, the session counts to the account that is signed in now.
  • The rules of "Every session shows the newest reading of the limits" and "After a change of account" hold per account. So does the rule that limits seen in the last 24 hours mean a subscription. A reading from before this change, one for the whole computer, counts as the reading of unknown.
  • aretuza doctor lists the last reading of each account. aretuza top shows the limits of the account that is signed in now.
  • When more than one account was used in the last 7 days, line plan of the status line starts with the name of the session's account. With one account, it stays as it was.
Widal, Inc. · week ████░░░░░░ 41% │ 5h ███░░░░░░░ 33% │ today 41M tokens, 96% from the cache

Other config folders. Claude Code can run with another config folder, for example for a second account: CLAUDE_CONFIG_DIR=~/.claude-work claude. Its logs are then in ~/.claude-work/projects/. Aretuza.Code reads the logs of all of these:

  • the folder that CLAUDE_CONFIG_DIR names, when it is set,
  • ~/.claude,
  • every folder in your home folder whose name starts with .claude and that has a folder projects,
  • the folders in the setting claudeDirs in ~/.aretuza/config.json, for example "claudeDirs": ["~/work/claude-config"].

The same folder twice, also once through a link, is read once.

Privacy. .claude.json also holds your email address, your full name and your display name. Aretuza.Code never stores, prints or sends them. Claude can name a personal organisation after its person, for example with the email address: such a name of an organisation is not kept either, and the account then shows with its short key. The organisation's name, the ids and your labels are kept, and shown.

Before a cache ends

A provider keeps the context of a session in its cache for a while after the last call: 5 minutes or 1 hour. A read from the cache is cheap. The first call after the end sends the whole context again, at the high price or against your plan's limits. In a long session that is hundreds of thousands of tokens.

Three things help. Each is off until you turn it on.

A notification. aretuza nudge on shows a notification of the operating system shortly before a session's cache ends: 5 minutes before, or 1 minute before for a cache that lasts 5 minutes. It comes only when the next call would send 100,000 tokens or more again, and once per end. It names the session's folder and the time. It says what the next call sends again in tokens on a subscription, and in dollars by the token. Send any message before that time and the cache stays. For a large session that Claude Code compacts on its own while it is idle, it says that instead (see "Compaction").

  • aretuza nudge on --before 5 --min 100000 sets the minutes and the tokens.
  • aretuza nudge shows the settings. aretuza nudge off turns it off.
  • It works on macOS, and on Linux with notify-send.
  • It comes from the status line, so the status line needs its refresh timer.

A warning at a cold start. aretuza apply cold-start-warn adds a hook that runs when you send a prompt. When the session's cache has ended and its context is large, it says so once per ended cache. Large is 100,000 tokens or more, the same number as the --min of the notification.

aretuza: this session's cache ended at 14:05. This prompt sent 527k tokens again. Before a long break next time: /compact, or start a new session.

By the token it gives the dollars that the prompt cost more. It only shows a message. It never stops or changes a prompt. Claude Code hands the hook the prompt, and the hook uses only the id of the session. It works with what the status line saved, so the status line has to be installed. aretuza undo cold-start-warn takes it out.

Keep-warm. aretuza apply keep-warm adds a hook that runs after each answer and waits in the background. When nobody typed and the cache is 6 minutes from its end, the hook wakes the session with one short turn. The cache then lasts another hour. It stops after 3 hours without you. That is the cap. aretuza apply keep-warm --cap-hours 2 sets another cap, up to 24 hours.

Keep-warm spends your plan's limit while you are away (money, when you pay by the token). Each wake reads the whole context from the cache. When you do not come back while the cache is kept, every wake was for nothing. It can cost more than it saves. It is an experiment.

  • It leaves a session alone when its cache lasts 5 minutes, when its context is under 100,000 tokens, and while a limit of the plan is yellow or red on the status line. The limits are looked at when an answer ends, and again just before each wake, because another session can have used them in the hour between. It does not wake a session that was closed.
  • It needs the status line with its refresh timer.
  • The status line shows how much of the cap is used. When the cap is reached and the notification is on, the notification says so.
  • While a wake is still to come before the end of a cache, the notification for that end waits. When the wake has not come one minute after its time, the notification comes after all.
  • aretuza measure keep-warm shows what the wakes read and how often you came back while the cache was kept. From 10 idle periods on it says whether keep-warm saved more than it cost.
  • aretuza undo keep-warm takes it out.

Two more changes are about the cache.

  • aretuza apply subagent-cache-1h sets "subagentPromptCacheTtl": "1h". Subagents then keep their cache for 1 hour instead of 5 minutes. A subagent that waits on a long command no longer pays to write its whole context again. Every cache write of a subagent costs the 1 hour price instead. The setting was checked live on 2026-11-12 with one small session that starts one subagent. Before the change the subagent wrote its 19,892 tokens to the 5 minute cache. After the change it wrote them to the 1 hour cache.
  • aretuza apply model-switch-cost adds a hook that runs before a change of model. A change of model loses the cache. The hook shows what writing the context again costs, by Claude Code's own estimate. From $0.50 it asks first. Claude Code can only ask when you type /model with a name in a terminal session. For the model picker, and in a run without a person, the hook shows the cost and goes on. Under $0.05, and with the cache already gone, it says nothing. The amount from which it asks can be set as modelSwitchAskFrom in ~/.aretuza/config.json.

Compaction

A compaction replaces a long conversation with a summary. The context is small again after it, so every later call carries less. Claude Code compacts on its own when the context reaches the limit of the model: about 96.7% of the context window, which is 967,000 tokens in a window of 1,000,000. You can compact by hand at any time with /compact. Nothing outside Claude Code can start a compaction. So this tool does four other things: it shows the compactions that happened, it says what a summary has to keep, it can move the automatic point earlier, and it says when a compaction fits.

What happened so far. aretuza compactions reads the last 30 days of Claude Code's logs. Claude Code writes one line per compaction there, with the tokens before and after. The report shows:

  • One table with a row for all compactions, one for the automatic ones and one for those by hand: how many, the tokens before and after (the median, then the smallest to the largest), by how much the context got smaller (the median percent), and how long a compaction took (the median seconds).
  • One sentence that says how many of the automatic compactions came in the middle of work. That is one whose session had made a model call in the 5 minutes before.
  • One sentence that says how many of the automatic compactions came 50 to 70 minutes after the last model call of their own conversation. That is how Claude Code's idle rule looks in a log: it compacts an idle session of about 200,000 tokens or more shortly before its 1 hour cache ends. The sentence is left out when there is none.
  • The five sessions with the most compactions, each with its folder and its largest size before.

There is no percent to aim for. The size after a compaction is about the same each time, so the percent only says how large the context was allowed to get. On the one Mac that was checked, 57 compactions in 14 sessions went from a median of 366,000 tokens to a median of 31,000, and 53 of them were automatic.

What a summary has to keep. aretuza apply compact-keep adds a hook that runs before every compaction, automatic or by hand. Claude Code adds what the hook prints to the instructions for the summary. The hook prints one short text:

Keep what the person asked for and decided, the current plan with its open steps, the files that were changed, commands that have to be run again, and everything the person said not to do.
  • aretuza compact-keep shows the text. aretuza compact-keep "<text>" sets your own, with 1 to 10,000 characters. aretuza compact-keep --default puts the default back.
  • It is off until you apply it. aretuza undo compact-keep takes the hook out.
  • The hook reads nothing of the session. When this tool's settings file is broken, the hook prints nothing, so that the default never stands in for your own text without a word. aretuza compact-keep then says what is wrong.

An earlier automatic point. aretuza advise has a proposal for it. It replays your logs and shows, for Claude Code's calls, what the part of each call's carried context above 200,000, above 300,000 and above 500,000 tokens cost. That is what an automatic compaction at that point would have saved, if the work had gone on the same with a smaller context. Nobody has measured that, and a summary loses detail. So the change is one to measure.

  • aretuza apply autocompact-window sets "autoCompactWindow": 300000 in Claude Code's settings. Claude Code then compacts a context on its own when it reaches 300,000 tokens. aretuza apply autocompact-window --tokens 500000 sets another size: a whole number from 100000 to 1000000.
  • aretuza undo autocompact-window puts back what was there.
  • aretuza measure autocompact-window compares the 14 days before the change with the time after it, for the main sessions of Claude Code. It shows the compactions per session, the median size before a compaction and the cost of carrying context per 1,000 calls. Then it shows the same signs of how the work went as for the other changes: tool errors, rounds of fixing, interrupts by you and repeated tool calls.
  • There is no standard for the point. 300,000 tokens is this tool's own choice.

A hint at a good moment. At a break in the work the status line can end with one of three hints. The first one that holds is shown.

HintIt shows when
automatic compaction is near: /compact now to choose what staysThe context is within 100,000 tokens of the point at which Claude Code compacts on its own. The point is autoCompactWindow from Claude Code's settings when that is set and not above the context window. Otherwise it is 96.7% of the window. This hint is yellow.
a task just ended and the context is 420k: a good moment to /compactThe end of the session's log shows a sign that a task ended, and the context has 150,000 tokens or more.
context 420k: a good moment to /compactThe context grew by 150,000 tokens since the last compaction, or since the status line first saw the session.
  • A break in the work is 60 seconds without a model call. In the middle of work there is no hint.
  • A hint comes at most once in 30 minutes per session. It stays on the line while the session is idle, and it is gone after the next model call.
  • You type /compact. Nothing changes on its own.
  • Nobody tells the status line that a compaction happened. It sees one as a drop: the context is under half of what it was at the last run, and it was above 100,000 tokens then. From that size on it counts the growth.
  • A sign that a task ended is one of two things, after the last compaction. The first is a shell command that starts with git commit, git push, gh pr create or gh pr merge and did not fail. The second is a task list whose newest call shows every task as completed (TodoWrite, or TaskCreate and TaskUpdate together). A sign counts once: the same commit gets no second hint.
  • For the sign the status line reads the last 256 KB of the session's log, at most once after each model call. When the hint about the effort level is due in the same run, both come from one read.
  • The hints need the status line with its refresh timer. A run right after an answer never sees a break.
  • aretuza hint off turns these hints off together with the hint about the effort level, and aretuza hint on turns both on. aretuza hint and aretuza doctor show the settings. The two numbers are growth and near under compactHint in ~/.aretuza/config.json.

The privacy rule for the shell command. The tool may look at the start of a shell command in the log, only to see whether it is one of the four commands above. It compares the first words and keeps only "a task ended at this time". It never keeps, prints or stores the command or any other text. Of a task list it reads the status of each task, and nothing of what a task says.

The notification before a cache ends. Claude Code compacts an idle session of about 200,000 tokens or more on its own before its 1 hour cache ends. Its setting "idleCompaction": false turns that off. For such a session the notification of aretuza nudge on says:

Soon Claude Code compacts this idle session on its own (527k tokens). To keep the full context, send a message before 15:02. To choose what stays, run /compact with your own words now.

It says that when the cache lasts 1 hour, 200,000 tokens or more are to send again, and idleCompaction is not false in ~/.claude/settings.json. In every other case the notification is as "Before a cache ends" describes it.

Model and effort

What you spend on which model. aretuza models shows the spend of the last 30 days three ways: by model and effort level, by kind of work, and by kind of subagent. The kind of work of a call comes from the tools it used: changing files, running commands, handing work to a subagent, reading and searching, other tools, or thinking and answering. Its last line counts simple work on a strong model at high effort: calls that read, searched or ran commands at effort high or above, on a model whose output costs more than Claude Sonnet 5.5's.

Proposals. aretuza advise replays the last 30 days of logs. A replay prices the same model calls again with one thing changed: another cache lifetime, another model, a smaller start. It keeps the tokens as they were. So it says what the same work would have cost, not whether the work would have gone the same way. Each proposal gives the evidence, how the change is made, what can go wrong, and the command when this tool can make the change. A proposal shows when it would have saved 1% of the total or more.

The proposals about model and effort:

ProposalIt shows whenHow the change is made
Run subagents on a cheaper modelSubagent calls ran on a model that costs more than Claude Sonnet 5.5aretuza apply subagent-model
Run one kind of subagent on a cheaper model60% or more of what that kind cost is reading and searchingaretuza apply subagent-model --kind reviewer, when "reviewer" is a subagent of your own
Start sessions at a lower effortCalls read, searched or ran commands at effort high or abovearetuza apply effort-default --level medium, with the level that the proposal names
Start new sessions in one folder on a cheaper model80% or more of the folder's main sessions are short (20 calls or fewer), and they mostly read, search and thinkBy hand: "model" in that folder's .claude/settings.json

The amount for a lower effort comes from your own calls: for the same model and the same kind of work, what a call wrote above the median of your calls at the next lower effort. Without 200 such calls of your own the proposal has no amount yet.

The other proposals are about the cache and the size of the context: the 1 hour cache for subagents, a rule for subagents that wait, an earlier automatic compaction (see "Compaction") and smaller subagent starts. The rule and the smaller starts are made by hand. Those two and the earlier compaction change how the work is done, so a replay cannot say that the result stays as good.

The two changes.

  • aretuza apply subagent-model sets the model of all subagents to claude-sonnet-5-5. It sets CLAUDE_CODE_SUBAGENT_MODEL in the env of Claude Code's settings. aretuza apply subagent-model --model claude-haiku-5-5 sets another model. With --kind and the name of one of your own subagents it changes only that one: it sets the line model: in the subagent's file in ~/.claude/agents/. A kind that is built into Claude Code has no file, so it cannot be changed alone.
  • aretuza apply effort-default sets "effortLevel" to medium. That is the effort that new sessions start with. aretuza apply effort-default --level low sets another level: low, medium, high or xhigh.

Both act on new sessions. aretuza undo subagent-model and aretuza undo effort-default put back what was there.

The hint in the status line. In a running session the line can end with one of two hints:

mostly simple work at high effort: /effort medium keeps the cache
many failed rounds at low effort: /effort medium keeps the cache
  • The first shows at effort high or above, when 80% or more of the session's last 30 model calls are simple work (reading and searching, running commands, thinking and answering) and at most 2 rounds failed.
  • The second shows at effort low or medium, from 5 failed rounds. A failed round is a call that came after a tool result with an error. This hint is yellow.
  • Both need 20 calls or more to go by.
  • You type the command. Nothing changes on its own.
  • For the hint the status line reads the last 256 KB of the session's log, at most once every 5 minutes. It takes only the names of the tools and the error flags.
  • There is no hint through a cloud provider and on an older model, because there a change of the effort level can lose the cache.
  • The hint is on after the install. aretuza hint shows its settings, aretuza hint off turns it off, and aretuza hint on turns it on again. The same command turns the hint to compact off and on (see "Compaction").

After a change. aretuza measure subagent-model and aretuza measure effort-default compare the 14 days before the change with the time after it, for the calls that the change acts on. They show the cost per 1,000 calls and per session, the calls per session, tool errors, rounds of fixing, interrupts by you and repeated tool calls. They end with one sentence. It is "Too early to judge." until there are 500 calls in 20 sessions after the change. Then it is "Cheaper, and the work looks the same.", "Cheaper, but the work looks worse." or "No clear difference."

Start a session with a model. aretuza start "<task>" --model sonnet --effort medium opens a new terminal tab in this folder and starts Claude Code there with that model, that effort and your task as the first prompt. --agent codex or --agent gemini starts Codex or Antigravity CLI instead (see "Start an agent"). --dir <folder> starts it in another folder. Without a task it starts an empty session. This is where the model of a session is chosen, because a running session cannot change its model without losing its cache (see below). The board's Split off starts a session the same way. It needs macOS with Terminal or iTerm2 for now.

What the research found.

  • Switch a model only at a boundary: the start of a session, a subagent, after a summary of the context, or when the cache is gone. A switch in a running session sends the whole context to the new model again. So the tool proposes a model only for subagents and for new sessions.
  • A change of the effort level keeps the cache on the current models. So in a running session the effort level is the switch to use. That is what the hint is for.
  • No model or effort level switches on its own. Vendors that lowered a model or an effort level without asking took that back after complaints. So the tool proposes those, and you decide: every such change is one command that you run, and one command takes it back. The default changes (see "Default changes") change neither.
  • The signs in aretuza measure are signs, not proof. The work before and after a change is not the same work. Tool errors, rounds of fixing and interrupts are published measures of how work went. None is proven for a single switch.

Too many agents at once

An agent can start many subagents at the same time. Each one is a separate process that uses CPU (the processors) and memory (RAM). Too many of them make the whole computer slow, and can make it run out of memory. The plugin's hook load-gate runs before each subagent and each workflow starts, and checks how busy the computer is:

  • The computer has room: the subagent starts. You see nothing.
  • CPU or memory is at its limit: the subagent waits in a queue. The hook measures again every 5 seconds. When there is room again, the subagent starts, and the agent is told how long it waited.
  • Still busy after the wait: the subagent does not start. The agent is told why, and is told to wait for its running subagents or to do the work itself, and then to try again.

Subagents that an agent starts at the same time start one after another, at least 5 seconds apart. So each one measures the computer after the one before it has started, not all at once on a quiet computer. All sessions on the computer share this queue.

aretuza load shows how busy the computer is now, and the limits. The defaults are 90% CPU, 90% memory, a wait of up to 120 seconds and 5 seconds between two starts. Change them with, for example, aretuza load --cpu 80 --memory 85 --wait 60 --spacing 10. The wait can be at most 140 seconds, because Claude Code ends the hook after 150 seconds. aretuza load off turns the check off, and aretuza load on turns it on again.

On a Mac, memory that holds files and can be freed at once counts as free (the free, inactive, speculative and purgeable pages that vm_stat shows). Without that, a Mac looks almost full most of the time. CPU is the share of processor time that was busy over one second.

What it does not do yet:

  • It counts only subagents and workflows. A heavy shell command, such as a build or a test run, starts without a check.
  • It measures the whole computer, not the agents. A busy browser or a build that a person started also makes subagents wait.
  • It has been tested with made-up measurements and on one Mac, not yet in a live session with many subagents.

A limit in dollars

aretuza limit --session 50 --day 200 --action ask sets a limit per session and a limit per day, in dollars at list prices. At a limit Claude Code asks you before the next tool call (ask), shows a warning (warn) or stops the agent (stop). It asks or warns once, and again each time the spend has grown by a tenth of the limit. aretuza limit --off removes the limits.

The limit uses the cost figure that the status line saves, so the status line has to be installed.

The reports

CommandWhat it shows
aretuza summaryThe dollars of the last 7 days by day, project and model, and what they paid for: spend by the token, API value on a subscription. The block "Plans" with each plan's price. With more than one account, also by account.
aretuza sessionThe latest session: its spend or API value, lost caches, what filled the context, the most expensive single pieces. Add the first characters of a session's id for another session.
aretuza calls -n 30One line per model call of that session: context size, new tokens, share read from the cache, output, cost, what entered
aretuza liveThe same lines for the Claude Code sessions that are running, as the calls happen. Stop it with Ctrl-C.
aretuza findingsWhere the dollars went and what can be done, largest first, each with the command that fixes it (see below)
aretuza branchesSpend per project folder and git branch
aretuza branchThe branch that is checked out in this folder, with a line for the pull request. Run it in a git repository, or add the name of a branch.
aretuza modelsSpend of the last 30 days by model, effort level and kind of work
aretuza models tiersWhat the tiers strongest, everyday and fast mean now for each agent, and where that came from (see "Start an agent")
aretuza compactionsThe compactions of the last 30 days: how many, and the context before and after
aretuza adviseChanges that would have saved money, from a replay of the last 30 days, largest first
aretuza measure subagent-cache-1hBefore and after a change that was applied
aretuza accountsThe dollars, the plan's limits and the plan's price of each account in the last 7 days (see "More than one account"). --json gives the same as JSON. aretuza accounts price <key> <dollars> sets a plan's price.
aretuza doctorWhat is installed, how you pay, the limits, the last reading of the plan's limits of each account, the changes that are applied, and how many logs were found
aretuza helpEvery command
aretuzaThe name Aretuza.Code with the version, and every command below it.
aretuza --versionThe version of the tool
aretuza hooksThe hooks that the plugin carries: whether each one runs, and from where
aretuza loadHow busy the computer's CPU and memory are, and the limits for starting a subagent
aretuza checkThe open security findings, the most severe first (see "Security and compliance")
aretuza board login https://code.widal.comLinks this computer to your team's board, or to your free account there for the Library. aretuza board status, aretuza board sync and aretuza board logout go with it (see "The team board").

The reports take --days and a number of days, for example aretuza findings --days 30.

What aretuza findings shows. Each finding has its amount, the facts behind it, one item per line, and ends with the command that fixes it. Where aretuza advise has a replay for that change, the line gives the replay's saving for the same days. With made-up data:

Where the dollars went and what can be done, last 7 days. Total $412 at list prices.
On subscriptions: $412 of API value. That is what the same use would cost by the token. You pay your plan's price, not this.
The amounts overlap, so they do not add up. Not all of an amount can be saved.

1. Tool results in the context: $124, 30% of the total
   Bash: 8,878 results, 41M tokens, $70.10 with carrying. Largest single result 9.8k tokens.
     By program, the most tokens first:
       npm: 2,104 results, 15M tokens, $25.60
       git: 3,340 results, 9.1M tokens, $15.40
       pytest: 610 results, 7.0M tokens, $11.90
   Read: 1,816 results, 18M tokens, $31.20 with carrying. Largest single result 25k tokens.
   That is about 6.1% of your weekly limit (estimate from this week's use).
   A large result is paid for on every later call. Read parts of files, filter command output, and give large reads to a subagent that returns a summary.
   Fix: aretuza apply bash-output-cap (the replay of these 7 days: $21.40 less). Claude then gets at most 10,000 characters of a command's output inline, and a preview and a file for longer output.

2. The cache was lost 87 times: $37.10, 9% of the total
   Causes:
     idle for over 5 minutes: 61 times, $24.30
     the start of the prompt changed: 26 times, $12.80
   Largest:
     2026-11-12 14:02 work/shop-web $2.40 (310k tokens)
     2026-11-13 09:47 work/shop-web $1.90 (245k tokens)
   56 of them were in subagents, $19.80. A subagent's cache lasts 5 minutes, so a command or a wait that runs longer loses it.
   That is about 1.8% of your weekly limit (estimate from this week's use).
   Fix for the subagents: aretuza apply subagent-cache-1h (the replay of these 7 days: $14.20 less). It gives subagents a 1 hour cache.
   Fix for the main sessions: aretuza apply keep-warm, an experiment. It wakes an idle session with one short turn shortly before its cache ends, for up to 3 hours without you.

3. The same tool call, with the same input, many times: $8.30, 2% of the total
   Read ran 46 times with a repeated input (9 inputs, each 4 times or more) in work/shop-web, about $3.20. Likely cause: files read again after a compaction.
   ToolSearch ran 12 times with a repeated input (2 inputs, each 4 times or more) in work/shop-web, about $0.40. Likely cause: deferred tools loaded again after a compaction.
   Fix: aretuza apply compact-keep. At each compaction it tells the summary what to keep, such as the files that were changed. No replay can say how much that saves.

(Shortened: the real report also explains each cause, and has the findings about context above 200k tokens and about subagents, with aretuza apply autocompact-window --tokens 200000 and aretuza apply subagent-model.)

  • The programs of shell commands. The results of the shell tool are split by the program that each command ran: only the first word of the command, reduced to its base name (/usr/bin/git gives git), with letters, digits, dot, dash and underscore only, and at most 24 characters. A change of folder in front (cd <folder> && npm test, or cd <folder>; npm test) is skipped, and the next command's first word counts. Words in front that set a variable (NODE_ENV=test npm test) are skipped and never kept. When Aretuza.Code cannot be sure which word is the program, the command counts as (other): a value in quotes or with a backslash, $( or a backquote before it (PGPASSWORD='a b c' psql gives (other), never b), a word that looks like a key or a token, and a home folder such as /Users/<name>. Aretuza.Code keeps this name, and nothing else of the command, in its cache (see "Privacy"). It is not sent to a team board.
  • Repeated tool calls are one line per session and tool: how often the tool ran with an input that repeated 4 times or more, the folder, and an estimate of the cost: the tokens of the repeated results, entering and carried on the later calls, at each call's prices. The first result of each input is not counted. The likely cause is a compaction when the same input ran again after the session's context was compacted: files read again, or deferred tools loaded again.
  • A share of the weekly limit. On a subscription with a reading of its week that is at least 5% used, the findings about lost caches, context and tool results say how much of a weekly limit their amount is. It is an estimate: Anthropic does not publish how the limit counts tokens. Aretuza.Code divides the API value of the account's calls from the start of the week to the time of the reading by the percent that the reading gives, and takes each dollar of API value to use the same share. The report ends with the dollars per 1% that it used. The percent also counts chat, the phone and other computers, which Aretuza.Code cannot see: when the plan was used there too, the share is too high.

What works where

SurfaceSeesCan act
Claude CodeEvery call, the cache, the plan's limitsStatus line, the pane, nudges, limits, proposals
CodexEvery callReports, and the cap on tool output (see "Codex")
Antigravity CLIEvery call of a session with a status line (not agy -p)Reports, the gate before a push, and the caps on shell output and file reads
Cowork on the desktopEvery call of sessions that ran on this computerReports. With the plugin also its commands, its skill and its hooks: the text to keep at a compaction, and the warnings at a cold start and before a change of model.
Cowork in Anthropic's cloudNothingNothing
Chat on the web and phoneNothing of its own. Its use is inside the percent of the plan's limits, because chat, Cowork and Claude Code draw from one pool.Nothing

Why the tool does not read chat's usage from the web app. The web app has its own usage figures, and other tools read them with the browser's sign-in cookie. Anthropic's consumer terms forbid automated access that way. It also means keeping a sign-in secret on the machine. So this tool does not do it.

What an organisation can do instead. Team and Enterprise admins can export Cowork's tokens and cost per person. Enterprise with usage-based billing has an analytics API per person and product.

Default changes

Aretuza.Code makes a few changes on its own, without aretuza advise and aretuza apply. A change becomes a default only after a stage of the benchmark in bench/ proved it: it saved money with a 95% interval that excludes no saving, and kept the solved tasks within the margin set before the stage (bench/PREREGISTRATION.md).

DefaultWhat it doesThe stage that proved it
tools-unusedLeaves out the built-in tools of Claude Code that none of your sessions called, as aretuza apply tools-unused does. It leaves out only these nineteen, and only those of them that no session called: Task, Workflow, ScheduleWakeup, ReportFindings, ListAgents, WebFetch, SendMessage, WebSearch, Skill, CronCreate, EnterWorktree, ExitWorktree, NotebookEdit, CronDelete, CronList, TaskCreate, TaskGet, TaskList and TaskUpdate. Skill goes only together with WorkflowThe first eight: stages "current" and "confirm", 24 and 25 Nov 2026, on 199 tasks with Claude Sonnet 5.5, two runs each, 13% less cost (95% interval 21% to 4% less), solved tasks +1.3 points (-3.5 to +5.8); the cost is recomputed from the saved sessions (correction of 29 Nov 2026 in bench/PREREGISTRATION.md). All nineteen together: change 17, 1 Dec 2026, against Claude Code as it ships with tool search on, on 99 tasks with Claude Sonnet 5.5, two runs each, 23% less cost (95% interval 38% to 9% less), solved tasks +5.1 points (-1.0 to +11.6)

How it works:

  • Only when it fits. Once a day, the hook at the start of a session starts a run in the background. It applies a default only when your own sessions of the last 30 days show that it fits: when aretuza advise would propose it. For tools-unused that is 20 main sessions or more in which no call used those tools.
  • Measured on your sessions. Each run measures an applied default as aretuza measure does: the calls it acts on, in the 14 days before and since. From 500 calls in 20 sessions after the change, a default that made those calls 10% or more costlier, or whose tool errors or rounds of fixing rose by more than 25%, is taken back. A default that is 5% or more cheaper with the same signs of the work is kept, and is not measured again.
  • Told once. What a run did is shown once at the start of the next session, as a message to you. The model does not see it.
  • Yours to change. aretuza undo <name> takes a default back, and it then stays off. A change that you applied yourself is left alone. aretuza defaults lists each default, what happened to it on this computer, and its stage. aretuza doctor lists them too. aretuza defaults off takes back what the defaults applied and stops them, and aretuza defaults on starts them again.

Every change the tool can make to Claude Code's settings

Claude Code's settings are in ~/.claude/settings.json. The tool changes that file only when you run one of these commands, and for the default changes that a benchmark stage proved (see "Default changes"), which it applies with the same aretuza apply and you take back with the same aretuza undo. One change is in Codex's config.toml instead: codex-output-cap (see "Codex").

CommandWhat it changesHow to undo it
aretuza connectSets statusLine to this tool's command, ~/.aretuza/bin/aretuza statusline, with refreshInterval 30. With --refresh and a number it sets other seconds. Another tool's status line is kept unless you add --force. Adds the three hooks of the security checks: hooks.SessionStart, hooks.Stop and hooks.PreToolUse with the matcher Bash. When Codex is on this computer, it also makes the change codex-output-cap in Codex, unless config.toml has a value of yours or you took the change back.aretuza disconnect
aretuza migrateFor an install made under one of the tool's old names, or one whose entries call a link on the PATH. Changes the command of the status line and of this tool's hooks to ~/.aretuza/bin/aretuza. The first command you type runs the same move on its own. See "Installs under an old name".No command. The copy of the file is in ~/.aretuza/backup/.
aretuza limit --session 50 --day 200 --action askAdds one hook before tool calls (hooks.PreToolUse). The limit itself is kept in this tool's own settings.aretuza limit --off
aretuza apply subagent-cache-1hSets "subagentPromptCacheTtl": "1h"aretuza undo subagent-cache-1h
aretuza apply model-switch-costAdds one hook before a change of model (hooks.PreModelSwitch)aretuza undo model-switch-cost
aretuza apply cold-start-warnAdds one hook for a sent prompt (hooks.UserPromptSubmit)aretuza undo cold-start-warn
aretuza apply subagent-modelSets CLAUDE_CODE_SUBAGENT_MODEL in envaretuza undo subagent-model
aretuza apply subagent-model --kind reviewerSets the line model: in ~/.claude/agents/reviewer.md. This is the one change outside the settings file. It needs that file to be there.aretuza undo subagent-model
aretuza apply effort-defaultSets "effortLevel"aretuza undo effort-default
aretuza apply keep-warmAdds one hook after each answer (hooks.Stop). The hook may wait in the background for up to 1 hour. It also turns keep-warm on in this tool's own settings.aretuza undo keep-warm
aretuza apply compact-keepAdds one hook before a compaction (hooks.PreCompact). The text that the hook prints is kept in this tool's own settings.aretuza undo compact-keep
aretuza apply autocompact-windowSets "autoCompactWindow" to 300000. With --tokens and a number it sets another size.aretuza undo autocompact-window
aretuza apply bash-output-capSets "bashOutputMaxChars" to 10000: how many characters of a successful shell command's output Claude gets inline (about 30,000 without it). Longer output goes to a file, and Claude gets a preview of 2,000 characters and the file's path. With --chars and a number (4000 to 128000) it sets another size. It needs Claude Code 2.1.261 or later. When it replaces a value of yours it says so, and undo puts that value back. While it is set, Claude Code ignores BASH_MAX_OUTPUT_LENGTH, and the command says so when that variable is set.aretuza undo bash-output-cap
aretuza apply codex-output-capThe one change in Codex, not in Claude Code. Sets tool_output_token_limit to 1000 at the top of Codex's config.toml (in ~/.codex, or in the folder that CODEX_HOME names): how many tokens of each tool's output Codex keeps in the context. Codex keeps that and a fifth more, about 4,800 characters. The setting replaces the model's own limit (10,000 tokens in the list built into Codex 0.171.0), so a size above that limit would keep more. With --tokens and a number (1000 to 32000) it sets another size. When it replaces a value of yours it says so, and undo puts that value back. After an undo, aretuza connect leaves it off. See "Codex".aretuza undo codex-output-cap
aretuza apply no-bypassSets permissions.disableBypassPermissionsMode to "disable", and takes out skipDangerousModePermissionPromptaretuza undo no-bypass
aretuza apply deny-secret-filesAdds five deny rules to permissions.deny: Read(./.env), Read(./.env.*), Read(**/*.pem), Read(**/id_rsa*), Read(**/.aws/credentials). The other rules stay.aretuza undo deny-secret-files takes out only the rules it added
aretuza apply tools-unused --tools Workflow,ListAgentsAdds the named built-in tools to permissions.deny, so that new sessions start without their definitions. It takes only tools that a session can do without: Task, Workflow, ScheduleWakeup, ReportFindings, ListAgents, WebFetch, SendMessage, WebSearch, Skill, CronCreate, CronDelete, CronList, EnterWorktree, ExitWorktree, NotebookEdit, TaskCreate, TaskGet, TaskList and TaskUpdate. A benchmark stage proved all of them (see "Default changes"). A tool added to this list later counts as not yet proven until a stage proves it: the command says so when you name one, and the default changes never apply it. Skill is left out only together with Workflow, named in the same command or denied already: without the skill tool, Claude Code puts its guide for writing workflows into the definition of Workflow, and the start of every session gets larger. aretuza advise names the tools no session called. It never names Bash, Read, Edit, Write, Grep, Glob, Monitor, TaskStop, TaskOutput or ToolSearch. The other rules stay.aretuza undo tools-unused takes out only the tools it added
aretuza apply tools-unused --all-unusedThe same, for every tool above that none of your sessions of the last 30 days called. It needs 20 main sessions or more, as aretuza advise does. This is the one command that applies the whole set, for example for a benchmark stage.aretuza undo tools-unused
aretuza apply transcript-daysSets "cleanupPeriodDays" and "desktopSessionCleanupPeriodDays" to 7. With --days and a number (1 to 365) it sets other days.aretuza undo transcript-days
  • Backups. Before each change the file is copied as it was to ~/.aretuza/backup/, with the time in its name. The tool never deletes these copies.
  • Undo. What a change found before it is kept in ~/.aretuza/actions.json. undo puts back that value, and leaves the rest of the file as it is now. It puts the value back only while the setting still holds what the change set. A value that you changed by hand after the change stays, and undo says so. aretuza apply without a name lists the changes.
  • Other tools' settings stay. Hooks of other tools stay, also in a group that they share with a hook of this tool. Two hooks of this tool can share an event (keep-warm and the security check both run when a turn ends): a change of one keeps the other.
  • A file is replaced as a whole. The new text is written to a new file, which then takes the place of the old one. A crash in the middle leaves the old file. A settings file that is not a JSON object, or whose env or hooks is not in the shape Claude Code writes, is not changed: the command fails and says why.
  • One thing is left behind. After the last hook is taken out, an empty "hooks": {} can stay in the file. It does nothing.
  • The command in the settings. Every hook that a command adds calls ~/.aretuza/bin/aretuza, a link in the tool's own folder. No other program can be there. A command that adds a hook makes the link when it is missing.
  • Uninstall. aretuza disconnect takes out the status line, every hook of this tool, the cap on tool output in Codex, the links in ~/.aretuza/bin/, and the links to the command on the PATH, also the links under the tool's old names. After a setup from the plugin it also removes the copy in ~/.aretuza/app/. A link on the PATH that belongs to another program stays. The plugin itself stays installed: take it out with /plugin uninstall aretuza@aretuza. A setting that a change set stays: the cache of subagents, the model of subagents, the starting effort, the size for the automatic compaction and the cap on shell output. Take those back first, with undo.

aretuza plan, aretuza nudge, aretuza hint, aretuza compact-keep, aretuza hooks, aretuza output-cap, aretuza read-cap and aretuza settings change nothing in Claude Code. Their settings are in ~/.aretuza/config.json. aretuza settings set with --project writes the frameworks into the repository you name (see "Settings"). The plugin's hooks change nothing in Claude Code's settings either: Claude Code reads them from the plugin. Everything else the tool writes is in ~/.aretuza/ too: one small file per session, the newest reading of the limits of each account, the names and labels of the accounts, the parsed logs, the record of keep-warm, the security findings (findings.json), the times the checks last started (checks/), the backups, the board's settings (ui.json: summaries and notifications), the link to a hub (hub.json) and to Linear (linear.json, with who the key belongs to and the team; the key itself in the login keychain on macOS), both mode 600, what may be shown of the agents' keys (keys.json, mode 600: each key's name, kind, last 4 characters and when it was saved, and each provider's default; the keys themselves in the login keychain on macOS, elsewhere in keys/, one file per key with mode 600), the setting of the models and the last model of each tier at a start (models.json), the model lists read from OpenAI and agy (model-lists.json, mode 600, model names only), the records of the classes the board started (ui-classes.json) with their instructions and sign-in settings (classes/run/, mode 600), the account of each plain start (ui-starts.json), and on a computer linked to a team board the link with its token (board.json, mode 600), the time of the last background start (board.start) and the lock of a running sync (board.lock). The Library's lessons learned, and what the board said of them last, are in library/progress.json, and the last list of courses read from code.widal.com in library/courses.json. The check before a subagent starts keeps the time of the last start (load-gate.json) and the lock of its queue (load-gate.lock). The cap on shell output in Antigravity CLI keeps the whole output of a command that went over it in antigravity/output/ (mode 600, deleted after 7 days).

How the numbers are made

What a provider bills. Each model call is billed in four kinds of tokens: input that is not in the provider's cache, input written to the cache, input read from the cache, and output (which includes thinking). The agent's log holds the exact count of each kind for each call. This tool multiplies them by the list prices in src/prices.mjs.

Why carrying matters. An agent sends its whole context on every call. So a tool result is paid for when it enters, and again on every later call, until the context is summarized or the result is cleared. This tool follows each piece through the calls and gives it two costs: entering and carrying.

Lost cache. A provider keeps the context in its cache for 5 minutes or 1 hour. After a longer gap, or after a change of model, the whole context is written again at the high price. The tool finds those calls and says what the rewrite cost.

What is exact and what is an estimate.

  • Exact: the tokens and the cost of each call, and the split between carrying, new context and output.
  • Estimate: how the new tokens of one call are split between the pieces that entered at that call. It is done by their size in characters.
  • Estimate: all dollar figures are list prices. By the token they are what you pay (spend). On a subscription they are API value: what the same use would cost by the token, not what you pay.
  • Estimate: the share of a weekly limit in aretuza findings. Anthropic does not publish how the limit counts tokens. Aretuza.Code takes each dollar of API value to use the same share of it.
  • Estimate: the replay of a cap on shell output keeps the preview's share of each result over the cap. It does not count the reads of the file that Claude may make for the rest, so its saving is the most it can be.
  • Estimate: in a Cowork log the output of a turn is exact, and its split between the calls of the turn is not. In a check against 5,714 calls the split was off by 19% of the output on average.
  • Assumption: two prices. Fast mode is taken to double the cache prices too. The price of a cache read above 100,000 prompt tokens on Claude Haiku 5.5 is taken from the same ratio as its other prices.

Checked against Claude Code. The price table gives exactly the cost that Claude Code itself saved for the same token counts ($82.5528 for one model in a real session). That is a test.

What is not tested or not built

Not tested:

  • The sessions board (aretuza ui) was tested on one Mac on 1 Dec 2026, with five Claude Code sessions in Terminal: each found its tab, Go to tab brought a test session's tab to the front, a message typed through the board reached a test session, which answered, and Resume started an ended test session again in a new tab. The summaries and the CI lane were tried on the same Mac the same day: six sessions got summaries for $0.006 in all, and the lane read two repositories with their environments, runs and pull request checks. Requests, Split off and aretuza start were tried on 2 Dec 2026 on the same Mac: the summaries grouped the requests of six sessions into threads, aretuza start --model haiku --effort low opened a new Terminal tab whose session ran on Claude Haiku with the task as its first prompt, and Split off moved one thread of that test session into a new Haiku session, which got the handoff prompt and said what it would do. Summon was checked on 3 Dec 2026 with made-up sessions and without opening a tab: the command line of each class, the record, the class looks in the tower and the refusals. The path limit of the classes was tested on a real Claude Code session on 3 Dec 2026 (Claude Code 2.1.335, Haiku, print mode, dontAsk): an exception with ! in a deny list (Edit(**) then Edit(!**/tests/**)) refused every edit, so the classes do not use it. With --setting-sources "" and Edit and Write rules for **/tests/** only, a file under tests/ was written and one under src/ was refused, although the user, project and local settings all allowed every edit. Not tried yet: a class session started from the board's Summon card, Codex and Antigravity CLI sessions on the board, iTerm2, and Linux. The pull requests were tried on 3 Dec 2026 with a fake gh and made-up pull requests only: the jobs, the floor, the page, the confirms, a merge, the decision log and the board's own tells. Against real GitHub only the reads were tried (the two searches with @me, the open pull requests of a repository, and the details by number). A real merge, review request, rerun, ready or close through the board, and a real tell typed into a session's tab, are not tried yet. The confirm before every message, quick replies that only fill the box, Let it choose, Resume asking first, and the "May be stuck" and shared-file lines were checked on 3 Dec 2026 in headless Chrome against made-up sessions in made-up terminal tabs, with a stand-in for osascript, so no real tab was read or typed into.

  • Starting Codex and Antigravity CLI, and the agents' keys, were tested with made-up programs only, on 3 Dec 2026: the command line built for each agent and each class, the refusal of an agent that is missing or signed out, the Judge's choice of agent, Resume on the same agent from a made-up Codex log and agy transcript, the keys in a made-up tool folder, and the sign-in values from a made-up Claude Code settings file. The flags come from codex --help (0.154.0), agy --help (1.5.20), claude --help (2.1.335) and their documentation. No real session of any agent was started this way, so these follow the documentation and were not seen: that Codex takes -c developer_instructions and its provider for a saved key (env_key), that gpt-5.6-terra and gpt-5.6-luna are model names Codex knows, that agy takes --prompt-interactive=<task>, its --settings with permission rules and modelProvider, and a level in the model's name, that agy's deny rules match commands by their start, that a class session of Claude Code signs in with the values passed by --settings, and that a key read from the keychain in a new tab needs no question from macOS. The board cannot tell whether Antigravity CLI is signed in with a Google account. Resume of a Codex or agy session works only for a class session the board started, found by its name in the first prompt. Settings, Keys was checked in headless Chrome with made-up keys.

  • The tiers and several keys per provider were tested with made-up lists and keys, on 3 Dec 2026: a made-up Codex list in the form of Codex 0.154.0's models_cache.json, a made-up agy models, a stand-in for OpenAI's model list on this computer, and named keys in a made-up tool folder (files, not the keychain). One real check: from an empty folder, codex exec --skip-git-repo-check -s read-only -m gpt-6-astra -c model_reasoning_effort="low", the model the board picks for the strongest tier from the real Codex list of a ChatGPT sign-in, answered "OK". Not tried yet: OpenAI's real model list with a real key, the real output of agy models (the board takes every word of the form gemini-<version>-<kind>-<level> in it), keys under the keychain account <provider>:<name> in a real keychain, and the account of a plain Codex or agy start found by its folder and start time with a real process. Settings, Default agents and Keys, and Summon with an Account choice, were checked in headless Chrome with made-up data.

  • The Settings page and Summon on the hub were tested with made-up sessions and stand-ins only, on 3 Dec 2026: a stand-in hub and a stand-in for Linear's API on this computer, and the page in headless Chrome. Not tried yet: a real hub, a real Linear team, and a ticket picked up by a real hub.

  • The two looks of the board were checked with made-up sessions in headless Chrome only, on 3 Dec 2026: the tower, the Library, the pull requests, the Settings page and the dialogs (Summon, Needs you, all decisions, the decision log) in the Quiet pixel tower and the Drawn tower, in light and dark, on a desktop and at the width of a phone: no error in the page, no sideways scroll, text at 4.5:1 or more, the working windows and the dot moving with Motion at its default and still otherwise, and the cards reached with Tab. Not tried yet: Safari and Firefox, a screen reader on the icons' labels and the cards, and a real session at work in a working window.

  • Since you looked and the answer keys were checked with made-up sessions in headless Chrome only, on 3 Dec 2026, in both looks, light and dark, and at the width of a phone: the line after a look kept 45 minutes before (with the page closed, and with it hidden), no line after 25 minutes or on a page that stayed in front, Hide, the line gone after the first answer, each key, Shift Enter through the confirm with a stand-in for the terminal, and a held Enter that does not confirm. Not tried yet: a real night away with the Mac asleep, and two windows of the board open side by side.

  • The tool has run on one machine only, a Mac. One machine is not evidence.

  • The menu bar app was built and started on one Mac on 3 Dec 2026 (macOS 26.2, Swift 6.2.1): its --check read the running board and listed the same sessions, in the same order and with the same counts, as the board's own code on the same data, and the app started, ran for 8 seconds with board-starting and notifications off for that run, and quit. Its logic has its own tests (swift test in macos/), with made-up sessions. Not seen yet: a real notification and a click on it, the board's tab brought to the front in Safari or Chrome, the app starting the board, and Start at login.

  • The move from the old name widal to aretuza was tested with made-up installs only, in temporary home folders: the folder ~/.widal (and ~/.kestrel through it) moved to ~/.aretuza, the links, the settings, and an install from the plugin. It has not run on a real install yet. A plugin installed as widal@widal has to be installed again as aretuza@aretuza by hand.

  • The limit was tested live on 2026-11-12, in small sessions without a person (print mode), next to another hook that approves every tool call, and in the mode that skips permission prompts:

    • warn: Claude Code showed the notice, and the tool call ran.
    • ask: the tool call was refused with the tool's message, because nobody could answer. In a session with a person, Claude Code asks. That prompt itself was not tested.
    • stop: the tool call was refused and the agent's turn ended.
  • The hook before a change of model was seen live in a run without a person, on 2026-11-12: Claude Code called it and showed its message. The question that a person gets in a terminal session was not seen.

  • The newer parts were tested with made-up input only: the colours, the pace of a limit, the shared reading of the limits, the notification, the warning at a cold start and the hint. The made-up input has the field names of a real session's input, captured on 2026-11-13.

  • Keep-warm has not run in a live session. Claude Code's documentation says that a hook of this kind wakes an idle session when it ends with exit code 2. How long such a hook may wait is not documented. The tool gives it a time limit of 1 hour.

  • The model of subagents and the starting effort were not checked live. The tool sets them as Claude Code's documentation names them: CLAUDE_CODE_SUBAGENT_MODEL, model: in a subagent's file, and effortLevel. No live session has shown that Claude Code then uses them. Of the settings, only the 1 hour cache for subagents was checked live.

  • The Cowork folder is confirmed on macOS only. For Windows and Linux the tool looks in the desktop app's data folder on those systems. Nobody has checked that. The layout of the Cowork log was read from the logs on one Mac on 2026-11-13.

  • The move from the tool's old name was tested with made-up home folders only. aretuza migrate has not run on a machine with a real install yet.

  • The cloud checks ran once against a real AWS account, Vercel project and GitHub organization, on 14 and 15 Nov 2026. Prowler has not run, and the Vercel checks that need a VERCEL_TOKEN were skipped. The other cases were tested with stand-ins: small programs that print the shapes from each provider's documentation (read on 14 Nov 2026).

  • The pane has not run in a live session. It was tested with a stand-in for what Claude Code gives a mod, built from Anthropic's documentation of mods and the types of Claude Code 2.1.325. Three things follow the documentation and were not seen live: that a mod hears the plugin's own command files /aretuza:open and /aretuza:settings and can answer them, that $.prompt.submit sends the prompt of Hand to the agent, and how the pane looks in each app.

  • The plugin was installed from a local folder on one Mac on 15 Nov 2026. claude plugin validate . passes on Claude Code 2.1.325. The commands, the skill, the hooks and the setup from a plugin's folder were tested with made-up folders only. Two things follow the documentation and were not seen live: that a command file runs its shell command as written, and that its allowed-tools line lets that command run without a question.

  • Cowork was not tried. Whether Node is there when Cowork runs a plugin's hook is not known. Without Node the hooks print nothing.

  • The plugin's hooks run their command through sh. On Windows without Git Bash, Claude Code runs a hook's command with PowerShell, and the command was not written for it.

  • The parts about compaction were tested with made-up input only. The hook before a compaction has not run in a live session. The tool sets autoCompactWindow and reads idleCompaction as Claude Code's documentation names them (version 2.1.323). No live session has shown that Claude Code then compacts earlier, or that it compacts an idle session. The line that Claude Code writes for a compaction was read from the logs on one Mac. A line without all of its numbers is not counted.

  • A subscription is found as documented for Pro, Max and Ultra. Whether Claude Code gives the plan's limits to Team and Enterprise seats is not documented. If the tool gets it wrong, set it with aretuza plan subscription.

  • It is not known whether Claude Code still gives the end of a cache once the cache is gone. The tool keeps the last end it was given.

  • The accounts were checked on one Mac only, on 14 Nov 2026. The line that names the account was in the logs of Claude Code 2.1.317 and later, and in no log of 2.1.314 and before. The ids that Amazon Bedrock and Vertex AI give an answer come from those providers' formats: no such log was on that Mac. A second config folder of Claude Code, and a Codex plan type other than free and prolite, were tested with made-up logs only.

  • Whether a write to the 1 hour cache counts more against a subscription's limits is not documented.

  • Max and Ultra are told apart by the rate limit tier. claude_max with a tier that ends in max_5x was in a real .claude.json. That Ultra has max_20x comes from the link on the pricing page, not from a real file. The name claude_pro follows the same pattern as claude_team and claude_max. If a plan shows without its price, set it with aretuza accounts price.

  • The cost of standing text is an estimate. Claude Code's logs give the size of each instruction file, each plugin's skills and agents in the lists of skills and agents, the text that hooks add and what hooks at the start of a session or a prompt print, in characters. aretuza advise turns that into tokens at about 3 characters per token (on the benchmark of 23 Nov 2026, about 11,800 characters more made the start about 3,900 tokens larger), and takes that share of the start of each session for standing-text. It measures what the text costs to carry, not whether it makes the answers longer or shorter.

  • The sizes of the tool definitions were measured on one version. On 24 Nov 2026, with Claude Code 2.1.331 and no other settings, a session started with 19,450 tokens, and denying one tool took that tool's definition out of the start (for example 2,926 tokens for Task and 2,064 for Workflow). aretuza advise uses those sizes for the saving of tools-unused. Other versions can differ, so aretuza measure tools-unused shows the start of a session before and after. The tools that no stage proved yet were sized on 30 Nov 2026 with Claude Code 2.1.333 and no model: Claude Code sent its first request to a small local server that only kept the request, with each tool denied and without. A denied tool's definition was gone from the request each time. The characters it sent less are turned into tokens at about 2.9 characters per token, so those sizes are estimates. With tool search on, Claude Code sends only the name of CronCreate, CronDelete, CronList, EnterWorktree, ExitWorktree and NotebookEdit, so leaving them out saves a few tokens each; aretuza advise sees from the logs which sessions had tool search on and counts only the names there. TaskCreate, TaskGet, TaskList and TaskUpdate were not in a session started with claude -p, so they have no size, and their saving counts as nothing.

  • The caps on shell output and on file reads in Antigravity CLI were not checked in a real session. Their hooks were tested with input shaped as Google's page "Hooks" documents it (read on 30 Nov 2026), and the command that the cap on shell output writes was run with sh. No agy session has run with them, so these follow the documentation and were not seen: that agy runs the changed command and reads the changed range, that its model reads the line, the file and the notice, and how agy stops a command at its time limit.

  • The cap on shell output was not checked live. aretuza apply bash-output-cap sets bashOutputMaxChars as Claude Code's documentation names it (settings reference and tools reference, read on 16 Nov 2026). No live session has shown that Claude Code then cuts the output.

  • The cap on tool output in Codex was not checked live, and no benchmark stage measured it. aretuza apply codex-output-cap sets tool_output_token_limit as Codex's configuration reference names it and as the source of Codex 0.171.0 and 0.172.0 reads it (read on 30 Nov 2026). No live Codex session has shown the cut, and its saving is not known. Which limit OpenAI's list of models, which Codex downloads with an API key, gives each model was not read. See "Codex".

  • The Library's grading was tested with a stand in for Claude Code only. The tests and the screenshots use a small program in place of claude that answers in the form of claude -p --output-format json. The prompts and the reading of the replies are tested; how kind and how exact Claude Haiku's grades are has not been measured yet.

  • The team board link was tested with a stand-in board only, a small web server in the tests that answers as the board's design says. It has not sent to a real board yet. The same holds for free accounts and the Library progress: the board's side of them is built but not live yet. The Library's Connect button, the lessons' titles and the course list were also tested with a stand-in only, and the board's side of them is not live yet either: until it is, the Library shows the course list that ships with the tool, and the board takes the lessons without their titles. The background start from the status line and the hooks was tested with made-up input.

  • The security checks were tested with made-up settings, logs and repositories only. The gate's question before a push was seen in Claude Code on 14 Nov 2026, in a throwaway repository. The scanners Checkov, Trivy and KICS were tested with stand-ins that print the JSON of their documentation. gitleaks was run once on a made-up file in a temp folder, to see its JSON.

Not counted:

  • Claude Code's small helper calls are not in the session log (for example the call that reads a web page). They were under 1% of the cost in the one session checked.
  • The calls that the Cowork app makes on the side are not in its log (the same kind of helper calls). The app's own cost figure for a session counts them. The tool keeps that figure, and no report shows it yet.
  • Cowork has no thinking, no effort level, no git branch and no tool errors. The log has only a running estimate of the thinking, which cannot be tied to one call, so the thinking of a Cowork call stays 0. The log does not name the effort or the branch. The reader does not count failed tool results or interrupts, so aretuza measure has none of those signs for Cowork.
  • The output of a Cowork call in a turn that was stopped is too low. Such a turn has no totals in the log.
  • Codex has no rounds of fixing. Its log does not say which command failed.
  • A model without a price shows tokens only. Add its price in ~/.aretuza/prices.json.
  • Spend per branch is a first step, not a cost per pull request. The agent's log names the branch of the folder where the session started, and keeps that name when the session moves to another repository. So a call counts to a branch only when its folder is in a repository that has the branch (a local git check, no network). On this machine about half of a week's spend was not on a known branch: scratch folders, detached checkouts and branches that are gone. Nothing is checked against the code host.
  • No outcome yet. The tool knows the ticket of a session from its git branch name (aretuza tickets), but not whether the work merged.

Not built:

  • The limit works in Claude Code only. It uses the cost figure that the status line saves, so the status line has to be installed. The limit acts before the next tool call, so a model call that is already running still finishes. Codex has hooks too. A limit for Codex is not built.
  • An agent can change the limit before it is reached, by running aretuza limit itself. Once the limit is reached, every tool call is held, also that one. A limit that an agent cannot change needs settings that only an administrator can write.
  • A session's file has no lock. The status line and the hooks all write the small file of a session. Each reads the file again just before it writes, and sets only its own fields. Two of them that write in the very same moment can still lose one field. The gap is far shorter than one run, and no lock is built.
  • Only Claude Code's user settings are read for the point of the automatic compaction and for the idle compaction. An autoCompactWindow or idleCompaction in a project's settings is not seen.
  • A session that waits for a long command counts as quiet. The hint to compact goes by model calls. So it can show while a command runs for more than 60 seconds, in the middle of a task.
  • Single tasks are counted, not told apart. Of TaskCreate and TaskUpdate only the status is read. A task from before the last 256 KB of the log is seen only once an update names its status.
  • In Codex only the cap on tool output acts, and nothing acts in Cowork or chat. See "What works where".
  • The security checks of actions and data read Claude Code's logs only. Codex's settings are checked, but not what a Codex agent did.
  • The findings file has no lock. Two checks that save at the very same moment can lose the findings of one run. The next run of that check finds them again.
  • A project's own settings files are checked for the folder a session starts in, and for the top of its repository. A finding about another project's files stays open until a session there checks it again.
  • A Vercel check covers one project. It is the project of the folder or of --project, not every project of a team.
  • No notification on Windows.
  • The menu bar app has no signed download yet. It is built and signed ad hoc on your own Mac, until Widal, Inc. has a Developer ID; no release carries it, and it does not update itself.
  • The hint knows a fixed list of models on which a change of the effort level keeps the cache. A newer model gets no hint until it is added in src/hint.mjs.
  • No start on the next account at a limit. With several Claude subscriptions saved, a new session runs on the default key or the one you pick; the board does not move new sessions to the next account when one is at its limit.
  • The account of a session the board did not start is not known, and a session started before this release shows none. Split off of such a session runs on the default key.
  • No comparison with other tools that read the same logs.
  • The log formats are internal to Claude Code, Codex and the Claude desktop app. A new version can change them. So is the status line JSON of Antigravity CLI, although Google documents it.

Privacy

  • Everything stays on the machine, except what you ask for with aretuza cloud-check, what a computer that you linked to a team board sends to that board, what the sessions board sends to a hub or to Linear once you connect them, and the sessions board's daily request for the Library's public course list. The programs the tool starts are git, for local questions about branches, remotes and commits; ps and lsof, to find the agent sessions that run and their terminals; osascript on macOS, to find, show and type into the Terminal or iTerm2 tab of a session and to show the notification of aretuza nudge before a cache ends (notify-send on Linux); security for the login keychain on macOS; vm_stat on macOS, to see how busy the memory is before a subagent starts; the scanners of the security checks when they are installed (see "Scanners"); your own gh, for the sessions board's lane of CI and deploys; sh, for a shell command of agy under the cap on shell output; the program that opens the browser at aretuza ui, at aretuza board login and at the Library's Connect button (open or xdg-open); your own claude, as claude -p with Claude Haiku and no tools only from the sessions board and only for what you turned on or asked for (its summaries, the Ask bar, and the Library's grades, Ask the Library and Did I do it?), and as a new session in a new terminal tab when you ask for one (aretuza start, Split off, Resume and Summon); your own codex and agy, only as a new session in a new terminal tab when you ask for one, and claude auth status and codex login status, which change nothing, to see whether an agent is signed in before it starts; and its own command: aretuza settings asks aretuza accounts for the accounts, the pane runs Aretuza.Code's commands, and the status line and the hooks start aretuza refresh-today, the security checks and the board's sync in the background.
  • Three parts of Aretuza.Code use the network, and only these three. First, the cloud checks, only when you run them: aretuza cloud-check starts aws, prowler, vercel or gh, which talk to their providers with your sign-in. With VERCEL_TOKEN set, Aretuza.Code itself calls api.vercel.com with that token. What a cloud check saves holds no secret, no value of a variable and no text about a resource (see "Cloud checks"). Second, the team board, only after you linked the computer with aretuza board login or a Connect button of the sessions board: Aretuza.Code then sends what it records to that board's address, on its own, and to no other address. A computer linked to a free account sends only the ids and titles of the Library lessons you mark as learned, from the sessions board's own server. Without a link, the sessions board asks code.widal.com for one thing only: the public list of courses for its Library, at most once a day when you open the Library, with no token and nothing about you or your sessions (ARETUZA_UI_COURSES=0 turns that off). It never sends the text of prompts, answers, tool results or files. See "The team board" for the full list, and aretuza board logout to stop it. Third, the sessions board while it runs: it reads GitHub through your own gh for its lane of CI and deploys (ARETUZA_UI_CI=0 turns that off), and talks to a hub and to Linear only once you connect them (see "The hub and Linear" below). Its summaries and the Library's grades go through your own Claude Code, to where your sessions already go. The outcome benchmark in bench/ is not part of the tool that runs on your computer day to day. Its records go to that same board only when you run node bench/export.mjs --send yourself: numbers, the benchmark's own ids, model names and versions of runs on the benchmark's sample project, which Widal reads together with the records of all teams (see bench/README.md, "Keep and share the records").
  • From a log the tool takes counts, sizes, flags and names: the tokens of each call, the length of each piece of text, the flags for an error and an interrupt, the names of tools and models, the folder and the git branch. The text of a prompt, an answer or a tool result is never kept, stored or printed. Of the input of a tool call only a short code is kept (8 characters of a hash), to find the same call again.
  • Of a shell command Aretuza.Code keeps the name of its program. It is the first word of the command, reduced to its base name (npm, git, pytest), with letters, digits, dot, dash and underscore only, and at most 24 characters. A change of folder in front (cd <folder> &&) and words that set a variable are skipped, so neither the folder nor a value is kept. When a quote, a backslash, $( or a backquote comes before the program's word, the command counts as (other), because a value in quotes can hold spaces. So does a word that looks like a key or a token (such as one that starts with AKIA, ghp_ or sk-, or a long mix of capitals and digits), and a home folder such as /Users/<name> or /home/<name>. No argument and no other part of the command is kept. The name is in Aretuza.Code's cache of parsed logs (~/.aretuza/cache/), and aretuza findings prints it. It is not sent to a team board.
  • One rule for the start of a shell command. For the hint to compact, the tool may look at the start of a shell command in the log, only to see whether it is git commit, git push, gh pr create or gh pr merge. It compares the first words and keeps only "a task ended at this time". It never keeps, prints or stores the command or any other text. Of a task list it reads the status of each task, and nothing of what a task says.
  • A notification holds the short name of a folder, a time, and a number of tokens or dollars. A notification of the menu bar app, or a notice of the sessions board in the browser, holds a session's name and the start of what it asks of you, shown only on this Mac.
  • The hub and Linear, only when you connect them. With a hub connected, the sessions board reads your sessions from that hub with your token. With your Linear key saved, the board reads who the key belongs to when you check it, and sends a ticket to Linear's API only when you click Make the ticket on a Summon card: the ticket's title and text as the card showed them.
  • The hooks use nothing of your prompt or of the model's answer. Claude Code hands a hook more than it needs. The hooks take the id of the session. The hook before a change of model also takes the two model names, the size of the context and Claude Code's cost estimate. The hook before a compaction reads nothing of what it is handed.
  • The security checks keep no matched text. A finding says which rule matched, where (a file and line, a path inside the repository, a session), when, and which controls it touches. It never holds a key, a number, a command or text of a session. See "Security and compliance".
  • No sign-in token and no cookie is read. For an API key the tool only looks whether ANTHROPIC_API_KEY is set. It never keeps or prints the key. No credentials file is ever read: not ~/.aws/credentials, not a sign-in file of Vercel or GitHub. Aretuza.Code uses these secrets: the token you put in VERCEL_TOKEN for a Vercel check, which it never writes anywhere; the token of a team board, in ~/.aretuza/board.json with mode 600, never printed in full, and sent only to the board that gave it; and, when you give them, your hub's personal token and your Linear API key, kept in the login keychain on macOS (elsewhere in hub.json and linear.json with mode 600), never shown again, and sent only to that hub and to Linear's API; and the keys you save for the agents with aretuza keys or on the Settings page, kept in the login keychain on macOS (elsewhere in ~/.aretuza/keys/, one file per key with mode 600), never printed or shown again, and read only by the command of a new tab that starts that agent, into that agent's environment.
  • Accounts: no email address and no person's name. For the name of the account signed in now, the tool reads Claude Code's file .claude.json. That file also holds your email address, your full name and your display name. They are never stored, printed or sent, and neither is an organisation's name that holds one of them. The organisation's name, the ids and your own labels are kept in ~/.aretuza/accounts.json. Codex's sign-in file is never read.
  • The plugin's skill tells Claude never to open, read or quote a session log. Claude runs a report, and the report prints only numbers.
  • The cap on shell output in Antigravity CLI keeps whole outputs on this computer. When a shell command of agy prints more than the cap, its whole output goes to a file in ~/.aretuza/antigravity/output/, readable by you only (mode 600), so that agy's model can read the rest. Such a file can hold whatever the command printed. It is deleted after 7 days, never sent anywhere, and no report reads it.
  • What the tool keeps is in ~/.aretuza/. aretuza disconnect leaves that folder where it is.

Files

FileWhat it does
cli/aretuza.mjsThe command. The other three files in cli/ run it under the tool's old names.
package.jsonThe name of the package and the version. aretuza --version prints the version.
src/app.mjsThe folder of the tool's own files, the version, and the copy in ~/.aretuza/app/ after a setup from the plugin
.claude-plugin/plugin.json, .claude-plugin/marketplace.jsonThe plugin's manifest, and the marketplace with this one plugin. The manifest carries the version of package.json.
commands/, skills/aretuza/SKILL.md, hooks/hooks.jsonThe plugin's ten commands, its skill and its eight hooks. hooks/hooks.json also names the mod.
hooks/pane.mjsThe mod that draws the Aretuza.Code pane in Claude Code
src/settings.mjsEvery setting in one place, and aretuza settings
src/security.mjsThe security checks as a whole: their hooks, the gate before a push, and aretuza check
src/controls.mjs, src/rules.mjsThe catalog of controls per framework, and the rules of the checks
src/check-settings.mjs, src/check-log.mjs, src/check-code.mjsThe checks of the settings, of a session's log (actions and data), and of the changed code with the scanners
src/findings.mjs, src/risk.mjsThe store of findings, ~/.aretuza/findings.json, and the part of the status line about them
src/cloud.mjsaretuza cloud-check: runs a provider's tools with a time limit and saves the findings. src/cloud-aws.mjs, src/cloud-vercel.mjs and src/cloud-github.mjs are the checks of each provider.
src/finding-words.mjs, src/findings-text.mjsThe words for a finding (where it is, its controls, the prompt of Hand to the agent), and the open findings as text
src/plugin.mjsThe hooks that the plugin carries, and the rule that keeps a hook from acting twice
src/board.mjsThe team board: aretuza board login, status, sync and logout, what a sync sends, its start in the background, and free accounts
src/library-sync.mjsThe Library's progress: kept in the tool's folder, and sent to and read from the account on the board by the sessions board's server, with the lessons' titles
src/library-courses.mjsThe Library's courses, read from the board once a day and kept in the tool's folder, and its reading list
src/board-connect.mjsThe Library's Connect button: links this computer to the board from the sessions board's server, and Disconnect
src/hub.mjsThe link to a Widal.Factory hub: aretuza hub, the token, and the person's hub sessions on the sessions board
src/linear.mjsThe person's Linear key and team, and the ticket that Summon on the hub makes
src/keychain.mjsThe login keychain on macOS, for the hub's token, the Linear key and the agents' keys
src/library-learn.mjsThe Library's questions: the grading prompt and the reading of Claude Haiku's reply, the rule for a learned lesson, Ask the Library, the check of a practice card when no rule fits, and the limit and cost of these calls
src/defaults.mjsThe default changes: the list with the stage that proved each one, the daily run in the background that applies, measures and takes back, aretuza defaults, and its state in ~/.aretuza/defaults.json
macos/, scripts/build-macos-app.sh, scripts/macos-assets.mjsThe menu bar app for macOS: its Swift package, the script that builds and signs it into dist/, and the script that makes its icons from src/ui/logo.js (see docs/macos-app.md)
src/ui/link.jsThe address of one session on the sessions board, #s=<id>, which the page and the menu bar app share
src/ui/notices.jsThe sessions board's notices in the browser: the Browser notices switch, a notice that opens the board at its session, and the test notice
src/prs.mjsThe pull requests of the sessions board: the reads with gh, the job of each one (a table of rules), who owns it, the message for its session, the board's own tells, and the actions (merge, review, rerun, ready, close)
src/ui/prs.html, src/ui/prs.js, src/ui/prs-view.js, src/ui/prs-actions.js, src/ui/prs.css, src/ui/confirm.jsThe /prs page, its buttons, and the board's own confirm dialog
assets/The Aretuza.Code mark as a pixel drawing (aretuza-code.svg, in the colours of the board's header) and in two sizes of PNG, made from src/ui/logo.js by node scripts/logo-png.mjs --assets, which also writes the logo at the top of this README (docs/images/logo-pixel.png, and logo-pixel-dark.png for a dark page). The plugin's icon and the desktop extension's icon are aretuza-code-512.png.
src/prices.mjsList prices and the cost of one call
src/parse-claude.mjs, src/parse-codex.mjs, src/parse-cowork.mjs, src/parse-antigravity.mjsRead a session log into one record per model call
src/antigravity.mjsAntigravity CLI: the status line command that records its tokens, the gate before a push, the hooks of the caps on shell output and on file reads, and the setup in agy
src/run-capped.mjsThe runner behind the cap on shell output in agy: runs the command, cuts a long output, and keeps the whole output in a file
src/codex.mjs, src/codex-toml.mjsCodex: what aretuza connect and aretuza disconnect do there, and the change of one line at the top of its config.toml
src/store.mjsFinds the logs and keeps the parsed result in ~/.aretuza/cache/
src/paths.mjsWhere the logs are, the config folders of Claude Code, and where this tool keeps its files
src/analyze.mjsAssigns every dollar to what caused it, and names the kind of work of a call
src/report.mjsThe reports
src/billing.mjsHow you pay, and the newest reading of the plan's limits of each account
src/accounts.mjsThe accounts: their names from .claude.json, the labels, and ~/.aretuza/accounts.json
src/accounts-report.mjsaretuza accounts: the dollars and the limits of each account, as a table or as JSON
src/plans.mjsHow each account pays, the prices of plans, the words spend and API value, the block "Plans", and the share of a weekly limit
src/program.mjsThe name of the program that a shell command runs
src/claude-code.mjsThe status line and the hooks
src/hud.mjsThe status line in lines: the bars, the four lines, the tasks and agents from the end of a log, and aretuza hud
src/top.mjsaretuza top: every agent session on this computer
src/ui.mjs, src/ui/, src/library/The sessions board (aretuza ui): its server, its page with the tower (index.html, app.js), the message form and the questions before typing (reply.js), the "May be stuck" and shared-file lines (signals.js), the Since you looked line (since.js), the keys of the tower and the ones that answer decisions (board-keys.js), its two looks (the cards and the roof in quiet.js, the rules both share in quiet.css and tower.css, the Quiet pixel tower's own in quiet-pixel.css with the pixel art of tower.js, the Drawn tower's in drawn.css with the line icons of icons.js, the style both share for the other pages and the dialogs in pages.css, and the choice, the default and the Motion setting in look.js), its Settings page (settings.html, settings.js), its own confirm dialog (confirm.js), and the Library's own page (library.html, library-page.js, library.js): the lessons with their questions and key points (curriculum.json), the reading list (resources.json) and the course list that ships (courses.json)
src/classes.mjs, src/classes/The classes the board summons: the seven built-in class files, and how they are merged, trusted, checked and turned into a command line for Claude Code, Codex or Antigravity CLI, and which agent a class starts on
src/agents.mjsThe agents a session can start with (Claude Code, Codex, Antigravity CLI): their programs, models and effort levels, whether each is installed and signed in, the flags of a plain start, and the sign-in values of the person's Claude Code settings that a class session gets
src/keys.mjsaretuza keys: the keys of the model providers in the login keychain, what may be shown of them, and the variable a new tab sets from one
src/refresh-today.mjsWorks out today's numbers in the background for the status line and aretuza top
src/today-file.mjsThe file of today's numbers, ~/.aretuza/today.json
src/ticket.mjsThe ticket of a git branch name, and the branch of a folder
src/mcp.mjsThe desktop extension: the server that answers Claude in the Claude desktop app
src/nudge.mjsThe notification before a cache ends
src/keep-warm.mjsThe settings, the record and the measure of keep-warm
src/hint.mjsThe hint about the effort level, and the look at the end of a session's log
src/compact.mjsThe text that says what a summary has to keep, and the hint to compact
src/advise.mjsThe proposals from a replay, and the before and after of a change
src/actions.mjsThe changes the tool can make, each with a way back
src/install.mjsChanges Claude Code's settings, with a backup
src/links.mjsThe link in the tool's own folder that the settings call, and the links on the PATH
src/migrate.mjsBrings an install made under one of the tool's old names to the name Aretuza.Code
src/config.mjsThis tool's own settings
src/format.mjsHow numbers, tables and colours are printed
src/git.mjsLocal git checks for the branch reports, and the top folder of a repository
test/node --test
docs/The guide to the desktop extension (desktop.md) and the pictures of this README (images/), all made from made-up data
scripts/build-desktop.mjs builds the desktop extension, and logo-png.mjs writes the logo files from src/ui/logo.js
AGENTS.md, CLAUDE.mdThe rules for anyone who changes this repo, people and coding agents alike. CLAUDE.md only points Claude Code to AGENTS.md.
bench/The outcome benchmark: real Claude Code sessions on 13 tasks with hidden checks, with and without Aretuza.Code. It costs money to run, so the tests only check its tasks. See bench/README.md

Licence

Aretuza.Code is free and open source under the MIT licence. See LICENSE.

Aretuza.Code is made by Widal, Inc. in San Francisco. The team board, which shows what a whole team's agents spend, is a paid service at code.widal.com. A free account there keeps your Library progress on every computer. Aretuza.Code on your computer works without either. Questions: hello@widal.com.

MCPB
https://github.com/Widal-Inc/aretuza/releases/download/v0.7.0/aretuza-code.mcpb
Install Command
# mcpb: https://github.com/Widal-Inc/aretuza/releases/download/v0.7.0/aretuza-code.mcpb