perf(agents): slim Skill Workshop prompt section to its routing contract#100481
Conversation
…act (#100449) Prompt section drops from 13 lines to 2 (2128 -> 319 bytes); action mechanics move into the skill_workshop tool schema (+25 bytes), for a net -1784 bytes per request on affected sessions. Routing contract and approval flow unchanged.
|
Codex review: needs real behavior proof before merge. Reviewed July 5, 2026, 6:47 PM ET / 22:47 UTC. Summary PR surface: Source -10, Tests -1. Total -11 across 4 files. Reproducibility: yes. Source inspection reproduces the current prompt-cost issue: current main and Review metrics: 1 noteworthy metric.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Land the narrow prompt/schema split only after maintainer approval of the exact routing wording and after adding real prompt/schema proof that the proposal-first contract remains visible. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection reproduces the current prompt-cost issue: current main and Is this the best way to solve the issue? Mostly yes, pending maintainer wording approval and proof. Moving per-action mechanics from always-paid system prompt text into tool parameter descriptions is the narrowest maintainable shape for the requested cleanup. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a905eb42acda. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source -10, Tests -1. Total -11 across 4 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
…act (openclaw#100449) (openclaw#100481) Prompt section drops from 13 lines to 2 (2128 -> 319 bytes); action mechanics move into the skill_workshop tool schema (+25 bytes), for a net -1784 bytes per request on affected sessions. Routing contract and approval flow unchanged.
…act (openclaw#100449) (openclaw#100481) Prompt section drops from 13 lines to 2 (2128 -> 319 bytes); action mechanics move into the skill_workshop tool schema (+25 bytes), for a net -1784 bytes per request on affected sessions. Routing contract and approval flow unchanged.
What Problem This Solves
Whenever the
skill_workshoptool is available, every conversation carries a 13-line system-prompt section that restates the manual-write prohibition three times and embeds per-action mechanics (create/update/revise selection,proposal_idresolution, the 160-byte description limit, list/inspect rules) that only matter mid-tool-use. That is recurring token cost on every API call, and community feedback on the tone has been blunt — the workaround being shared is disabling theskill_workshoptool entirely, which silently kills proposal review.Closes #100449.
Why This Change Was Made
src/agents/skill-workshop-prompt.ts: the section body is now two lines — route durable skill work throughskill_workshop/ never write proposal or skill files directly, and proposals stay pending unless the user explicitly asks to apply/reject/quarantine. The injection gate (section present only when the tool is available) is unchanged.src/agents/tools/skill-workshop-tool.ts: action-selection semantics, name-based proposal resolution, and the description limit now live in the tool's parameter descriptions — the surface the model reads at tool-use time — compressed so the schema grew only marginally.User Impact
Evidence
pnpm prompt:snapshots:checkpassed — snapshot fixtures do not enable the workshop tool).src/agents/system-prompt.test.ts,src/agents/tools/skill-workshop-tool.test.ts.perf/fix— Skill Workshop system-prompt section slimmed to its routing contract (~1.8KB/request saved); action mechanics moved into the tool schema.