Repository navigation
Description
Summary
The uno-testing workflow is written as one step per turn (baseline, locate, act, wait and re-snapshot, assert), and the agent follows it that way: with the skills loaded it issues 1.7 tools per model call; with the Uno MCPs and no skills at all it batches 2.3. Over the same number of tool uses that is ~40% more model calls, each re-reading the whole conversation. On the catalog brief it is the larger part of what the skills cost; the skill text itself is 7% of context.
Evidence
skill-ab catalog scenario, no-skills arm catalog-20261020-093343 (unoplatform/private#1218: a plugin holding only plugin.json, so the Uno MCPs without skills, agents or hooks) against the with-skills arms catalog-20261019-225302 (unoplatform/private#1214) and catalog-20261020-034157 (unoplatform/private#1215). Same pins (App MCP 2.0.0-dev.15, Uno.Sdk 7.0.0-dev.81, studio main@6869add), Opus, three sessions each.
| no skills (3) | with skills (6) | |
|---|---|---|
| cost, median | $9.15 ($8.75–$14.00) | $14.23 ($12.89–$22.38) |
| turns, median | 391 | 494 |
| harness checks | all pass; recommended Uno stack fails 3/3 |
all pass, 6/6 |
One typical session a side (no-skills A2 against #1215 A2):
| no skills | with skills | |
|---|---|---|
| model calls | 163 | 230 |
| tool uses | 381 | 386 |
| tools per model call | 2.34 | 1.68 |
| mean context per call | 156k | 180k |
| total context tokens | 25.4M | 41.3M |
| skill text in context | – | 13k (7%) |
uno_discover_tools |
11k (6%) | 9k (4%) |
MAUI's and Avalonia's agents sit at 1.5–1.7 tools per call (#1214, #1215), so with the skills Uno is no worse than the competitors; without them it is better. The restart and screenshot habits are the same with or without skills (16–30 launches a session without, 23–38 with), so they are not this issue; #199 and the App MCP issues cover them.
Two sessions a side on the tools-per-call ratio is a lead, not a proof; the cost and turn medians are on three and six.
Proposal
Rewrite the workflow section so that independent checks are issued together, without changing what is checked:
- Baseline as one turn:
uno_app_visualtree_snapshotand thepathscreenshot in the same message. - Locate several targets at once: when the next step needs more than one element, issue the
find_elementscalls together rather than one per turn. - Act, then wait in one turn where the tools allow it:
peer_actionfollowed byfind_elements(waitForMs)on the expected result in the same message; once unoplatform/uno.app-mcp#211 lands,wait_forwith the condition. - Assert the final-state checks (tree, text, DataContext, screenshot) together.
- One critical rule that says it: "Issue independent calls in the same turn; one call per turn only when the next call needs this one's result (a fresh handle after a UI change)."
The harness's per-session tools per model call (in the per-run PRs) is the measure to re-run against after the change.
Related
- uno-testing: the loop's measured cost — drop the pre-build, don't restart for clean state, wait on state instead of polling #199: the loop's measured cost (pre-build, restarts, polling). This is the fourth item; the three-session numbers are in the comment there.
- unoplatform/private#1216: spec 006, agent edit-loop cost, where the one-session measurements were collected.
- unoplatform/uno.app-mcp#211 (
wait_for) and docs: the root README introduces the agent plugin, contributor docs move to CONTRIBUTING.md #212 (scroll_into_view): the tools that make act-then-wait one call. - Build apps addressable and verify them by element, on Windows and Android #183, uno-dev: edit the running app through Hot Reload and confirm each edit #191: the verify-by-element and Hot Reload loops this procedure drives.
Activity
vatsashah45 commentedon Oct 20, 2026
Correction. Looking at all nine catalog Uno sessions instead of the two in the table above, the tools-per-call gap does not hold up:
pointer_clickandget_screenshotThe 1.68-vs-2.34 pair was the two extremes, and the 2.34 session is the one that issued seven scrollbar clicks per message (127
pointer_click). The step-by-step workflow does not serialize tool use, and batching independent checks would not recover the extra model calls. In both arms, 92% or more of the context tokens are spent after the firstuno_app_start.Where the extra calls go with the skills loaded, on the same brief, read from the full
claude-hometranscripts (they carry the hook output;stream.jsonldrops it):applied: 6–13 a session, about a third of all launches. Stated reasons: "constructor changes need a fresh model instance", "a new dependency property can't be hot-reloaded", "restarting cleanly to test from a fresh start", and startup-theme checks done as one restart per edit.without-app-mcp.mdis the only place UI Automation is mentioned.returnImage: trueor nopath) despite the "save to file" rule;references/ui.mdstill says to omitpathto inspect the image.Retitling this issue to those four; the skill and hook changes follow in a PR.
[-]uno-testing: the step-by-step procedure serializes tool use (1.7 vs 2.3 tools/call)[/-][+]uno-testing: restarts after 'applied', per-screenshot external window resizing, hook reminders before the app exists, inline screenshots[/+]