← Back to Kontasks
Turn Review Tools: Summary Mode, Pagination & Search
Output
✅ Turn Review Tools Enhanced
All three phases implemented to make turn reviews faster and cheaper for Claude.
Phase 1: Summary Mode (Default)
konui_get_turn({ requestId: "..." }) // Returns ~500 tokens instead of 70K: { prompt: "First 500 chars of user prompt...", assistantText: ["Claude's reasoning blocks..."], toolCounts: { Read: 35, Grep: 21, Edit: 1 }, filesEdited: ["src/main.ts:150"], filesCreated: [], errors: [], duration: "7m 28s", tokens: { in: 1506, out: 11883 }, outcome: "success", kontask: { id: "...", title: "..." }, commitSha: "abc123" }
Phase 2: Pagination for Full Mode
konui_get_turn({ requestId: "...", mode: "full", offset: 0, limit: 50 // max 200 }) // Returns paginated workingHistory with navigation
Phase 3: Search Tool
konui_search_turn({ requestId: "...", tool: "Edit", // Filter by tool name pattern: "error", // Search in text/summaries eventType: "tool_use", // Filter by event type limit: 20 })
Key Implementation Details
- assistantText extracts Claude's reasoning from text events (truncated to 300 chars each)
- toolCounts shows which tools were called and how many times
- filesEdited/Created extracted from Edit/Write tool calls with line numbers
- errors collected from error events and failed tool results
- commitSha extracted from Bash git commit outputs
Commit
a8c470eb Turn: Add summary mode and search to konui_get_turn MCP tool 312 insertions, 21 deletions in konui/mcp/server.ts
Quick Actions
Original Request
No layout configured
Details
Type
General
Status
Completed
Scope
vibetools
Tags
kontasksmcpperformance
Created
10 Jan 2026, 12:32 pm
Updated
10 Jan 2026, 12:33 pm
Timing
⏱️ 345.9s
0 tools
● TTFE 0%
● Thinking 100%
● Tools 0%
Created By
claude
📋 Claude's Context
Session
ses_df705a8d...
Raw Data
{
"id": "f1bcaf7a-c007-48b8-a4c7-14de696d37e0",
"type": "general",
"status": "completed",
"title": "Turn Review Tools: Summary Mode, Pagination & Search",
"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;\">✅ Turn Review Tools Enhanced</h2><p style=\"color:#98c379;margin:0 0 16px 0;\">All three phases implemented to make turn reviews faster and cheaper for Claude.</p><h3 style=\"font-family:sans-serif;color:#61afef;margin:16px 0 8px 0;\">Phase 1: Summary Mode (Default)</h3><pre style=\"background:#2d2d2d;padding:12px;border-radius:6px;overflow-x:auto;line-height:1.6;\"><span style=\"color:#c678dd;\">konui_get_turn</span>({ requestId: \"...\" })\n\n<span style=\"color:#7f848e;\">// Returns ~500 tokens instead of 70K:</span>\n{\n <span style=\"color:#e5c07b;\">prompt</span>: \"First 500 chars of user prompt...\",\n <span style=\"color:#e5c07b;\">assistantText</span>: [\"Claude's reasoning blocks...\"],\n <span style=\"color:#e5c07b;\">toolCounts</span>: { Read: 35, Grep: 21, Edit: 1 },\n <span style=\"color:#e5c07b;\">filesEdited</span>: [\"src/main.ts:150\"],\n <span style=\"color:#e5c07b;\">filesCreated</span>: [],\n <span style=\"color:#e5c07b;\">errors</span>: [],\n <span style=\"color:#e5c07b;\">duration</span>: \"7m 28s\",\n <span style=\"color:#e5c07b;\">tokens</span>: { in: 1506, out: 11883 },\n <span style=\"color:#e5c07b;\">outcome</span>: \"success\",\n <span style=\"color:#e5c07b;\">kontask</span>: { id: \"...\", title: \"...\" },\n <span style=\"color:#e5c07b;\">commitSha</span>: \"abc123\"\n}</pre><h3 style=\"font-family:sans-serif;color:#61afef;margin:16px 0 8px 0;\">Phase 2: Pagination for Full Mode</h3><pre style=\"background:#2d2d2d;padding:12px;border-radius:6px;overflow-x:auto;line-height:1.6;\"><span style=\"color:#c678dd;\">konui_get_turn</span>({\n requestId: \"...\",\n <span style=\"color:#e5c07b;\">mode</span>: \"full\",\n <span style=\"color:#e5c07b;\">offset</span>: 0,\n <span style=\"color:#e5c07b;\">limit</span>: 50 <span style=\"color:#7f848e;\">// max 200</span>\n})\n\n<span style=\"color:#7f848e;\">// Returns paginated workingHistory with navigation</span></pre><h3 style=\"font-family:sans-serif;color:#61afef;margin:16px 0 8px 0;\">Phase 3: Search Tool</h3><pre style=\"background:#2d2d2d;padding:12px;border-radius:6px;overflow-x:auto;line-height:1.6;\"><span style=\"color:#c678dd;\">konui_search_turn</span>({\n requestId: \"...\",\n <span style=\"color:#e5c07b;\">tool</span>: \"Edit\", <span style=\"color:#7f848e;\">// Filter by tool name</span>\n <span style=\"color:#e5c07b;\">pattern</span>: \"error\", <span style=\"color:#7f848e;\">// Search in text/summaries</span>\n <span style=\"color:#e5c07b;\">eventType</span>: \"tool_use\", <span style=\"color:#7f848e;\">// Filter by event type</span>\n <span style=\"color:#e5c07b;\">limit</span>: 20\n})</pre><h3 style=\"font-family:sans-serif;color:#61afef;margin:16px 0 8px 0;\">Key Implementation Details</h3><ul style=\"margin:0;padding-left:20px;line-height:1.8;\"><li><span style=\"color:#98c379;\">assistantText</span> extracts Claude's reasoning from text events (truncated to 300 chars each)</li><li><span style=\"color:#98c379;\">toolCounts</span> shows which tools were called and how many times</li><li><span style=\"color:#98c379;\">filesEdited/Created</span> extracted from Edit/Write tool calls with line numbers</li><li><span style=\"color:#98c379;\">errors</span> collected from error events and failed tool results</li><li><span style=\"color:#98c379;\">commitSha</span> extracted from Bash git commit outputs</li></ul><h3 style=\"font-family:sans-serif;color:#61afef;margin:16px 0 8px 0;\">Commit</h3><pre style=\"background:#2d2d2d;padding:12px;border-radius:6px;\"><span style=\"color:#56b6c2;\">a8c470eb</span> Turn: Add summary mode and search to konui_get_turn MCP tool\n<span style=\"color:#7f848e;\">312 insertions, 21 deletions in konui/mcp/server.ts</span></pre></div>",
"choices": [
{
"label": "Test summary mode",
"value": "Test the new konui_get_turn summary mode on a recent turn to verify it works correctly",
"primary": true
},
{
"label": "Test search tool",
"value": "Test konui_search_turn by searching for Edit tool calls in a recent turn"
},
{
"label": "Restart MCP server",
"value": "Restart konsole so the new MCP tools take effect"
}
],
"requestId": "a671ff33-4dea-4a85-95f3-8fd98e60bf91",
"turnTiming": {
"totalMs": 345925,
"ttfeMs": 53,
"thinkingMs": 345872,
"toolExecutionMs": 0,
"toolCallCount": 0,
"thinkingPct": 100,
"toolsPct": 0,
"ttfePct": 0
}
},
"createdBy": "claude",
"createdAt": "2026-01-10T02:32:13.772Z",
"updatedAt": "2026-01-10T02:33:13.613Z",
"requestId": "a671ff33-4dea-4a85-95f3-8fd98e60bf91",
"scope": "vibetools",
"tags": [
"kontasks",
"mcp",
"performance"
],
"sessionId": "ses_df705a8d-ea1",
"flowId": "flow_01KEHQ5A7ZX7YDB8KG1NP2GE68",
"flowLinks": [
{
"flowId": "flow_01KEHQ5A7ZX7YDB8KG1NP2GE68",
"edgeType": "evidence",
"createdAt": "2026-01-10T02:32:13.772Z"
}
]
}