Repository navigation
Tags
Tags
pool: the key helper stops the agent when no account is usable, agx s… …tatusline, live list says which session a run is (v0.4.23) - agx credential with no key to hand out (no pool member usable, a pinned member over its cap, a per-use API key, a login that does not resolve) now prints the placeholder agx-no-account-usable and exits 0, with the reason on stderr: Claude Code keeps using its previous key when the helper fails, so exit 1 let sessions run on past every cap; the placeholder makes the next request fail authentication and Claude waits, asking again, until a key is usable - when_none_usable stop (default) or keep (the old exit 1), per pool and in the new live block; agx pool show and the dry run name its source - live.jsonc records the refusal (no_key, no_key_brief, no_key_since, when_none_usable), key_at and in_use_since; live list, live show, whoami and the status line read "none (all over caps) since 10:52" - agx statusline (cost R) and a statusLine for every live run unless the user set one (live.status_line); --label and AGX_RUN_LABEL; run.jsonc records tty, parent and live.record_env values; live list shows label, folder, pid, last key, --wide adds terminal, parent, conversation and its title; live show and whoami JSON gain the same - tests: every refusal path under stop and keep, recovery, the views, label and records, status line; 26 new mutants; a gated end-to-end test against the real claude (AGX_E2E_CLAUDE=1): with 2.1.332 Claude stopped after the refusal under stop and finished on its old key under keep - docs: pool-rules (when no account is usable), login-pool, live-login, troubleshooting, config reference, live and launch commands, README FAQ, skill text, CHANGELOG
pool: --pool-schedule edits merge into the schedule, key= removes, --… …pool-schedule-replace (v0.4.22) - --pool-schedule 'NAME key=value ...' on an existing schedule changes only the keys it gives and keeps the rest (timezone, hours, release_before, the other caps); it used to replace the whole schedule and drop them - key= removes a key; --pool-schedule-replace writes the whole schedule; a new name still creates one (days, members and a cap required); the merged schedule is checked and a removal that empties a needed key is named; a schedule may be named once per command (exit 2) - one before/after line per changed key (pool.schedules.NAME.KEY), in the dry run too, so a removed value shows - agx pool show lists probe_models with its source - pool docs and tests audit of every feature since v0.4.16: config reference flags, files and cap order; pool show/pick JSON fields; the guide's every-value table, snippets instead of hand-written blocks, time zone note; README FAQ (schedule edits, capacity, usage history); skill text; example acct-pool-rules (rule flags, deadline order, --model); CLI tests for pool pick --model; --pool-force in example docs - tests: merge, key= removal, replace, create, checks after the merge, repeated flags, dry run; 19 new mutants; task mutation now fails on a break that does not compile (11 fixed, one pointed at the wrong tests), timeout 90m; 234/234 caught
pool: schedule week_before_reset raises the weekly cap of members res… …etting before it ends (v0.4.21) - new schedule cap caps.week_before_reset (and --pool-schedule week_before_reset=N): while a schedule applies, a member it names whose weekly reset is at or before the schedule's end (release_before counted) gets this weekly cap at once; members resetting later keep their weekly cap, since their room must last their teammate's week - never lowers a cap (relax or an own 98 kept); an override's week wins; a schedule naming the member beats one naming its group; per-model windows by their own reset; --pool-only-week still caps it; counted in room and urgency while it applies - pool pick note "weekly cap 95% (schedule weekend: resets before it ends)", timed_caps.week.before_reset in JSON, pool show lists it - tests: table tests per branch, a made-up replay of the motivating case (91%, 4h45m to the reset, cap 90 to 95), DST, release_before, levels, invariants against the same pool without the value, config, flags, presets; 23 new mutants (215/215 caught) - simulator: scenario weekend-mates-before-reset, rows REC+WE-real and REC+WEB-real; guide, config reference, FAQ, example, skill text
pool: deadline group, urgency up to the cap at the reset, review fixe… …s (v0.4.20) - urgency counts the room up to the weekly cap a member reaches at its reset once that cap is rising (inside week_relax_window, end inclusive); usable still goes by the cap now - deadline group: under the urgency order, members whose room is due within deadline_window (24h) with at least deadline_min_room (2%) go first, soonest first; new keys, flags, pool show/pick rows, presets - sticky sessions leave only for the member they would go to - needs X%/h is room / hours (never weighed by capacity, never 0 with room); report carries room_at_reset_percent, needs_percent_per_hour, deadline - timed caps are read at the reset (Config.At refolds from the normal caps); a higher weekly cap ending before the reset makes its excess due at its end; per-model windows without a reset limit the room; the reason names the binding window; picker warnings use the caps in effect now - tests: invariants over random pools, recorded-pool replay, table tests per rule and edge, 34 new mutants (192/192 caught); simulator rows REC-K, REC-N, REC+A, REC-S, REC+KL and scenario snapshot-21-evening; RESULTS and gate baseline re-recorded
pool: count only live runs as sessions; live list reads the process t… …able once (v0.4.19) - a run that asked for a key within two key_ttls but has ended no longer counts against max_sessions (short headless runs inflated the counts) - agx live list and the pool's session count decide ended runs with one process-table read instead of one per run folder (minutes with thousands of run folders) - docs: idle runs hold no session, so live list may show more runs on a member than pool pick counts
pool: schedules and expiring overrides change caps for a while (v0.4.18) - schedules: days, hours (may cross midnight), members or groups, timezone, caps (short, week, week_relax_max), release_before (5h when short is set); member schedules beat group ones, the highest value wins at one level, DST-correct wall-clock windows - overrides: --until on the per-member cap flags writes accounts.NAME.override; ignored once ended; --pool-clear-override and agx pool prune - pool pick and pool show name each timed cap and its end; JSON timed_caps and expired_override - simulator reads schedules and teammate workdays; weekend-mates scenarios - docs, example acct-pool-schedules, schema, skill text, mutation list
release: v0.4.17 — Claude Code 2.1.330 tested agentio claude v0.1.4 and builtin v0.1.3 raise the tested Claude Code range to 2.1.323..2.1.330, so run, doctor and agent list stop warning that 2.1.330 is outside it. They also read a transcript record whose timestamp is missing or malformed instead of skipping it, and know the data-flow-records record type 2.1.329 started writing. Goldens, example sessions and docs moved to the new range; the newer-than-tested test version is now 2.1.400. README download link points at v0.4.17.
feat(login): detect a token's real kind; refuse per-use API keys file…
…d as oauth-token
A login's kind is only a label in config, so an API key filed under
kind oauth-token went unnoticed and was billed per use. agx now reads
the token's public prefix (setup-token: oauth-token, API key: api-key,
else unknown) and shows only that word, never any part of the token.
- login list: DETECTED column, filled for pasted, plain and ${VAR}
tokens and cached pool probes; --verify resolves every reference.
login show and login check show it too; a mismatch is marked.
- run, new, resume and agx credential refuse an oauth-token login whose
token is an API key (code per-use-key), unless --allow-api-key (kept
for a live run) or logins.NAME.allow_api_key.
- pools never pick or probe such a member unless it allows it; pool pick
says why; a member learned while its key is handed out is recorded in
the login-usage cache and the pool picks again.
- whoami's in use line names the detected kind.
Tests cover the three prefixes, the refusal, both overrides, the pool
skip and re-pick, credential and whoami, and sweep every command for
token bytes, prefix included. Docs: logins guide section, README FAQ,
the acct-login-detect example, command and config references, skill.
release: v0.4.14 — Claude Code 2.1.328 and 2.1.329 tested agentio claude v0.1.2 and builtin v0.1.2 raise the tested Claude Code range to 2.1.323..2.1.329, so run, doctor and agent list stop warning that 2.1.328 or 2.1.329 is outside it. Goldens, example sessions and docs moved to the new range; README download link points at v0.4.14.
PreviousNext