Skip to content

UX: load the ask tool up front and defer every artifact and document tool #420

Done

Description

@SSFSKIM

What

Swap which maws tools load with every request under tool search: mcp__maws__ask loads up front, and every artifact and document tool is deferred.

  • Give ask _meta["anthropic/alwaysLoad"]: true (src/shared/maws/tools.ts, its MAWS_TOOLS.ask entry).
  • Take ALWAYS_LOAD off artifact_describe_type, artifact_read and artifact_publish (src/shared/maws/tools.ts) and off artifact_edit (src/shared/maws/document-tools.ts). Every artifact_* tool then defers.

The owner's direction of 2026-10-31, for the UX wave after P5.

Why

  • MAWS withdraws the built-in AskUserQuestion (--disallowedTools AskUserQuestion --allowedTools mcp__maws__ask, src/engine-host/launch.ts), and the built-in is never deferred. Its stand-in mcp__maws__ask carries no alwaysLoad today. A session behind the gateway (ENABLE_TOOL_SEARCH=true) therefore starts with no ask tool loaded. Its first question costs a ToolSearch request, and a model that skips that step may ask in plain text and end its turn instead of raising a card.
  • The ask is the session's channel to the human; the artifact and document tools serve one kind of work. Their four schemas are what make most of the always-loaded context today.

The trade-off already measured

P4-A3 (docs/doperpowers/plans/2026-10-21-p4-a3-edit-protocol.md, results (a), B3, n=10 each on the mini) added alwaysLoad to the four edit tools as its lever 1:

  • base: landed 34.7 s median, 3 requests to the landing;
  • alwaysLoad: 27.5 s, 2 requests, first byte 4.06 → 1.56 s;
  • cost: +2,885 tokens in the first request's context.

Deferring them again gives back that ~7 s on a session's first edit, in exchange for the context. Whoever builds this restates the trade in the PR. If A3's attach lever (the read attached to the edit) is in use, it may cover part of it.

Acceptance

  1. tools/list lists ask with _meta["anthropic/alwaysLoad"]: true, and no other maws tool with it. The test that pins the list's _meta changes with it.
  2. A probe under MAWS's gateway launch (the B4 probe's stub, nothing spent) shows mcp__maws__ask in the request's tools without defer_loading, and every artifact_* tool deferred.
  3. The server's instructions paragraph still names the tools a deferred session loads first (artifact_search, artifact_read), so an artifact task still finds them.
  4. Direct-API launches, where MAWS leaves ENABLE_TOOL_SEARCH to the engine's default, are probed once and the result recorded, since the B4 probe covered only the gateway launch.
  5. The to-human supplement's ask line (src/shared/owner/contract.ts, ASK_HERE) still reads true.

Where it came from

The owner's questions of 2026-10-31 on what MAWS adds to the engine (session engine-integration-questions): today artifact_read, artifact_edit, artifact_describe_type and artifact_publish load up front, and the other 14 maws tools, ask included, are deferred.

Sminos-Session: maws-48#2e33425f (MAWS on macbook)

Activity

  1. added
    enhancement
    status:deferred
    priority:P3
    on Oct 31, 2026
  2. SSFSKIM commented on Nov 12, 2026

    @SSFSKIM
    OwnerAuthor

    [answers] The owner answered both halves on 2026-11-12 (UX wave, cards 'Ask tool' and 'Edit tools'). Ask tool: 'Two steps (Recommended)': this ticket is step one (MAWS's own ask loaded up front, and a question that does not block unless the call says so); step two, the sminos question tool in a session MAWS runs, is #600. Edit tools: 'Defer them. They are generally not needed. Seven seconds are fine. Cost of the context token is more important. Artifact and document editing tools are sort of an extension tool, not the main tool.' So the four always-load edit tools go back behind tool search here too. This ticket is the wave's landing U1d (child U1 of docs/doperpowers/specs/2026-11-12-ux-wave-design.md), built after U1b (#586) so that a question that does not block has the waiting mark and the card's line.

  3. added
    status:ready-for-implementer
    and removed
    status:deferred
    on Nov 12, 2026
  4. SSFSKIM commented on Nov 12, 2026

    @SSFSKIM
    OwnerAuthor

    [board] ready-for-implementer: No longer deferred: the owner answered both halves on 2026-11-12 (see the [answers] comment). It is the UX wave's landing U1d, built after #586.

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

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: Built with #421 from the tool-choice plan's M2.

  7. added
    status:in-review
    and removed
    status:in-progress
    on Nov 24, 2026
  8. removed
    status:in-review
    on Nov 24, 2026
  9. SSFSKIM commented on Nov 24, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: landed on master 4ddfdd0 (squash of PR #860)

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:P3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions