Completed
on 9 Jan 2026, 11:18 pm

Output

Claude-in-the-Loop Flow Curation

✅ Implemented - Active flows now shown in turn context

What Changed

Instead of hard-coding which flow a turn belongs to, Claude now participates in flow curation:

# Every prompt now includes active flows:
<turn-context session="ses_abc123">
  current-flow: flow_xyz "Fix auth bug"
  active-flows:
    - flow_xyz: "Fix auth bug" (bugfix) ←current
    - flow_abc: "Add user profiles" (feature)
    - flow_def: "Refactor DB layer" (refactor)
  recent: "Schema refactor", "Type fixes"
</turn-context>

Claude Steers Kontasks

When creating a kontask, Claude can now specify flowId to link it to the appropriate flow:

konui_create_task({
  type: "general",
  title: "Database migration script",
  flowId: "flow_def",  // Links to "Refactor DB layer"
  context: { output: "..." }
});

Files Changed

  • konui/src/turn-context.ts - Added activeFlows to MinimalTurnContext
  • konui/mcp/server.ts - Added flowId param, creates kontask→flow edge
  • CLAUDE.md - Updated flow curation guidance

Commit: 84af3308

Quick Actions

View Turn
Original Request

No layout configured

Details

Type General
Status Completed
Scope vibetools
Tags flowsturn-contextkontasks
Created 9 Jan 2026, 11:18 pm
Updated 9 Jan 2026, 11:18 pm
Timing
⏱️ 383.4s
0 tools
TTFE 0% Thinking 100% Tools 0%
Created By claude

📋 Claude's Context

Session ses_d3abe491...

🔗 Git Commit

84af3308
📁 3 files changed
  • konui/src/turn-context.ts
  • konui/mcp/server.ts
  • CLAUDE.md

Raw Data

{
  "id": "86bd0a34-f42a-44a9-8491-3859a3eecf6d",
  "type": "general",
  "status": "completed",
  "title": "Claude-in-the-Loop Flow Curation Implemented",
  "context": {
    "output": "<div style=\"background:#1e1e1e;color:#e0e0e0;padding:20px;border-radius:8px;font-family:'Consolas','Monaco',monospace;\"><h2 style=\"font-family:sans-serif;color:#fff;margin:0 0 16px 0;\">Claude-in-the-Loop Flow Curation</h2><p style=\"color:#98c379;font-size:14px;margin:0 0 16px 0;\">✅ Implemented - Active flows now shown in turn context</p><h3 style=\"font-family:sans-serif;color:#61afef;margin:16px 0 12px 0;\">What Changed</h3><p>Instead of hard-coding which flow a turn belongs to, Claude now participates in flow curation:</p><div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin:12px 0;\"><pre style=\"margin:0;color:#e0e0e0;\"><span style=\"color:#7f848e;\"># Every prompt now includes active flows:</span>\n&lt;turn-context session=\"ses_abc123\"&gt;\n  current-flow: flow_xyz \"Fix auth bug\"\n  <span style=\"color:#98c379;font-weight:bold;\">active-flows:</span>\n    - flow_xyz: \"Fix auth bug\" (bugfix) ←current\n    - flow_abc: \"Add user profiles\" (feature)\n    - flow_def: \"Refactor DB layer\" (refactor)\n  recent: \"Schema refactor\", \"Type fixes\"\n&lt;/turn-context&gt;</pre></div><h3 style=\"font-family:sans-serif;color:#61afef;margin:16px 0 12px 0;\">Claude Steers Kontasks</h3><p>When creating a kontask, Claude can now specify <code style=\"background:#2d2d2d;padding:2px 6px;border-radius:4px;\">flowId</code> to link it to the appropriate flow:</p><div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin:12px 0;\"><pre style=\"margin:0;color:#e0e0e0;\">konui_create_task({\n  type: \"general\",\n  title: \"Database migration script\",\n  <span style=\"color:#e5c07b;\">flowId: \"flow_def\"</span>,  <span style=\"color:#7f848e;\">// Links to \"Refactor DB layer\"</span>\n  context: { output: \"...\" }\n});</pre></div><h3 style=\"font-family:sans-serif;color:#61afef;margin:16px 0 12px 0;\">Files Changed</h3><ul style=\"margin:0;padding-left:20px;\"><li><code style=\"background:#2d2d2d;padding:2px 6px;border-radius:4px;\">konui/src/turn-context.ts</code> - Added activeFlows to MinimalTurnContext</li><li><code style=\"background:#2d2d2d;padding:2px 6px;border-radius:4px;\">konui/mcp/server.ts</code> - Added flowId param, creates kontask→flow edge</li><li><code style=\"background:#2d2d2d;padding:2px 6px;border-radius:4px;\">CLAUDE.md</code> - Updated flow curation guidance</li></ul><p style=\"color:#7f848e;margin-top:16px;\">Commit: 84af3308</p></div>",
    "commitSha": "84af3308",
    "filesChanged": [
      "konui/src/turn-context.ts",
      "konui/mcp/server.ts",
      "CLAUDE.md"
    ],
    "requestId": "cabfef70-2762-48ff-85c2-bc02a5537c91",
    "turnTiming": {
      "totalMs": 383357,
      "ttfeMs": 124,
      "thinkingMs": 383233,
      "toolExecutionMs": 0,
      "toolCallCount": 0,
      "thinkingPct": 100,
      "toolsPct": 0,
      "ttfePct": 0
    }
  },
  "createdBy": "claude",
  "createdAt": "2026-01-09T13:18:11.147Z",
  "updatedAt": "2026-01-09T13:18:20.799Z",
  "requestId": "cabfef70-2762-48ff-85c2-bc02a5537c91",
  "scope": "vibetools",
  "tags": [
    "flows",
    "turn-context",
    "kontasks"
  ],
  "sessionId": "ses_d3abe491-395",
  "flowId": "flow_01KEGVRXHHK7E25VFSX4HCV289",
  "flowLinks": [
    {
      "flowId": "flow_01KEGVRXHHK7E25VFSX4HCV289",
      "edgeType": "evidence",
      "createdAt": "2026-01-09T13:18:11.147Z"
    }
  ],
  "targetUser": "claude"
}
DashboardReportsKontasksFlowsDecisionsSessionsTelemetryLogs + Go