Steer agents to declare work-item breakdown and relations via kcap mcp workitems - #539
Conversation
…p workitems Nothing told agents to declare a work item's structure, so the breakdown (parent -> parts) and dependency (blocks/blocked-by) topology stayed empty and the Home "Blockers & dependencies" view + progress figures had nothing to render. - Add a server-level MCP `instructions` preamble to the workitems MCP server (surfaced on initialize, kcap-memory style) steering agents to create part items and declare the parent->parts breakdown + blocks/blocked-by relations, and stating that these are declared, never inferred. - Add a `work-items` plugin skill teaching the create-parts -> declare-breakdown -> declare-relations flow, the same-repo / one-parent / no-self rules, and when NOT to declare. - Fix the stale "two tools" claim in help-mcp.txt and README (the workitems MCP server has exposed seven tools since the breakdown/relations surface landed). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
PR Summary by QodoAdd MCP steering so agents declare work-item breakdowns and dependencies
AI Description
Diagram
High-Level Assessment
Files changed (5)
|
Code Review by Qodo
1.
|
qodo (Maintainability): the added multi-line comments restated what the ServerInstructions constant and the descriptive test name already convey. Shortened both to a brief "why" note, matching the other MCP servers' preamble comments. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Why
Follow-up to the Manage-tab "steering" work in kcap-server (Home tabs round 4). Lever (a) — the Home Start-plan prompt declaring a breakdown — shipped server-side in kurrent-io/kcap-server#1409. This PR ships the three CLI-side levers (b/c/d).
Nothing told coding agents to declare a work item's structure, so the breakdown (parent → parts) and dependency (blocks / blocked-by) topology stayed empty in practice — and Home's "Blockers & dependencies" view and
n/m partsprogress figures had nothing to render. Thedeclare_work_breakdown/declare_work_relationtools existed; agents just weren't steered to use them.What
instructionspreamble on thekcap mcp workitemsserver (surfaced oninitialize, kcap-memory style): steers agents to create part items and declare the parent→parts breakdown + blocks/blocked-by relations, and states plainly that these are declared, never inferred.work-itemsplugin skill (kcap/skills/work-items/SKILL.md) teaching the create-parts →declare_work_breakdown→declare_work_relationflow, the same-repo / one-parent / no-self-relation rules, and when NOT to declare.help-mcp.txtandREADME.mdboth claimed the workitems MCP server exposes "two tools" — updated to the actual seven-tool surface.Tests
McpWorkItemsServerTests.Server_instructions_steer_agents_to_declare_breakdown_and_relationspins that the preamble names both declare tools + the declared-never-inferred rule.Linear: AI-1901 (follow-up to AI-1894). No server change; the kcap-server submodule pin bump is a separate step.
🤖 Generated with Claude Code