Repository navigation
feat(external-agents): report harness facts, breaker state and plan usage - #18330
Conversation
…sage `models <product>` adds product `tools` and `image`, per-model `context_window` when the CLI reports it, and `breaker` state; the document schema stays 1. New `usage <product>` reads plan usage outside delegated runs (Codex app-server account/rateLimits/read; agy -p=/usage) and reports remaining as a 0 to 1 fraction, with no account details. The antigravity skill now lets a session set the write ceiling in the personal layer when the user asks for agy to write in their own words. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015XWwmfo1FXD2G3F4XBaDn3
…harness-facts-usage
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6c8b921139
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Lane run report
Run 45110607116, attempt 1
Failed GitHub API callsNo failed call recorded by the run job's scripts. |
|
claude-security-review reviewed Security review: PR #18330, incremental (0cf9d27..789e36f)No security issues found in this push. I read every hunk of all three files in scope in What changed
What I checked
Earlier findings: the one earlier inline finding (the write ceiling in Not in this push: no plugin manifest, workflow, trusted-actor list, token request, kill switch, merge hold or instruction file changed. Spend: none beyond before. The PR context contains no text that tries to instruct the lane. critical-findings: 0 |
|
claude-review reviewed Incremental code review: Codex
|
…ipped The reworded gotcha let any session set the write ceiling when its user asked, which changes ADR 0119's opt-in rule for every installer. That is the owner's decision to make, so the shipped text goes back to main's version. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015XWwmfo1FXD2G3F4XBaDn3
When Codex's secondary window was exhausted and its primary still had room, `usage codex` reported the primary's remaining fraction. It now reads both windows, reports the one with less left, and lists both in `windows`. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015XWwmfo1FXD2G3F4XBaDn3
…eader Each Codex entry in `windows` now carries `group` (`primary` or `secondary`), matching the shape the README promises and the agy entries. The README describes the two-window Codex reader. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015XWwmfo1FXD2G3F4XBaDn3
No related issue: Phase 5 of the owner-approved vendor-routing plan (PR-A of four).
Summary
external-agentsnow reports what each harness can do and how much plan usage is left, so/multi-agent:route vendorscan skip a vendor that lacks a tool or is out of usage.models <product>adds producttoolsandimage, per-modelcontext_windowwhen the CLIreports it, and
breaker(open,reason,reset_at). The document schema stays 1, becauseevery field is additive.
usage <product>: one call outside delegated runs, printing a UsageReading(
status,remainingas a 0 to 1 fraction,window,resets_at,source). It prints noaccount ids, emails or plan names.
codex app-serverover stdio,account/rateLimits/read. stdin stays open until thereply arrives, and notifications are ignored.
agy --output-format json -p=/usage, with slash commands on. It reports thelowest remaining window and lists every window.
--disable-slash-commands, so theprovider gets no new flag.
/swarmand/teamworkstay unoffered.Fix
scripts/lib/usage.mjs(new): two readers, chosen by the provider record'susage.kind.providers/*.yaml: newharnessandusagesections (data, validated inprovider.mjs).scripts/lib/models.mjs,scripts/lib/breaker.mjs: the newmodelsfields.Verification
node --test --test-concurrency=4over the plugin's four test files: 160 tests, 159 pass,0 fail, 1 skipped (a POSIX-only execute-bit case).
external-agents usage codexandusage antigravityeach returnedstatus: okwith a remaining fraction, window and reset.models codexreported acontext_windowper model.(
codex app-server generate-json-schemanamesaccount/rateLimits/read; an agyinvoke_subagentcall ran as its own conversation under--disable-slash-commands).Related
🤖 Generated with Claude Code
https://claude.ai/code/session_015XWwmfo1FXD2G3F4XBaDn3