Repository navigation
Done
Labels
Description
What
Let the user choose which of MAWS's own tool groups a MAWS-launched session gets, and which ask tool it uses. The owner's proposal of 2026-10-31, for the UX wave after P5:
- Work tools. Artifacts, documents and dashboards can be switched off, for example for a coding session that will never make a deliverable. The owner's example:
MAWS_WORK_MODE=0hides the artifact and document tools, with documents and dashboards each selectable. - The ask tool.
QUESTION_TOOL_MAWS=0usesmcp__sminos__AskUserQuestionin place ofmcp__maws__ask. - Auxiliary tools.
AUXILLARY_TOOL=0removessend_fileandshow_pane.
The env var names above are the owner's sketch. Where the choice is set is the first decision at pickup (below).
The groups, from today's 18 maws tools
- Artifacts (the core):
artifact_create,artifact_list,artifact_read,artifact_search,artifact_describe_type,artifact_publish,artifact_upload_asset,artifact_list_assets,artifact_screenshot,artifact_export. - Documents (editing and review):
artifact_edit,artifact_comments,artifact_reply,artifact_resolve. Presentations, designs and dashboards reach the comment tools through the same thread wrappers (src/engine-host/tool-server/tools.ts), so the cut needs checking against them. - Dashboards:
artifact_dataset. - Auxiliary:
send_file,show_pane. - Ask:
ask.
Documents and dashboards need the core (create, read, publish), so they are sub-switches of Artifacts.
Shape (the owner's direction of 2026-10-31)
- Per session, at the composer. A Tools control on the new-session composer, with checkboxes and one choice:
- Enable: Artifacts, Documents, Dashboards, Auxiliary. Documents and Dashboards are disabled while Artifacts is off.
- Question: Default (the engine's AskUserQuestion, or sminos's where its mod runs) or MAWS.
- A global default in Settings › Engine, beside the launch profile (plugins and hooks,
src/shared/engine/launch-profile.ts). The composer starts from it. - The choice belongs to the session's launch spec.
- Resume and fork keep the session's own set, not whatever the global default is now.
- Changing it after the start applies at a relaunch of the session (a resume with the new set), unless the
tools/list_changedprobe below shows a live change works. - The session's set shows read-only where its launch details show.
- Sessions started without the composer take the global default: a remote spawn (
session.spawn), an agent'ssminos.spawn, and a scheduled launch.session.spawncan carry the set as an optional field later. - No process env vars as the main surface. MAWS starts from launchd, which doesn't see a shell's exports, and the engine's environment is built from an allowlist that drops
MAWS_*. An env override for scripted launches is optional. - How a group is removed: at the source. The engine host builds each session's
mawstool list from the launch spec, sotools/listand the server's instructions paragraph both leave out the switched-off groups.--disallowedToolswould leave the instructions naming tools the session can't call. - Question set to Default.
- MAWS stops passing
--disallowedTools AskUserQuestion --allowedTools mcp__maws__askand lists noask. - The session then has the built-in, or
mcp__sminos__AskUserQuestionwhere the sminos mod runs (it needsCLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1; it registers only when the built-in is present). - MAWS already draws both as cards (
ASK_MOD_TOOLS,src/renderer/src/transcript/model/classify.ts). - The to-human supplement's ask line (
ASK_HERE,src/shared/owner/contract.ts) must follow the choice.
- MAWS stops passing
Unknowns to probe before building (no spend: the B4 stub)
- The sminos ask in a lane B session. Its async answer reaches the session through the mod, but under
MAWS_LANE=Bthe sminos bridge is observe-only. Check that an async answer given in MAWS, from the desk and from the phone, arrives as the message the tool promises. - Whether a mod-registered tool is deferred under tool search (this bears on UX: load the ask tool up front and defer every artifact and document tool #420).
- Whether the engine honours
tools/list_changedfrom an SDK server. If it does, a switch could apply to a running session; if not, it applies from the next launch.
Acceptance
- Each switch, off, removes exactly its group from
tools/listand from the server's instructions, and a session with Artifacts off has noartifact_*tool and no artifact text in its context. - Ask set to the engine's: no
--disallowedTools AskUserQuestionon the launch line, nomawsask intools/list, and the engine's ask (built-in, or sminos's where its mod runs) raises a card that MAWS answers, blocking and async. - The defaults leave today's sessions unchanged.
- The composer offers the four switches and the Question choice, starting from the Settings › Engine default; a resumed or forked session keeps its own set.
Related
- UX: load the ask tool up front and defer every artifact and document tool #420 (ask loaded up front, the artifact tools deferred). This ticket's switches decide which tools exist; UX: load the ask tool up front and defer every artifact and document tool #420 decides which of them load up front.
- The two asks' opposite defaults (sminos
async: true, MAWSblocking: true), raised to the owner on 2026-10-31. Pickup should settle whether they are lined up.
Sminos-Session: engine-integration-questions#2e33425f (MAWS on macbook)
Activity
SSFSKIM commentedon Nov 23, 2026
[board] ready-for-architect: owner asked to work it 2026-11-23
SSFSKIM commentedon Nov 23, 2026
[board] in-design: ux-wave designing with #420; #848 retires send_file
SSFSKIM commentedon Nov 23, 2026
[answers] Owner, 2026-11-23: (1) Work #421 now, together with #420. (2) Question 'Default' means the engine's built-in AskUserQuestion for now; once #600 lands it becomes sminos's question where its mod runs. (3) MAWS's ask is non-blocking by default, matching sminos's. (4) #848 retires send_file, so Auxiliary holds only show_pane.
SSFSKIM commentedon Nov 23, 2026
Plan written and adversarially reviewed: docs/doperpowers/plans/2026-11-23-tool-choice.md on ux-wave/tool-choice @1c4a85999 (with #420). Probes (no spend, engine 2.1.330): an SDK tool's alwaysLoad holds under tool search; tools/list_changed is honoured only in part (a tool whole in the request stays, instructions never re-read), so a session's set is fixed at its start; the built-in AskUserQuestion flows through MAWS's existing can_use_tool path. Decided by ux-wave within the owner's answers: set fixed at start (resume keeps, fork inherits); blocking becomes a required argument whose description steers to false (same behaviour as a false default, without per-session description machinery); Documents keeps the ticket's cut (also covers dashboard block edits and comments); the default is per machine. Build waits for #848 to land (shared files).
SSFSKIM commentedon Nov 23, 2026
[board] in-progress: Building from the tool-choice plan (revision 3 plus the owner's submenu choice), with #420, on one branch; #848 landed.
Tool choice: a session's MAWS tools and question tool, chosen at start (
SSFSKIM commentedon Nov 24, 2026
[board] done: landed on master 4ddfdd0 (squash of PR #860)