Back to README.md.
- How Scoring & Allocation Work
- After an Update & Moving from a Git Checkout
- Packaging, Incremental Updates & Runtime Ports
- Repository Layout
- Provider Inventory & Quota Collection
- Windows Tray & Decision Console (
tray/) - Host Rollout & System-Level Skill Loading (
setup/) - Deployment & Tests
flowchart LR
B[task.md + hours] --> C[Task classifier<br/>work kind, category demands & hours]
C --> A[Score & quota check<br/>gates → fit → quota cost]
Q[(live quota windows<br/>5h / 7d, in USD)] --> A
A --> L[(ledger)]
A --> W[launch worker<br/>mode + parent contract]
G{{spawn gate hook}} -. blocks unrouted spawns .-> W
fit = sum_a w_a * (min(z_a, c_a) - t1_a) / sum_a w_a (in panel standard deviations; zero point t1_a = panel weakest)
targets = t1: panel minimum, t2: panel median, t3: panel maximum (measured or interpolated High values of the panel's members; the anchor claude-opus-5-5 at High is z = 0.0, the origin)
cap c_a = t_a at demand levels 1 and 2; ceiling_a at level 3 (the highest measured or interpolated High value of any
catalogued model, never an estimate, converted or manual value)
continuity = max positive (t3 - t2) among highest-demand categories when coupling in ("medium", "high") and resuming its worker, else 0
score N = fit + continuity + boost - quota_cost
The System-One classifier selects one of 11 atomic work_kinds (primary_level 1–3, plus an optional composite
secondary_kind and secondary_level 0–3), which task_intake.project_axis_demand maps deterministically onto 0–3
demands across creativity, coding, aesthetics and tool_operation (aesthetics
level 1 evaluates design only, while levels 2 and 3 evaluate min(design, image_recognition) sharing
tool_operation.image_recognition; tool_operation level 1 imposes no ability requirement, level 2 evaluates per-effort
responsiveness, and level 3 evaluates min(responsiveness, image_recognition) and requires image input; both apply the cap
per facet). A task the classifier marks needs_visual or needs_gui requires image input at every level: a model whose public data says it takes none leaves the task, and one with no cited modality leaves automatic routing. Routine levels pay nothing
for ability above their target; a level-3 demand keeps crediting ability up to the category's ceiling, so the hardest tasks
can prefer a model measured above the panel's best. The level scale of a facet is (t1, t2, t3), the panel's minimum, median and
maximum measured or interpolated High value (owner, 2026-11-18; a category value such as coding has its own triad on the same definition, and a panel
that does not give t1 < t2 < t3 is a build error). The anchor is the origin of z, not a level: it is level 3 only on a facet where it
is the panel's best. A value above t3 is a level above 3, extrapolated by t3 - t2 and shown as that number; the manual scores
(agentcompass score set, the Scoring page) speak this scale. tool_operation.responsiveness at demand level 3 asks what level 2
asks, the panel median: a level-3 task adds image recognition, not more responsiveness. continuity is t3 - t2. A model's category scores are panel standard scores (z)
from public cited boards; a facet a model lacks is estimated from its same-series sibling (same declared size) or its
arena.ai Overall tier fit, and a small row's facet that has neither from its larger model (its own gap for the same
version, else the fleet's size step, used only where the measured pairs agree in direction; an ability value never above the
larger model's), and, last, an ability facet with no source from the model's own other ability facets. Every facet then has a
value at every effort (own-curve interpolation, else the panel's median effort step; minimal and ultra from the fleet's step
next to them, none, reasoning switched off, from the fleet's own readings at none; default reads the declared effort, High), and no curve
inverts along effort: High is the anchor, ability never falls and responsiveness never rises as effort rises, Time/Task never
shortens (rules and formulas in calibration/README.md). Release
verification checks the result against saved gateway catalogs (audit/gateway_coverage.py; audit/gateway-catalogs/*.json, rows
{provider, model, efforts} only; the Magpie catalog is built from Magpie's source by audit/magpie_catalog.py, one documented
command, the same bytes for the same checkout): every gated offered (model, effort) is scored at that effort or is on
audit/gateway-coverage-known-gaps.json with the input that is missing (the shipped launch table and bundles too), and a listed
entry that is covered or ungated fails too; each entry names its missing input as one kind of a closed set, the file's
kinds table stating what would close it. A catalog's gate is decided per pair: a row is gated when its model's maker
(maker, the namespace of its models.dev canonical_model_id) is its provider's maker (gate.makers, declared in
audit/magpie-makers.json with the Magpie source line it reads). The rest of the catalog, and every model on
audit/gateway-out-of-scope.json (retired; deprecated, with the vendor's shutdown date; unlisted, absent from a maker page
that enumerates the callable model ids, the file's id_lists; a moving -latest pointer; special-purpose; each with the
maker's dated notice), is a printed report, never a failure. The same check refuses an alias whose two names the saved
models.dev listings tell apart (audit/models-dev-names.json, written by audit/magpie_catalog.py --names-out; rule in
calibration/README.md, To add a model), and does not count as covered a pair
whose provider's own listing gives the name another canonical id than the ids of the row it resolves to (its own, and the
undated ids of the names moved to it: a listing repeating a moved name is that row; known-gap kind
other_weights_on_provider, both ids on the entry), the row being the one accounts.json provider_names makes it on
that provider (the rule in router-internals.md, One resolver);
every provider_names declaration must agree with the saved models.dev listings, and a listing of a maker's default name
on a provider that declares nothing must be the default's row or repeat the name, and a community declaration of
another row on a listing that only repeats the name is refused (declaration_violations), counted on each run as listings
under a default, under a provider's declaration and under neither. quota_cost is the quota economy: the part of the
task's spend that lands over the recovery line of the account's quota window, priced in panel-SD score units. The window's
price comes from a value ladder built over the demand grid quota_economy.FIVE_AXIS_DEMAND_GRID (levels 0–3 on the thinking
categories), and its level-3 points read the fit with the ceiling as cap. So a model that raises a ceiling moves quota prices
for every task, at every demand level, not only for level-3 tasks. Measured on the test fixtures when the ceilings were
introduced (2026-11-13), the fit unchanged: the Claude window priced at 0.02511 before and 0.01043 after (Fleet fixture,
Claude and Codex 60% used). Equal net scores
N go to the candidate that starts sooner (shorter wait before reset), then finishes sooner, then spends fewer list-price USD,
then has the higher demand-weighted category level and preferred harness (candidate_ranking.five_axis_order). Expiring quota is
not a tie-break: under-line allowance already lowers quota_cost. A near tie needs no caller action: decision.margin is the
winner's lead in N over the best candidate of another model (none when the route is forced or no other model is in the pool the winner was chosen from: the candidates within can_wait_hours ranked by five_axis_order, else—when nothing can start within can_wait_hours—the eligible waiting candidates ordered by earliest start first and five_axis_order on equal waits, so the caller defers to the soonest reset and rolls again then),
and it is information only.
Hard gates run first: sign-in and credential health, host policy, modality (text-only models never get visual work),
local_only, a demanded category with no data, and per-window safety reserves net of in-flight work. A bundle that draws from
several pools must clear every window; the tightest window binds. The same model on a different harness keeps its score
(Codex vs Pi is only a tie-break step for read-heavy vs. edit-heavy work). Unknown capacity stays unknown: the account stays
out of automatic routing until public data has it. A free allowance whose vendor publishes no capacity at all, declared so
with the vendor page and the date read (capacity_unpublished on its plan in plan-templates.json), is an ordinary quota
pool: its capacity is the larger of this account's own observation at its limit error and a dated maintainer measurement
shipped beside the declaration (capacity_measured), both lower bounds, either alone when only one exists, else unknown as
above; once known it is priced, waits and recovers like any
window (free pools). A named model matches over every bundle existing on the addressed accounts before any preference, availability or effort filter (account_fleet.pin_pool -> pin_matching_bundles: a bare name names every bundle of its row_key across accounts, a prefixed P/rest obeys P—advertised spelling or P's account, provider, bundle_providers or Magpie preset bundle_presets—a prefix naming nothing in the pool is dropped in _unrecognized_prefix_matches and rest is read from the start, and a pin with an empty / or : segment or incomplete auto: id is refused at the caller boundary as invalid_model_pin while an already-stored malformed override stays inert until expiry, never comparing a resolved row id against a raw spelling or re-resolving a row key as a name; when a named model's matching bundles are held back only by resetting quota windows or cadence, plan defers to its earliest-starting bundle rather than substituting another model or blocking, and returns choice: none / named_model_unavailable only when every matching bundle is excluded by a fact; Pins).
A metered USD account is not one of those resetting windows. The account, the spend reading, the balance, and the leftover-field cleanup are defined in Metered USD.
Panel membership is declared (owner, 2026-11-18): calibration_panel.members in accounts.json, a dated maintainer list only
the owner changes (definition: calibration/README.md). A new row, even one
every board lists, is scored against the panel and never joins it, so it moves no panel score and no target (it can raise a
ceiling). A change of members moves sd_panel, t1 and t2, and with them the level-2 cap and the exchange rate between
ability and quota cost, so agentcompass data refresh (and five_axis.py) compares the declared panel with the shipped
five-axis-scores.json: when the members differ it prints the added and removed models and, per category and
facet, the old and new sd_panel, t1, t2 and ceiling, then exits 3 (refused) and writes nothing unless --accept-panel-change is
passed. An accepted change is recorded in anchor.panel_change (date, added, removed, shifts) and carried forward until the next.
Category scores live in skills/agent-compass/references/five-axis-scores.json,
and plan window structure in skills/agent-compass/references/plan-templates.json.
| Layer | What it is | Required? |
|---|---|---|
Core: skills/agent-compass |
Classifier, allocator, ledger, and roll (classify → allocate → launch with explicit permission mode and parent-session contract). Python 3.11+, Windows-first, POSIX-compatible. |
Yes |
Gate: setup/router_gate_hook.py |
Pre-tool spawn gate and configured context rotation threshold (rotate_after_carried_tokens, set in the tray) check for hosts with pre-tool hooks. |
Opt-in |
Tray: tray/ |
Windows system tray, decision console, quota view, and the services the tray hosts (usage-float, codex-chatgpt-web, dot2api, easytier). |
Optional |
What a released version wrote for you is kept: each single-file step below carries its file into the current shape in memory when read and takes the current shape the next time that file is saved (its read never writes). The one cross-file step (host_policy.upgrade_legacy_disabled) carries verified: false from accounts-override.json into host-policy.json on a live fleet load (account_fleet.load_accounts(read_only=False)) and in agentcompass setup, while read-only paths (doctor, plan --dry-run, route_simulation, host_policy.load_policy) never write and still enforce the exclusion in memory. The steps are:
user_scores.LOCAL_UPGRADES:user-scores.jsonof an earlier schema.accounts_override.LOCAL_UPGRADES:accounts-override.json. A reason string indisabledis read astrue, as releases through v0.5.0 read it. Themigration_ambiguous_enabledrecord of the v0.2.0 to v0.5.0 tray is dropped, because those releases applied none of its entries. Obsolete meter fields on a dollar account (windows,capacity_usd,burn_pct_per_worker_hour,burn_basis,budget_duration,timezone, a nestedlitellmobject, orbackend_kindoflitellm/proxy/api-proxy) and a top-levellitellm_proxiessection (v0.1.0 to v0.5.0) are dropped on read while keepingendpoint,api_key,budget_usdand every other field. Anallowed_cwdbecomes acwd_regexonly where the regex accepts exactly the directories the v0.5.0 matcher (account_fleet.account_cwd_allowed, which compared path components) accepted: a path with a drive (D:/work/app, any case or slash, a trailing separator,.,..or doubled separators in it), or a relative name with no.or..segment (work/app, found anywhere in the directory). A~path, a path without a drive (/work/app, which v0.5.0 resolved against the current drive) and a relative.or..are refused with the edit that carries them, not guessed. A directory is matched in its normalized form (D:/work/app/../app2isD:/work/app2) by everycwd_regex.host_policy.upgrade_legacy_disabled(host_policy.LEGACY_DISABLED_UPGRADE): an account carryingverified: falseinaccounts-override.json(written by v0.1.0 to v0.5.0 setup or hand-edits to turn the account off) is carried intohost-policy.json(allowed_accountsomitting it,known_accountskeeping it sosync_discovereddoes not re-add it) and then removed fromaccounts-override.jsonwhile keeping every other field;host-policy.jsonis written first under process locks (override_store.locked). Read-only callers (doctor,plan --dry-run,route_simulation,host_policy.load_policy) do not write;host_policy.load_policystill excludes those accounts in memory whether or nothost-policy.jsonexists, and a failed write surfaces the unwritable file indoctorand plan warnings.state_upgrade.HOST_RULE_UPGRADES: ahost-rules/shared.md,codex.mdordaemon-append.mdoverlay.python -X utf8 @@ROUTE_JUDGE@@becomes@@AGENTCOMPASS@@, andROUTER_WORKER,ROUTER_ACCOUNTS_OVERRIDE,ROUTER_LIVE_MODELSandroute-agent-worktake their current names. The overlay file itself is never rewritten, and the words of the overlay are the user's own: only the retired placeholder@@ROUTE_JUDGE@@on its own, which cannot be rendered, is refused. The other files inhost-rules/(dispatch.md,personal-routing-policy.md) are not overlays and are never checked.provider_inventory.LOCAL_UPGRADES: the removals you made in a launcher live inprovider-inventory.json, so that file is read before it is replaced. Theroute-manager.providers.v2.localschema of v0.1.0 to v0.3.1 holds the same removals as today's and is read as the current one; an inventory that cannot be read, or one of an unknown schema that holds removals, is refused. One of another schema without removals holds only derived data and is replaced by the next publish.plugins.load: theusage-float-autostart-disabledmarker keeps Usage Float's autostart off until the plugin table is saved, which also removes the marker.
Caches, ledgers and the dispatch database are not migrated: they are rebuilt or skipped. A decision of dispatch.sqlite3 an earlier version recorded in a shape this one does not read (an older task profile, or a field AgentCompass sets for itself in its stored task, such as the force_fast v0.7.0's record --fast wrote) is refused on its own (decision <id> was recorded by an earlier version of AgentCompass (...); roll or record it again) while new dispatches proceed, and a dispatch routed before the update that fails after it ends with older_profile and a reason instead of being replanned. A database without tables gets them on first use. The activity file, the JSON caches, the ledger rows of an older shape, ~/.usage-float/usage-cache.json and ~/.cache/agentcompass-calibration are read as empty or skipped, so doctor does not list them. Run:
agentcompass doctordoctor inspects local state read-only without modifying user files and lists only what needs you: files that cannot be carried without guessing, a provider inventory or database that cannot be read, installed hooks, skill links and global rule blocks, and the leftovers named below. Each line prints a fix that works when followed:
- Re-run
agentcompass setup(agentcompass setup --yes --hooks) — refreshes global rule blocks, skill links, andPreToolUse/tool_callhooks. - Edit the file as the message says — an
accounts.<name>.allowed_cwdnext to acwd_regex(remove theallowed_cwd; this widens the account to what thecwd_regexallows, because v0.5.0 applied both) or one that is not carried (write thecwd_regex), ahost-policy.jsonwith a field or list shape this version does not know (no released version wrote one), an entry ofuser-scores.jsonthe message names, or ahost-rulesoverlay that uses@@ROUTE_JUDGE@@alone. - Delete a named file, with what the deletion discards printed next to it:
accounts-override.jsonwithoutschema_version(the v0.1.0 full copy; discards every account choice in it, the tray writes a new file),host-policy.json(discards which accounts take part in automatic routing on this machine; every account does again),user-scores.json(discards your own scores), a host-rules overlay (the shipped default rules are used),router-overrides.json(the temporary priorities it holds),provider-inventory.jsonthat cannot be read (discards which credentials you removed in the launcher),dispatch.sqlite3that sqlite cannot read (the recorded decisions and the reservations of running workers).
A dollar account is an accounts-override.json entry with billing: metered, a non-empty endpoint, a non-empty api_key, and an optional budget_usd greater than 0. A metered account without an endpoint is not this account. Subscription windows are not this account.
A Claude or Codex harness that has both a base URL and an API key, and whose base is not https://api.anthropic.com or https://api.openai.com, is a candidate dollar account. Discovery stays on the local files. Each usage poll reads that key again from the harness configuration. The key is not written to accounts-override.json, the usage cache, or any other file. Those two official hosts are not probed. An explicit Magpie gateway (usage-float.json with source: magpie, or a usage-cache row whose backend_kind is gateway) is not a candidate. A Claude harness with ANTHROPIC_AUTH_TOKEN on a non-official HTTPS base is a live subscription source until a usage probe records that credential as not Magpie; it is not a candidate, and the usage poll keeps reading its subscription windows. After that record, the harness is a candidate. ANTHROPIC_API_KEY alone on a custom base stays a candidate. One harness whose Codex config is not valid UTF-8 is skipped; the other harnesses and the handwritten dollar accounts are still read. A handwritten dollar account with the same provider id is the account that is read. The same origin and the same key are one account, and the handwritten entry wins; its endpoint, key, and budget are the ones read. A different key at that origin is a separate account and shows its own spend.
Spend is read only from GET {origin}/key/info. The request does not follow a redirect, so the key is not sent to another origin or another path. No completion request is sent. A 200 with a spend number displays 已用 $X, or 已用 $X / $Y when max_budget is present. That reading is stored for the key and base that were sent. If either has changed when the reading is stored, the reading is discarded and the new key does not inherit it. The stored spend is what changes a candidate's billing from unknown to metered. Category evidence stays with that same key and base, and the amount follows the latest read (类别证据保留、金额按最近一次读取). A later 401 or 403 shows no number, and the hover says there is no permission to query usage, the same display as an account that has not succeeded. It does not keep the previous dollars on screen. A later timeout, network error, redirect, or other ordinary read failure is a read failure or a stale reading under the existing cache rules. It is not a new success and it does not reset the failure count. That category evidence is dropped only when the key or base changes. On a candidate, a 401 or 403 does not by itself make billing metered when no spend has been stored. For an accounts-override.json dollar account, a miss with no stored category evidence is an ordinary read failure and the hover names that reason. For a candidate with no stored spend, a 404, a timeout, or any other miss leaves billing unknown and shows no number. Routing adds no rule for a missing amount: that stays the existing data gap.
With a budget, the in-memory fleet has windows.balance (no hours) and capacity_usd.balance. Remaining is budget minus spent. The existing starter safety margin excludes the account when that remaining is inside the margin. The balance does not reset (resets_at is null, reset_in_hours is null). A window whose hours is absent never moves its recovery clock (elapsed_frac stays 0). With no budget there is no window, the account is not excluded for exhaustion, and it stays a metered last resort (quota_pools.metered_usd_uncapped).
Old meter fields on that account (windows, capacity_usd, burn_pct_per_worker_hour, burn_basis, budget_duration, timezone, a nested litellm object, or backend_kind of litellm / proxy / api-proxy) and a top-level litellm_proxies section in accounts-override.json are dropped automatically on read by accounts_override.LOCAL_UPGRADES and omitted on the next save, leaving endpoint, api_key, budget_usd and every other field intact. Obsolete usage-config.json or Usage Float keys (llm_proxy_timezone, llm_proxy_budget_duration, llm_proxy_api_key, llm_proxy_endpoint, llm_proxy_provider_id, and litellm_proxies) are named by doctor; agentcompass setup or saving Usage Float settings once removes them.
A machine switching from a git checkout to the installed product keeps plugins under ~/.agent-compass/plugins/<id> and the EasyTier node under %ProgramData%\AgentCompass\easytier:
# 1. Quit the checkout tray, run AgentCompass-tray-setup.exe from Releases, then re-run setup with the installer's exe.
# Setup replaces hook, skill and rule entries that pointed at the checkout or a wheel.
& "$env:LOCALAPPDATA\AgentCompass\cli\agentcompass.exe" setup --yes --hooks
# 2. Install or re-register the EasyTier node in %ProgramData%\AgentCompass\easytier (asks for administrator rights through UAC).
python -X utf8 "$env:LOCALAPPDATA\AgentCompass\app\current\tray\easytier_setup.py" install --binaries DIR --config THIS_HOSTS_TOML
# 3. Remove a leftover wheel so it cannot shadow the installer's exe on PATH (`agentcompass doctor` prints the exact command).
uv tool uninstall agentcompass # or: python -m pip uninstall -y agentcompass- The router is a Python package, not a frozen executable: skills stay real directories because Claude, Codex and Antigravity read
SKILL.md, andagentcompassruns the sibling scripts by path (python -I). - A packaged install (no
.git) checks GitHub Releases at most once per 6 hours using conditionalETagrequests and a failure/rate-limit cooldown on periodic checks (one cache shared by the tray's AgentCompass update and the hosted services check; a failed non-forced read such as a rate limit falls back to the last good release, labelled with its time; an explicit update or forced check that hits an API rate-limit refusal falls back to thereleases/latestweb redirect andexpanded_assetspage with the same SHA-256 verification) and points the installer build at the tray's Update AgentCompass button and a uv install atuv tool upgrade agentcompass; a development checkout fast-forwards with git.AGENTCOMPASS_GITHUB_ORGandAGENTCOMPASS_USAGE_FLOAT_REPOoverride the org and the usage-float clone URL. - Tray extras:
pip install "agentcompass[tray]".packaging/build.ps1builds a one-folder PyInstaller tray (AgentCompass.exe) and CLI (cli/agentcompass.exe), a versioned application code package (app-<version>.zip), a releasemanifest.json, and with Inno Setup 6 a per-user installer (AgentCompass-tray-setup.exe,PrivilegesRequired=lowest) that registers the "AgentCompass" scheduled task; uninstall removes the task, thePRO_CONSULT_*/CODEX_WEB_GPT_EXTERNAL_TRAYvariables and the Startup shortcuts. Builds are unsigned unlessAGENTCOMPASS_SIGNTOOLand a certificate are set (SmartScreen will warn; seepackaging/SIGNING.md). Tagged pushes (v*) attach the wheel,AgentCompass-tray-setup.exe,app-<version>.zipandmanifest.jsonto the Release. - Incremental Windows updates (since
0.4.0):- The Windows installer separates the frozen runtime (
_internal/,cli/_internal/, boot executablesAgentCompass.exeandcli/agentcompass.exe, andruntime-info.json) from application code (app/current/, unpacked fromapp/packages/app-<version>.zip, with the previous version retained atapp/previous/for automatic startup/update rollback). - On update (
tray/updates.py), an installed tray readsmanifest.jsonfrom the Release and comparesruntime_fingerprint(andrequired_runtime_fingerprint/min_runtime_versioninsideapp-<version>.zip) against<install>/runtime-info.json. - Code-package update (
app-<version>.zip) is used whenever the runtime fingerprint matches: only Python code (tray/,agentcompass/), bundledskills/andsetup/files, policy data,i18n_catalog.py, and scripts liketray/easytier_supervisor.ps1changed. The updater downloadsapp-<version>.zip, verifies its SHA-256, atomically swapsapp/current/(keepingapp/previous/), checks the published reference data (agentcompass data --refresh), and restarts the tray. Ifapp/current/ever fails to load at startup,app_bootstrap.pyautomatically falls back toapp/previous/. - Full installer update (
AgentCompass-tray-setup.exe) is required and chosen automatically when any part of the runtime changes:- Python version or PyInstaller / boot executable loader (
packaging/app_bootstrap.py,packaging/tray_entry.py,packaging/cli_entry.py) changes; - Bundled third-party libraries with native extensions (
psutil,pystray,Pillow,pywin32) are added, removed, or upgraded; packaging/agentcompass.issinstaller actions change (scheduled task registration, environment variable writes/cleanup, shortcuts, uninstall cleanup, post-installagentcompass setup);packaging/agentcompass-tray.specpackaging configuration changes (exe names, icons,hiddenimports, files bundled into the runtime);- The CLI executable's runtime portion (
cli/agentcompass.exe/cli/_internal/) changes; - The code package's
required_runtime_fingerprintormin_runtime_versionexceeds the installed runtime.
- Python version or PyInstaller / boot executable loader (
- Setup follows the update: on a machine that ran
agentcompass setup(~/.agent-compass/setup-manifest.jsonexists, untilagentcompass uninstall), an update applies it again with the new files,agentcompass setup --yes --no-usage: skill links, rule blocks and an installed gate hook are refreshed, and the hook choice stays as it was. A run without a prompt makes no account choice either: an account taken out of host policy stays out, and only an answer given at the setup prompt (or--disable) changes it. The installer runs it itself before it starts the tray (also when run by hand;/SETUP=hooksor/SETUP=nohooksstill decides the hook explicitly); after a code-package, wheel or Git update the updater runs it, and a failure is reported without stopping the tray restart. A machine that was never set up is not set up by an update. - The installer and a running tray: the installer stops the tray, then waits up to a minute for the tray's and the CLI's program files to be released. If they are not, it exits with code 7 before changing any file, and it starts the tray it stopped again whenever the install does not finish. The installer starts the tray through the
AgentCompassscheduled task, never as its own child process, and builds withRedirectionGuard=no: a child of Inno Setup (6.7 and later) inherits Windows' RedirectionGuard and cannot follow a junction a non-elevated process made, which is what the skill links ofagentcompass setupare. - Transition compatibility (
<=0.3.18→0.4.0): Legacy clients (<=0.3.18) only look forAgentCompass-tray-setup.exein a Release and upgrade to0.4.0through the full installer; from0.4.0onward, clients carryruntime-info.jsonandapp/current/and useapp-<version>.zipfor subsequent code-only releases.
- The Windows installer separates the frozen runtime (
- Reference data ships with the version and the maintainer publishes changes between releases (a new model, a corrected hand-written score or launch row):
roll/plancheckpublished/<schema>/on the repository'smainbranch at most every 6 hours in a background process, verify every sha256 against its manifest, and use the fetched set only when it is complete, accepted by this version's own readers (an offline plan completes with it) and newer than the installed copy. A process keeps the whole set it took; a reader that fails on a fetched set all the same reruns the read-only part on the shipped set (when the fetched set is taken again is stated in Never on the failure line). Your own settings (user-scores.json,accounts-override.json, host policy) still win. Nothing reads the boards at run time.agentcompass datashows the source,agentcompass data --refreshchecks now,AGENTCOMPASS_PUBLIC_DATA=offdisables it (details). - Loopback ports default to Dot2API 8788, ChatGPT Web 17843, account login 17851, EasyTier 15888, Muse2API 18610.
AGENTCOMPASS_PORT_*overrides~/.agent-compass/ports.json, which overrides the defaults;doctorreports conflicts. - Paseo dispatch via
rollneeds Node.js:npm --prefix setup/paseo-bridge ci(the host rollout script does this when it detects Paseo). - The demo uses a fixed synthetic quota snapshot and reference fleet, makes no network calls, writes no ledger and launches nothing. Add
--format jsonfor the full breakdown.
Companion repositories and runtime directories are separate local checkouts or ignored host state, not bundled here. Contributors should read AGENTS.md for the module ownership map, regeneration commands, and architectural invariants.
| Path | Description |
|---|---|
agentcompass/ |
Public console package (agentcompass), checkout vs. installed path resolution (locations.py), doctor.py, and canonical loopback ports (ports.py). |
skills/ |
Agent skills (agent-compass, dot-subagent, chatgpt-pro-consult), including the split allocator modules (allocator, account_fleet, task_intake, axis_scores, quota_economy, quota_pools, quota_overrides, candidate_eval, candidate_ranking, ledger_snapshot, worker_sessions), the CLI stages (route_judge) with their owner modules (scorer_client, decision_ledger, subscription_cli, usage_reading, env_vars), dispatch/usage scripts, and calibration/ (agentcompass data refresh). |
setup/ |
Onboarding (onboard.py), global host rule and skill sync (sync_host_globals.py, host_rules.py), PreToolUse / tool_call spawn and rotation gate (router_gate_hook.py), and Paseo SDK dispatch bridge (paseo_dispatch_bridge.mjs). |
tray/ |
Windows tray (app.pyw), decision console shell (router_window.py) and page mixins (panel_scoring.py, panel_quota.py, panel_policy.py, panel_models.py, panel_strategy.py, panel_system.py, panel_plugins.py, panel_widgets.py), Tk-free view model (router_data.py), radar_chart.py, quota_line.py, decision_theatre.py, updaters, and service supervisor. |
packaging/ & audit/ |
Wheel/PyInstaller/Inno Setup bundling (app_bundle.py, app_bootstrap.py, check_payload.py), behavioral harnesses (verify_release.py, sandbox_check.py, foreign_machine_check.py, zero_dispatch_check.py), read-only ledger compliance audit (audit/router_audit.py), the maintainer calibration report (audit/calibration_report.py), and the gateway coverage check (audit/gateway_coverage.py over audit/gateway-catalogs/, the known-gap and out-of-scope lists; audit/magpie_catalog.py builds the Magpie catalog). |
usage-float/, dot2api/, codex-chatgpt-web/, easytier/ |
Optional companion checkouts and runtime state; see usage-float. |
AgentCompass checks local account availability on every allocation through
skills/agent-compass/scripts/provider_inventory.py without making network calls:
- Local discovery: Inspects native CLI sign-ins (
~/.claude,~/.claude-*,~/.codex,~/.codex-*,~/.grok,agy), Paseo provider bindings (~/.paseo/config.json), CC Switch SQLite provider/health records, and Magpie gateway configurations (usage-float.json/settings.json). - Pause and resume: Disabled or removed accounts, rejected credentials, or plugins turned off in the tray (
status=paused,reason=plugin_disabled_in_agentcompass) are excluded on the next allocation and resume once credentials or plugins are restored. - Account states: Each account has one state, used by dispatch and every account list (
account_state.py).ready: the reading is good.plan_inactive: the plan is free, expired, cancelled or unpaid, the usage API answered 402 or a subscription error code, or a launch reported a lapse; excluded at once.usage_failing: the reading came back with an error, is missing, or (with no error) has not moved for 2 hours; shown at once with its reason and last good reading, dispatch carries a warning, and the account is excluded once that reading is 6 hours old (AGENTCOMPASS_USAGE_FAILING_EXCLUDE_HOURSorscoring.usage_failing_exclude_hours).auth_failed: 401/403; excluded at once. A good reading returns the account toreadywith no action.plan/rolllist all of these inwarnings. - Plan sources: The usage API's
plan_typeoutranks the credential's claim, which is the fallback; a disagreement is a warning. An account's directory comes from its own configuration, never fromCLAUDE_CONFIG_DIRorCODEX_HOMEin the caller's environment, and a process with those pointing elsewhere does not publishprovider-inventory.json.plan_state_residue.pylists what the earlier behaviour left behind (read-only). - Shared quota owners: Multiple launchers or aliases pointing to the same subscription share one quota owner so concurrent tasks do not double-count remaining allowance.
Inspect the live inventory at any time:
agentcompass providersQuota windows are collected by usage_collector.py (agentcompass usage runs it once; the tray runs it every 5 minutes) into ~/.agent-compass/usage-cache.json with a receipt at ~/.agent-compass/usage-collector.json. Routing only reads that file (agentcompass usage --show prints it), or ROUTER_USAGE_CACHE / --usage-cache when set. The usage-float display plugin is optional. The collector code derives from usage-float (MIT; see THIRD_PARTY_NOTICES.md):
- Multi-account discovery: Detects primary and additional Claude/Codex homes (
~/.claude,~/.claude-*,~/.codex,~/.codex-*), named Paseo accounts with configured homes, and remote Magpie gateways (magpie_usage.py). - Window ids: a window is named by how long it is, whichever reader read it. The ChatGPT usage endpoint, read for Codex and for Pi, gives
five_hour,usage(7 days) orusage-<minutes>mfrom each slot's own length (usage_core.rate_limit_windows), never the slot's name, so a configured window that a fresh reading reports is observed. - Polling cadence: Active accounts poll roughly every 5 minutes, idle accounts every 30 minutes, and accounts with unknown/stale activity every 15 minutes. Antigravity, whose reading runs
agy -p /usage, polls every hour whatever its activity; a manual refresh reads it at once. Failed probes follow the same cadence and per-credential429backoff. - Read-only credential handling: The collector never rotates or overwrites CLI OAuth tokens. Token refresh is left to the owning CLI (
claude,codex,agy). Snapshots are bound to a one-way SHA-256 fingerprint of their credential source and updated via cross-process file locks and atomic file replacement.
The account's Paseo provider extends Claude Code with both CLAUDE_CONFIG_DIR and CLAUDE_SECURESTORAGE_CONFIG_DIR set to its signed-in home. Keep both paths identical: an empty secure-storage path can select the primary account's credentials.
After signing in to the isolated home:
- Close the Usage Float window (so its shutdown does not overwrite
config.json). - Run
python setup/register_claude_account.py --account team-backup --home <signed-in-home> --label 'Team backup'. The script backs up existing settings, registers the named Paseo provider, enables that account's7dand5hUsage Float rows, and adds its projects directory to capacity analytics.--accountis required;--homedefaults to~/.<account>. - Run
paseo reloadand reopen Usage Float.
The tray menu is at most two levels deep and performs no blocking I/O or network probes when opened:
- Open AgentCompass (default action on left-click) — opens the main decision and management panel.
- Pre-Reset Priority — quick submenu to boost a subscription whose weekly quota is about to reset.
- One single-click entry per enabled tray-hosted service that has a window:
Usage Float: …— shows the floating HUD or auxiliary-screen panel.ChatGPT Web: …— opens the ChatGPT Web launcher window.EasyTier: …— opens the mesh LAN status window.
- Exit — closes the tray icon while leaving background bridges and services running (
app.pyw --attach-onlyreconnects without starting paused services).
The tray icon displays a status dot: green when core usage collection and all enabled always-on plugins are healthy, amber while a pre-reset priority boost is active, and red when an enabled service has stopped.
router_window.py runs in its own pythonw process so closing the window releases UI memory immediately, delegating each page to tray/panel_*.py:
- Decision Console (
panel_scoring.py):- Dry-Run Simulator: Test any task description or preset with custom hours,
local_only, andneeds_visualflags usingallocator.planwithout writing to the ledger. - Ledger Replay: Browse the last 30 router decisions and click any entry to replay its historical parameters against current live quota windows.
- Decision film (
decision_theatre.py): Replays a decision step by step (task → kind → routes → ranking → five-axis radar) comparing the winner against the best-ranked other model (routes of the same model share axis scores). - Quota line (
quota_line.py): Plots up to four windows on their own reset clocks (the chosen window first, then sibling and remaining windows): the straight recovery lineC × elapsed / period, actual usage up to now (Used first under the line, Held back over it; solid where readings were recorded in the current period, dotted when fitted; display-only and never read by the router's economics), the chosen task's projected spend up to the reset edge, and the closing pace line to reset. Simulations and snapshots without a saved block derive it vialedger_snapshot.with_quota_linefromdecision.system.quota_windowsand candidateeconomy; malformed fields degrade gracefully without blocking the rest of the decision. - Radar Comparison: Switch between Decision Score (5D) (the winner against the best-ranked other model on creativity (
creativity), coding, aesthetics, tool operation, and quota economy, mapped to0..1shares(min(z, t3) - t1) / (t3 - t1)) and Model DNA (5D) (any two models on the same five axes from their static profiles; quota economy there is price economy1 − usd_per_hour / max_usd_per_hour, not live quota). Each model is a sheet of tinted glass inside a hairline frame of full scale, and the chart shows the two models' five values and nothing else. Hovering any vertex shows the formula and raw values; in a decision, a category the task demands at level 3 also shows its score above the anchor and the level-3 cap (the ceiling, with the model that sets it), since the spoke stops at the panel's best.
- Dry-Run Simulator: Test any task description or preset with custom hours,
- Account Quotas & In-Flight Tasks:
- Live status badges (
Ready,Paused,Plugin Disabled,Out of auto routing), remaining percentage and API-equivalent USD per window, 3h/24h burn rates, reset countdowns, one-click quota refresh, and active worker sessions with their cumulative uncompressed context against the configured context rotation threshold (rotate_after_carried_tokens, set in the tray).
- Live status badges (
- Model Settings — three tabs: Models & Boost, Scores & Capabilities, and System Options.
- The home page shows discovered harness/account combinations, selected model chips and a model picker with select-all, invert and clear. Model discovery runs in the background through registered
paseo_provider,openai_compatibleorstaticprobes. Discovered chat models become selectable bundles scored from their default profile (subscription pools on by default, metered proxies off); models the router cannot run are not listed. The account directory icon edits one shared, case-insensitivecwd_regex. Preferences are sparse overrides with backups under~/.agent-compass/backups/. - Temporary priorities remain on the home page. Scores & Capabilities (
tray/panel_strategy.py,tray/score_overview.py) holds the user's settings (weekly safety margin, short-window floor, context rotation thresholdrotate_after_carried_tokens, and their presets), the four categories (Creativitycreativity, Coding, Aesthetics, Tool operation) with their facets, boards, data dates, panel targets per level, coverage and the read-only continuity value with its derivation, the quota economy term, and every model's category levels on the demand scale (user_scores.z_to_level: 1 the panel's weakest, 3 its best, higher shown as the number it is) with status, evidence, and read-only public-data reference comparison (data_reference) on hover. Manual scores remain authoritative (user > maintainer > measured > estimated);agentcompass score suggestsurfaces read-only update suggestions where measured boards diverge, while manual edits run throughuser_scores.set_score/clear_score(agentcompass score set|clear). - CLI updates live in the home toolbar: Update checks and updates supported installs in the background, and Auto-update daily enables daily maintenance. Active CLI sessions never block an update and are never stopped. Native installs use the vendor's self-updater. Before npm replaces a Windows native image that is locked, its old image is renamed outside node_modules and an unlocked copy is put back for npm; retained images are cleaned during later maintenance once Windows permits deletion. Provider environments select the same installation and npm prefix the router launches. Unknown/manual installs receive no guessed installer; Grok Bot's pinned build stays on Integrations. The CLI log opens from System Options.
- A native check that reports an available update must be followed by a version change; a successful command exit with no change is
failed. Without a native check, a successful exit with no version change isunverified, excluded from the current count and shown as needing attention in the pill and progress window. - Accepted limitation — mapped images: retaining a locked exe/dll/.node keeps the already-mapped process running; new launches use the replacement file. Claude installations whose npm shim launches a native binary use this preservation path.
- Accepted limitation — later file reads: files opened later through the original installation path can contain the new version. In particular, the same Node process (such as Pi) can keep cached old JS modules while a later
requireor cache reload reads new JS; executable-adjacent resources can also be new. The old installation directory is not frozen.
- A native check that reports an available update must be followed by a version change; a successful command exit with no change is
- The home page shows discovered harness/account combinations, selected model chips and a model picker with select-all, invert and clear. Model discovery runs in the background through registered
- Hosted Services (托盘托管):
- One card per service the tray hosts, with
EnabledandAutostarttoggles, health status, and service-specific controls. The page lists the services supported today.
- One card per service the tray hosts, with
The tray hosts local services for the agents on this machine: it installs each one on first enable, starts and stops it, shows its state and keeps it updated. The table is the supported set. State is stored atomically in ~/.agent-compass/plugins.json:
| Service | Window in Tray Menu | Autostarts by Default | Description |
|---|---|---|---|
Usage Collector & Capacity Stats (core) |
No (background) | Always on | Runs the router's collector (agentcompass usage) and tray/capacity_stats.py --once every 5 minutes, writing ~/.agent-compass/usage-cache.json and ~/.agent-compass/capacity.json. |
usage-float |
Yes | Yes | Borderless subscription quota HUD and live wallpaper switcher (~/.agent-compass/plugins/usage-float). |
chatgpt-web |
Yes | Yes | Local ChatGPT Web bridge (127.0.0.1:17843) run from ~/.agent-compass/plugins/chatgpt-web with anchored patches from tray/chatgpt_web_patch.py. |
easytier |
Yes | Yes | Per-host mesh VPN supervisor running easytier-core.exe (127.0.0.1:15888 RPC portal) via a SYSTEM scheduled task. |
dot2api |
No (background) | Yes | Local Dot2API server (127.0.0.1:8788) exposed via a Cloudflared quick tunnel; tray/dot_reconnect.py automatically registers new tunnel URLs in ChatGPT and prunes stale plugin entries. |
muse2api (opt-in) |
No (background) | Once enabled | Clones www222fff/muse2api (127.0.0.1:18610, data in ~/.muse2api/data) for headless Chrome muse.ai chat, image, and video generation. |
Sign in & import on the Muse2API card (tray/account_login.py) adds an account without DevTools or a browser extension. It opens installed Chrome on its own profile (%LOCALAPPDATA%\AgentCompass Account Login\chrome-profile, loopback CDP 127.0.0.1:17851), waits up to 10 minutes for hatch_sess and hatch_native_auth_device on muse.ai, reads them over CDP, posts them to /admin/accounts (refreshing the existing account when the session is already imported), and closes the window. Cookies are never written to disk by the shell.
Choosing a model in the Pre-Reset Priority submenu and the expected time to its reset (1, 3, 6, 12 or 24 hours) applies a +0.35 score boost and prices that subscription's weekly window as resetting at that time, so a nearer time is a stronger priority (~/.agent-compass/router-overrides.json); a model in effect offers Cancel Priority first:
- The submenu and the one-click buttons of the panel's model page show the same menu. It is the user's own list once edited (model page, Edit menu…: add any model of an account in automatic routing that a window of a day or longer binds, remove an entry with its
×), kept aspriority_targetsin~/.agent-compass/accounts-override.json; until then it is the list shipped inaccounts.json. A panel button opens the same expected reset times. - Requires a fresh usage reading no older than 15 minutes and remaining weekly quota above
safety_margin_pct(5%). - Once the weekly window resets, the allocator latches
reset_confirmed_atand retires the boost automatically, displaying aReset Confirmedbadge for 12 hours.
The node lives in %ProgramData%\AgentCompass\easytier: per machine like its task, outside any user profile, and untouched when the tray is reinstalled or uninstalled (both replace the installer's app directory). The tray remains unprivileged while AgentCompass EasyTier runs as a SYSTEM scheduled task (SDDL GRGX grants the interactive user only read/start/stop permissions on that task, while that folder, its AgentCompass parent, bin/, private/, logs/, and state/ are writable only by SYSTEM and Administrators; a pre-made junction there is refused):
python tray\easytier_setup.py check
python tray\easytier_setup.py install --binaries DIR --config THIS_HOSTS_TOML [--hook pre-start.ps1] [--legacy legacy.json] [--switch --expect-peer HOSTNAME]
python tray\easytier_setup.py switch|recover|rollback --expect-peer HOSTNAME
python tray\easytier_setup.py arm-recovery --expect-peer HOSTNAME --minutes 10
python tray\easytier_setup.py detach-switch --expect-peer HOSTNAME
python tray\easytier_setup.py cleanup
python tray\easytier_setup.py uninstallWhen landing AgentCompass on a machine, system-level skill loading is required so every coding agent session discovers agent-compass (and dot-subagent, chatgpt-pro-consult) regardless of the active workspace directory:
# Synchronize system-level skills and global rules (AGENTS.md / CLAUDE.md / GEMINI.md / Paseo prompt)
python -X utf8 setup\sync_host_globals.py
# Also install (or keep refreshing) the PreToolUse / tool_call spawn gate
python -X utf8 setup\sync_host_globals.py --hooks
# Preview only, or undo everything this setup recorded
python -X utf8 setup\sync_host_globals.py --dry-run
python -X utf8 setup\sync_host_globals.py --uninstallSafety properties of the sync (agentcompass setup runs the same code):
- Your text is never replaced. Rules go into a block between
<!-- agentcompass:begin -->and<!-- agentcompass:end -->; anything outside it is kept. - The shipped rules are a neutral English default (
setup/host_rules.py). To use your own wording, putshared.md(Claude, Pi, Gemini, OpenCode),codex.mdanddaemon-append.md(PaseoappendSystemPrompt) into~/.agent-compass/host-rules/; they are used verbatim, with@@AGENTCOMPASS@@(the router command:agentcompasswhen installed, otherwisepython -X utf8 <checkout>/agentcompass),@@ROUTER_HOOK_SCRIPT@@and@@HOME_POSIX@@filled in. - Every run that changes a file backs it up first into
~/.agent-compass/backups/host-setup-<timestamp>/, and records the change in~/.agent-compass/setup-manifest.json, which--uninstall/agentcompass uninstallreads to remove the blocks, hook entries, junctions and Paseo prompt again. - The spawn gate is opt-in (
--hooks). It blocks every native sub-agent launch, including Claude Code's built-in Explore agent, unlessrollhanded an expressible launch to this caller (status: native, carryingnative_toolandlaunch_fieldsindispatch.sqlite3, compared directly against the call's fields and consumed once on the launch it authorizes) or this session wrote a standalonerecordentry in the last 15 minutes (planrows authorize only Paseo schedule creation/re-targeting). Claude Code's built-in tool agents (web-fetch,statusline-setup,claude-code-guide) are not launches; a project or user agent definition that takes one of those names is. A model CLI asked for one answer from a shell (claude -p,codex exec) is a quick call and is not a launch either. The list and its reasons are in the dispatch rules. The gate governs dispatch, not communication: a message to an agent the caller does not own passes unchecked, and an account or model kept out of automatic routing still takes a route the user names (gate contract). Installations that already have the hook keep it up to date automatically. - Harness directories (
~/.pi,~/.gemini,~/.config/opencode, ...) are only written when that harness is installed.
System-level skill loading by host harness:
- OpenAI Codex (
~/.codex/skills/<name>): Linked as directory junctions to<repo>/skills/<name>, with global delegation rules in~/.codex/AGENTS.md(and~/.codex-*/AGENTS.md). - Claude Code (
~/.claude/skills/<name>&~/.claude-*/skills): Linked via directory junctions to~/.codex/skills/<name>, with global rules in~/.claude/CLAUDE.md(and~/.claude-*/CLAUDE.md). - Google Antigravity (
agy/ Gemini CLI):- Global skill roots must be registered as absolute paths in
~/.gemini/config/skills.json(~/.codex/skills,~/.agents/skills,~/.claude/skills). - Because Antigravity's Go
os.ReadDir1-level scanner skips top-level Windows directory junctions (ReparsePoint), any junctioned skill in~/.codex/skillsmust also be materialized as a real top-level directory in~/.gemini/skills/<name>containing a realSKILL.mdfile and live directory junctions forscripts/andreferences/(automated bysetup/sync_host_globals.py). - Global delegation rules must be synced to
~/.gemini/GEMINI.mdand~/.gemini/config/GEMINI.md.
- Global skill roots must be registered as absolute paths in
- Pi (
~/.pi/agent/skills/<name>) & OpenCode: Populated with skill junctions and globalAGENTS.mdrules (~/.pi/agent/AGENTS.md,~/.config/opencode/AGENTS.md). - Orca & T3 Code (orchestrator apps): Both run the real Claude Code / Codex CLIs on your own
~/.claudeand~/.codex, so those rules and skills already reach their agents. Orca additionally keeps a private Codex home per signed-in account (<Orca userData>/codex-accounts/<id>/home) and mirrors onlyconfig.tomlinto it, sosetupwrites the rules block and links theagent-compassskill there too.rollrecognises an Orca session (ORCA_AGENT_SESSION_ID/ORCA_TERMINAL_HANDLE) and a T3 thread (T3_MCP_URL+T3_MCP_BEARER_TOKEN, or--parent-host t3) and returns the host's own launch command (orca orchestration worker-start .../ the T3delegate_taskMCP tool) instead of starting a CLI worker that could not report back. The gate hook blocks both launch paths without a router record. - Paseo Daemon (
~/.paseo/config.json):daemon.appendSystemPromptmust be updated viasetup/sync_host_globals.pyso Paseo-spawned sessions inherit the routing and worker communication contract. - Cindy & Magpie (host-managed task / gateway plugins):
- cindy-agentcompass-plugin: Cindy manages its own task creation, runs and message history (
cindy.tasks.create/send/getRun/readMessages) and does not expose an addressable parent mailbox to child shells (raw shellrollin Cindy is refused). The Cindy plugin callsagentcompass roll --parent-host nativepurely for routing decisions and prompt packaging, then dispatches the task and collects[Worker final report]replies through Cindy's own task API. - magpie-agentcompass-router: Magpie manages its own local HTTP gateway and account pools. The Magpie plugin runs AgentCompass's task profiling and Model DNA routing at the gateway request layer (
magpie.hooks→magpie.middlewareand/v1/systemonedecision provider) to select<model>:<effort>per turn.
- cindy-agentcompass-plugin: Cindy manages its own task creation, runs and message history (
Installed product (the normal machine). The installer registers the "AgentCompass" logon task, and runs agentcompass setup --yes only when it was started with /SETUP=hooks or /SETUP=nohooks (the hook flag follows that value; without either, setup is not run); the tray's Update AgentCompass button does the update (code package or full installer, see section 3). The tray executable also runs its bundled helper modules, and these are the command-line forms of the same steps:
$tray = "$env:LOCALAPPDATA\AgentCompass\AgentCompass.exe" # the installer's default directory
& $tray --run-component deploy check # report what is in place and what is not; changes nothing
& $tray --run-component deploy install # ChatGPT Web patch and build, startup task, user environment variables
& $tray --run-component deploy restart # restart the tray without stopping background services
& $tray --run-component updates check # print whether a newer GitHub release exists (downloads nothing), then one line each for the Dot2API, ChatGPT Web and Usage Float clones: version and commits behind upstream
& $tray --run-component updates update # fast-forward the enabled hosted-service clones (Dot2API, ChatGPT Web, Usage Float, Muse2API), then print the same release notice
& $tray --run-component updates update-agentcompass # what the tray button runs: update AgentCompass itself and restart the traydeploy install does not link skills in the installed product (agentcompass setup does), and updates update never updates AgentCompass itself.
Git checkout (development). python tray\deploy.py <check|install|restart|all|icons|startup> and python tray\updates.py <check|build|update|update-agentcompass> take the same actions. Differences: deploy install also links the checkout's skills/ into ~/.codex/skills and ~/.claude/skills, updates check prints the checkout's git describe and a git pull hint instead of a release comparison (the three clone lines follow in both shapes), and update-agentcompass fast-forwards the checkout (git pull --ff-only, refused when the tree is dirty or the branch does not track origin).
# Hermetic pytest suites (isolated temp HOME/APPDATA per xdist worker; no manual env redirection needed)
pytest <test files of the touched feature> # a feature change within a version: only its own tests
pytest -n auto # regression: the full suite, only before a releaseCI (.github/workflows/ci.yml, on push to main and on pull requests):
tests(windows-latest): installs-e ".[dev,tray,calibration]"and runspytest -n auto -m "not slow", the fast suite under the same hermetic setup (conftest.py,hermetic_run.py). Tests markedslow(real subprocesses, packaging, sandbox checks, real Tk main loops) are not run there.posix-cli(ubuntu-latest): builds the wheel, installs it into a fresh virtualenv and runsagentcompass plan --demo --dry-runandagentcompass doctor, the macOS / Linux CLI path of the README.- Packaging, sandbox and tray-installer checks stay in
release.yml(tag push).python -X utf8 packaging/verify_release.pyruns the pre-release verification with the running interpreter, which must have the dev and tray extras installed (it names any missing module and stops); its report goes toverify-release-report/in the repository root unless--reportsays otherwise. - Lint:
[tool.ruff]inpyproject.tomlselects only defect rules (syntax errors, undefined names, unused imports and variables).ruff checkis not a CI step until the tree is clean under that rule set.
Maintainer-only and read-only for the whole run: it reads dispatch.sqlite3 and router-ledger.jsonl from the state directory, takes prices and capacities from the shipped reference data plus the plan facts already in the state directory's provider-inventory.json (never through fleet discovery, which rewrites that file), and writes only report.md and report.json. It compares expectation with outcome: classifier expected_hours against active duration (by work kind and by dominant demand category); recorded tokens at public list price against expected_usd, with the actual list-price USD per active hour against the usd_per_hour the estimate used (so the hours error and the rate error read apart) and the share of the window's cited capacity (by model and effort); and how dispatches ended (completed, failed, relaunched on another candidate, canceled, other, open, plus how many workers rotation replaced and how many started by rotation). Cache-write tokens are priced where the data lists a cache-write price; otherwise the USD is a lower bound (>=) with the cache-write token count beside it. Pinned (user_override) and --keep-whole dispatches are their own groups and stay out of the routed tables. Every cell shows its sample size, and a cell under MIN_CELL samples is marked too small to read. Ratios are medians of the per-dispatch ratios, and a retried task's later attempts are left out of the hours and spend cells (only the completed attempt carries active time). A Coverage block names what was not measured or not read: only completed dispatches carry active time and tokens, only Claude and Codex session logs are read, so other harnesses, non-Paseo hosts and failed or canceled dispatches record no measurement; unreadable rows and ledger lines are counted there.
python -X utf8 audit/calibration_report.py --since 2026-11-01 --until 2026-11-13 # writes <state dir>/calibration/<run date>/report.{md,json}A missing state directory or an unreadable database stops the run with a message naming the file. The default output directory is under the state directory; --out DIR writes the two files to DIR instead, the one place the run may write elsewhere. The files hold counts, medians and group names only (no task text, paths, ids or credentials), and nothing in them is a routing input: recorded outcomes never reach allocation. The maintainer reads the report and edits shipped reference data by hand; the loop and its boundaries are in audit/calibrate/SKILL.md.