← Back to Kontasks
Plan Threading: Full Integration Recommendation
Go big while it's easy - full plan tracking with session context
Output
Recommendation: Full Integration
You're right - now is the time to build it properly while the architecture is fresh. Here's what I recommend:
Option A+B Hybrid: Plan IDs + Session Context
Data Model
// Add to Kontask interface: interface Kontask { ... sessionId?: string; // Konsole session that created this planSummary?: string; // What Claude was working on planCreatedAt?: string; // When the plan started }
Flow
- Create kontask - Include sessionId + planSummary from current context
- View kontask - Show plan context ("Created while working on: X")
- Respond to kontask - Include plan context in the prompt sent back to Claude
- Stale detection - Warn if session changed OR plan changed
Implementation Steps
- Add
sessionId,planSummaryto kontask-types.ts - Update MCP tool to accept these fields
- Update router prompt to include session/plan context
- Show plan context in kontask detail view
- Include plan context when sending choice responses back
- Enhanced staleness: session mismatch = orange, plan mismatch = red
Key Insight
The planSummary field is the magic - it's a human-readable snapshot of what I was working on when I created the kontask. When you respond, that context gets included so I know exactly where we were.
Quick Actions
Original Request
No layout configured
Details
Type
General
Status
Completed
Scope
vibetools
Tags
kontasksplan-threading
Created
2 Jan 2026, 7:53 am
Updated
2 Jan 2026, 7:53 am
Created By
claude
Raw Data
{
"id": "cf801007-8a98-4c40-8bf7-c2869a259338",
"type": "general",
"status": "completed",
"title": "Plan Threading: Full Integration Recommendation",
"description": "Go big while it's easy - full plan tracking with session context",
"context": {
"output": "<div style=\"background:#1e1e1e;color:#e0e0e0;padding:20px;border-radius:8px;font-family:system-ui,-apple-system,sans-serif;\">\n<h2 style=\"color:#fff;margin:0 0 16px 0;\">Recommendation: Full Integration</h2>\n\n<p style=\"margin:0 0 16px 0;\">You're right - now is the time to build it properly while the architecture is fresh. Here's what I recommend:</p>\n\n<div style=\"background:#22c55e20;border-left:4px solid #22c55e;padding:12px 16px;border-radius:0 6px 6px 0;margin-bottom:16px;\">\n<strong>Option A+B Hybrid:</strong> Plan IDs + Session Context\n</div>\n\n<div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\">\n<h4 style=\"margin:0 0 12px 0;color:#98c379;\">Data Model</h4>\n<pre style=\"margin:0;font-size:0.85rem;background:#1a1a1a;padding:12px;border-radius:4px;overflow-x:auto;color:#e0e0e0;\">\n<span style=\"color:#7f848e;\">// Add to Kontask interface:</span>\n<span style=\"color:#c678dd;\">interface</span> Kontask {\n ...\n <span style=\"color:#e5c07b;\">sessionId</span>?: string; <span style=\"color:#7f848e;\">// Konsole session that created this</span>\n <span style=\"color:#e5c07b;\">planSummary</span>?: string; <span style=\"color:#7f848e;\">// What Claude was working on</span>\n <span style=\"color:#e5c07b;\">planCreatedAt</span>?: string; <span style=\"color:#7f848e;\">// When the plan started</span>\n}\n</pre>\n</div>\n\n<div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\">\n<h4 style=\"margin:0 0 12px 0;color:#61afef;\">Flow</h4>\n<ol style=\"margin:0;padding-left:20px;line-height:1.8;\">\n<li><strong>Create kontask</strong> - Include sessionId + planSummary from current context</li>\n<li><strong>View kontask</strong> - Show plan context (\"Created while working on: X\")</li>\n<li><strong>Respond to kontask</strong> - Include plan context in the prompt sent back to Claude</li>\n<li><strong>Stale detection</strong> - Warn if session changed OR plan changed</li>\n</ol>\n</div>\n\n<div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\">\n<h4 style=\"margin:0 0 12px 0;color:#f97316;\">Implementation Steps</h4>\n<ol style=\"margin:0;padding-left:20px;line-height:1.8;\">\n<li>Add <code style=\"background:#374151;padding:2px 6px;border-radius:3px;\">sessionId</code>, <code style=\"background:#374151;padding:2px 6px;border-radius:3px;\">planSummary</code> to kontask-types.ts</li>\n<li>Update MCP tool to accept these fields</li>\n<li>Update router prompt to include session/plan context</li>\n<li>Show plan context in kontask detail view</li>\n<li>Include plan context when sending choice responses back</li>\n<li>Enhanced staleness: session mismatch = orange, plan mismatch = red</li>\n</ol>\n</div>\n\n<div style=\"background:#2d2d2d;padding:16px;border-radius:6px;\">\n<h4 style=\"margin:0 0 12px 0;color:#8b5cf6;\">Key Insight</h4>\n<p style=\"margin:0;\">The <code style=\"background:#374151;padding:2px 6px;border-radius:3px;\">planSummary</code> field is the magic - it's a human-readable snapshot of what I was working on when I created the kontask. When you respond, that context gets included so I know exactly where we were.</p>\n</div>\n</div>",
"requestedAt": "2026-01-02T23:15:00Z",
"requestId": "7f5e7909-fbe5-40a9-b723-b5db4462b963",
"choices": [
{
"label": "Build it",
"value": "build-full-plan-threading",
"description": "Implement full plan threading now",
"primary": true
},
{
"label": "Simplify",
"value": "simplify-plan-threading",
"description": "Start with just planSummary field"
},
{
"label": "Need more detail",
"value": "more-detail-plan-threading",
"description": "Explain the implementation more"
}
]
},
"createdBy": "claude",
"createdAt": "2026-01-01T21:53:58.026Z",
"updatedAt": "2026-01-01T21:53:58.148Z",
"requestId": "7f5e7909-fbe5-40a9-b723-b5db4462b963",
"scope": "vibetools",
"tags": [
"kontasks",
"plan-threading"
],
"targetUser": "claude"
}