Repository navigation
v0.26.0 — subagents, model roles, deep vision QA
v0.26.0 — the delegation stack: subagents, model roles, deep vision QA
Subagents are real now. The main agent can hand whole subtasks — or an
entire QA pass — to a focused sub-agent that runs in the same workspace,
reads files itself, and reports back. No recursion, no pasted file
contents: the prompt is a work order, not a data dump.
task: verify pages
├─ kind "test" → read-only QA sub (serve + browser + vision)
├─ reads PRD.md / the workspace itself
├─ shots desktop+tablet+mobile → .tagent/test/shots
└─ vision model → typography / responsive / contrast / a11y report
Subagents — the task tool
- built-in kinds: general (full toolset like yours, minus spawning),
explore (read-only recon), test (the QA kit — serve + browser +
vision, read-only) - subs run in YOUR workspace with the same file tools — they read whatever
they need themselves, so prompts carry instructions + paths, never file
contents - no recursion: subs cannot spawn further subs, never face the user
- custom specialists: drop a markdown file in
.tagent/agents/(or
~/.tagent/agents/) — front-matter for model, tools whitelist, mode
(build | plan | test), maxTurns; the body is its persona - economy fast-path: plain "read file X" prompts never spawn a sub at all
Three model roles, set independently
models.subagent— what task-tool subagents run onmodels.media.vision / .audio / .video / .pdf— the analysis models;
the vision tool routes screenshots tomedia.vision- TUI:
/model subagent|vision|audio|video|pdf <provider/model>·
off→ follow main · interactive/modelrole picker - GUI: a Model-roles dialog in the model dropdown
Vision QA — image → model → report
- browser
shotscaptures desktop + tablet + mobile in one call into
.tagent/test/shots; pass the directory, a file, or a comma list to the
vision tool (a directory takes its newest 4) - the dedicated vision model returns a structured review: functionality,
layout & alignment, typography scale, responsive comparison across
viewports, color & contrast, accessibility — then a PASS/WARN/FAIL
verdict with severity-tagged issues and suggested fixes - no dedicated model? the main model is used when it accepts images —
otherwise a setup error points at/model media vision
Fixes
- task {agent:"test"} ran the sub in the parent's mode — a build-mode
parent got a QA sub with a "your job is WORKING CODE" persona and
write_file/edit_file available; only the session metadata said "test".
The built-in test kind now genuinely runs read-only with the
VERIFICATION persona and the full QA toolset (test_report, browser,
vision, serve, bash, bg). The test suite's persona check was a tautology
(|| true) and never caught it — the assertions now read the sub's
actual system prompt (71 checks)