feat: llms.txt shell guide and {{webmux}} (2/5) #339
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.53) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.53 · 527 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.375
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #339"
general
weight: 0.35
mzdluo123
Summary
Second implementation PR of
add-agent-shell-control(stacked on #338). Scope:tasks.md§6, pluswebmux dir(§2.7) and the llms command reference (§7.3).Shell guide (US-S05)
internal/agentguide:/llms.txt(H1, blockquote summary, command-prefix note, topic links,## Optional),/llms/<topic>.md,/llms-full.txt. Embedded and rendered in memory — nothing is written to the temp folder or anywhere else./llms/commands.mdis generated from the command table;TestGuideCommandReferencefails when stale (WEBMUX_UPDATE_GUIDE=1regenerates). Defaults under$HOMEare written with~./api/, like the static app) but Host-checked, and no version, host, path or session data — a test checks it. The local socket adds version, executable and socket.webmux guide [TOPIC] [--full] [--path](falls back to the built-in copy when the server is down) andwebmux dir [SESSION].{{webmux}}(US-S06)POST /api/sessions/{id}/agent-guide→AgentGuidePrompt{prompt, guideUrl, dir, bin, socket}; the brief names the session ID, the absolute executable and socket, the llms.txt address andguide, and the artifacts folder with the deliverables rule.{{webmux}}is no longer rejected; it is inserted after{{dir}}so nothing in it is rescanned; an unavailable brief fails the precheck with 503 before any worktree exists.{{webmux}}(failure → “WebMux 工具说明不可用”, nothing inserted); preset “临时文件夹” is replaced by “WebMux 工具” ({{webmux}}) — saved lists are untouched; the init instruction field gains a built-in “WebMux 说明” button and loses the reserved-variable warning; Quick Start’s preview explains{{webmux}}.Screenshots (isolated demo instance, demo repo
bookshelf-api)Repository settings — desktop 1280×720, light
| Before | After |
| --- | --- |
|  |  |
Repository settings — desktop dark / mobile 390×844 light (after)
| Desktop dark | Mobile light |
| --- | --- |
|  |  |
Settings → quick commands (presets) — desktop light
| Before | After |
| --- | --- |
|  |  |
More (dark, mobile, before/after) are in
docs/images/webmux-guide/.Verification
go test -race:internal/agentguide,internal/api(guide routes incl. Host check and unclean paths, brief endpoint, new wire snapshot),internal/workspace(brief order, precheck),internal/sessioncmd,cmd/webmux,internal/archtest,internal/localclient.make checkitems run individually: format, docs guard,pnpm check, lint,check:arch, golangci-lint v2.15.0.artifacts.spec.tsandquick-commands.spec.tspass on desktop and mobile.TestWireSnapshots/workspacediffers only inrepository-commits.json(git 2.43 date format), same as on a cleanmain.User stories
US-S05, US-S06 added; US-G06 and the J-group init instruction text updated; coverage index and verification log updated.
---
_Generated by Claude Code_