Skip to content

agent-cursor.md takes #494's treatment: rules inline, detail behind lookups, with its own first-cell budget (macOS computer+browser is 7% under the inline limit) #503

Closed

Description

@SSFSKIM

What

On macOS with the computer surface on (the plugin default), the first getBrowser() cell is 46,403 characters after #494. That is 7% under Claude Code's 50,000-character inline limit (#494's measurement, Claude Code 2.1.330). The core document alone is 36.9K, and 18K of that is agent-cursor.md. #494's size test (test/cua-api/first-use-inline.test.mjs, target 47,500) fails if that document grows by about 1.1K, and the macOS-engine lane grows it often.

Wanted

Give agent-cursor.md #494's treatment: the rules an agent needs at its first call stay inline, and the detail moves behind agent.documentation.get(name) lookups, each with a one-line pointer stating its rule. requiredFor stays honest. Write its own budget into the size test, so the first cell keeps a clear margin on macOS computer+browser.

Rules (ruling 1133)

Done when

The macOS computer+browser first cell has at least the margin the budget sets (proposed: 20% under 50,000), with agent-cursor.md's inline rules intact. The parity docs oracle and the byte-equal copies are in sync, and the docs tests pass.

Activity

  1. added
    enhancement
    status:ready-for-implementer
    priority:P2
    on Nov 23, 2026
  2. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    Add to the budget (from #494's review): a client may replace the bundled confirmation policy with up to 12,000 UTF-8 bytes. On macOS computer+browser, a valid 12,000-character ASCII override takes a Chrome-profile first cell from 46,389 to 52,822 chars, over the 50,000 cutoff. #503's size test should include the maximum override and leave room without truncating the policy. This predates #494 (the cell was over the limit before it), so it is not #494's to fix.

  3. added
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 23, 2026
  4. added
    status:in-review
    and removed
    status:in-progress
    on Nov 23, 2026
  5. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: built + review converged

  6. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [review-trail] reviewer-medium c02bbae..bd075c5: incorrect (P1 secret-observe exception dropped inline; P2 detached get; P2 numeric-label blind spot; P2 scroll vs stale-point; P2 displaced selection; P3 disabled get) -> fixed eefca43; re-review correct, no findings.

  7. removed
    status:in-review
    on Nov 23, 2026
  8. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: Landed via PR #515 (cua 0.29.7)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority:P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions