Repository navigation
Add declare_loose_end to kcap mcp workitems - #971
Conversation
The server route ships separately, so against a server without it the tool answers HTTP 404 rather than failing the server's startup. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
PR Summary by QodoAdd loose-end declarations to the work-items MCP server
AI Description
Diagram
High-Level Assessment
Files changed (7)
|
Code Review by Qodo
1.
|
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
AI-2220
What & why
Agents already attach sessions to work items and declare their structure, but they have no way to say what they left unfinished, so the next-work ledger only learns about loose ends by mining what's-done prose and checklists after the fact. This adds
declare_loose_endtokcap mcp workitems: one plain-text item per call, posted to the server's/api/loose-ends/declareagainst the session the server runs in (or an explicitsession_id), plus the skill, README, help and preamble text that make an agent reach for it at the end of a session or plan step.Where to look
The client checks shape only (text present, a string, not blank); the 12–500 character bound and the refusal of none-class text stay server-side so a coded 400 names the real reason. The server route ships in kcap-server separately and must land first: against a server without it the tool surfaces
Error: HTTP 404and nothing else changes. The skill's frontmatter previously told agents to stay away from single indivisible tasks, which is exactly what a loose end is, so its trigger now names unfinished work and the exclusion applies to declaring structure only.Verification
🤖 Generated with Claude Code