{
"generator": "crates/compaction/fixtures/generate.mjs",
"now": 1760000000000,
"decisions": {
"basic": {
"entries": [
{
"type": "thinking_level_change",
"thinkingLevel": "high",
"id": "e1",
"parentId": null,
"timestamp": "2025-01-01T00:00:01.000Z"
},
{
"type": "message",
"message": {
"role": "system",
"content": "You are Ultron.",
"sections": {
"tools": "rlm only",
"empty": null
},
"toolsAdded": [
{
"name": "rlm",
"description": "repl",
"parameters": {
"type": "object"
}
}
],
"timestamp": 0
},
"id": "e2",
"parentId": "e1",
"timestamp": "2025-01-01T00:00:02.000Z"
},
{
"type": "message",
"message": {
"role": "user",
"content": "Refactor the parser in src/parse.ts please ctx0 ctx1 ctx2 ctx3 ctx4 ctx5 ctx6 ctx7 ctx8 ctx9 ctx10 ctx11 ctx12 ctx13 ctx14 ctx15 ctx16 ctx17 ctx18 ctx19 ctx20 ctx21 ctx22 ctx23 ctx24 ctx25 ctx26 ctx27 ctx28 ctx29",
"timestamp": 1
},
"id": "e3",
"parentId": "e2",
"timestamp": "2025-01-01T00:00:03.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "thinking",
"thinking": "plan: read first"
},
{
"type": "text",
"text": "Reading."
},
{
"type": "toolCall",
"id": "c1",
"name": "read",
"arguments": {
"path": "src/parse.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 1200,
"output": 40,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1240,
"cost": {
"input": 0.0012,
"output": 0.0004,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0015999999999999999
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e4",
"parentId": "e3",
"timestamp": "2025-01-01T00:00:04.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "c1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "line0 line1 line2 line3 line4 line5 line6 line7 line8 line9 line10 line11 line12 line13 line14 line15 line16 line17 line18 line19 line20 line21 line22 line23 line24 line25 line26 line27 line28 line29 line30 line31 line32 line33 line34 line35 line36 line37 line38 line39 line40 line41 line42 line43 line44 line45 line46 line47 line48 line49 line50 line51 line52 line53 line54 line55 line56 line57 line58 line59 line60 line61 line62 line63 line64 line65 line66 line67 line68 line69 line70 line71 line72 line73 line74 line75 line76 line77 line78 line79 line80 line81 line82 line83 line84 line85 line86 line87 line88 line89 line90 line91 line92 line93 line94 line95 line96 line97 line98 line99 line100 line101 line102 line103 line104 line105 line106 line107 line108 line109 line110 line111 line112 line113 line114 line115 line116 line117 line118 line119 line120 line121 line122 line123 line124 line125 line126 line127 line128 line129 line130 line131 line132 line133 line134 line135 line136 line137 line138 line139 line140 line141 line142 line143 line144 line145 line146 line147 line148 line149 line150 line151 line152 line153 line154 line155 line156 line157 line158 line159 line160 line161 line162 line163 line164 line165 line166 line167 line168 line169 line170 line171 line172 line173 line174 line175 line176 line177 line178 line179 line180 line181 line182 line183 line184 line185 line186 line187 line188 line189 line190 line191 line192 line193 line194 line195 line196 line197 line198 line199 line200 line201 line202 line203 line204 line205 line206 line207 line208 line209 line210 line211 line212 line213 line214 line215 line216 line217 line218 line219 line220 line221 line222 line223 line224 line225 line226 line227 line228 line229 line230 line231 line232 line233 line234 line235 line236 line237 line238 line239 line240 line241 line242 line243 line244 line245 line246 line247 line248 line249 line250 line251 line252 line253 line254 line255 line256 line257 line258 line259 line260 line261 line262 line263 line264 line265 line266 line267 line268 line269 line270 line271 line272 line273 line274 line275 line276 line277 line278 line279 line280 line281 line282 line283 line284 line285 line286 line287 line288 line289 line290 line291 line292 line293 line294 line295 line296 line297 line298 line299 line300 line301 line302 line303 line304 line305 line306 line307 line308 line309 line310 line311 line312 line313 line314 line315 line316 line317 line318 line319 line320 line321 line322 line323 line324 line325 line326 line327 line328 line329 line330 line331 line332 line333 line334 line335 line336 line337 line338 line339 line340 line341 line342 line343 line344 line345 line346 line347 line348 line349 line350 line351 line352 line353 line354 line355 line356 line357 line358 line359 line360 line361 line362 line363 line364 line365 line366 line367 line368 line369 line370 line371 line372 line373 line374 line375 line376 line377 line378 line379 line380 line381 line382 line383 line384 line385 line386 line387 line388 line389 line390 line391 line392 line393 line394 line395 line396 line397 line398 line399 line400 line401 line402 line403 line404 line405 line406 line407 line408 line409 line410 line411 line412 line413 line414 line415 line416 line417 line418 line419 line420 line421 line422 line423 line424 line425 line426 line427 line428 line429 line430 line431 line432 line433 line434 line435 line436 line437 line438 line439 line440 line441 line442 line443 line444 line445 line446 line447 line448 line449 line450 line451 line452 line453 line454 line455 line456 line457 line458 line459 line460 line461 line462 line463 line464 line465 line466 line467 line468 line469 line470 line471 line472 line473 line474 line475 line476 line477 line478 line479 line480 line481 line482 line483 line484 line485 line486 line487 line488 line489 line490 line491 line492 line493 line494 line495 line496 line497 line498 line499 line500 line501 line502 line503 line504 line505 line506 line507 line508 line509 line510 line511 line512 line513 line514 line515 line516 line517 line518 line519 line520 line521 line522 line523 line524 line525 line526 line527 line528 line529 line530 line531 line532 line533 line534 line535 line536 line537 line538 line539 line540 line541 line542 line543 line544 line545 line546 line547 line548 line549 line550 line551 line552 line553 line554 line555 line556 line557 line558 line559 line560 line561 line562 line563 line564 line565 line566 line567 line568 line569 line570 line571 line572 line573 line574 line575 line576 line577 line578 line579 line580 line581 line582 line583 line584 line585 line586 line587 line588 line589 line590 line591 line592 line593 line594 line595 line596 line597 line598 line599 line600 line601 line602 line603 line604 line605 line606 line607 line608 line609 line610 line611 line612 line613 line614 line615 line616 line617 line618 line619 line620 line621 line622 line623 line624 line625 line626 line627 line628 line629 line630 line631 line632 line633 line634 line635 line636 line637 line638 line639 line640 line641 line642 line643 line644 line645 line646 line647 line648 line649 line650 line651 line652 line653 line654 line655 line656 line657 line658 line659 line660 line661 line662 line663 line664 line665 line666 line667 line668 line669 line670 line671 line672 line673 line674 line675 line676 line677 line678 line679 line680 line681 line682 line683 line684 line685 line686 line687 line688 line689 line690 line691 line692 line693 line694 line695 line696 line697 line698 line699"
}
],
"isError": false,
"timestamp": 3
},
"id": "e5",
"parentId": "e4",
"timestamp": "2025-01-01T00:00:05.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c2",
"name": "edit",
"arguments": {
"path": "src/parse.ts",
"oldText": "a",
"newText": "b"
}
},
{
"type": "toolCall",
"id": "c3",
"name": "write",
"arguments": {
"path": "src/new.ts",
"content": "x"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 2400,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 2460,
"cost": {
"input": 0.0024,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0029999999999999996
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e6",
"parentId": "e5",
"timestamp": "2025-01-01T00:00:06.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "c2",
"toolName": "edit",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
},
"id": "e7",
"parentId": "e6",
"timestamp": "2025-01-01T00:00:07.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "c3",
"toolName": "write",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
},
"id": "e8",
"parentId": "e7",
"timestamp": "2025-01-01T00:00:08.000Z"
},
{
"type": "label",
"targetId": "e3",
"label": "start",
"id": "e9",
"parentId": "e8",
"timestamp": "2025-01-01T00:00:09.000Z"
},
{
"type": "message",
"message": {
"role": "bashExecution",
"command": "npm test",
"output": "out0 out1 out2 out3 out4 out5 out6 out7 out8 out9 out10 out11 out12 out13 out14 out15 out16 out17 out18 out19 out20 out21 out22 out23 out24 out25 out26 out27 out28 out29 out30 out31 out32 out33 out34 out35 out36 out37 out38 out39",
"exitCode": 1,
"cancelled": false,
"truncated": true,
"fullOutputPath": "/tmp/full.log",
"timestamp": 4
},
"id": "e10",
"parentId": "e9",
"timestamp": "2025-01-01T00:00:10.000Z"
},
{
"type": "message",
"message": {
"role": "bashExecution",
"command": "ls",
"output": "",
"exitCode": 0,
"cancelled": false,
"truncated": false,
"excludeFromContext": true,
"timestamp": 4
},
"id": "e11",
"parentId": "e10",
"timestamp": "2025-01-01T00:00:11.000Z"
},
{
"type": "message",
"message": {
"role": "bashExecution",
"command": "pwd",
"output": "/w",
"exitCode": 0,
"cancelled": false,
"truncated": true,
"timestamp": 4
},
"id": "e12",
"parentId": "e11",
"timestamp": "2025-01-01T00:00:12.000Z"
},
{
"type": "message",
"message": {
"role": "bashExecution",
"command": "sleep 9",
"output": "",
"exitCode": null,
"cancelled": true,
"truncated": false,
"timestamp": 4
},
"id": "e13",
"parentId": "e12",
"timestamp": "2025-01-01T00:00:13.000Z"
},
{
"type": "custom_message",
"customType": "note",
"content": "Remember the 80 column limit 🙂",
"display": true,
"details": {
"k": 1
},
"id": "e14",
"parentId": "e13",
"timestamp": "2025-01-01T00:00:14.000Z"
},
{
"type": "message",
"message": {
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
"id": "e15",
"parentId": "e14",
"timestamp": "2025-01-01T00:00:15.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e16",
"parentId": "e15",
"timestamp": "2025-01-01T00:00:16.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "c4",
"toolName": "read",
"content": [
{
"type": "text",
"text": "readme body"
}
],
"isError": false,
"timestamp": 3
},
"id": "e17",
"parentId": "e16",
"timestamp": "2025-01-01T00:00:17.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "c5",
"toolName": "grep",
"content": [
{
"type": "text",
"text": "match"
}
],
"isError": false,
"timestamp": 3
},
"id": "e18",
"parentId": "e17",
"timestamp": "2025-01-01T00:00:18.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
},
"id": "e19",
"parentId": "e18",
"timestamp": "2025-01-01T00:00:19.000Z"
},
{
"type": "message",
"message": {
"role": "user",
"content": [
{
"type": "text",
"text": "Look at this screenshot"
},
{
"type": "image",
"data": "AAAA",
"mimeType": "image/png"
}
],
"timestamp": 1
},
"id": "e20",
"parentId": "e19",
"timestamp": "2025-01-01T00:00:20.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 5200,
"output": 90,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 5290,
"cost": {
"input": 0.0052,
"output": 0.0009,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0060999999999999995
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e21",
"parentId": "e20",
"timestamp": "2025-01-01T00:00:21.000Z"
},
{
"type": "message",
"message": {
"role": "user",
"content": "thanks",
"timestamp": 1
},
"id": "e22",
"parentId": "e21",
"timestamp": "2025-01-01T00:00:22.000Z"
}
],
"messageTokens": [
23,
53,
13,
1373,
24,
1,
1,
60,
1,
2,
2,
8,
40,
16,
3,
2,
8,
1206,
89,
2
],
"rawMessageTokens": [
23,
53,
13,
1373,
24,
1,
1,
60,
1,
2,
2,
40,
16,
3,
2,
8,
1206,
89,
2
],
"contextEstimate": {
"tokens": 5292,
"usageTokens": 5290,
"trailingTokens": 2,
"lastUsageIndex": 18
},
"projectedEstimate": {
"tokens": 5292,
"usageTokens": 5290,
"trailingTokens": 2,
"lastUsageIndex": 18
},
"lastAssistantUsage": {
"input": 5200,
"output": 90,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 5290,
"cost": {
"input": 0.0052,
"output": 0.0009,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0060999999999999995
}
},
"serialized": "[User]: Refactor the parser in src/parse.ts please ctx0 ctx1 ctx2 ctx3 ctx4 ctx5 ctx6 ctx7 ctx8 ctx9 ctx10 ctx11 ctx12 ctx13 ctx14 ctx15 ctx16 ctx17 ctx18 ctx19 ctx20 ctx21 ctx22 ctx23 ctx24 ctx25 ctx26 ctx27 ctx28 ctx29\n\n[Assistant thinking]: plan: read first\n\n[Assistant]: Reading.\n\n[Assistant tool calls]: read(path=\"src/parse.ts\")\n\n[Tool result]: line0 line1 line2 line3 line4 line5 line6 line7 line8 line9 line10 line11 line12 line13 line14 line15 line16 line17 line18 line19 line20 line21 line22 line23 line24 line25 line26 line27 line28 line29 line30 line31 line32 line33 line34 line35 line36 line37 line38 line39 line40 line41 line42 line43 line44 line45 line46 line47 line48 line49 line50 line51 line52 line53 line54 line55 line56 line57 line58 line59 line60 line61 line62 line63 line64 line65 line66 line67 line68 line69 line70 line71 line72 line73 line74 line75 line76 line77 line78 line79 line80 line81 line82 line83 line84 line85 line86 line87 line88 line89 line90 line91 line92 line93 line94 line95 line96 line97 line98 line99 line100 line101 line102 line103 line104 line105 line106 line107 line108 line109 line110 line111 line112 line113 line114 line115 line116 line117 line118 line119 line120 line121 line122 line123 line124 line125 line126 line127 line128 line129 line130 line131 line132 line133 line134 line135 line136 line137 line138 line139 line140 line141 line142 line143 line144 line145 line146 line147 line148 line149 line150 line151 line152 line153 line154 line155 line156 line157 line158 line159 line160 line161 line162 line163 line164 line165 line166 line167 line168 line169 line170 line171 line172 line173 line174 line175 line176 line177 line178 line179 line180 line181 line182 line183 line184 line185 line186 line187 line188 line189 line190 line191 line192 line193 line194 line195 line196 line197 line198 line199 line200 line201 line202 line203 line204 line205 line206 line207 line208 line209 line210 line211 line212 line213 line214 line215 line216 line217 line218 line219 line220 line221 line222 line223 line224 line225 line226 line227 line228 line229 line230 line231 line232 line233 line234 line235 line236 line237 line238 line239 line240 line241 line242 line243 line244 line245 line246 line247 line248 line249 line250 line251 line252 line253 line254 line255 line256 line257 line258 line259 line260 line261 line262 line26\n\n[... 3489 more characters truncated]\n\n[Assistant tool calls]: edit(path=\"src/parse.ts\", oldText=\"a\", newText=\"b\"); write(path=\"src/new.ts\", content=\"x\")\n\n[Tool result]: ok\n\n[Tool result]: ok\n\n[User]: Ran `npm test`\n```\nout0 out1 out2 out3 out4 out5 out6 out7 out8 out9 out10 out11 out12 out13 out14 out15 out16 out17 out18 out19 out20 out21 out22 out23 out24 out25 out26 out27 out28 out29 out30 out31 out32 out33 out34 out35 out36 out37 out38 out39\n```\n\nCommand exited with code 1\n\n[Output truncated. Full output: /tmp/full.log]\n\n[User]: Ran `pwd`\n```\n/w\n```\n\n[User]: Ran `sleep 9`\n(no output)\n\n(command cancelled)\n\n[User]: Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19\n\n[Assistant tool calls]: read(path=\"docs/README.md\"); grep(pattern=\"x\", path=\"src\")\n\n[Tool result]: readme body\n\n[Tool result]: match\n\n[Assistant]: Done with step one.\nSecond block.\n\n[User]: Look at this screenshot\n\n[Assistant]: I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49\n\n[User]: thanks",
"cutPoints": [
{
"keep": 0,
"result": {
"firstKeptEntryIndex": 21,
"turnStartIndex": -1,
"isSplitTurn": false
}
},
{
"keep": 1,
"result": {
"firstKeptEntryIndex": 21,
"turnStartIndex": -1,
"isSplitTurn": false
}
},
{
"keep": 20,
"result": {
"firstKeptEntryIndex": 20,
"turnStartIndex": 19,
"isSplitTurn": true
}
},
{
"keep": 50,
"result": {
"firstKeptEntryIndex": 20,
"turnStartIndex": 19,
"isSplitTurn": true
}
},
{
"keep": 150,
"result": {
"firstKeptEntryIndex": 19,
"turnStartIndex": -1,
"isSplitTurn": false
}
},
{
"keep": 400,
"result": {
"firstKeptEntryIndex": 19,
"turnStartIndex": -1,
"isSplitTurn": false
}
},
{
"keep": 900,
"result": {
"firstKeptEntryIndex": 19,
"turnStartIndex": -1,
"isSplitTurn": false
}
},
{
"keep": 1500,
"result": {
"firstKeptEntryIndex": 5,
"turnStartIndex": 2,
"isSplitTurn": true
}
},
{
"keep": 3000,
"result": {
"firstKeptEntryIndex": 2,
"turnStartIndex": -1,
"isSplitTurn": false
}
},
{
"keep": 100000,
"result": {
"firstKeptEntryIndex": 2,
"turnStartIndex": -1,
"isSplitTurn": false
}
}
],
"turnStarts": [
-1,
-1,
2,
2,
2,
2,
2,
2,
2,
9,
10,
11,
12,
13,
14,
14,
14,
14,
14,
19,
19,
21
],
"preparations": [
{
"keep": 0,
"prep": {
"firstKeptEntryId": "e22",
"messagesToSummarize": [
{
"role": "user",
"content": "Refactor the parser in src/parse.ts please ctx0 ctx1 ctx2 ctx3 ctx4 ctx5 ctx6 ctx7 ctx8 ctx9 ctx10 ctx11 ctx12 ctx13 ctx14 ctx15 ctx16 ctx17 ctx18 ctx19 ctx20 ctx21 ctx22 ctx23 ctx24 ctx25 ctx26 ctx27 ctx28 ctx29",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "thinking",
"thinking": "plan: read first"
},
{
"type": "text",
"text": "Reading."
},
{
"type": "toolCall",
"id": "c1",
"name": "read",
"arguments": {
"path": "src/parse.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 1200,
"output": 40,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1240,
"cost": {
"input": 0.0012,
"output": 0.0004,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0015999999999999999
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "line0 line1 line2 line3 line4 line5 line6 line7 line8 line9 line10 line11 line12 line13 line14 line15 line16 line17 line18 line19 line20 line21 line22 line23 line24 line25 line26 line27 line28 line29 line30 line31 line32 line33 line34 line35 line36 line37 line38 line39 line40 line41 line42 line43 line44 line45 line46 line47 line48 line49 line50 line51 line52 line53 line54 line55 line56 line57 line58 line59 line60 line61 line62 line63 line64 line65 line66 line67 line68 line69 line70 line71 line72 line73 line74 line75 line76 line77 line78 line79 line80 line81 line82 line83 line84 line85 line86 line87 line88 line89 line90 line91 line92 line93 line94 line95 line96 line97 line98 line99 line100 line101 line102 line103 line104 line105 line106 line107 line108 line109 line110 line111 line112 line113 line114 line115 line116 line117 line118 line119 line120 line121 line122 line123 line124 line125 line126 line127 line128 line129 line130 line131 line132 line133 line134 line135 line136 line137 line138 line139 line140 line141 line142 line143 line144 line145 line146 line147 line148 line149 line150 line151 line152 line153 line154 line155 line156 line157 line158 line159 line160 line161 line162 line163 line164 line165 line166 line167 line168 line169 line170 line171 line172 line173 line174 line175 line176 line177 line178 line179 line180 line181 line182 line183 line184 line185 line186 line187 line188 line189 line190 line191 line192 line193 line194 line195 line196 line197 line198 line199 line200 line201 line202 line203 line204 line205 line206 line207 line208 line209 line210 line211 line212 line213 line214 line215 line216 line217 line218 line219 line220 line221 line222 line223 line224 line225 line226 line227 line228 line229 line230 line231 line232 line233 line234 line235 line236 line237 line238 line239 line240 line241 line242 line243 line244 line245 line246 line247 line248 line249 line250 line251 line252 line253 line254 line255 line256 line257 line258 line259 line260 line261 line262 line263 line264 line265 line266 line267 line268 line269 line270 line271 line272 line273 line274 line275 line276 line277 line278 line279 line280 line281 line282 line283 line284 line285 line286 line287 line288 line289 line290 line291 line292 line293 line294 line295 line296 line297 line298 line299 line300 line301 line302 line303 line304 line305 line306 line307 line308 line309 line310 line311 line312 line313 line314 line315 line316 line317 line318 line319 line320 line321 line322 line323 line324 line325 line326 line327 line328 line329 line330 line331 line332 line333 line334 line335 line336 line337 line338 line339 line340 line341 line342 line343 line344 line345 line346 line347 line348 line349 line350 line351 line352 line353 line354 line355 line356 line357 line358 line359 line360 line361 line362 line363 line364 line365 line366 line367 line368 line369 line370 line371 line372 line373 line374 line375 line376 line377 line378 line379 line380 line381 line382 line383 line384 line385 line386 line387 line388 line389 line390 line391 line392 line393 line394 line395 line396 line397 line398 line399 line400 line401 line402 line403 line404 line405 line406 line407 line408 line409 line410 line411 line412 line413 line414 line415 line416 line417 line418 line419 line420 line421 line422 line423 line424 line425 line426 line427 line428 line429 line430 line431 line432 line433 line434 line435 line436 line437 line438 line439 line440 line441 line442 line443 line444 line445 line446 line447 line448 line449 line450 line451 line452 line453 line454 line455 line456 line457 line458 line459 line460 line461 line462 line463 line464 line465 line466 line467 line468 line469 line470 line471 line472 line473 line474 line475 line476 line477 line478 line479 line480 line481 line482 line483 line484 line485 line486 line487 line488 line489 line490 line491 line492 line493 line494 line495 line496 line497 line498 line499 line500 line501 line502 line503 line504 line505 line506 line507 line508 line509 line510 line511 line512 line513 line514 line515 line516 line517 line518 line519 line520 line521 line522 line523 line524 line525 line526 line527 line528 line529 line530 line531 line532 line533 line534 line535 line536 line537 line538 line539 line540 line541 line542 line543 line544 line545 line546 line547 line548 line549 line550 line551 line552 line553 line554 line555 line556 line557 line558 line559 line560 line561 line562 line563 line564 line565 line566 line567 line568 line569 line570 line571 line572 line573 line574 line575 line576 line577 line578 line579 line580 line581 line582 line583 line584 line585 line586 line587 line588 line589 line590 line591 line592 line593 line594 line595 line596 line597 line598 line599 line600 line601 line602 line603 line604 line605 line606 line607 line608 line609 line610 line611 line612 line613 line614 line615 line616 line617 line618 line619 line620 line621 line622 line623 line624 line625 line626 line627 line628 line629 line630 line631 line632 line633 line634 line635 line636 line637 line638 line639 line640 line641 line642 line643 line644 line645 line646 line647 line648 line649 line650 line651 line652 line653 line654 line655 line656 line657 line658 line659 line660 line661 line662 line663 line664 line665 line666 line667 line668 line669 line670 line671 line672 line673 line674 line675 line676 line677 line678 line679 line680 line681 line682 line683 line684 line685 line686 line687 line688 line689 line690 line691 line692 line693 line694 line695 line696 line697 line698 line699"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c2",
"name": "edit",
"arguments": {
"path": "src/parse.ts",
"oldText": "a",
"newText": "b"
}
},
{
"type": "toolCall",
"id": "c3",
"name": "write",
"arguments": {
"path": "src/new.ts",
"content": "x"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 2400,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 2460,
"cost": {
"input": 0.0024,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0029999999999999996
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c2",
"toolName": "edit",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "toolResult",
"toolCallId": "c3",
"toolName": "write",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "bashExecution",
"command": "npm test",
"output": "out0 out1 out2 out3 out4 out5 out6 out7 out8 out9 out10 out11 out12 out13 out14 out15 out16 out17 out18 out19 out20 out21 out22 out23 out24 out25 out26 out27 out28 out29 out30 out31 out32 out33 out34 out35 out36 out37 out38 out39",
"exitCode": 1,
"cancelled": false,
"truncated": true,
"fullOutputPath": "/tmp/full.log",
"timestamp": 4
},
{
"role": "bashExecution",
"command": "ls",
"output": "",
"exitCode": 0,
"cancelled": false,
"truncated": false,
"excludeFromContext": true,
"timestamp": 4
},
{
"role": "bashExecution",
"command": "pwd",
"output": "/w",
"exitCode": 0,
"cancelled": false,
"truncated": true,
"timestamp": 4
},
{
"role": "bashExecution",
"command": "sleep 9",
"output": "",
"exitCode": null,
"cancelled": true,
"truncated": false,
"timestamp": 4
},
{
"role": "custom",
"customType": "note",
"content": "Remember the 80 column limit 🙂",
"display": true,
"details": {
"k": 1
},
"timestamp": 1735689614000
},
{
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c4",
"toolName": "read",
"content": [
{
"type": "text",
"text": "readme body"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "toolResult",
"toolCallId": "c5",
"toolName": "grep",
"content": [
{
"type": "text",
"text": "match"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "Look at this screenshot"
},
{
"type": "image",
"data": "AAAA",
"mimeType": "image/png"
}
],
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 5200,
"output": 90,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 5290,
"cost": {
"input": 0.0052,
"output": 0.0009,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0060999999999999995
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"turnPrefixMessages": [],
"isSplitTurn": false,
"tokensBefore": 5292,
"previousSummary": null,
"fileOps": {
"read": [
"src/parse.ts",
"docs/README.md"
],
"written": [
"src/new.ts"
],
"edited": [
"src/parse.ts"
]
}
}
},
{
"keep": 1,
"prep": {
"firstKeptEntryId": "e22",
"messagesToSummarize": [
{
"role": "user",
"content": "Refactor the parser in src/parse.ts please ctx0 ctx1 ctx2 ctx3 ctx4 ctx5 ctx6 ctx7 ctx8 ctx9 ctx10 ctx11 ctx12 ctx13 ctx14 ctx15 ctx16 ctx17 ctx18 ctx19 ctx20 ctx21 ctx22 ctx23 ctx24 ctx25 ctx26 ctx27 ctx28 ctx29",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "thinking",
"thinking": "plan: read first"
},
{
"type": "text",
"text": "Reading."
},
{
"type": "toolCall",
"id": "c1",
"name": "read",
"arguments": {
"path": "src/parse.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 1200,
"output": 40,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1240,
"cost": {
"input": 0.0012,
"output": 0.0004,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0015999999999999999
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "line0 line1 line2 line3 line4 line5 line6 line7 line8 line9 line10 line11 line12 line13 line14 line15 line16 line17 line18 line19 line20 line21 line22 line23 line24 line25 line26 line27 line28 line29 line30 line31 line32 line33 line34 line35 line36 line37 line38 line39 line40 line41 line42 line43 line44 line45 line46 line47 line48 line49 line50 line51 line52 line53 line54 line55 line56 line57 line58 line59 line60 line61 line62 line63 line64 line65 line66 line67 line68 line69 line70 line71 line72 line73 line74 line75 line76 line77 line78 line79 line80 line81 line82 line83 line84 line85 line86 line87 line88 line89 line90 line91 line92 line93 line94 line95 line96 line97 line98 line99 line100 line101 line102 line103 line104 line105 line106 line107 line108 line109 line110 line111 line112 line113 line114 line115 line116 line117 line118 line119 line120 line121 line122 line123 line124 line125 line126 line127 line128 line129 line130 line131 line132 line133 line134 line135 line136 line137 line138 line139 line140 line141 line142 line143 line144 line145 line146 line147 line148 line149 line150 line151 line152 line153 line154 line155 line156 line157 line158 line159 line160 line161 line162 line163 line164 line165 line166 line167 line168 line169 line170 line171 line172 line173 line174 line175 line176 line177 line178 line179 line180 line181 line182 line183 line184 line185 line186 line187 line188 line189 line190 line191 line192 line193 line194 line195 line196 line197 line198 line199 line200 line201 line202 line203 line204 line205 line206 line207 line208 line209 line210 line211 line212 line213 line214 line215 line216 line217 line218 line219 line220 line221 line222 line223 line224 line225 line226 line227 line228 line229 line230 line231 line232 line233 line234 line235 line236 line237 line238 line239 line240 line241 line242 line243 line244 line245 line246 line247 line248 line249 line250 line251 line252 line253 line254 line255 line256 line257 line258 line259 line260 line261 line262 line263 line264 line265 line266 line267 line268 line269 line270 line271 line272 line273 line274 line275 line276 line277 line278 line279 line280 line281 line282 line283 line284 line285 line286 line287 line288 line289 line290 line291 line292 line293 line294 line295 line296 line297 line298 line299 line300 line301 line302 line303 line304 line305 line306 line307 line308 line309 line310 line311 line312 line313 line314 line315 line316 line317 line318 line319 line320 line321 line322 line323 line324 line325 line326 line327 line328 line329 line330 line331 line332 line333 line334 line335 line336 line337 line338 line339 line340 line341 line342 line343 line344 line345 line346 line347 line348 line349 line350 line351 line352 line353 line354 line355 line356 line357 line358 line359 line360 line361 line362 line363 line364 line365 line366 line367 line368 line369 line370 line371 line372 line373 line374 line375 line376 line377 line378 line379 line380 line381 line382 line383 line384 line385 line386 line387 line388 line389 line390 line391 line392 line393 line394 line395 line396 line397 line398 line399 line400 line401 line402 line403 line404 line405 line406 line407 line408 line409 line410 line411 line412 line413 line414 line415 line416 line417 line418 line419 line420 line421 line422 line423 line424 line425 line426 line427 line428 line429 line430 line431 line432 line433 line434 line435 line436 line437 line438 line439 line440 line441 line442 line443 line444 line445 line446 line447 line448 line449 line450 line451 line452 line453 line454 line455 line456 line457 line458 line459 line460 line461 line462 line463 line464 line465 line466 line467 line468 line469 line470 line471 line472 line473 line474 line475 line476 line477 line478 line479 line480 line481 line482 line483 line484 line485 line486 line487 line488 line489 line490 line491 line492 line493 line494 line495 line496 line497 line498 line499 line500 line501 line502 line503 line504 line505 line506 line507 line508 line509 line510 line511 line512 line513 line514 line515 line516 line517 line518 line519 line520 line521 line522 line523 line524 line525 line526 line527 line528 line529 line530 line531 line532 line533 line534 line535 line536 line537 line538 line539 line540 line541 line542 line543 line544 line545 line546 line547 line548 line549 line550 line551 line552 line553 line554 line555 line556 line557 line558 line559 line560 line561 line562 line563 line564 line565 line566 line567 line568 line569 line570 line571 line572 line573 line574 line575 line576 line577 line578 line579 line580 line581 line582 line583 line584 line585 line586 line587 line588 line589 line590 line591 line592 line593 line594 line595 line596 line597 line598 line599 line600 line601 line602 line603 line604 line605 line606 line607 line608 line609 line610 line611 line612 line613 line614 line615 line616 line617 line618 line619 line620 line621 line622 line623 line624 line625 line626 line627 line628 line629 line630 line631 line632 line633 line634 line635 line636 line637 line638 line639 line640 line641 line642 line643 line644 line645 line646 line647 line648 line649 line650 line651 line652 line653 line654 line655 line656 line657 line658 line659 line660 line661 line662 line663 line664 line665 line666 line667 line668 line669 line670 line671 line672 line673 line674 line675 line676 line677 line678 line679 line680 line681 line682 line683 line684 line685 line686 line687 line688 line689 line690 line691 line692 line693 line694 line695 line696 line697 line698 line699"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c2",
"name": "edit",
"arguments": {
"path": "src/parse.ts",
"oldText": "a",
"newText": "b"
}
},
{
"type": "toolCall",
"id": "c3",
"name": "write",
"arguments": {
"path": "src/new.ts",
"content": "x"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 2400,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 2460,
"cost": {
"input": 0.0024,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0029999999999999996
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c2",
"toolName": "edit",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "toolResult",
"toolCallId": "c3",
"toolName": "write",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "bashExecution",
"command": "npm test",
"output": "out0 out1 out2 out3 out4 out5 out6 out7 out8 out9 out10 out11 out12 out13 out14 out15 out16 out17 out18 out19 out20 out21 out22 out23 out24 out25 out26 out27 out28 out29 out30 out31 out32 out33 out34 out35 out36 out37 out38 out39",
"exitCode": 1,
"cancelled": false,
"truncated": true,
"fullOutputPath": "/tmp/full.log",
"timestamp": 4
},
{
"role": "bashExecution",
"command": "ls",
"output": "",
"exitCode": 0,
"cancelled": false,
"truncated": false,
"excludeFromContext": true,
"timestamp": 4
},
{
"role": "bashExecution",
"command": "pwd",
"output": "/w",
"exitCode": 0,
"cancelled": false,
"truncated": true,
"timestamp": 4
},
{
"role": "bashExecution",
"command": "sleep 9",
"output": "",
"exitCode": null,
"cancelled": true,
"truncated": false,
"timestamp": 4
},
{
"role": "custom",
"customType": "note",
"content": "Remember the 80 column limit 🙂",
"display": true,
"details": {
"k": 1
},
"timestamp": 1735689614000
},
{
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c4",
"toolName": "read",
"content": [
{
"type": "text",
"text": "readme body"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "toolResult",
"toolCallId": "c5",
"toolName": "grep",
"content": [
{
"type": "text",
"text": "match"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "Look at this screenshot"
},
{
"type": "image",
"data": "AAAA",
"mimeType": "image/png"
}
],
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 5200,
"output": 90,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 5290,
"cost": {
"input": 0.0052,
"output": 0.0009,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0060999999999999995
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"turnPrefixMessages": [],
"isSplitTurn": false,
"tokensBefore": 5292,
"previousSummary": null,
"fileOps": {
"read": [
"src/parse.ts",
"docs/README.md"
],
"written": [
"src/new.ts"
],
"edited": [
"src/parse.ts"
]
}
}
},
{
"keep": 20,
"prep": {
"firstKeptEntryId": "e21",
"messagesToSummarize": [
{
"role": "user",
"content": "Refactor the parser in src/parse.ts please ctx0 ctx1 ctx2 ctx3 ctx4 ctx5 ctx6 ctx7 ctx8 ctx9 ctx10 ctx11 ctx12 ctx13 ctx14 ctx15 ctx16 ctx17 ctx18 ctx19 ctx20 ctx21 ctx22 ctx23 ctx24 ctx25 ctx26 ctx27 ctx28 ctx29",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "thinking",
"thinking": "plan: read first"
},
{
"type": "text",
"text": "Reading."
},
{
"type": "toolCall",
"id": "c1",
"name": "read",
"arguments": {
"path": "src/parse.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 1200,
"output": 40,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1240,
"cost": {
"input": 0.0012,
"output": 0.0004,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0015999999999999999
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "line0 line1 line2 line3 line4 line5 line6 line7 line8 line9 line10 line11 line12 line13 line14 line15 line16 line17 line18 line19 line20 line21 line22 line23 line24 line25 line26 line27 line28 line29 line30 line31 line32 line33 line34 line35 line36 line37 line38 line39 line40 line41 line42 line43 line44 line45 line46 line47 line48 line49 line50 line51 line52 line53 line54 line55 line56 line57 line58 line59 line60 line61 line62 line63 line64 line65 line66 line67 line68 line69 line70 line71 line72 line73 line74 line75 line76 line77 line78 line79 line80 line81 line82 line83 line84 line85 line86 line87 line88 line89 line90 line91 line92 line93 line94 line95 line96 line97 line98 line99 line100 line101 line102 line103 line104 line105 line106 line107 line108 line109 line110 line111 line112 line113 line114 line115 line116 line117 line118 line119 line120 line121 line122 line123 line124 line125 line126 line127 line128 line129 line130 line131 line132 line133 line134 line135 line136 line137 line138 line139 line140 line141 line142 line143 line144 line145 line146 line147 line148 line149 line150 line151 line152 line153 line154 line155 line156 line157 line158 line159 line160 line161 line162 line163 line164 line165 line166 line167 line168 line169 line170 line171 line172 line173 line174 line175 line176 line177 line178 line179 line180 line181 line182 line183 line184 line185 line186 line187 line188 line189 line190 line191 line192 line193 line194 line195 line196 line197 line198 line199 line200 line201 line202 line203 line204 line205 line206 line207 line208 line209 line210 line211 line212 line213 line214 line215 line216 line217 line218 line219 line220 line221 line222 line223 line224 line225 line226 line227 line228 line229 line230 line231 line232 line233 line234 line235 line236 line237 line238 line239 line240 line241 line242 line243 line244 line245 line246 line247 line248 line249 line250 line251 line252 line253 line254 line255 line256 line257 line258 line259 line260 line261 line262 line263 line264 line265 line266 line267 line268 line269 line270 line271 line272 line273 line274 line275 line276 line277 line278 line279 line280 line281 line282 line283 line284 line285 line286 line287 line288 line289 line290 line291 line292 line293 line294 line295 line296 line297 line298 line299 line300 line301 line302 line303 line304 line305 line306 line307 line308 line309 line310 line311 line312 line313 line314 line315 line316 line317 line318 line319 line320 line321 line322 line323 line324 line325 line326 line327 line328 line329 line330 line331 line332 line333 line334 line335 line336 line337 line338 line339 line340 line341 line342 line343 line344 line345 line346 line347 line348 line349 line350 line351 line352 line353 line354 line355 line356 line357 line358 line359 line360 line361 line362 line363 line364 line365 line366 line367 line368 line369 line370 line371 line372 line373 line374 line375 line376 line377 line378 line379 line380 line381 line382 line383 line384 line385 line386 line387 line388 line389 line390 line391 line392 line393 line394 line395 line396 line397 line398 line399 line400 line401 line402 line403 line404 line405 line406 line407 line408 line409 line410 line411 line412 line413 line414 line415 line416 line417 line418 line419 line420 line421 line422 line423 line424 line425 line426 line427 line428 line429 line430 line431 line432 line433 line434 line435 line436 line437 line438 line439 line440 line441 line442 line443 line444 line445 line446 line447 line448 line449 line450 line451 line452 line453 line454 line455 line456 line457 line458 line459 line460 line461 line462 line463 line464 line465 line466 line467 line468 line469 line470 line471 line472 line473 line474 line475 line476 line477 line478 line479 line480 line481 line482 line483 line484 line485 line486 line487 line488 line489 line490 line491 line492 line493 line494 line495 line496 line497 line498 line499 line500 line501 line502 line503 line504 line505 line506 line507 line508 line509 line510 line511 line512 line513 line514 line515 line516 line517 line518 line519 line520 line521 line522 line523 line524 line525 line526 line527 line528 line529 line530 line531 line532 line533 line534 line535 line536 line537 line538 line539 line540 line541 line542 line543 line544 line545 line546 line547 line548 line549 line550 line551 line552 line553 line554 line555 line556 line557 line558 line559 line560 line561 line562 line563 line564 line565 line566 line567 line568 line569 line570 line571 line572 line573 line574 line575 line576 line577 line578 line579 line580 line581 line582 line583 line584 line585 line586 line587 line588 line589 line590 line591 line592 line593 line594 line595 line596 line597 line598 line599 line600 line601 line602 line603 line604 line605 line606 line607 line608 line609 line610 line611 line612 line613 line614 line615 line616 line617 line618 line619 line620 line621 line622 line623 line624 line625 line626 line627 line628 line629 line630 line631 line632 line633 line634 line635 line636 line637 line638 line639 line640 line641 line642 line643 line644 line645 line646 line647 line648 line649 line650 line651 line652 line653 line654 line655 line656 line657 line658 line659 line660 line661 line662 line663 line664 line665 line666 line667 line668 line669 line670 line671 line672 line673 line674 line675 line676 line677 line678 line679 line680 line681 line682 line683 line684 line685 line686 line687 line688 line689 line690 line691 line692 line693 line694 line695 line696 line697 line698 line699"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c2",
"name": "edit",
"arguments": {
"path": "src/parse.ts",
"oldText": "a",
"newText": "b"
}
},
{
"type": "toolCall",
"id": "c3",
"name": "write",
"arguments": {
"path": "src/new.ts",
"content": "x"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 2400,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 2460,
"cost": {
"input": 0.0024,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0029999999999999996
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c2",
"toolName": "edit",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "toolResult",
"toolCallId": "c3",
"toolName": "write",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "bashExecution",
"command": "npm test",
"output": "out0 out1 out2 out3 out4 out5 out6 out7 out8 out9 out10 out11 out12 out13 out14 out15 out16 out17 out18 out19 out20 out21 out22 out23 out24 out25 out26 out27 out28 out29 out30 out31 out32 out33 out34 out35 out36 out37 out38 out39",
"exitCode": 1,
"cancelled": false,
"truncated": true,
"fullOutputPath": "/tmp/full.log",
"timestamp": 4
},
{
"role": "bashExecution",
"command": "ls",
"output": "",
"exitCode": 0,
"cancelled": false,
"truncated": false,
"excludeFromContext": true,
"timestamp": 4
},
{
"role": "bashExecution",
"command": "pwd",
"output": "/w",
"exitCode": 0,
"cancelled": false,
"truncated": true,
"timestamp": 4
},
{
"role": "bashExecution",
"command": "sleep 9",
"output": "",
"exitCode": null,
"cancelled": true,
"truncated": false,
"timestamp": 4
},
{
"role": "custom",
"customType": "note",
"content": "Remember the 80 column limit 🙂",
"display": true,
"details": {
"k": 1
},
"timestamp": 1735689614000
},
{
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c4",
"toolName": "read",
"content": [
{
"type": "text",
"text": "readme body"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "toolResult",
"toolCallId": "c5",
"toolName": "grep",
"content": [
{
"type": "text",
"text": "match"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
}
],
"turnPrefixMessages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Look at this screenshot"
},
{
"type": "image",
"data": "AAAA",
"mimeType": "image/png"
}
],
"timestamp": 1
}
],
"isSplitTurn": true,
"tokensBefore": 5292,
"previousSummary": null,
"fileOps": {
"read": [
"src/parse.ts",
"docs/README.md"
],
"written": [
"src/new.ts"
],
"edited": [
"src/parse.ts"
]
}
}
},
{
"keep": 50,
"prep": {
"firstKeptEntryId": "e21",
"messagesToSummarize": [
{
"role": "user",
"content": "Refactor the parser in src/parse.ts please ctx0 ctx1 ctx2 ctx3 ctx4 ctx5 ctx6 ctx7 ctx8 ctx9 ctx10 ctx11 ctx12 ctx13 ctx14 ctx15 ctx16 ctx17 ctx18 ctx19 ctx20 ctx21 ctx22 ctx23 ctx24 ctx25 ctx26 ctx27 ctx28 ctx29",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "thinking",
"thinking": "plan: read first"
},
{
"type": "text",
"text": "Reading."
},
{
"type": "toolCall",
"id": "c1",
"name": "read",
"arguments": {
"path": "src/parse.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 1200,
"output": 40,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1240,
"cost": {
"input": 0.0012,
"output": 0.0004,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0015999999999999999
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "line0 line1 line2 line3 line4 line5 line6 line7 line8 line9 line10 line11 line12 line13 line14 line15 line16 line17 line18 line19 line20 line21 line22 line23 line24 line25 line26 line27 line28 line29 line30 line31 line32 line33 line34 line35 line36 line37 line38 line39 line40 line41 line42 line43 line44 line45 line46 line47 line48 line49 line50 line51 line52 line53 line54 line55 line56 line57 line58 line59 line60 line61 line62 line63 line64 line65 line66 line67 line68 line69 line70 line71 line72 line73 line74 line75 line76 line77 line78 line79 line80 line81 line82 line83 line84 line85 line86 line87 line88 line89 line90 line91 line92 line93 line94 line95 line96 line97 line98 line99 line100 line101 line102 line103 line104 line105 line106 line107 line108 line109 line110 line111 line112 line113 line114 line115 line116 line117 line118 line119 line120 line121 line122 line123 line124 line125 line126 line127 line128 line129 line130 line131 line132 line133 line134 line135 line136 line137 line138 line139 line140 line141 line142 line143 line144 line145 line146 line147 line148 line149 line150 line151 line152 line153 line154 line155 line156 line157 line158 line159 line160 line161 line162 line163 line164 line165 line166 line167 line168 line169 line170 line171 line172 line173 line174 line175 line176 line177 line178 line179 line180 line181 line182 line183 line184 line185 line186 line187 line188 line189 line190 line191 line192 line193 line194 line195 line196 line197 line198 line199 line200 line201 line202 line203 line204 line205 line206 line207 line208 line209 line210 line211 line212 line213 line214 line215 line216 line217 line218 line219 line220 line221 line222 line223 line224 line225 line226 line227 line228 line229 line230 line231 line232 line233 line234 line235 line236 line237 line238 line239 line240 line241 line242 line243 line244 line245 line246 line247 line248 line249 line250 line251 line252 line253 line254 line255 line256 line257 line258 line259 line260 line261 line262 line263 line264 line265 line266 line267 line268 line269 line270 line271 line272 line273 line274 line275 line276 line277 line278 line279 line280 line281 line282 line283 line284 line285 line286 line287 line288 line289 line290 line291 line292 line293 line294 line295 line296 line297 line298 line299 line300 line301 line302 line303 line304 line305 line306 line307 line308 line309 line310 line311 line312 line313 line314 line315 line316 line317 line318 line319 line320 line321 line322 line323 line324 line325 line326 line327 line328 line329 line330 line331 line332 line333 line334 line335 line336 line337 line338 line339 line340 line341 line342 line343 line344 line345 line346 line347 line348 line349 line350 line351 line352 line353 line354 line355 line356 line357 line358 line359 line360 line361 line362 line363 line364 line365 line366 line367 line368 line369 line370 line371 line372 line373 line374 line375 line376 line377 line378 line379 line380 line381 line382 line383 line384 line385 line386 line387 line388 line389 line390 line391 line392 line393 line394 line395 line396 line397 line398 line399 line400 line401 line402 line403 line404 line405 line406 line407 line408 line409 line410 line411 line412 line413 line414 line415 line416 line417 line418 line419 line420 line421 line422 line423 line424 line425 line426 line427 line428 line429 line430 line431 line432 line433 line434 line435 line436 line437 line438 line439 line440 line441 line442 line443 line444 line445 line446 line447 line448 line449 line450 line451 line452 line453 line454 line455 line456 line457 line458 line459 line460 line461 line462 line463 line464 line465 line466 line467 line468 line469 line470 line471 line472 line473 line474 line475 line476 line477 line478 line479 line480 line481 line482 line483 line484 line485 line486 line487 line488 line489 line490 line491 line492 line493 line494 line495 line496 line497 line498 line499 line500 line501 line502 line503 line504 line505 line506 line507 line508 line509 line510 line511 line512 line513 line514 line515 line516 line517 line518 line519 line520 line521 line522 line523 line524 line525 line526 line527 line528 line529 line530 line531 line532 line533 line534 line535 line536 line537 line538 line539 line540 line541 line542 line543 line544 line545 line546 line547 line548 line549 line550 line551 line552 line553 line554 line555 line556 line557 line558 line559 line560 line561 line562 line563 line564 line565 line566 line567 line568 line569 line570 line571 line572 line573 line574 line575 line576 line577 line578 line579 line580 line581 line582 line583 line584 line585 line586 line587 line588 line589 line590 line591 line592 line593 line594 line595 line596 line597 line598 line599 line600 line601 line602 line603 line604 line605 line606 line607 line608 line609 line610 line611 line612 line613 line614 line615 line616 line617 line618 line619 line620 line621 line622 line623 line624 line625 line626 line627 line628 line629 line630 line631 line632 line633 line634 line635 line636 line637 line638 line639 line640 line641 line642 line643 line644 line645 line646 line647 line648 line649 line650 line651 line652 line653 line654 line655 line656 line657 line658 line659 line660 line661 line662 line663 line664 line665 line666 line667 line668 line669 line670 line671 line672 line673 line674 line675 line676 line677 line678 line679 line680 line681 line682 line683 line684 line685 line686 line687 line688 line689 line690 line691 line692 line693 line694 line695 line696 line697 line698 line699"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c2",
"name": "edit",
"arguments": {
"path": "src/parse.ts",
"oldText": "a",
"newText": "b"
}
},
{
"type": "toolCall",
"id": "c3",
"name": "write",
"arguments": {
"path": "src/new.ts",
"content": "x"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 2400,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 2460,
"cost": {
"input": 0.0024,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0029999999999999996
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c2",
"toolName": "edit",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "toolResult",
"toolCallId": "c3",
"toolName": "write",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "bashExecution",
"command": "npm test",
"output": "out0 out1 out2 out3 out4 out5 out6 out7 out8 out9 out10 out11 out12 out13 out14 out15 out16 out17 out18 out19 out20 out21 out22 out23 out24 out25 out26 out27 out28 out29 out30 out31 out32 out33 out34 out35 out36 out37 out38 out39",
"exitCode": 1,
"cancelled": false,
"truncated": true,
"fullOutputPath": "/tmp/full.log",
"timestamp": 4
},
{
"role": "bashExecution",
"command": "ls",
"output": "",
"exitCode": 0,
"cancelled": false,
"truncated": false,
"excludeFromContext": true,
"timestamp": 4
},
{
"role": "bashExecution",
"command": "pwd",
"output": "/w",
"exitCode": 0,
"cancelled": false,
"truncated": true,
"timestamp": 4
},
{
"role": "bashExecution",
"command": "sleep 9",
"output": "",
"exitCode": null,
"cancelled": true,
"truncated": false,
"timestamp": 4
},
{
"role": "custom",
"customType": "note",
"content": "Remember the 80 column limit 🙂",
"display": true,
"details": {
"k": 1
},
"timestamp": 1735689614000
},
{
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c4",
"toolName": "read",
"content": [
{
"type": "text",
"text": "readme body"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "toolResult",
"toolCallId": "c5",
"toolName": "grep",
"content": [
{
"type": "text",
"text": "match"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
}
],
"turnPrefixMessages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Look at this screenshot"
},
{
"type": "image",
"data": "AAAA",
"mimeType": "image/png"
}
],
"timestamp": 1
}
],
"isSplitTurn": true,
"tokensBefore": 5292,
"previousSummary": null,
"fileOps": {
"read": [
"src/parse.ts",
"docs/README.md"
],
"written": [
"src/new.ts"
],
"edited": [
"src/parse.ts"
]
}
}
},
{
"keep": 150,
"prep": {
"firstKeptEntryId": "e20",
"messagesToSummarize": [
{
"role": "user",
"content": "Refactor the parser in src/parse.ts please ctx0 ctx1 ctx2 ctx3 ctx4 ctx5 ctx6 ctx7 ctx8 ctx9 ctx10 ctx11 ctx12 ctx13 ctx14 ctx15 ctx16 ctx17 ctx18 ctx19 ctx20 ctx21 ctx22 ctx23 ctx24 ctx25 ctx26 ctx27 ctx28 ctx29",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "thinking",
"thinking": "plan: read first"
},
{
"type": "text",
"text": "Reading."
},
{
"type": "toolCall",
"id": "c1",
"name": "read",
"arguments": {
"path": "src/parse.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 1200,
"output": 40,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1240,
"cost": {
"input": 0.0012,
"output": 0.0004,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0015999999999999999
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "line0 line1 line2 line3 line4 line5 line6 line7 line8 line9 line10 line11 line12 line13 line14 line15 line16 line17 line18 line19 line20 line21 line22 line23 line24 line25 line26 line27 line28 line29 line30 line31 line32 line33 line34 line35 line36 line37 line38 line39 line40 line41 line42 line43 line44 line45 line46 line47 line48 line49 line50 line51 line52 line53 line54 line55 line56 line57 line58 line59 line60 line61 line62 line63 line64 line65 line66 line67 line68 line69 line70 line71 line72 line73 line74 line75 line76 line77 line78 line79 line80 line81 line82 line83 line84 line85 line86 line87 line88 line89 line90 line91 line92 line93 line94 line95 line96 line97 line98 line99 line100 line101 line102 line103 line104 line105 line106 line107 line108 line109 line110 line111 line112 line113 line114 line115 line116 line117 line118 line119 line120 line121 line122 line123 line124 line125 line126 line127 line128 line129 line130 line131 line132 line133 line134 line135 line136 line137 line138 line139 line140 line141 line142 line143 line144 line145 line146 line147 line148 line149 line150 line151 line152 line153 line154 line155 line156 line157 line158 line159 line160 line161 line162 line163 line164 line165 line166 line167 line168 line169 line170 line171 line172 line173 line174 line175 line176 line177 line178 line179 line180 line181 line182 line183 line184 line185 line186 line187 line188 line189 line190 line191 line192 line193 line194 line195 line196 line197 line198 line199 line200 line201 line202 line203 line204 line205 line206 line207 line208 line209 line210 line211 line212 line213 line214 line215 line216 line217 line218 line219 line220 line221 line222 line223 line224 line225 line226 line227 line228 line229 line230 line231 line232 line233 line234 line235 line236 line237 line238 line239 line240 line241 line242 line243 line244 line245 line246 line247 line248 line249 line250 line251 line252 line253 line254 line255 line256 line257 line258 line259 line260 line261 line262 line263 line264 line265 line266 line267 line268 line269 line270 line271 line272 line273 line274 line275 line276 line277 line278 line279 line280 line281 line282 line283 line284 line285 line286 line287 line288 line289 line290 line291 line292 line293 line294 line295 line296 line297 line298 line299 line300 line301 line302 line303 line304 line305 line306 line307 line308 line309 line310 line311 line312 line313 line314 line315 line316 line317 line318 line319 line320 line321 line322 line323 line324 line325 line326 line327 line328 line329 line330 line331 line332 line333 line334 line335 line336 line337 line338 line339 line340 line341 line342 line343 line344 line345 line346 line347 line348 line349 line350 line351 line352 line353 line354 line355 line356 line357 line358 line359 line360 line361 line362 line363 line364 line365 line366 line367 line368 line369 line370 line371 line372 line373 line374 line375 line376 line377 line378 line379 line380 line381 line382 line383 line384 line385 line386 line387 line388 line389 line390 line391 line392 line393 line394 line395 line396 line397 line398 line399 line400 line401 line402 line403 line404 line405 line406 line407 line408 line409 line410 line411 line412 line413 line414 line415 line416 line417 line418 line419 line420 line421 line422 line423 line424 line425 line426 line427 line428 line429 line430 line431 line432 line433 line434 line435 line436 line437 line438 line439 line440 line441 line442 line443 line444 line445 line446 line447 line448 line449 line450 line451 line452 line453 line454 line455 line456 line457 line458 line459 line460 line461 line462 line463 line464 line465 line466 line467 line468 line469 line470 line471 line472 line473 line474 line475 line476 line477 line478 line479 line480 line481 line482 line483 line484 line485 line486 line487 line488 line489 line490 line491 line492 line493 line494 line495 line496 line497 line498 line499 line500 line501 line502 line503 line504 line505 line506 line507 line508 line509 line510 line511 line512 line513 line514 line515 line516 line517 line518 line519 line520 line521 line522 line523 line524 line525 line526 line527 line528 line529 line530 line531 line532 line533 line534 line535 line536 line537 line538 line539 line540 line541 line542 line543 line544 line545 line546 line547 line548 line549 line550 line551 line552 line553 line554 line555 line556 line557 line558 line559 line560 line561 line562 line563 line564 line565 line566 line567 line568 line569 line570 line571 line572 line573 line574 line575 line576 line577 line578 line579 line580 line581 line582 line583 line584 line585 line586 line587 line588 line589 line590 line591 line592 line593 line594 line595 line596 line597 line598 line599 line600 line601 line602 line603 line604 line605 line606 line607 line608 line609 line610 line611 line612 line613 line614 line615 line616 line617 line618 line619 line620 line621 line622 line623 line624 line625 line626 line627 line628 line629 line630 line631 line632 line633 line634 line635 line636 line637 line638 line639 line640 line641 line642 line643 line644 line645 line646 line647 line648 line649 line650 line651 line652 line653 line654 line655 line656 line657 line658 line659 line660 line661 line662 line663 line664 line665 line666 line667 line668 line669 line670 line671 line672 line673 line674 line675 line676 line677 line678 line679 line680 line681 line682 line683 line684 line685 line686 line687 line688 line689 line690 line691 line692 line693 line694 line695 line696 line697 line698 line699"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c2",
"name": "edit",
"arguments": {
"path": "src/parse.ts",
"oldText": "a",
"newText": "b"
}
},
{
"type": "toolCall",
"id": "c3",
"name": "write",
"arguments": {
"path": "src/new.ts",
"content": "x"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 2400,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 2460,
"cost": {
"input": 0.0024,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0029999999999999996
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c2",
"toolName": "edit",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "toolResult",
"toolCallId": "c3",
"toolName": "write",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "bashExecution",
"command": "npm test",
"output": "out0 out1 out2 out3 out4 out5 out6 out7 out8 out9 out10 out11 out12 out13 out14 out15 out16 out17 out18 out19 out20 out21 out22 out23 out24 out25 out26 out27 out28 out29 out30 out31 out32 out33 out34 out35 out36 out37 out38 out39",
"exitCode": 1,
"cancelled": false,
"truncated": true,
"fullOutputPath": "/tmp/full.log",
"timestamp": 4
},
{
"role": "bashExecution",
"command": "ls",
"output": "",
"exitCode": 0,
"cancelled": false,
"truncated": false,
"excludeFromContext": true,
"timestamp": 4
},
{
"role": "bashExecution",
"command": "pwd",
"output": "/w",
"exitCode": 0,
"cancelled": false,
"truncated": true,
"timestamp": 4
},
{
"role": "bashExecution",
"command": "sleep 9",
"output": "",
"exitCode": null,
"cancelled": true,
"truncated": false,
"timestamp": 4
},
{
"role": "custom",
"customType": "note",
"content": "Remember the 80 column limit 🙂",
"display": true,
"details": {
"k": 1
},
"timestamp": 1735689614000
},
{
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c4",
"toolName": "read",
"content": [
{
"type": "text",
"text": "readme body"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "toolResult",
"toolCallId": "c5",
"toolName": "grep",
"content": [
{
"type": "text",
"text": "match"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
}
],
"turnPrefixMessages": [],
"isSplitTurn": false,
"tokensBefore": 5292,
"previousSummary": null,
"fileOps": {
"read": [
"src/parse.ts",
"docs/README.md"
],
"written": [
"src/new.ts"
],
"edited": [
"src/parse.ts"
]
}
}
},
{
"keep": 400,
"prep": {
"firstKeptEntryId": "e20",
"messagesToSummarize": [
{
"role": "user",
"content": "Refactor the parser in src/parse.ts please ctx0 ctx1 ctx2 ctx3 ctx4 ctx5 ctx6 ctx7 ctx8 ctx9 ctx10 ctx11 ctx12 ctx13 ctx14 ctx15 ctx16 ctx17 ctx18 ctx19 ctx20 ctx21 ctx22 ctx23 ctx24 ctx25 ctx26 ctx27 ctx28 ctx29",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "thinking",
"thinking": "plan: read first"
},
{
"type": "text",
"text": "Reading."
},
{
"type": "toolCall",
"id": "c1",
"name": "read",
"arguments": {
"path": "src/parse.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 1200,
"output": 40,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1240,
"cost": {
"input": 0.0012,
"output": 0.0004,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0015999999999999999
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "line0 line1 line2 line3 line4 line5 line6 line7 line8 line9 line10 line11 line12 line13 line14 line15 line16 line17 line18 line19 line20 line21 line22 line23 line24 line25 line26 line27 line28 line29 line30 line31 line32 line33 line34 line35 line36 line37 line38 line39 line40 line41 line42 line43 line44 line45 line46 line47 line48 line49 line50 line51 line52 line53 line54 line55 line56 line57 line58 line59 line60 line61 line62 line63 line64 line65 line66 line67 line68 line69 line70 line71 line72 line73 line74 line75 line76 line77 line78 line79 line80 line81 line82 line83 line84 line85 line86 line87 line88 line89 line90 line91 line92 line93 line94 line95 line96 line97 line98 line99 line100 line101 line102 line103 line104 line105 line106 line107 line108 line109 line110 line111 line112 line113 line114 line115 line116 line117 line118 line119 line120 line121 line122 line123 line124 line125 line126 line127 line128 line129 line130 line131 line132 line133 line134 line135 line136 line137 line138 line139 line140 line141 line142 line143 line144 line145 line146 line147 line148 line149 line150 line151 line152 line153 line154 line155 line156 line157 line158 line159 line160 line161 line162 line163 line164 line165 line166 line167 line168 line169 line170 line171 line172 line173 line174 line175 line176 line177 line178 line179 line180 line181 line182 line183 line184 line185 line186 line187 line188 line189 line190 line191 line192 line193 line194 line195 line196 line197 line198 line199 line200 line201 line202 line203 line204 line205 line206 line207 line208 line209 line210 line211 line212 line213 line214 line215 line216 line217 line218 line219 line220 line221 line222 line223 line224 line225 line226 line227 line228 line229 line230 line231 line232 line233 line234 line235 line236 line237 line238 line239 line240 line241 line242 line243 line244 line245 line246 line247 line248 line249 line250 line251 line252 line253 line254 line255 line256 line257 line258 line259 line260 line261 line262 line263 line264 line265 line266 line267 line268 line269 line270 line271 line272 line273 line274 line275 line276 line277 line278 line279 line280 line281 line282 line283 line284 line285 line286 line287 line288 line289 line290 line291 line292 line293 line294 line295 line296 line297 line298 line299 line300 line301 line302 line303 line304 line305 line306 line307 line308 line309 line310 line311 line312 line313 line314 line315 line316 line317 line318 line319 line320 line321 line322 line323 line324 line325 line326 line327 line328 line329 line330 line331 line332 line333 line334 line335 line336 line337 line338 line339 line340 line341 line342 line343 line344 line345 line346 line347 line348 line349 line350 line351 line352 line353 line354 line355 line356 line357 line358 line359 line360 line361 line362 line363 line364 line365 line366 line367 line368 line369 line370 line371 line372 line373 line374 line375 line376 line377 line378 line379 line380 line381 line382 line383 line384 line385 line386 line387 line388 line389 line390 line391 line392 line393 line394 line395 line396 line397 line398 line399 line400 line401 line402 line403 line404 line405 line406 line407 line408 line409 line410 line411 line412 line413 line414 line415 line416 line417 line418 line419 line420 line421 line422 line423 line424 line425 line426 line427 line428 line429 line430 line431 line432 line433 line434 line435 line436 line437 line438 line439 line440 line441 line442 line443 line444 line445 line446 line447 line448 line449 line450 line451 line452 line453 line454 line455 line456 line457 line458 line459 line460 line461 line462 line463 line464 line465 line466 line467 line468 line469 line470 line471 line472 line473 line474 line475 line476 line477 line478 line479 line480 line481 line482 line483 line484 line485 line486 line487 line488 line489 line490 line491 line492 line493 line494 line495 line496 line497 line498 line499 line500 line501 line502 line503 line504 line505 line506 line507 line508 line509 line510 line511 line512 line513 line514 line515 line516 line517 line518 line519 line520 line521 line522 line523 line524 line525 line526 line527 line528 line529 line530 line531 line532 line533 line534 line535 line536 line537 line538 line539 line540 line541 line542 line543 line544 line545 line546 line547 line548 line549 line550 line551 line552 line553 line554 line555 line556 line557 line558 line559 line560 line561 line562 line563 line564 line565 line566 line567 line568 line569 line570 line571 line572 line573 line574 line575 line576 line577 line578 line579 line580 line581 line582 line583 line584 line585 line586 line587 line588 line589 line590 line591 line592 line593 line594 line595 line596 line597 line598 line599 line600 line601 line602 line603 line604 line605 line606 line607 line608 line609 line610 line611 line612 line613 line614 line615 line616 line617 line618 line619 line620 line621 line622 line623 line624 line625 line626 line627 line628 line629 line630 line631 line632 line633 line634 line635 line636 line637 line638 line639 line640 line641 line642 line643 line644 line645 line646 line647 line648 line649 line650 line651 line652 line653 line654 line655 line656 line657 line658 line659 line660 line661 line662 line663 line664 line665 line666 line667 line668 line669 line670 line671 line672 line673 line674 line675 line676 line677 line678 line679 line680 line681 line682 line683 line684 line685 line686 line687 line688 line689 line690 line691 line692 line693 line694 line695 line696 line697 line698 line699"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c2",
"name": "edit",
"arguments": {
"path": "src/parse.ts",
"oldText": "a",
"newText": "b"
}
},
{
"type": "toolCall",
"id": "c3",
"name": "write",
"arguments": {
"path": "src/new.ts",
"content": "x"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 2400,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 2460,
"cost": {
"input": 0.0024,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0029999999999999996
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c2",
"toolName": "edit",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "toolResult",
"toolCallId": "c3",
"toolName": "write",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "bashExecution",
"command": "npm test",
"output": "out0 out1 out2 out3 out4 out5 out6 out7 out8 out9 out10 out11 out12 out13 out14 out15 out16 out17 out18 out19 out20 out21 out22 out23 out24 out25 out26 out27 out28 out29 out30 out31 out32 out33 out34 out35 out36 out37 out38 out39",
"exitCode": 1,
"cancelled": false,
"truncated": true,
"fullOutputPath": "/tmp/full.log",
"timestamp": 4
},
{
"role": "bashExecution",
"command": "ls",
"output": "",
"exitCode": 0,
"cancelled": false,
"truncated": false,
"excludeFromContext": true,
"timestamp": 4
},
{
"role": "bashExecution",
"command": "pwd",
"output": "/w",
"exitCode": 0,
"cancelled": false,
"truncated": true,
"timestamp": 4
},
{
"role": "bashExecution",
"command": "sleep 9",
"output": "",
"exitCode": null,
"cancelled": true,
"truncated": false,
"timestamp": 4
},
{
"role": "custom",
"customType": "note",
"content": "Remember the 80 column limit 🙂",
"display": true,
"details": {
"k": 1
},
"timestamp": 1735689614000
},
{
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c4",
"toolName": "read",
"content": [
{
"type": "text",
"text": "readme body"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "toolResult",
"toolCallId": "c5",
"toolName": "grep",
"content": [
{
"type": "text",
"text": "match"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
}
],
"turnPrefixMessages": [],
"isSplitTurn": false,
"tokensBefore": 5292,
"previousSummary": null,
"fileOps": {
"read": [
"src/parse.ts",
"docs/README.md"
],
"written": [
"src/new.ts"
],
"edited": [
"src/parse.ts"
]
}
}
},
{
"keep": 900,
"prep": {
"firstKeptEntryId": "e20",
"messagesToSummarize": [
{
"role": "user",
"content": "Refactor the parser in src/parse.ts please ctx0 ctx1 ctx2 ctx3 ctx4 ctx5 ctx6 ctx7 ctx8 ctx9 ctx10 ctx11 ctx12 ctx13 ctx14 ctx15 ctx16 ctx17 ctx18 ctx19 ctx20 ctx21 ctx22 ctx23 ctx24 ctx25 ctx26 ctx27 ctx28 ctx29",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "thinking",
"thinking": "plan: read first"
},
{
"type": "text",
"text": "Reading."
},
{
"type": "toolCall",
"id": "c1",
"name": "read",
"arguments": {
"path": "src/parse.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 1200,
"output": 40,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1240,
"cost": {
"input": 0.0012,
"output": 0.0004,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0015999999999999999
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "line0 line1 line2 line3 line4 line5 line6 line7 line8 line9 line10 line11 line12 line13 line14 line15 line16 line17 line18 line19 line20 line21 line22 line23 line24 line25 line26 line27 line28 line29 line30 line31 line32 line33 line34 line35 line36 line37 line38 line39 line40 line41 line42 line43 line44 line45 line46 line47 line48 line49 line50 line51 line52 line53 line54 line55 line56 line57 line58 line59 line60 line61 line62 line63 line64 line65 line66 line67 line68 line69 line70 line71 line72 line73 line74 line75 line76 line77 line78 line79 line80 line81 line82 line83 line84 line85 line86 line87 line88 line89 line90 line91 line92 line93 line94 line95 line96 line97 line98 line99 line100 line101 line102 line103 line104 line105 line106 line107 line108 line109 line110 line111 line112 line113 line114 line115 line116 line117 line118 line119 line120 line121 line122 line123 line124 line125 line126 line127 line128 line129 line130 line131 line132 line133 line134 line135 line136 line137 line138 line139 line140 line141 line142 line143 line144 line145 line146 line147 line148 line149 line150 line151 line152 line153 line154 line155 line156 line157 line158 line159 line160 line161 line162 line163 line164 line165 line166 line167 line168 line169 line170 line171 line172 line173 line174 line175 line176 line177 line178 line179 line180 line181 line182 line183 line184 line185 line186 line187 line188 line189 line190 line191 line192 line193 line194 line195 line196 line197 line198 line199 line200 line201 line202 line203 line204 line205 line206 line207 line208 line209 line210 line211 line212 line213 line214 line215 line216 line217 line218 line219 line220 line221 line222 line223 line224 line225 line226 line227 line228 line229 line230 line231 line232 line233 line234 line235 line236 line237 line238 line239 line240 line241 line242 line243 line244 line245 line246 line247 line248 line249 line250 line251 line252 line253 line254 line255 line256 line257 line258 line259 line260 line261 line262 line263 line264 line265 line266 line267 line268 line269 line270 line271 line272 line273 line274 line275 line276 line277 line278 line279 line280 line281 line282 line283 line284 line285 line286 line287 line288 line289 line290 line291 line292 line293 line294 line295 line296 line297 line298 line299 line300 line301 line302 line303 line304 line305 line306 line307 line308 line309 line310 line311 line312 line313 line314 line315 line316 line317 line318 line319 line320 line321 line322 line323 line324 line325 line326 line327 line328 line329 line330 line331 line332 line333 line334 line335 line336 line337 line338 line339 line340 line341 line342 line343 line344 line345 line346 line347 line348 line349 line350 line351 line352 line353 line354 line355 line356 line357 line358 line359 line360 line361 line362 line363 line364 line365 line366 line367 line368 line369 line370 line371 line372 line373 line374 line375 line376 line377 line378 line379 line380 line381 line382 line383 line384 line385 line386 line387 line388 line389 line390 line391 line392 line393 line394 line395 line396 line397 line398 line399 line400 line401 line402 line403 line404 line405 line406 line407 line408 line409 line410 line411 line412 line413 line414 line415 line416 line417 line418 line419 line420 line421 line422 line423 line424 line425 line426 line427 line428 line429 line430 line431 line432 line433 line434 line435 line436 line437 line438 line439 line440 line441 line442 line443 line444 line445 line446 line447 line448 line449 line450 line451 line452 line453 line454 line455 line456 line457 line458 line459 line460 line461 line462 line463 line464 line465 line466 line467 line468 line469 line470 line471 line472 line473 line474 line475 line476 line477 line478 line479 line480 line481 line482 line483 line484 line485 line486 line487 line488 line489 line490 line491 line492 line493 line494 line495 line496 line497 line498 line499 line500 line501 line502 line503 line504 line505 line506 line507 line508 line509 line510 line511 line512 line513 line514 line515 line516 line517 line518 line519 line520 line521 line522 line523 line524 line525 line526 line527 line528 line529 line530 line531 line532 line533 line534 line535 line536 line537 line538 line539 line540 line541 line542 line543 line544 line545 line546 line547 line548 line549 line550 line551 line552 line553 line554 line555 line556 line557 line558 line559 line560 line561 line562 line563 line564 line565 line566 line567 line568 line569 line570 line571 line572 line573 line574 line575 line576 line577 line578 line579 line580 line581 line582 line583 line584 line585 line586 line587 line588 line589 line590 line591 line592 line593 line594 line595 line596 line597 line598 line599 line600 line601 line602 line603 line604 line605 line606 line607 line608 line609 line610 line611 line612 line613 line614 line615 line616 line617 line618 line619 line620 line621 line622 line623 line624 line625 line626 line627 line628 line629 line630 line631 line632 line633 line634 line635 line636 line637 line638 line639 line640 line641 line642 line643 line644 line645 line646 line647 line648 line649 line650 line651 line652 line653 line654 line655 line656 line657 line658 line659 line660 line661 line662 line663 line664 line665 line666 line667 line668 line669 line670 line671 line672 line673 line674 line675 line676 line677 line678 line679 line680 line681 line682 line683 line684 line685 line686 line687 line688 line689 line690 line691 line692 line693 line694 line695 line696 line697 line698 line699"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c2",
"name": "edit",
"arguments": {
"path": "src/parse.ts",
"oldText": "a",
"newText": "b"
}
},
{
"type": "toolCall",
"id": "c3",
"name": "write",
"arguments": {
"path": "src/new.ts",
"content": "x"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 2400,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 2460,
"cost": {
"input": 0.0024,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0029999999999999996
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c2",
"toolName": "edit",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "toolResult",
"toolCallId": "c3",
"toolName": "write",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "bashExecution",
"command": "npm test",
"output": "out0 out1 out2 out3 out4 out5 out6 out7 out8 out9 out10 out11 out12 out13 out14 out15 out16 out17 out18 out19 out20 out21 out22 out23 out24 out25 out26 out27 out28 out29 out30 out31 out32 out33 out34 out35 out36 out37 out38 out39",
"exitCode": 1,
"cancelled": false,
"truncated": true,
"fullOutputPath": "/tmp/full.log",
"timestamp": 4
},
{
"role": "bashExecution",
"command": "ls",
"output": "",
"exitCode": 0,
"cancelled": false,
"truncated": false,
"excludeFromContext": true,
"timestamp": 4
},
{
"role": "bashExecution",
"command": "pwd",
"output": "/w",
"exitCode": 0,
"cancelled": false,
"truncated": true,
"timestamp": 4
},
{
"role": "bashExecution",
"command": "sleep 9",
"output": "",
"exitCode": null,
"cancelled": true,
"truncated": false,
"timestamp": 4
},
{
"role": "custom",
"customType": "note",
"content": "Remember the 80 column limit 🙂",
"display": true,
"details": {
"k": 1
},
"timestamp": 1735689614000
},
{
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c4",
"toolName": "read",
"content": [
{
"type": "text",
"text": "readme body"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "toolResult",
"toolCallId": "c5",
"toolName": "grep",
"content": [
{
"type": "text",
"text": "match"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
}
],
"turnPrefixMessages": [],
"isSplitTurn": false,
"tokensBefore": 5292,
"previousSummary": null,
"fileOps": {
"read": [
"src/parse.ts",
"docs/README.md"
],
"written": [
"src/new.ts"
],
"edited": [
"src/parse.ts"
]
}
}
},
{
"keep": 1500,
"prep": {
"firstKeptEntryId": "e6",
"messagesToSummarize": [],
"turnPrefixMessages": [
{
"role": "user",
"content": "Refactor the parser in src/parse.ts please ctx0 ctx1 ctx2 ctx3 ctx4 ctx5 ctx6 ctx7 ctx8 ctx9 ctx10 ctx11 ctx12 ctx13 ctx14 ctx15 ctx16 ctx17 ctx18 ctx19 ctx20 ctx21 ctx22 ctx23 ctx24 ctx25 ctx26 ctx27 ctx28 ctx29",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "thinking",
"thinking": "plan: read first"
},
{
"type": "text",
"text": "Reading."
},
{
"type": "toolCall",
"id": "c1",
"name": "read",
"arguments": {
"path": "src/parse.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 1200,
"output": 40,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1240,
"cost": {
"input": 0.0012,
"output": 0.0004,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0015999999999999999
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "line0 line1 line2 line3 line4 line5 line6 line7 line8 line9 line10 line11 line12 line13 line14 line15 line16 line17 line18 line19 line20 line21 line22 line23 line24 line25 line26 line27 line28 line29 line30 line31 line32 line33 line34 line35 line36 line37 line38 line39 line40 line41 line42 line43 line44 line45 line46 line47 line48 line49 line50 line51 line52 line53 line54 line55 line56 line57 line58 line59 line60 line61 line62 line63 line64 line65 line66 line67 line68 line69 line70 line71 line72 line73 line74 line75 line76 line77 line78 line79 line80 line81 line82 line83 line84 line85 line86 line87 line88 line89 line90 line91 line92 line93 line94 line95 line96 line97 line98 line99 line100 line101 line102 line103 line104 line105 line106 line107 line108 line109 line110 line111 line112 line113 line114 line115 line116 line117 line118 line119 line120 line121 line122 line123 line124 line125 line126 line127 line128 line129 line130 line131 line132 line133 line134 line135 line136 line137 line138 line139 line140 line141 line142 line143 line144 line145 line146 line147 line148 line149 line150 line151 line152 line153 line154 line155 line156 line157 line158 line159 line160 line161 line162 line163 line164 line165 line166 line167 line168 line169 line170 line171 line172 line173 line174 line175 line176 line177 line178 line179 line180 line181 line182 line183 line184 line185 line186 line187 line188 line189 line190 line191 line192 line193 line194 line195 line196 line197 line198 line199 line200 line201 line202 line203 line204 line205 line206 line207 line208 line209 line210 line211 line212 line213 line214 line215 line216 line217 line218 line219 line220 line221 line222 line223 line224 line225 line226 line227 line228 line229 line230 line231 line232 line233 line234 line235 line236 line237 line238 line239 line240 line241 line242 line243 line244 line245 line246 line247 line248 line249 line250 line251 line252 line253 line254 line255 line256 line257 line258 line259 line260 line261 line262 line263 line264 line265 line266 line267 line268 line269 line270 line271 line272 line273 line274 line275 line276 line277 line278 line279 line280 line281 line282 line283 line284 line285 line286 line287 line288 line289 line290 line291 line292 line293 line294 line295 line296 line297 line298 line299 line300 line301 line302 line303 line304 line305 line306 line307 line308 line309 line310 line311 line312 line313 line314 line315 line316 line317 line318 line319 line320 line321 line322 line323 line324 line325 line326 line327 line328 line329 line330 line331 line332 line333 line334 line335 line336 line337 line338 line339 line340 line341 line342 line343 line344 line345 line346 line347 line348 line349 line350 line351 line352 line353 line354 line355 line356 line357 line358 line359 line360 line361 line362 line363 line364 line365 line366 line367 line368 line369 line370 line371 line372 line373 line374 line375 line376 line377 line378 line379 line380 line381 line382 line383 line384 line385 line386 line387 line388 line389 line390 line391 line392 line393 line394 line395 line396 line397 line398 line399 line400 line401 line402 line403 line404 line405 line406 line407 line408 line409 line410 line411 line412 line413 line414 line415 line416 line417 line418 line419 line420 line421 line422 line423 line424 line425 line426 line427 line428 line429 line430 line431 line432 line433 line434 line435 line436 line437 line438 line439 line440 line441 line442 line443 line444 line445 line446 line447 line448 line449 line450 line451 line452 line453 line454 line455 line456 line457 line458 line459 line460 line461 line462 line463 line464 line465 line466 line467 line468 line469 line470 line471 line472 line473 line474 line475 line476 line477 line478 line479 line480 line481 line482 line483 line484 line485 line486 line487 line488 line489 line490 line491 line492 line493 line494 line495 line496 line497 line498 line499 line500 line501 line502 line503 line504 line505 line506 line507 line508 line509 line510 line511 line512 line513 line514 line515 line516 line517 line518 line519 line520 line521 line522 line523 line524 line525 line526 line527 line528 line529 line530 line531 line532 line533 line534 line535 line536 line537 line538 line539 line540 line541 line542 line543 line544 line545 line546 line547 line548 line549 line550 line551 line552 line553 line554 line555 line556 line557 line558 line559 line560 line561 line562 line563 line564 line565 line566 line567 line568 line569 line570 line571 line572 line573 line574 line575 line576 line577 line578 line579 line580 line581 line582 line583 line584 line585 line586 line587 line588 line589 line590 line591 line592 line593 line594 line595 line596 line597 line598 line599 line600 line601 line602 line603 line604 line605 line606 line607 line608 line609 line610 line611 line612 line613 line614 line615 line616 line617 line618 line619 line620 line621 line622 line623 line624 line625 line626 line627 line628 line629 line630 line631 line632 line633 line634 line635 line636 line637 line638 line639 line640 line641 line642 line643 line644 line645 line646 line647 line648 line649 line650 line651 line652 line653 line654 line655 line656 line657 line658 line659 line660 line661 line662 line663 line664 line665 line666 line667 line668 line669 line670 line671 line672 line673 line674 line675 line676 line677 line678 line679 line680 line681 line682 line683 line684 line685 line686 line687 line688 line689 line690 line691 line692 line693 line694 line695 line696 line697 line698 line699"
}
],
"isError": false,
"timestamp": 3
}
],
"isSplitTurn": true,
"tokensBefore": 5292,
"previousSummary": null,
"fileOps": {
"read": [
"src/parse.ts"
],
"written": [],
"edited": []
}
}
},
{
"keep": 3000,
"prep": null
},
{
"keep": 100000,
"prep": null
}
],
"branchPrep": [
{
"budget": 0,
"messages": [
{
"role": "system",
"content": "You are Ultron.",
"sections": {
"tools": "rlm only",
"empty": null
},
"toolsAdded": [
{
"name": "rlm",
"description": "repl",
"parameters": {
"type": "object"
}
}
],
"timestamp": 0
},
{
"role": "user",
"content": "Refactor the parser in src/parse.ts please ctx0 ctx1 ctx2 ctx3 ctx4 ctx5 ctx6 ctx7 ctx8 ctx9 ctx10 ctx11 ctx12 ctx13 ctx14 ctx15 ctx16 ctx17 ctx18 ctx19 ctx20 ctx21 ctx22 ctx23 ctx24 ctx25 ctx26 ctx27 ctx28 ctx29",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "thinking",
"thinking": "plan: read first"
},
{
"type": "text",
"text": "Reading."
},
{
"type": "toolCall",
"id": "c1",
"name": "read",
"arguments": {
"path": "src/parse.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 1200,
"output": 40,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1240,
"cost": {
"input": 0.0012,
"output": 0.0004,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0015999999999999999
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c2",
"name": "edit",
"arguments": {
"path": "src/parse.ts",
"oldText": "a",
"newText": "b"
}
},
{
"type": "toolCall",
"id": "c3",
"name": "write",
"arguments": {
"path": "src/new.ts",
"content": "x"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 2400,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 2460,
"cost": {
"input": 0.0024,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0029999999999999996
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "bashExecution",
"command": "npm test",
"output": "out0 out1 out2 out3 out4 out5 out6 out7 out8 out9 out10 out11 out12 out13 out14 out15 out16 out17 out18 out19 out20 out21 out22 out23 out24 out25 out26 out27 out28 out29 out30 out31 out32 out33 out34 out35 out36 out37 out38 out39",
"exitCode": 1,
"cancelled": false,
"truncated": true,
"fullOutputPath": "/tmp/full.log",
"timestamp": 4
},
{
"role": "bashExecution",
"command": "ls",
"output": "",
"exitCode": 0,
"cancelled": false,
"truncated": false,
"excludeFromContext": true,
"timestamp": 4
},
{
"role": "bashExecution",
"command": "pwd",
"output": "/w",
"exitCode": 0,
"cancelled": false,
"truncated": true,
"timestamp": 4
},
{
"role": "bashExecution",
"command": "sleep 9",
"output": "",
"exitCode": null,
"cancelled": true,
"truncated": false,
"timestamp": 4
},
{
"role": "custom",
"customType": "note",
"content": "Remember the 80 column limit 🙂",
"display": true,
"details": {
"k": 1
},
"timestamp": 1735689614000
},
{
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "Look at this screenshot"
},
{
"type": "image",
"data": "AAAA",
"mimeType": "image/png"
}
],
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 5200,
"output": 90,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 5290,
"cost": {
"input": 0.0052,
"output": 0.0009,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0060999999999999995
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "user",
"content": "thanks",
"timestamp": 1
}
],
"totalTokens": 1547,
"fileOps": {
"read": [
"docs/README.md",
"src/parse.ts"
],
"written": [
"src/new.ts"
],
"edited": [
"src/parse.ts"
]
}
},
{
"budget": 30,
"messages": [
{
"role": "user",
"content": "thanks",
"timestamp": 1
}
],
"totalTokens": 2,
"fileOps": {
"read": [],
"written": [],
"edited": []
}
},
{
"budget": 120,
"messages": [
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 5200,
"output": 90,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 5290,
"cost": {
"input": 0.0052,
"output": 0.0009,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0060999999999999995
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "user",
"content": "thanks",
"timestamp": 1
}
],
"totalTokens": 91,
"fileOps": {
"read": [],
"written": [],
"edited": []
}
},
{
"budget": 400,
"messages": [
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 5200,
"output": 90,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 5290,
"cost": {
"input": 0.0052,
"output": 0.0009,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0060999999999999995
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "user",
"content": "thanks",
"timestamp": 1
}
],
"totalTokens": 91,
"fileOps": {
"read": [],
"written": [],
"edited": []
}
},
{
"budget": 2000,
"messages": [
{
"role": "system",
"content": "You are Ultron.",
"sections": {
"tools": "rlm only",
"empty": null
},
"toolsAdded": [
{
"name": "rlm",
"description": "repl",
"parameters": {
"type": "object"
}
}
],
"timestamp": 0
},
{
"role": "user",
"content": "Refactor the parser in src/parse.ts please ctx0 ctx1 ctx2 ctx3 ctx4 ctx5 ctx6 ctx7 ctx8 ctx9 ctx10 ctx11 ctx12 ctx13 ctx14 ctx15 ctx16 ctx17 ctx18 ctx19 ctx20 ctx21 ctx22 ctx23 ctx24 ctx25 ctx26 ctx27 ctx28 ctx29",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "thinking",
"thinking": "plan: read first"
},
{
"type": "text",
"text": "Reading."
},
{
"type": "toolCall",
"id": "c1",
"name": "read",
"arguments": {
"path": "src/parse.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 1200,
"output": 40,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1240,
"cost": {
"input": 0.0012,
"output": 0.0004,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0015999999999999999
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c2",
"name": "edit",
"arguments": {
"path": "src/parse.ts",
"oldText": "a",
"newText": "b"
}
},
{
"type": "toolCall",
"id": "c3",
"name": "write",
"arguments": {
"path": "src/new.ts",
"content": "x"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 2400,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 2460,
"cost": {
"input": 0.0024,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0029999999999999996
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "bashExecution",
"command": "npm test",
"output": "out0 out1 out2 out3 out4 out5 out6 out7 out8 out9 out10 out11 out12 out13 out14 out15 out16 out17 out18 out19 out20 out21 out22 out23 out24 out25 out26 out27 out28 out29 out30 out31 out32 out33 out34 out35 out36 out37 out38 out39",
"exitCode": 1,
"cancelled": false,
"truncated": true,
"fullOutputPath": "/tmp/full.log",
"timestamp": 4
},
{
"role": "bashExecution",
"command": "ls",
"output": "",
"exitCode": 0,
"cancelled": false,
"truncated": false,
"excludeFromContext": true,
"timestamp": 4
},
{
"role": "bashExecution",
"command": "pwd",
"output": "/w",
"exitCode": 0,
"cancelled": false,
"truncated": true,
"timestamp": 4
},
{
"role": "bashExecution",
"command": "sleep 9",
"output": "",
"exitCode": null,
"cancelled": true,
"truncated": false,
"timestamp": 4
},
{
"role": "custom",
"customType": "note",
"content": "Remember the 80 column limit 🙂",
"display": true,
"details": {
"k": 1
},
"timestamp": 1735689614000
},
{
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "Look at this screenshot"
},
{
"type": "image",
"data": "AAAA",
"mimeType": "image/png"
}
],
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 5200,
"output": 90,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 5290,
"cost": {
"input": 0.0052,
"output": 0.0009,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0060999999999999995
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "user",
"content": "thanks",
"timestamp": 1
}
],
"totalTokens": 1547,
"fileOps": {
"read": [
"docs/README.md",
"src/parse.ts"
],
"written": [
"src/new.ts"
],
"edited": [
"src/parse.ts"
]
}
}
]
},
"withCompaction": {
"entries": [
{
"type": "thinking_level_change",
"thinkingLevel": "high",
"id": "e1",
"parentId": null,
"timestamp": "2025-01-01T00:00:01.000Z"
},
{
"type": "message",
"message": {
"role": "system",
"content": "You are Ultron.",
"sections": {
"tools": "rlm only",
"empty": null
},
"toolsAdded": [
{
"name": "rlm",
"description": "repl",
"parameters": {
"type": "object"
}
}
],
"timestamp": 0
},
"id": "e2",
"parentId": "e1",
"timestamp": "2025-01-01T00:00:02.000Z"
},
{
"type": "message",
"message": {
"role": "user",
"content": "Refactor the parser in src/parse.ts please ctx0 ctx1 ctx2 ctx3 ctx4 ctx5 ctx6 ctx7 ctx8 ctx9 ctx10 ctx11 ctx12 ctx13 ctx14 ctx15 ctx16 ctx17 ctx18 ctx19 ctx20 ctx21 ctx22 ctx23 ctx24 ctx25 ctx26 ctx27 ctx28 ctx29",
"timestamp": 1
},
"id": "e3",
"parentId": "e2",
"timestamp": "2025-01-01T00:00:03.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "thinking",
"thinking": "plan: read first"
},
{
"type": "text",
"text": "Reading."
},
{
"type": "toolCall",
"id": "c1",
"name": "read",
"arguments": {
"path": "src/parse.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 1200,
"output": 40,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1240,
"cost": {
"input": 0.0012,
"output": 0.0004,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0015999999999999999
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e4",
"parentId": "e3",
"timestamp": "2025-01-01T00:00:04.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "c1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "line0 line1 line2 line3 line4 line5 line6 line7 line8 line9 line10 line11 line12 line13 line14 line15 line16 line17 line18 line19 line20 line21 line22 line23 line24 line25 line26 line27 line28 line29 line30 line31 line32 line33 line34 line35 line36 line37 line38 line39 line40 line41 line42 line43 line44 line45 line46 line47 line48 line49 line50 line51 line52 line53 line54 line55 line56 line57 line58 line59 line60 line61 line62 line63 line64 line65 line66 line67 line68 line69 line70 line71 line72 line73 line74 line75 line76 line77 line78 line79 line80 line81 line82 line83 line84 line85 line86 line87 line88 line89 line90 line91 line92 line93 line94 line95 line96 line97 line98 line99 line100 line101 line102 line103 line104 line105 line106 line107 line108 line109 line110 line111 line112 line113 line114 line115 line116 line117 line118 line119 line120 line121 line122 line123 line124 line125 line126 line127 line128 line129 line130 line131 line132 line133 line134 line135 line136 line137 line138 line139 line140 line141 line142 line143 line144 line145 line146 line147 line148 line149 line150 line151 line152 line153 line154 line155 line156 line157 line158 line159 line160 line161 line162 line163 line164 line165 line166 line167 line168 line169 line170 line171 line172 line173 line174 line175 line176 line177 line178 line179 line180 line181 line182 line183 line184 line185 line186 line187 line188 line189 line190 line191 line192 line193 line194 line195 line196 line197 line198 line199 line200 line201 line202 line203 line204 line205 line206 line207 line208 line209 line210 line211 line212 line213 line214 line215 line216 line217 line218 line219 line220 line221 line222 line223 line224 line225 line226 line227 line228 line229 line230 line231 line232 line233 line234 line235 line236 line237 line238 line239 line240 line241 line242 line243 line244 line245 line246 line247 line248 line249 line250 line251 line252 line253 line254 line255 line256 line257 line258 line259 line260 line261 line262 line263 line264 line265 line266 line267 line268 line269 line270 line271 line272 line273 line274 line275 line276 line277 line278 line279 line280 line281 line282 line283 line284 line285 line286 line287 line288 line289 line290 line291 line292 line293 line294 line295 line296 line297 line298 line299 line300 line301 line302 line303 line304 line305 line306 line307 line308 line309 line310 line311 line312 line313 line314 line315 line316 line317 line318 line319 line320 line321 line322 line323 line324 line325 line326 line327 line328 line329 line330 line331 line332 line333 line334 line335 line336 line337 line338 line339 line340 line341 line342 line343 line344 line345 line346 line347 line348 line349 line350 line351 line352 line353 line354 line355 line356 line357 line358 line359 line360 line361 line362 line363 line364 line365 line366 line367 line368 line369 line370 line371 line372 line373 line374 line375 line376 line377 line378 line379 line380 line381 line382 line383 line384 line385 line386 line387 line388 line389 line390 line391 line392 line393 line394 line395 line396 line397 line398 line399 line400 line401 line402 line403 line404 line405 line406 line407 line408 line409 line410 line411 line412 line413 line414 line415 line416 line417 line418 line419 line420 line421 line422 line423 line424 line425 line426 line427 line428 line429 line430 line431 line432 line433 line434 line435 line436 line437 line438 line439 line440 line441 line442 line443 line444 line445 line446 line447 line448 line449 line450 line451 line452 line453 line454 line455 line456 line457 line458 line459 line460 line461 line462 line463 line464 line465 line466 line467 line468 line469 line470 line471 line472 line473 line474 line475 line476 line477 line478 line479 line480 line481 line482 line483 line484 line485 line486 line487 line488 line489 line490 line491 line492 line493 line494 line495 line496 line497 line498 line499 line500 line501 line502 line503 line504 line505 line506 line507 line508 line509 line510 line511 line512 line513 line514 line515 line516 line517 line518 line519 line520 line521 line522 line523 line524 line525 line526 line527 line528 line529 line530 line531 line532 line533 line534 line535 line536 line537 line538 line539 line540 line541 line542 line543 line544 line545 line546 line547 line548 line549 line550 line551 line552 line553 line554 line555 line556 line557 line558 line559 line560 line561 line562 line563 line564 line565 line566 line567 line568 line569 line570 line571 line572 line573 line574 line575 line576 line577 line578 line579 line580 line581 line582 line583 line584 line585 line586 line587 line588 line589 line590 line591 line592 line593 line594 line595 line596 line597 line598 line599 line600 line601 line602 line603 line604 line605 line606 line607 line608 line609 line610 line611 line612 line613 line614 line615 line616 line617 line618 line619 line620 line621 line622 line623 line624 line625 line626 line627 line628 line629 line630 line631 line632 line633 line634 line635 line636 line637 line638 line639 line640 line641 line642 line643 line644 line645 line646 line647 line648 line649 line650 line651 line652 line653 line654 line655 line656 line657 line658 line659 line660 line661 line662 line663 line664 line665 line666 line667 line668 line669 line670 line671 line672 line673 line674 line675 line676 line677 line678 line679 line680 line681 line682 line683 line684 line685 line686 line687 line688 line689 line690 line691 line692 line693 line694 line695 line696 line697 line698 line699"
}
],
"isError": false,
"timestamp": 3
},
"id": "e5",
"parentId": "e4",
"timestamp": "2025-01-01T00:00:05.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c2",
"name": "edit",
"arguments": {
"path": "src/parse.ts",
"oldText": "a",
"newText": "b"
}
},
{
"type": "toolCall",
"id": "c3",
"name": "write",
"arguments": {
"path": "src/new.ts",
"content": "x"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 2400,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 2460,
"cost": {
"input": 0.0024,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0029999999999999996
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e6",
"parentId": "e5",
"timestamp": "2025-01-01T00:00:06.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "c2",
"toolName": "edit",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
},
"id": "e7",
"parentId": "e6",
"timestamp": "2025-01-01T00:00:07.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "c3",
"toolName": "write",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
},
"id": "e8",
"parentId": "e7",
"timestamp": "2025-01-01T00:00:08.000Z"
},
{
"type": "label",
"targetId": "e3",
"label": "start",
"id": "e9",
"parentId": "e8",
"timestamp": "2025-01-01T00:00:09.000Z"
},
{
"type": "message",
"message": {
"role": "bashExecution",
"command": "npm test",
"output": "out0 out1 out2 out3 out4 out5 out6 out7 out8 out9 out10 out11 out12 out13 out14 out15 out16 out17 out18 out19 out20 out21 out22 out23 out24 out25 out26 out27 out28 out29 out30 out31 out32 out33 out34 out35 out36 out37 out38 out39",
"exitCode": 1,
"cancelled": false,
"truncated": true,
"fullOutputPath": "/tmp/full.log",
"timestamp": 4
},
"id": "e10",
"parentId": "e9",
"timestamp": "2025-01-01T00:00:10.000Z"
},
{
"type": "message",
"message": {
"role": "bashExecution",
"command": "ls",
"output": "",
"exitCode": 0,
"cancelled": false,
"truncated": false,
"excludeFromContext": true,
"timestamp": 4
},
"id": "e11",
"parentId": "e10",
"timestamp": "2025-01-01T00:00:11.000Z"
},
{
"type": "message",
"message": {
"role": "bashExecution",
"command": "pwd",
"output": "/w",
"exitCode": 0,
"cancelled": false,
"truncated": true,
"timestamp": 4
},
"id": "e12",
"parentId": "e11",
"timestamp": "2025-01-01T00:00:12.000Z"
},
{
"type": "message",
"message": {
"role": "bashExecution",
"command": "sleep 9",
"output": "",
"exitCode": null,
"cancelled": true,
"truncated": false,
"timestamp": 4
},
"id": "e13",
"parentId": "e12",
"timestamp": "2025-01-01T00:00:13.000Z"
},
{
"type": "custom_message",
"customType": "note",
"content": "Remember the 80 column limit 🙂",
"display": true,
"details": {
"k": 1
},
"id": "e14",
"parentId": "e13",
"timestamp": "2025-01-01T00:00:14.000Z"
},
{
"type": "message",
"message": {
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
"id": "e15",
"parentId": "e14",
"timestamp": "2025-01-01T00:00:15.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e16",
"parentId": "e15",
"timestamp": "2025-01-01T00:00:16.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "c4",
"toolName": "read",
"content": [
{
"type": "text",
"text": "readme body"
}
],
"isError": false,
"timestamp": 3
},
"id": "e17",
"parentId": "e16",
"timestamp": "2025-01-01T00:00:17.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "c5",
"toolName": "grep",
"content": [
{
"type": "text",
"text": "match"
}
],
"isError": false,
"timestamp": 3
},
"id": "e18",
"parentId": "e17",
"timestamp": "2025-01-01T00:00:18.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
},
"id": "e19",
"parentId": "e18",
"timestamp": "2025-01-01T00:00:19.000Z"
},
{
"type": "message",
"message": {
"role": "user",
"content": [
{
"type": "text",
"text": "Look at this screenshot"
},
{
"type": "image",
"data": "AAAA",
"mimeType": "image/png"
}
],
"timestamp": 1
},
"id": "e20",
"parentId": "e19",
"timestamp": "2025-01-01T00:00:20.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 5200,
"output": 90,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 5290,
"cost": {
"input": 0.0052,
"output": 0.0009,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0060999999999999995
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e21",
"parentId": "e20",
"timestamp": "2025-01-01T00:00:21.000Z"
},
{
"type": "message",
"message": {
"role": "user",
"content": "thanks",
"timestamp": 1
},
"id": "e22",
"parentId": "e21",
"timestamp": "2025-01-01T00:00:22.000Z"
},
{
"type": "compaction",
"summary": "## Goal\nRefactor parser",
"firstKeptEntryId": "e15",
"tokensBefore": 9000,
"details": {
"readFiles": [
"old/read.ts",
"src/parse.ts"
],
"modifiedFiles": [
"old/mod.ts"
]
},
"id": "e23",
"parentId": "e22",
"timestamp": "2025-01-01T00:00:23.000Z"
},
{
"type": "message",
"message": {
"role": "user",
"content": "continue after0 after1 after2 after3 after4 after5 after6 after7 after8 after9 after10 after11 after12 after13 after14 after15 after16 after17 after18 after19 after20 after21 after22 after23 after24 after25 after26 after27 after28 after29 after30 after31 after32 after33 after34 after35 after36 after37 after38 after39 after40 after41 after42 after43 after44 after45 after46 after47 after48 after49 after50 after51 after52 after53 after54 after55 after56 after57 after58 after59",
"timestamp": 1
},
"id": "e24",
"parentId": "e23",
"timestamp": "2025-01-01T00:00:24.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "Continuing. work0 work1 work2 work3 work4 work5 work6 work7 work8 work9 work10 work11 work12 work13 work14 work15 work16 work17 work18 work19 work20 work21 work22 work23 work24 work25 work26 work27 work28 work29 work30 work31 work32 work33 work34 work35 work36 work37 work38 work39 work40 work41 work42 work43 work44 work45 work46 work47 work48 work49 work50 work51 work52 work53 work54 work55 work56 work57 work58 work59 work60 work61 work62 work63 work64 work65 work66 work67 work68 work69 work70 work71 work72 work73 work74 work75 work76 work77 work78 work79"
},
{
"type": "toolCall",
"id": "c6",
"name": "edit",
"arguments": {
"path": "src/after.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 7000,
"output": 120,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 7120,
"cost": {
"input": 0.007,
"output": 0.0012,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0082
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e25",
"parentId": "e24",
"timestamp": "2025-01-01T00:00:25.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "c6",
"toolName": "edit",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
},
"id": "e26",
"parentId": "e25",
"timestamp": "2025-01-01T00:00:26.000Z"
},
{
"type": "model_change",
"provider": "openai",
"modelId": "gpt",
"id": "e27",
"parentId": "e26",
"timestamp": "2025-01-01T00:00:27.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "Wrapping up wrap0 wrap1 wrap2 wrap3 wrap4 wrap5 wrap6 wrap7 wrap8 wrap9 wrap10 wrap11 wrap12 wrap13 wrap14 wrap15 wrap16 wrap17 wrap18 wrap19 wrap20 wrap21 wrap22 wrap23 wrap24 wrap25 wrap26 wrap27 wrap28 wrap29 wrap30 wrap31 wrap32 wrap33 wrap34 wrap35 wrap36 wrap37 wrap38 wrap39"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 7600,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 7650,
"cost": {
"input": 0.0076,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0081
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e28",
"parentId": "e27",
"timestamp": "2025-01-01T00:00:28.000Z"
}
],
"messageTokens": [
6,
40,
16,
3,
2,
8,
1206,
89,
2,
120,
147,
1,
71
],
"rawMessageTokens": [
23,
53,
13,
1373,
24,
1,
1,
60,
1,
2,
2,
40,
16,
3,
2,
8,
1206,
89,
2,
120,
147,
1,
71
],
"contextEstimate": {
"tokens": 7650,
"usageTokens": 7650,
"trailingTokens": 0,
"lastUsageIndex": 12
},
"projectedEstimate": {
"tokens": 7650,
"usageTokens": 7650,
"trailingTokens": 0,
"lastUsageIndex": 12
},
"lastAssistantUsage": {
"input": 7600,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 7650,
"cost": {
"input": 0.0076,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0081
}
},
"serialized": "[User]: Refactor the parser in src/parse.ts please ctx0 ctx1 ctx2 ctx3 ctx4 ctx5 ctx6 ctx7 ctx8 ctx9 ctx10 ctx11 ctx12 ctx13 ctx14 ctx15 ctx16 ctx17 ctx18 ctx19 ctx20 ctx21 ctx22 ctx23 ctx24 ctx25 ctx26 ctx27 ctx28 ctx29\n\n[Assistant thinking]: plan: read first\n\n[Assistant]: Reading.\n\n[Assistant tool calls]: read(path=\"src/parse.ts\")\n\n[Tool result]: line0 line1 line2 line3 line4 line5 line6 line7 line8 line9 line10 line11 line12 line13 line14 line15 line16 line17 line18 line19 line20 line21 line22 line23 line24 line25 line26 line27 line28 line29 line30 line31 line32 line33 line34 line35 line36 line37 line38 line39 line40 line41 line42 line43 line44 line45 line46 line47 line48 line49 line50 line51 line52 line53 line54 line55 line56 line57 line58 line59 line60 line61 line62 line63 line64 line65 line66 line67 line68 line69 line70 line71 line72 line73 line74 line75 line76 line77 line78 line79 line80 line81 line82 line83 line84 line85 line86 line87 line88 line89 line90 line91 line92 line93 line94 line95 line96 line97 line98 line99 line100 line101 line102 line103 line104 line105 line106 line107 line108 line109 line110 line111 line112 line113 line114 line115 line116 line117 line118 line119 line120 line121 line122 line123 line124 line125 line126 line127 line128 line129 line130 line131 line132 line133 line134 line135 line136 line137 line138 line139 line140 line141 line142 line143 line144 line145 line146 line147 line148 line149 line150 line151 line152 line153 line154 line155 line156 line157 line158 line159 line160 line161 line162 line163 line164 line165 line166 line167 line168 line169 line170 line171 line172 line173 line174 line175 line176 line177 line178 line179 line180 line181 line182 line183 line184 line185 line186 line187 line188 line189 line190 line191 line192 line193 line194 line195 line196 line197 line198 line199 line200 line201 line202 line203 line204 line205 line206 line207 line208 line209 line210 line211 line212 line213 line214 line215 line216 line217 line218 line219 line220 line221 line222 line223 line224 line225 line226 line227 line228 line229 line230 line231 line232 line233 line234 line235 line236 line237 line238 line239 line240 line241 line242 line243 line244 line245 line246 line247 line248 line249 line250 line251 line252 line253 line254 line255 line256 line257 line258 line259 line260 line261 line262 line26\n\n[... 3489 more characters truncated]\n\n[Assistant tool calls]: edit(path=\"src/parse.ts\", oldText=\"a\", newText=\"b\"); write(path=\"src/new.ts\", content=\"x\")\n\n[Tool result]: ok\n\n[Tool result]: ok\n\n[User]: Ran `npm test`\n```\nout0 out1 out2 out3 out4 out5 out6 out7 out8 out9 out10 out11 out12 out13 out14 out15 out16 out17 out18 out19 out20 out21 out22 out23 out24 out25 out26 out27 out28 out29 out30 out31 out32 out33 out34 out35 out36 out37 out38 out39\n```\n\nCommand exited with code 1\n\n[Output truncated. Full output: /tmp/full.log]\n\n[User]: Ran `pwd`\n```\n/w\n```\n\n[User]: Ran `sleep 9`\n(no output)\n\n(command cancelled)\n\n[User]: Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19\n\n[Assistant tool calls]: read(path=\"docs/README.md\"); grep(pattern=\"x\", path=\"src\")\n\n[Tool result]: readme body\n\n[Tool result]: match\n\n[Assistant]: Done with step one.\nSecond block.\n\n[User]: Look at this screenshot\n\n[Assistant]: I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49\n\n[User]: thanks\n\n[User]: continue after0 after1 after2 after3 after4 after5 after6 after7 after8 after9 after10 after11 after12 after13 after14 after15 after16 after17 after18 after19 after20 after21 after22 after23 after24 after25 after26 after27 after28 after29 after30 after31 after32 after33 after34 after35 after36 after37 after38 after39 after40 after41 after42 after43 after44 after45 after46 after47 after48 after49 after50 after51 after52 after53 after54 after55 after56 after57 after58 after59\n\n[Assistant]: Continuing. work0 work1 work2 work3 work4 work5 work6 work7 work8 work9 work10 work11 work12 work13 work14 work15 work16 work17 work18 work19 work20 work21 work22 work23 work24 work25 work26 work27 work28 work29 work30 work31 work32 work33 work34 work35 work36 work37 work38 work39 work40 work41 work42 work43 work44 work45 work46 work47 work48 work49 work50 work51 work52 work53 work54 work55 work56 work57 work58 work59 work60 work61 work62 work63 work64 work65 work66 work67 work68 work69 work70 work71 work72 work73 work74 work75 work76 work77 work78 work79\n\n[Assistant tool calls]: edit(path=\"src/after.ts\")\n\n[Tool result]: ok\n\n[Assistant]: Wrapping up wrap0 wrap1 wrap2 wrap3 wrap4 wrap5 wrap6 wrap7 wrap8 wrap9 wrap10 wrap11 wrap12 wrap13 wrap14 wrap15 wrap16 wrap17 wrap18 wrap19 wrap20 wrap21 wrap22 wrap23 wrap24 wrap25 wrap26 wrap27 wrap28 wrap29 wrap30 wrap31 wrap32 wrap33 wrap34 wrap35 wrap36 wrap37 wrap38 wrap39",
"cutPoints": [
{
"keep": 0,
"result": {
"firstKeptEntryIndex": 26,
"turnStartIndex": 23,
"isSplitTurn": true
}
},
{
"keep": 1,
"result": {
"firstKeptEntryIndex": 26,
"turnStartIndex": 23,
"isSplitTurn": true
}
},
{
"keep": 20,
"result": {
"firstKeptEntryIndex": 26,
"turnStartIndex": 23,
"isSplitTurn": true
}
},
{
"keep": 50,
"result": {
"firstKeptEntryIndex": 26,
"turnStartIndex": 23,
"isSplitTurn": true
}
},
{
"keep": 150,
"result": {
"firstKeptEntryIndex": 24,
"turnStartIndex": 23,
"isSplitTurn": true
}
},
{
"keep": 400,
"result": {
"firstKeptEntryIndex": 20,
"turnStartIndex": 19,
"isSplitTurn": true
}
},
{
"keep": 900,
"result": {
"firstKeptEntryIndex": 19,
"turnStartIndex": -1,
"isSplitTurn": false
}
},
{
"keep": 1500,
"result": {
"firstKeptEntryIndex": 19,
"turnStartIndex": -1,
"isSplitTurn": false
}
},
{
"keep": 3000,
"result": {
"firstKeptEntryIndex": 5,
"turnStartIndex": 2,
"isSplitTurn": true
}
},
{
"keep": 100000,
"result": {
"firstKeptEntryIndex": 2,
"turnStartIndex": -1,
"isSplitTurn": false
}
}
],
"turnStarts": [
-1,
-1,
2,
2,
2,
2,
2,
2,
2,
9,
10,
11,
12,
13,
14,
14,
14,
14,
14,
19,
19,
21,
21,
23,
23,
23,
23,
23
],
"preparations": [
{
"keep": 0,
"prep": {
"firstKeptEntryId": "e27",
"messagesToSummarize": [
{
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c4",
"toolName": "read",
"content": [
{
"type": "text",
"text": "readme body"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "toolResult",
"toolCallId": "c5",
"toolName": "grep",
"content": [
{
"type": "text",
"text": "match"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "Look at this screenshot"
},
{
"type": "image",
"data": "AAAA",
"mimeType": "image/png"
}
],
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 5200,
"output": 90,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 5290,
"cost": {
"input": 0.0052,
"output": 0.0009,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0060999999999999995
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "user",
"content": "thanks",
"timestamp": 1
}
],
"turnPrefixMessages": [
{
"role": "user",
"content": "continue after0 after1 after2 after3 after4 after5 after6 after7 after8 after9 after10 after11 after12 after13 after14 after15 after16 after17 after18 after19 after20 after21 after22 after23 after24 after25 after26 after27 after28 after29 after30 after31 after32 after33 after34 after35 after36 after37 after38 after39 after40 after41 after42 after43 after44 after45 after46 after47 after48 after49 after50 after51 after52 after53 after54 after55 after56 after57 after58 after59",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Continuing. work0 work1 work2 work3 work4 work5 work6 work7 work8 work9 work10 work11 work12 work13 work14 work15 work16 work17 work18 work19 work20 work21 work22 work23 work24 work25 work26 work27 work28 work29 work30 work31 work32 work33 work34 work35 work36 work37 work38 work39 work40 work41 work42 work43 work44 work45 work46 work47 work48 work49 work50 work51 work52 work53 work54 work55 work56 work57 work58 work59 work60 work61 work62 work63 work64 work65 work66 work67 work68 work69 work70 work71 work72 work73 work74 work75 work76 work77 work78 work79"
},
{
"type": "toolCall",
"id": "c6",
"name": "edit",
"arguments": {
"path": "src/after.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 7000,
"output": 120,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 7120,
"cost": {
"input": 0.007,
"output": 0.0012,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0082
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c6",
"toolName": "edit",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
}
],
"isSplitTurn": true,
"tokensBefore": 7650,
"previousSummary": "## Goal\nRefactor parser",
"fileOps": {
"read": [
"old/read.ts",
"src/parse.ts",
"docs/README.md"
],
"written": [],
"edited": [
"old/mod.ts",
"src/after.ts"
]
}
}
},
{
"keep": 1,
"prep": {
"firstKeptEntryId": "e27",
"messagesToSummarize": [
{
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c4",
"toolName": "read",
"content": [
{
"type": "text",
"text": "readme body"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "toolResult",
"toolCallId": "c5",
"toolName": "grep",
"content": [
{
"type": "text",
"text": "match"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "Look at this screenshot"
},
{
"type": "image",
"data": "AAAA",
"mimeType": "image/png"
}
],
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 5200,
"output": 90,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 5290,
"cost": {
"input": 0.0052,
"output": 0.0009,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0060999999999999995
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "user",
"content": "thanks",
"timestamp": 1
}
],
"turnPrefixMessages": [
{
"role": "user",
"content": "continue after0 after1 after2 after3 after4 after5 after6 after7 after8 after9 after10 after11 after12 after13 after14 after15 after16 after17 after18 after19 after20 after21 after22 after23 after24 after25 after26 after27 after28 after29 after30 after31 after32 after33 after34 after35 after36 after37 after38 after39 after40 after41 after42 after43 after44 after45 after46 after47 after48 after49 after50 after51 after52 after53 after54 after55 after56 after57 after58 after59",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Continuing. work0 work1 work2 work3 work4 work5 work6 work7 work8 work9 work10 work11 work12 work13 work14 work15 work16 work17 work18 work19 work20 work21 work22 work23 work24 work25 work26 work27 work28 work29 work30 work31 work32 work33 work34 work35 work36 work37 work38 work39 work40 work41 work42 work43 work44 work45 work46 work47 work48 work49 work50 work51 work52 work53 work54 work55 work56 work57 work58 work59 work60 work61 work62 work63 work64 work65 work66 work67 work68 work69 work70 work71 work72 work73 work74 work75 work76 work77 work78 work79"
},
{
"type": "toolCall",
"id": "c6",
"name": "edit",
"arguments": {
"path": "src/after.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 7000,
"output": 120,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 7120,
"cost": {
"input": 0.007,
"output": 0.0012,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0082
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c6",
"toolName": "edit",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
}
],
"isSplitTurn": true,
"tokensBefore": 7650,
"previousSummary": "## Goal\nRefactor parser",
"fileOps": {
"read": [
"old/read.ts",
"src/parse.ts",
"docs/README.md"
],
"written": [],
"edited": [
"old/mod.ts",
"src/after.ts"
]
}
}
},
{
"keep": 20,
"prep": {
"firstKeptEntryId": "e27",
"messagesToSummarize": [
{
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c4",
"toolName": "read",
"content": [
{
"type": "text",
"text": "readme body"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "toolResult",
"toolCallId": "c5",
"toolName": "grep",
"content": [
{
"type": "text",
"text": "match"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "Look at this screenshot"
},
{
"type": "image",
"data": "AAAA",
"mimeType": "image/png"
}
],
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 5200,
"output": 90,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 5290,
"cost": {
"input": 0.0052,
"output": 0.0009,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0060999999999999995
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "user",
"content": "thanks",
"timestamp": 1
}
],
"turnPrefixMessages": [
{
"role": "user",
"content": "continue after0 after1 after2 after3 after4 after5 after6 after7 after8 after9 after10 after11 after12 after13 after14 after15 after16 after17 after18 after19 after20 after21 after22 after23 after24 after25 after26 after27 after28 after29 after30 after31 after32 after33 after34 after35 after36 after37 after38 after39 after40 after41 after42 after43 after44 after45 after46 after47 after48 after49 after50 after51 after52 after53 after54 after55 after56 after57 after58 after59",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Continuing. work0 work1 work2 work3 work4 work5 work6 work7 work8 work9 work10 work11 work12 work13 work14 work15 work16 work17 work18 work19 work20 work21 work22 work23 work24 work25 work26 work27 work28 work29 work30 work31 work32 work33 work34 work35 work36 work37 work38 work39 work40 work41 work42 work43 work44 work45 work46 work47 work48 work49 work50 work51 work52 work53 work54 work55 work56 work57 work58 work59 work60 work61 work62 work63 work64 work65 work66 work67 work68 work69 work70 work71 work72 work73 work74 work75 work76 work77 work78 work79"
},
{
"type": "toolCall",
"id": "c6",
"name": "edit",
"arguments": {
"path": "src/after.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 7000,
"output": 120,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 7120,
"cost": {
"input": 0.007,
"output": 0.0012,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0082
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c6",
"toolName": "edit",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
}
],
"isSplitTurn": true,
"tokensBefore": 7650,
"previousSummary": "## Goal\nRefactor parser",
"fileOps": {
"read": [
"old/read.ts",
"src/parse.ts",
"docs/README.md"
],
"written": [],
"edited": [
"old/mod.ts",
"src/after.ts"
]
}
}
},
{
"keep": 50,
"prep": {
"firstKeptEntryId": "e27",
"messagesToSummarize": [
{
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c4",
"toolName": "read",
"content": [
{
"type": "text",
"text": "readme body"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "toolResult",
"toolCallId": "c5",
"toolName": "grep",
"content": [
{
"type": "text",
"text": "match"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "Look at this screenshot"
},
{
"type": "image",
"data": "AAAA",
"mimeType": "image/png"
}
],
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 5200,
"output": 90,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 5290,
"cost": {
"input": 0.0052,
"output": 0.0009,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0060999999999999995
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "user",
"content": "thanks",
"timestamp": 1
}
],
"turnPrefixMessages": [
{
"role": "user",
"content": "continue after0 after1 after2 after3 after4 after5 after6 after7 after8 after9 after10 after11 after12 after13 after14 after15 after16 after17 after18 after19 after20 after21 after22 after23 after24 after25 after26 after27 after28 after29 after30 after31 after32 after33 after34 after35 after36 after37 after38 after39 after40 after41 after42 after43 after44 after45 after46 after47 after48 after49 after50 after51 after52 after53 after54 after55 after56 after57 after58 after59",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Continuing. work0 work1 work2 work3 work4 work5 work6 work7 work8 work9 work10 work11 work12 work13 work14 work15 work16 work17 work18 work19 work20 work21 work22 work23 work24 work25 work26 work27 work28 work29 work30 work31 work32 work33 work34 work35 work36 work37 work38 work39 work40 work41 work42 work43 work44 work45 work46 work47 work48 work49 work50 work51 work52 work53 work54 work55 work56 work57 work58 work59 work60 work61 work62 work63 work64 work65 work66 work67 work68 work69 work70 work71 work72 work73 work74 work75 work76 work77 work78 work79"
},
{
"type": "toolCall",
"id": "c6",
"name": "edit",
"arguments": {
"path": "src/after.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 7000,
"output": 120,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 7120,
"cost": {
"input": 0.007,
"output": 0.0012,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0082
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c6",
"toolName": "edit",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
}
],
"isSplitTurn": true,
"tokensBefore": 7650,
"previousSummary": "## Goal\nRefactor parser",
"fileOps": {
"read": [
"old/read.ts",
"src/parse.ts",
"docs/README.md"
],
"written": [],
"edited": [
"old/mod.ts",
"src/after.ts"
]
}
}
},
{
"keep": 150,
"prep": {
"firstKeptEntryId": "e25",
"messagesToSummarize": [
{
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c4",
"toolName": "read",
"content": [
{
"type": "text",
"text": "readme body"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "toolResult",
"toolCallId": "c5",
"toolName": "grep",
"content": [
{
"type": "text",
"text": "match"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "Look at this screenshot"
},
{
"type": "image",
"data": "AAAA",
"mimeType": "image/png"
}
],
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 5200,
"output": 90,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 5290,
"cost": {
"input": 0.0052,
"output": 0.0009,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0060999999999999995
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "user",
"content": "thanks",
"timestamp": 1
}
],
"turnPrefixMessages": [
{
"role": "user",
"content": "continue after0 after1 after2 after3 after4 after5 after6 after7 after8 after9 after10 after11 after12 after13 after14 after15 after16 after17 after18 after19 after20 after21 after22 after23 after24 after25 after26 after27 after28 after29 after30 after31 after32 after33 after34 after35 after36 after37 after38 after39 after40 after41 after42 after43 after44 after45 after46 after47 after48 after49 after50 after51 after52 after53 after54 after55 after56 after57 after58 after59",
"timestamp": 1
}
],
"isSplitTurn": true,
"tokensBefore": 7650,
"previousSummary": "## Goal\nRefactor parser",
"fileOps": {
"read": [
"old/read.ts",
"src/parse.ts",
"docs/README.md"
],
"written": [],
"edited": [
"old/mod.ts"
]
}
}
},
{
"keep": 400,
"prep": {
"firstKeptEntryId": "e21",
"messagesToSummarize": [
{
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c4",
"toolName": "read",
"content": [
{
"type": "text",
"text": "readme body"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "toolResult",
"toolCallId": "c5",
"toolName": "grep",
"content": [
{
"type": "text",
"text": "match"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
}
],
"turnPrefixMessages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Look at this screenshot"
},
{
"type": "image",
"data": "AAAA",
"mimeType": "image/png"
}
],
"timestamp": 1
}
],
"isSplitTurn": true,
"tokensBefore": 7650,
"previousSummary": "## Goal\nRefactor parser",
"fileOps": {
"read": [
"old/read.ts",
"src/parse.ts",
"docs/README.md"
],
"written": [],
"edited": [
"old/mod.ts"
]
}
}
},
{
"keep": 900,
"prep": {
"firstKeptEntryId": "e20",
"messagesToSummarize": [
{
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c4",
"toolName": "read",
"content": [
{
"type": "text",
"text": "readme body"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "toolResult",
"toolCallId": "c5",
"toolName": "grep",
"content": [
{
"type": "text",
"text": "match"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
}
],
"turnPrefixMessages": [],
"isSplitTurn": false,
"tokensBefore": 7650,
"previousSummary": "## Goal\nRefactor parser",
"fileOps": {
"read": [
"old/read.ts",
"src/parse.ts",
"docs/README.md"
],
"written": [],
"edited": [
"old/mod.ts"
]
}
}
},
{
"keep": 1500,
"prep": {
"firstKeptEntryId": "e20",
"messagesToSummarize": [
{
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c4",
"toolName": "read",
"content": [
{
"type": "text",
"text": "readme body"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "toolResult",
"toolCallId": "c5",
"toolName": "grep",
"content": [
{
"type": "text",
"text": "match"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
}
],
"turnPrefixMessages": [],
"isSplitTurn": false,
"tokensBefore": 7650,
"previousSummary": "## Goal\nRefactor parser",
"fileOps": {
"read": [
"old/read.ts",
"src/parse.ts",
"docs/README.md"
],
"written": [],
"edited": [
"old/mod.ts"
]
}
}
},
{
"keep": 3000,
"prep": null
},
{
"keep": 100000,
"prep": null
}
],
"branchPrep": [
{
"budget": 0,
"messages": [
{
"role": "system",
"content": "You are Ultron.",
"sections": {
"tools": "rlm only",
"empty": null
},
"toolsAdded": [
{
"name": "rlm",
"description": "repl",
"parameters": {
"type": "object"
}
}
],
"timestamp": 0
},
{
"role": "user",
"content": "Refactor the parser in src/parse.ts please ctx0 ctx1 ctx2 ctx3 ctx4 ctx5 ctx6 ctx7 ctx8 ctx9 ctx10 ctx11 ctx12 ctx13 ctx14 ctx15 ctx16 ctx17 ctx18 ctx19 ctx20 ctx21 ctx22 ctx23 ctx24 ctx25 ctx26 ctx27 ctx28 ctx29",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "thinking",
"thinking": "plan: read first"
},
{
"type": "text",
"text": "Reading."
},
{
"type": "toolCall",
"id": "c1",
"name": "read",
"arguments": {
"path": "src/parse.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 1200,
"output": 40,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1240,
"cost": {
"input": 0.0012,
"output": 0.0004,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0015999999999999999
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c2",
"name": "edit",
"arguments": {
"path": "src/parse.ts",
"oldText": "a",
"newText": "b"
}
},
{
"type": "toolCall",
"id": "c3",
"name": "write",
"arguments": {
"path": "src/new.ts",
"content": "x"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 2400,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 2460,
"cost": {
"input": 0.0024,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0029999999999999996
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "bashExecution",
"command": "npm test",
"output": "out0 out1 out2 out3 out4 out5 out6 out7 out8 out9 out10 out11 out12 out13 out14 out15 out16 out17 out18 out19 out20 out21 out22 out23 out24 out25 out26 out27 out28 out29 out30 out31 out32 out33 out34 out35 out36 out37 out38 out39",
"exitCode": 1,
"cancelled": false,
"truncated": true,
"fullOutputPath": "/tmp/full.log",
"timestamp": 4
},
{
"role": "bashExecution",
"command": "ls",
"output": "",
"exitCode": 0,
"cancelled": false,
"truncated": false,
"excludeFromContext": true,
"timestamp": 4
},
{
"role": "bashExecution",
"command": "pwd",
"output": "/w",
"exitCode": 0,
"cancelled": false,
"truncated": true,
"timestamp": 4
},
{
"role": "bashExecution",
"command": "sleep 9",
"output": "",
"exitCode": null,
"cancelled": true,
"truncated": false,
"timestamp": 4
},
{
"role": "custom",
"customType": "note",
"content": "Remember the 80 column limit 🙂",
"display": true,
"details": {
"k": 1
},
"timestamp": 1735689614000
},
{
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "Look at this screenshot"
},
{
"type": "image",
"data": "AAAA",
"mimeType": "image/png"
}
],
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 5200,
"output": 90,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 5290,
"cost": {
"input": 0.0052,
"output": 0.0009,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0060999999999999995
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "user",
"content": "thanks",
"timestamp": 1
},
{
"role": "compactionSummary",
"summary": "## Goal\nRefactor parser",
"tokensBefore": 9000,
"timestamp": 1735689623000
},
{
"role": "user",
"content": "continue after0 after1 after2 after3 after4 after5 after6 after7 after8 after9 after10 after11 after12 after13 after14 after15 after16 after17 after18 after19 after20 after21 after22 after23 after24 after25 after26 after27 after28 after29 after30 after31 after32 after33 after34 after35 after36 after37 after38 after39 after40 after41 after42 after43 after44 after45 after46 after47 after48 after49 after50 after51 after52 after53 after54 after55 after56 after57 after58 after59",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Continuing. work0 work1 work2 work3 work4 work5 work6 work7 work8 work9 work10 work11 work12 work13 work14 work15 work16 work17 work18 work19 work20 work21 work22 work23 work24 work25 work26 work27 work28 work29 work30 work31 work32 work33 work34 work35 work36 work37 work38 work39 work40 work41 work42 work43 work44 work45 work46 work47 work48 work49 work50 work51 work52 work53 work54 work55 work56 work57 work58 work59 work60 work61 work62 work63 work64 work65 work66 work67 work68 work69 work70 work71 work72 work73 work74 work75 work76 work77 work78 work79"
},
{
"type": "toolCall",
"id": "c6",
"name": "edit",
"arguments": {
"path": "src/after.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 7000,
"output": 120,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 7120,
"cost": {
"input": 0.007,
"output": 0.0012,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0082
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Wrapping up wrap0 wrap1 wrap2 wrap3 wrap4 wrap5 wrap6 wrap7 wrap8 wrap9 wrap10 wrap11 wrap12 wrap13 wrap14 wrap15 wrap16 wrap17 wrap18 wrap19 wrap20 wrap21 wrap22 wrap23 wrap24 wrap25 wrap26 wrap27 wrap28 wrap29 wrap30 wrap31 wrap32 wrap33 wrap34 wrap35 wrap36 wrap37 wrap38 wrap39"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 7600,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 7650,
"cost": {
"input": 0.0076,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0081
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"totalTokens": 1891,
"fileOps": {
"read": [
"docs/README.md",
"src/parse.ts"
],
"written": [
"src/new.ts"
],
"edited": [
"src/after.ts",
"src/parse.ts"
]
}
},
{
"budget": 30,
"messages": [],
"totalTokens": 0,
"fileOps": {
"read": [],
"written": [],
"edited": []
}
},
{
"budget": 120,
"messages": [
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Wrapping up wrap0 wrap1 wrap2 wrap3 wrap4 wrap5 wrap6 wrap7 wrap8 wrap9 wrap10 wrap11 wrap12 wrap13 wrap14 wrap15 wrap16 wrap17 wrap18 wrap19 wrap20 wrap21 wrap22 wrap23 wrap24 wrap25 wrap26 wrap27 wrap28 wrap29 wrap30 wrap31 wrap32 wrap33 wrap34 wrap35 wrap36 wrap37 wrap38 wrap39"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 7600,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 7650,
"cost": {
"input": 0.0076,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0081
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"totalTokens": 71,
"fileOps": {
"read": [],
"written": [],
"edited": [
"src/after.ts"
]
}
},
{
"budget": 400,
"messages": [
{
"role": "user",
"content": "thanks",
"timestamp": 1
},
{
"role": "compactionSummary",
"summary": "## Goal\nRefactor parser",
"tokensBefore": 9000,
"timestamp": 1735689623000
},
{
"role": "user",
"content": "continue after0 after1 after2 after3 after4 after5 after6 after7 after8 after9 after10 after11 after12 after13 after14 after15 after16 after17 after18 after19 after20 after21 after22 after23 after24 after25 after26 after27 after28 after29 after30 after31 after32 after33 after34 after35 after36 after37 after38 after39 after40 after41 after42 after43 after44 after45 after46 after47 after48 after49 after50 after51 after52 after53 after54 after55 after56 after57 after58 after59",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Continuing. work0 work1 work2 work3 work4 work5 work6 work7 work8 work9 work10 work11 work12 work13 work14 work15 work16 work17 work18 work19 work20 work21 work22 work23 work24 work25 work26 work27 work28 work29 work30 work31 work32 work33 work34 work35 work36 work37 work38 work39 work40 work41 work42 work43 work44 work45 work46 work47 work48 work49 work50 work51 work52 work53 work54 work55 work56 work57 work58 work59 work60 work61 work62 work63 work64 work65 work66 work67 work68 work69 work70 work71 work72 work73 work74 work75 work76 work77 work78 work79"
},
{
"type": "toolCall",
"id": "c6",
"name": "edit",
"arguments": {
"path": "src/after.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 7000,
"output": 120,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 7120,
"cost": {
"input": 0.007,
"output": 0.0012,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0082
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Wrapping up wrap0 wrap1 wrap2 wrap3 wrap4 wrap5 wrap6 wrap7 wrap8 wrap9 wrap10 wrap11 wrap12 wrap13 wrap14 wrap15 wrap16 wrap17 wrap18 wrap19 wrap20 wrap21 wrap22 wrap23 wrap24 wrap25 wrap26 wrap27 wrap28 wrap29 wrap30 wrap31 wrap32 wrap33 wrap34 wrap35 wrap36 wrap37 wrap38 wrap39"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 7600,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 7650,
"cost": {
"input": 0.0076,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0081
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"totalTokens": 346,
"fileOps": {
"read": [],
"written": [],
"edited": [
"src/after.ts"
]
}
},
{
"budget": 2000,
"messages": [
{
"role": "system",
"content": "You are Ultron.",
"sections": {
"tools": "rlm only",
"empty": null
},
"toolsAdded": [
{
"name": "rlm",
"description": "repl",
"parameters": {
"type": "object"
}
}
],
"timestamp": 0
},
{
"role": "user",
"content": "Refactor the parser in src/parse.ts please ctx0 ctx1 ctx2 ctx3 ctx4 ctx5 ctx6 ctx7 ctx8 ctx9 ctx10 ctx11 ctx12 ctx13 ctx14 ctx15 ctx16 ctx17 ctx18 ctx19 ctx20 ctx21 ctx22 ctx23 ctx24 ctx25 ctx26 ctx27 ctx28 ctx29",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "thinking",
"thinking": "plan: read first"
},
{
"type": "text",
"text": "Reading."
},
{
"type": "toolCall",
"id": "c1",
"name": "read",
"arguments": {
"path": "src/parse.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 1200,
"output": 40,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1240,
"cost": {
"input": 0.0012,
"output": 0.0004,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0015999999999999999
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c2",
"name": "edit",
"arguments": {
"path": "src/parse.ts",
"oldText": "a",
"newText": "b"
}
},
{
"type": "toolCall",
"id": "c3",
"name": "write",
"arguments": {
"path": "src/new.ts",
"content": "x"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 2400,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 2460,
"cost": {
"input": 0.0024,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0029999999999999996
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "bashExecution",
"command": "npm test",
"output": "out0 out1 out2 out3 out4 out5 out6 out7 out8 out9 out10 out11 out12 out13 out14 out15 out16 out17 out18 out19 out20 out21 out22 out23 out24 out25 out26 out27 out28 out29 out30 out31 out32 out33 out34 out35 out36 out37 out38 out39",
"exitCode": 1,
"cancelled": false,
"truncated": true,
"fullOutputPath": "/tmp/full.log",
"timestamp": 4
},
{
"role": "bashExecution",
"command": "ls",
"output": "",
"exitCode": 0,
"cancelled": false,
"truncated": false,
"excludeFromContext": true,
"timestamp": 4
},
{
"role": "bashExecution",
"command": "pwd",
"output": "/w",
"exitCode": 0,
"cancelled": false,
"truncated": true,
"timestamp": 4
},
{
"role": "bashExecution",
"command": "sleep 9",
"output": "",
"exitCode": null,
"cancelled": true,
"truncated": false,
"timestamp": 4
},
{
"role": "custom",
"customType": "note",
"content": "Remember the 80 column limit 🙂",
"display": true,
"details": {
"k": 1
},
"timestamp": 1735689614000
},
{
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "Look at this screenshot"
},
{
"type": "image",
"data": "AAAA",
"mimeType": "image/png"
}
],
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 5200,
"output": 90,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 5290,
"cost": {
"input": 0.0052,
"output": 0.0009,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0060999999999999995
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "user",
"content": "thanks",
"timestamp": 1
},
{
"role": "compactionSummary",
"summary": "## Goal\nRefactor parser",
"tokensBefore": 9000,
"timestamp": 1735689623000
},
{
"role": "user",
"content": "continue after0 after1 after2 after3 after4 after5 after6 after7 after8 after9 after10 after11 after12 after13 after14 after15 after16 after17 after18 after19 after20 after21 after22 after23 after24 after25 after26 after27 after28 after29 after30 after31 after32 after33 after34 after35 after36 after37 after38 after39 after40 after41 after42 after43 after44 after45 after46 after47 after48 after49 after50 after51 after52 after53 after54 after55 after56 after57 after58 after59",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Continuing. work0 work1 work2 work3 work4 work5 work6 work7 work8 work9 work10 work11 work12 work13 work14 work15 work16 work17 work18 work19 work20 work21 work22 work23 work24 work25 work26 work27 work28 work29 work30 work31 work32 work33 work34 work35 work36 work37 work38 work39 work40 work41 work42 work43 work44 work45 work46 work47 work48 work49 work50 work51 work52 work53 work54 work55 work56 work57 work58 work59 work60 work61 work62 work63 work64 work65 work66 work67 work68 work69 work70 work71 work72 work73 work74 work75 work76 work77 work78 work79"
},
{
"type": "toolCall",
"id": "c6",
"name": "edit",
"arguments": {
"path": "src/after.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 7000,
"output": 120,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 7120,
"cost": {
"input": 0.007,
"output": 0.0012,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0082
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Wrapping up wrap0 wrap1 wrap2 wrap3 wrap4 wrap5 wrap6 wrap7 wrap8 wrap9 wrap10 wrap11 wrap12 wrap13 wrap14 wrap15 wrap16 wrap17 wrap18 wrap19 wrap20 wrap21 wrap22 wrap23 wrap24 wrap25 wrap26 wrap27 wrap28 wrap29 wrap30 wrap31 wrap32 wrap33 wrap34 wrap35 wrap36 wrap37 wrap38 wrap39"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 7600,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 7650,
"cost": {
"input": 0.0076,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0081
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"totalTokens": 1891,
"fileOps": {
"read": [
"docs/README.md",
"src/parse.ts"
],
"written": [
"src/new.ts"
],
"edited": [
"src/after.ts",
"src/parse.ts"
]
}
}
]
},
"hookedCompaction": {
"entries": [
{
"type": "thinking_level_change",
"thinkingLevel": "high",
"id": "e1",
"parentId": null,
"timestamp": "2025-01-01T00:00:01.000Z"
},
{
"type": "message",
"message": {
"role": "system",
"content": "You are Ultron.",
"sections": {
"tools": "rlm only",
"empty": null
},
"toolsAdded": [
{
"name": "rlm",
"description": "repl",
"parameters": {
"type": "object"
}
}
],
"timestamp": 0
},
"id": "e2",
"parentId": "e1",
"timestamp": "2025-01-01T00:00:02.000Z"
},
{
"type": "message",
"message": {
"role": "user",
"content": "Refactor the parser in src/parse.ts please ctx0 ctx1 ctx2 ctx3 ctx4 ctx5 ctx6 ctx7 ctx8 ctx9 ctx10 ctx11 ctx12 ctx13 ctx14 ctx15 ctx16 ctx17 ctx18 ctx19 ctx20 ctx21 ctx22 ctx23 ctx24 ctx25 ctx26 ctx27 ctx28 ctx29",
"timestamp": 1
},
"id": "e3",
"parentId": "e2",
"timestamp": "2025-01-01T00:00:03.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "thinking",
"thinking": "plan: read first"
},
{
"type": "text",
"text": "Reading."
},
{
"type": "toolCall",
"id": "c1",
"name": "read",
"arguments": {
"path": "src/parse.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 1200,
"output": 40,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1240,
"cost": {
"input": 0.0012,
"output": 0.0004,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0015999999999999999
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e4",
"parentId": "e3",
"timestamp": "2025-01-01T00:00:04.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "c1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "line0 line1 line2 line3 line4 line5 line6 line7 line8 line9 line10 line11 line12 line13 line14 line15 line16 line17 line18 line19 line20 line21 line22 line23 line24 line25 line26 line27 line28 line29 line30 line31 line32 line33 line34 line35 line36 line37 line38 line39 line40 line41 line42 line43 line44 line45 line46 line47 line48 line49 line50 line51 line52 line53 line54 line55 line56 line57 line58 line59 line60 line61 line62 line63 line64 line65 line66 line67 line68 line69 line70 line71 line72 line73 line74 line75 line76 line77 line78 line79 line80 line81 line82 line83 line84 line85 line86 line87 line88 line89 line90 line91 line92 line93 line94 line95 line96 line97 line98 line99 line100 line101 line102 line103 line104 line105 line106 line107 line108 line109 line110 line111 line112 line113 line114 line115 line116 line117 line118 line119 line120 line121 line122 line123 line124 line125 line126 line127 line128 line129 line130 line131 line132 line133 line134 line135 line136 line137 line138 line139 line140 line141 line142 line143 line144 line145 line146 line147 line148 line149 line150 line151 line152 line153 line154 line155 line156 line157 line158 line159 line160 line161 line162 line163 line164 line165 line166 line167 line168 line169 line170 line171 line172 line173 line174 line175 line176 line177 line178 line179 line180 line181 line182 line183 line184 line185 line186 line187 line188 line189 line190 line191 line192 line193 line194 line195 line196 line197 line198 line199 line200 line201 line202 line203 line204 line205 line206 line207 line208 line209 line210 line211 line212 line213 line214 line215 line216 line217 line218 line219 line220 line221 line222 line223 line224 line225 line226 line227 line228 line229 line230 line231 line232 line233 line234 line235 line236 line237 line238 line239 line240 line241 line242 line243 line244 line245 line246 line247 line248 line249 line250 line251 line252 line253 line254 line255 line256 line257 line258 line259 line260 line261 line262 line263 line264 line265 line266 line267 line268 line269 line270 line271 line272 line273 line274 line275 line276 line277 line278 line279 line280 line281 line282 line283 line284 line285 line286 line287 line288 line289 line290 line291 line292 line293 line294 line295 line296 line297 line298 line299 line300 line301 line302 line303 line304 line305 line306 line307 line308 line309 line310 line311 line312 line313 line314 line315 line316 line317 line318 line319 line320 line321 line322 line323 line324 line325 line326 line327 line328 line329 line330 line331 line332 line333 line334 line335 line336 line337 line338 line339 line340 line341 line342 line343 line344 line345 line346 line347 line348 line349 line350 line351 line352 line353 line354 line355 line356 line357 line358 line359 line360 line361 line362 line363 line364 line365 line366 line367 line368 line369 line370 line371 line372 line373 line374 line375 line376 line377 line378 line379 line380 line381 line382 line383 line384 line385 line386 line387 line388 line389 line390 line391 line392 line393 line394 line395 line396 line397 line398 line399 line400 line401 line402 line403 line404 line405 line406 line407 line408 line409 line410 line411 line412 line413 line414 line415 line416 line417 line418 line419 line420 line421 line422 line423 line424 line425 line426 line427 line428 line429 line430 line431 line432 line433 line434 line435 line436 line437 line438 line439 line440 line441 line442 line443 line444 line445 line446 line447 line448 line449 line450 line451 line452 line453 line454 line455 line456 line457 line458 line459 line460 line461 line462 line463 line464 line465 line466 line467 line468 line469 line470 line471 line472 line473 line474 line475 line476 line477 line478 line479 line480 line481 line482 line483 line484 line485 line486 line487 line488 line489 line490 line491 line492 line493 line494 line495 line496 line497 line498 line499 line500 line501 line502 line503 line504 line505 line506 line507 line508 line509 line510 line511 line512 line513 line514 line515 line516 line517 line518 line519 line520 line521 line522 line523 line524 line525 line526 line527 line528 line529 line530 line531 line532 line533 line534 line535 line536 line537 line538 line539 line540 line541 line542 line543 line544 line545 line546 line547 line548 line549 line550 line551 line552 line553 line554 line555 line556 line557 line558 line559 line560 line561 line562 line563 line564 line565 line566 line567 line568 line569 line570 line571 line572 line573 line574 line575 line576 line577 line578 line579 line580 line581 line582 line583 line584 line585 line586 line587 line588 line589 line590 line591 line592 line593 line594 line595 line596 line597 line598 line599 line600 line601 line602 line603 line604 line605 line606 line607 line608 line609 line610 line611 line612 line613 line614 line615 line616 line617 line618 line619 line620 line621 line622 line623 line624 line625 line626 line627 line628 line629 line630 line631 line632 line633 line634 line635 line636 line637 line638 line639 line640 line641 line642 line643 line644 line645 line646 line647 line648 line649 line650 line651 line652 line653 line654 line655 line656 line657 line658 line659 line660 line661 line662 line663 line664 line665 line666 line667 line668 line669 line670 line671 line672 line673 line674 line675 line676 line677 line678 line679 line680 line681 line682 line683 line684 line685 line686 line687 line688 line689 line690 line691 line692 line693 line694 line695 line696 line697 line698 line699"
}
],
"isError": false,
"timestamp": 3
},
"id": "e5",
"parentId": "e4",
"timestamp": "2025-01-01T00:00:05.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c2",
"name": "edit",
"arguments": {
"path": "src/parse.ts",
"oldText": "a",
"newText": "b"
}
},
{
"type": "toolCall",
"id": "c3",
"name": "write",
"arguments": {
"path": "src/new.ts",
"content": "x"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 2400,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 2460,
"cost": {
"input": 0.0024,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0029999999999999996
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e6",
"parentId": "e5",
"timestamp": "2025-01-01T00:00:06.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "c2",
"toolName": "edit",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
},
"id": "e7",
"parentId": "e6",
"timestamp": "2025-01-01T00:00:07.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "c3",
"toolName": "write",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
},
"id": "e8",
"parentId": "e7",
"timestamp": "2025-01-01T00:00:08.000Z"
},
{
"type": "label",
"targetId": "e3",
"label": "start",
"id": "e9",
"parentId": "e8",
"timestamp": "2025-01-01T00:00:09.000Z"
},
{
"type": "message",
"message": {
"role": "bashExecution",
"command": "npm test",
"output": "out0 out1 out2 out3 out4 out5 out6 out7 out8 out9 out10 out11 out12 out13 out14 out15 out16 out17 out18 out19 out20 out21 out22 out23 out24 out25 out26 out27 out28 out29 out30 out31 out32 out33 out34 out35 out36 out37 out38 out39",
"exitCode": 1,
"cancelled": false,
"truncated": true,
"fullOutputPath": "/tmp/full.log",
"timestamp": 4
},
"id": "e10",
"parentId": "e9",
"timestamp": "2025-01-01T00:00:10.000Z"
},
{
"type": "message",
"message": {
"role": "bashExecution",
"command": "ls",
"output": "",
"exitCode": 0,
"cancelled": false,
"truncated": false,
"excludeFromContext": true,
"timestamp": 4
},
"id": "e11",
"parentId": "e10",
"timestamp": "2025-01-01T00:00:11.000Z"
},
{
"type": "message",
"message": {
"role": "bashExecution",
"command": "pwd",
"output": "/w",
"exitCode": 0,
"cancelled": false,
"truncated": true,
"timestamp": 4
},
"id": "e12",
"parentId": "e11",
"timestamp": "2025-01-01T00:00:12.000Z"
},
{
"type": "message",
"message": {
"role": "bashExecution",
"command": "sleep 9",
"output": "",
"exitCode": null,
"cancelled": true,
"truncated": false,
"timestamp": 4
},
"id": "e13",
"parentId": "e12",
"timestamp": "2025-01-01T00:00:13.000Z"
},
{
"type": "custom_message",
"customType": "note",
"content": "Remember the 80 column limit 🙂",
"display": true,
"details": {
"k": 1
},
"id": "e14",
"parentId": "e13",
"timestamp": "2025-01-01T00:00:14.000Z"
},
{
"type": "message",
"message": {
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
"id": "e15",
"parentId": "e14",
"timestamp": "2025-01-01T00:00:15.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e16",
"parentId": "e15",
"timestamp": "2025-01-01T00:00:16.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "c4",
"toolName": "read",
"content": [
{
"type": "text",
"text": "readme body"
}
],
"isError": false,
"timestamp": 3
},
"id": "e17",
"parentId": "e16",
"timestamp": "2025-01-01T00:00:17.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "c5",
"toolName": "grep",
"content": [
{
"type": "text",
"text": "match"
}
],
"isError": false,
"timestamp": 3
},
"id": "e18",
"parentId": "e17",
"timestamp": "2025-01-01T00:00:18.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
},
"id": "e19",
"parentId": "e18",
"timestamp": "2025-01-01T00:00:19.000Z"
},
{
"type": "message",
"message": {
"role": "user",
"content": [
{
"type": "text",
"text": "Look at this screenshot"
},
{
"type": "image",
"data": "AAAA",
"mimeType": "image/png"
}
],
"timestamp": 1
},
"id": "e20",
"parentId": "e19",
"timestamp": "2025-01-01T00:00:20.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 5200,
"output": 90,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 5290,
"cost": {
"input": 0.0052,
"output": 0.0009,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0060999999999999995
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e21",
"parentId": "e20",
"timestamp": "2025-01-01T00:00:21.000Z"
},
{
"type": "message",
"message": {
"role": "user",
"content": "thanks",
"timestamp": 1
},
"id": "e22",
"parentId": "e21",
"timestamp": "2025-01-01T00:00:22.000Z"
},
{
"type": "compaction",
"summary": "## Goal\nRefactor parser",
"firstKeptEntryId": "e15",
"tokensBefore": 9000,
"details": {
"readFiles": [
"old/read.ts",
"src/parse.ts"
],
"modifiedFiles": [
"old/mod.ts"
]
},
"id": "e23",
"parentId": "e22",
"timestamp": "2025-01-01T00:00:23.000Z",
"fromHook": true
},
{
"type": "message",
"message": {
"role": "user",
"content": "continue after0 after1 after2 after3 after4 after5 after6 after7 after8 after9 after10 after11 after12 after13 after14 after15 after16 after17 after18 after19 after20 after21 after22 after23 after24 after25 after26 after27 after28 after29 after30 after31 after32 after33 after34 after35 after36 after37 after38 after39 after40 after41 after42 after43 after44 after45 after46 after47 after48 after49 after50 after51 after52 after53 after54 after55 after56 after57 after58 after59",
"timestamp": 1
},
"id": "e24",
"parentId": "e23",
"timestamp": "2025-01-01T00:00:24.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "Continuing. work0 work1 work2 work3 work4 work5 work6 work7 work8 work9 work10 work11 work12 work13 work14 work15 work16 work17 work18 work19 work20 work21 work22 work23 work24 work25 work26 work27 work28 work29 work30 work31 work32 work33 work34 work35 work36 work37 work38 work39 work40 work41 work42 work43 work44 work45 work46 work47 work48 work49 work50 work51 work52 work53 work54 work55 work56 work57 work58 work59 work60 work61 work62 work63 work64 work65 work66 work67 work68 work69 work70 work71 work72 work73 work74 work75 work76 work77 work78 work79"
},
{
"type": "toolCall",
"id": "c6",
"name": "edit",
"arguments": {
"path": "src/after.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 7000,
"output": 120,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 7120,
"cost": {
"input": 0.007,
"output": 0.0012,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0082
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e25",
"parentId": "e24",
"timestamp": "2025-01-01T00:00:25.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "c6",
"toolName": "edit",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
},
"id": "e26",
"parentId": "e25",
"timestamp": "2025-01-01T00:00:26.000Z"
},
{
"type": "model_change",
"provider": "openai",
"modelId": "gpt",
"id": "e27",
"parentId": "e26",
"timestamp": "2025-01-01T00:00:27.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "Wrapping up wrap0 wrap1 wrap2 wrap3 wrap4 wrap5 wrap6 wrap7 wrap8 wrap9 wrap10 wrap11 wrap12 wrap13 wrap14 wrap15 wrap16 wrap17 wrap18 wrap19 wrap20 wrap21 wrap22 wrap23 wrap24 wrap25 wrap26 wrap27 wrap28 wrap29 wrap30 wrap31 wrap32 wrap33 wrap34 wrap35 wrap36 wrap37 wrap38 wrap39"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 7600,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 7650,
"cost": {
"input": 0.0076,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0081
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e28",
"parentId": "e27",
"timestamp": "2025-01-01T00:00:28.000Z"
}
],
"messageTokens": [
6,
40,
16,
3,
2,
8,
1206,
89,
2,
120,
147,
1,
71
],
"rawMessageTokens": [
23,
53,
13,
1373,
24,
1,
1,
60,
1,
2,
2,
40,
16,
3,
2,
8,
1206,
89,
2,
120,
147,
1,
71
],
"contextEstimate": {
"tokens": 7650,
"usageTokens": 7650,
"trailingTokens": 0,
"lastUsageIndex": 12
},
"projectedEstimate": {
"tokens": 7650,
"usageTokens": 7650,
"trailingTokens": 0,
"lastUsageIndex": 12
},
"lastAssistantUsage": {
"input": 7600,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 7650,
"cost": {
"input": 0.0076,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0081
}
},
"serialized": "[User]: Refactor the parser in src/parse.ts please ctx0 ctx1 ctx2 ctx3 ctx4 ctx5 ctx6 ctx7 ctx8 ctx9 ctx10 ctx11 ctx12 ctx13 ctx14 ctx15 ctx16 ctx17 ctx18 ctx19 ctx20 ctx21 ctx22 ctx23 ctx24 ctx25 ctx26 ctx27 ctx28 ctx29\n\n[Assistant thinking]: plan: read first\n\n[Assistant]: Reading.\n\n[Assistant tool calls]: read(path=\"src/parse.ts\")\n\n[Tool result]: line0 line1 line2 line3 line4 line5 line6 line7 line8 line9 line10 line11 line12 line13 line14 line15 line16 line17 line18 line19 line20 line21 line22 line23 line24 line25 line26 line27 line28 line29 line30 line31 line32 line33 line34 line35 line36 line37 line38 line39 line40 line41 line42 line43 line44 line45 line46 line47 line48 line49 line50 line51 line52 line53 line54 line55 line56 line57 line58 line59 line60 line61 line62 line63 line64 line65 line66 line67 line68 line69 line70 line71 line72 line73 line74 line75 line76 line77 line78 line79 line80 line81 line82 line83 line84 line85 line86 line87 line88 line89 line90 line91 line92 line93 line94 line95 line96 line97 line98 line99 line100 line101 line102 line103 line104 line105 line106 line107 line108 line109 line110 line111 line112 line113 line114 line115 line116 line117 line118 line119 line120 line121 line122 line123 line124 line125 line126 line127 line128 line129 line130 line131 line132 line133 line134 line135 line136 line137 line138 line139 line140 line141 line142 line143 line144 line145 line146 line147 line148 line149 line150 line151 line152 line153 line154 line155 line156 line157 line158 line159 line160 line161 line162 line163 line164 line165 line166 line167 line168 line169 line170 line171 line172 line173 line174 line175 line176 line177 line178 line179 line180 line181 line182 line183 line184 line185 line186 line187 line188 line189 line190 line191 line192 line193 line194 line195 line196 line197 line198 line199 line200 line201 line202 line203 line204 line205 line206 line207 line208 line209 line210 line211 line212 line213 line214 line215 line216 line217 line218 line219 line220 line221 line222 line223 line224 line225 line226 line227 line228 line229 line230 line231 line232 line233 line234 line235 line236 line237 line238 line239 line240 line241 line242 line243 line244 line245 line246 line247 line248 line249 line250 line251 line252 line253 line254 line255 line256 line257 line258 line259 line260 line261 line262 line26\n\n[... 3489 more characters truncated]\n\n[Assistant tool calls]: edit(path=\"src/parse.ts\", oldText=\"a\", newText=\"b\"); write(path=\"src/new.ts\", content=\"x\")\n\n[Tool result]: ok\n\n[Tool result]: ok\n\n[User]: Ran `npm test`\n```\nout0 out1 out2 out3 out4 out5 out6 out7 out8 out9 out10 out11 out12 out13 out14 out15 out16 out17 out18 out19 out20 out21 out22 out23 out24 out25 out26 out27 out28 out29 out30 out31 out32 out33 out34 out35 out36 out37 out38 out39\n```\n\nCommand exited with code 1\n\n[Output truncated. Full output: /tmp/full.log]\n\n[User]: Ran `pwd`\n```\n/w\n```\n\n[User]: Ran `sleep 9`\n(no output)\n\n(command cancelled)\n\n[User]: Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19\n\n[Assistant tool calls]: read(path=\"docs/README.md\"); grep(pattern=\"x\", path=\"src\")\n\n[Tool result]: readme body\n\n[Tool result]: match\n\n[Assistant]: Done with step one.\nSecond block.\n\n[User]: Look at this screenshot\n\n[Assistant]: I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49\n\n[User]: thanks\n\n[User]: continue after0 after1 after2 after3 after4 after5 after6 after7 after8 after9 after10 after11 after12 after13 after14 after15 after16 after17 after18 after19 after20 after21 after22 after23 after24 after25 after26 after27 after28 after29 after30 after31 after32 after33 after34 after35 after36 after37 after38 after39 after40 after41 after42 after43 after44 after45 after46 after47 after48 after49 after50 after51 after52 after53 after54 after55 after56 after57 after58 after59\n\n[Assistant]: Continuing. work0 work1 work2 work3 work4 work5 work6 work7 work8 work9 work10 work11 work12 work13 work14 work15 work16 work17 work18 work19 work20 work21 work22 work23 work24 work25 work26 work27 work28 work29 work30 work31 work32 work33 work34 work35 work36 work37 work38 work39 work40 work41 work42 work43 work44 work45 work46 work47 work48 work49 work50 work51 work52 work53 work54 work55 work56 work57 work58 work59 work60 work61 work62 work63 work64 work65 work66 work67 work68 work69 work70 work71 work72 work73 work74 work75 work76 work77 work78 work79\n\n[Assistant tool calls]: edit(path=\"src/after.ts\")\n\n[Tool result]: ok\n\n[Assistant]: Wrapping up wrap0 wrap1 wrap2 wrap3 wrap4 wrap5 wrap6 wrap7 wrap8 wrap9 wrap10 wrap11 wrap12 wrap13 wrap14 wrap15 wrap16 wrap17 wrap18 wrap19 wrap20 wrap21 wrap22 wrap23 wrap24 wrap25 wrap26 wrap27 wrap28 wrap29 wrap30 wrap31 wrap32 wrap33 wrap34 wrap35 wrap36 wrap37 wrap38 wrap39",
"cutPoints": [
{
"keep": 0,
"result": {
"firstKeptEntryIndex": 26,
"turnStartIndex": 23,
"isSplitTurn": true
}
},
{
"keep": 1,
"result": {
"firstKeptEntryIndex": 26,
"turnStartIndex": 23,
"isSplitTurn": true
}
},
{
"keep": 20,
"result": {
"firstKeptEntryIndex": 26,
"turnStartIndex": 23,
"isSplitTurn": true
}
},
{
"keep": 50,
"result": {
"firstKeptEntryIndex": 26,
"turnStartIndex": 23,
"isSplitTurn": true
}
},
{
"keep": 150,
"result": {
"firstKeptEntryIndex": 24,
"turnStartIndex": 23,
"isSplitTurn": true
}
},
{
"keep": 400,
"result": {
"firstKeptEntryIndex": 20,
"turnStartIndex": 19,
"isSplitTurn": true
}
},
{
"keep": 900,
"result": {
"firstKeptEntryIndex": 19,
"turnStartIndex": -1,
"isSplitTurn": false
}
},
{
"keep": 1500,
"result": {
"firstKeptEntryIndex": 19,
"turnStartIndex": -1,
"isSplitTurn": false
}
},
{
"keep": 3000,
"result": {
"firstKeptEntryIndex": 5,
"turnStartIndex": 2,
"isSplitTurn": true
}
},
{
"keep": 100000,
"result": {
"firstKeptEntryIndex": 2,
"turnStartIndex": -1,
"isSplitTurn": false
}
}
],
"turnStarts": [
-1,
-1,
2,
2,
2,
2,
2,
2,
2,
9,
10,
11,
12,
13,
14,
14,
14,
14,
14,
19,
19,
21,
21,
23,
23,
23,
23,
23
],
"preparations": [
{
"keep": 0,
"prep": {
"firstKeptEntryId": "e27",
"messagesToSummarize": [
{
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c4",
"toolName": "read",
"content": [
{
"type": "text",
"text": "readme body"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "toolResult",
"toolCallId": "c5",
"toolName": "grep",
"content": [
{
"type": "text",
"text": "match"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "Look at this screenshot"
},
{
"type": "image",
"data": "AAAA",
"mimeType": "image/png"
}
],
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 5200,
"output": 90,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 5290,
"cost": {
"input": 0.0052,
"output": 0.0009,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0060999999999999995
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "user",
"content": "thanks",
"timestamp": 1
}
],
"turnPrefixMessages": [
{
"role": "user",
"content": "continue after0 after1 after2 after3 after4 after5 after6 after7 after8 after9 after10 after11 after12 after13 after14 after15 after16 after17 after18 after19 after20 after21 after22 after23 after24 after25 after26 after27 after28 after29 after30 after31 after32 after33 after34 after35 after36 after37 after38 after39 after40 after41 after42 after43 after44 after45 after46 after47 after48 after49 after50 after51 after52 after53 after54 after55 after56 after57 after58 after59",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Continuing. work0 work1 work2 work3 work4 work5 work6 work7 work8 work9 work10 work11 work12 work13 work14 work15 work16 work17 work18 work19 work20 work21 work22 work23 work24 work25 work26 work27 work28 work29 work30 work31 work32 work33 work34 work35 work36 work37 work38 work39 work40 work41 work42 work43 work44 work45 work46 work47 work48 work49 work50 work51 work52 work53 work54 work55 work56 work57 work58 work59 work60 work61 work62 work63 work64 work65 work66 work67 work68 work69 work70 work71 work72 work73 work74 work75 work76 work77 work78 work79"
},
{
"type": "toolCall",
"id": "c6",
"name": "edit",
"arguments": {
"path": "src/after.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 7000,
"output": 120,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 7120,
"cost": {
"input": 0.007,
"output": 0.0012,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0082
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c6",
"toolName": "edit",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
}
],
"isSplitTurn": true,
"tokensBefore": 7650,
"previousSummary": "## Goal\nRefactor parser",
"fileOps": {
"read": [
"docs/README.md"
],
"written": [],
"edited": [
"src/after.ts"
]
}
}
},
{
"keep": 1,
"prep": {
"firstKeptEntryId": "e27",
"messagesToSummarize": [
{
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c4",
"toolName": "read",
"content": [
{
"type": "text",
"text": "readme body"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "toolResult",
"toolCallId": "c5",
"toolName": "grep",
"content": [
{
"type": "text",
"text": "match"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "Look at this screenshot"
},
{
"type": "image",
"data": "AAAA",
"mimeType": "image/png"
}
],
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 5200,
"output": 90,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 5290,
"cost": {
"input": 0.0052,
"output": 0.0009,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0060999999999999995
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "user",
"content": "thanks",
"timestamp": 1
}
],
"turnPrefixMessages": [
{
"role": "user",
"content": "continue after0 after1 after2 after3 after4 after5 after6 after7 after8 after9 after10 after11 after12 after13 after14 after15 after16 after17 after18 after19 after20 after21 after22 after23 after24 after25 after26 after27 after28 after29 after30 after31 after32 after33 after34 after35 after36 after37 after38 after39 after40 after41 after42 after43 after44 after45 after46 after47 after48 after49 after50 after51 after52 after53 after54 after55 after56 after57 after58 after59",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Continuing. work0 work1 work2 work3 work4 work5 work6 work7 work8 work9 work10 work11 work12 work13 work14 work15 work16 work17 work18 work19 work20 work21 work22 work23 work24 work25 work26 work27 work28 work29 work30 work31 work32 work33 work34 work35 work36 work37 work38 work39 work40 work41 work42 work43 work44 work45 work46 work47 work48 work49 work50 work51 work52 work53 work54 work55 work56 work57 work58 work59 work60 work61 work62 work63 work64 work65 work66 work67 work68 work69 work70 work71 work72 work73 work74 work75 work76 work77 work78 work79"
},
{
"type": "toolCall",
"id": "c6",
"name": "edit",
"arguments": {
"path": "src/after.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 7000,
"output": 120,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 7120,
"cost": {
"input": 0.007,
"output": 0.0012,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0082
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c6",
"toolName": "edit",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
}
],
"isSplitTurn": true,
"tokensBefore": 7650,
"previousSummary": "## Goal\nRefactor parser",
"fileOps": {
"read": [
"docs/README.md"
],
"written": [],
"edited": [
"src/after.ts"
]
}
}
},
{
"keep": 20,
"prep": {
"firstKeptEntryId": "e27",
"messagesToSummarize": [
{
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c4",
"toolName": "read",
"content": [
{
"type": "text",
"text": "readme body"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "toolResult",
"toolCallId": "c5",
"toolName": "grep",
"content": [
{
"type": "text",
"text": "match"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "Look at this screenshot"
},
{
"type": "image",
"data": "AAAA",
"mimeType": "image/png"
}
],
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 5200,
"output": 90,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 5290,
"cost": {
"input": 0.0052,
"output": 0.0009,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0060999999999999995
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "user",
"content": "thanks",
"timestamp": 1
}
],
"turnPrefixMessages": [
{
"role": "user",
"content": "continue after0 after1 after2 after3 after4 after5 after6 after7 after8 after9 after10 after11 after12 after13 after14 after15 after16 after17 after18 after19 after20 after21 after22 after23 after24 after25 after26 after27 after28 after29 after30 after31 after32 after33 after34 after35 after36 after37 after38 after39 after40 after41 after42 after43 after44 after45 after46 after47 after48 after49 after50 after51 after52 after53 after54 after55 after56 after57 after58 after59",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Continuing. work0 work1 work2 work3 work4 work5 work6 work7 work8 work9 work10 work11 work12 work13 work14 work15 work16 work17 work18 work19 work20 work21 work22 work23 work24 work25 work26 work27 work28 work29 work30 work31 work32 work33 work34 work35 work36 work37 work38 work39 work40 work41 work42 work43 work44 work45 work46 work47 work48 work49 work50 work51 work52 work53 work54 work55 work56 work57 work58 work59 work60 work61 work62 work63 work64 work65 work66 work67 work68 work69 work70 work71 work72 work73 work74 work75 work76 work77 work78 work79"
},
{
"type": "toolCall",
"id": "c6",
"name": "edit",
"arguments": {
"path": "src/after.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 7000,
"output": 120,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 7120,
"cost": {
"input": 0.007,
"output": 0.0012,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0082
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c6",
"toolName": "edit",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
}
],
"isSplitTurn": true,
"tokensBefore": 7650,
"previousSummary": "## Goal\nRefactor parser",
"fileOps": {
"read": [
"docs/README.md"
],
"written": [],
"edited": [
"src/after.ts"
]
}
}
},
{
"keep": 50,
"prep": {
"firstKeptEntryId": "e27",
"messagesToSummarize": [
{
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c4",
"toolName": "read",
"content": [
{
"type": "text",
"text": "readme body"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "toolResult",
"toolCallId": "c5",
"toolName": "grep",
"content": [
{
"type": "text",
"text": "match"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "Look at this screenshot"
},
{
"type": "image",
"data": "AAAA",
"mimeType": "image/png"
}
],
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 5200,
"output": 90,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 5290,
"cost": {
"input": 0.0052,
"output": 0.0009,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0060999999999999995
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "user",
"content": "thanks",
"timestamp": 1
}
],
"turnPrefixMessages": [
{
"role": "user",
"content": "continue after0 after1 after2 after3 after4 after5 after6 after7 after8 after9 after10 after11 after12 after13 after14 after15 after16 after17 after18 after19 after20 after21 after22 after23 after24 after25 after26 after27 after28 after29 after30 after31 after32 after33 after34 after35 after36 after37 after38 after39 after40 after41 after42 after43 after44 after45 after46 after47 after48 after49 after50 after51 after52 after53 after54 after55 after56 after57 after58 after59",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Continuing. work0 work1 work2 work3 work4 work5 work6 work7 work8 work9 work10 work11 work12 work13 work14 work15 work16 work17 work18 work19 work20 work21 work22 work23 work24 work25 work26 work27 work28 work29 work30 work31 work32 work33 work34 work35 work36 work37 work38 work39 work40 work41 work42 work43 work44 work45 work46 work47 work48 work49 work50 work51 work52 work53 work54 work55 work56 work57 work58 work59 work60 work61 work62 work63 work64 work65 work66 work67 work68 work69 work70 work71 work72 work73 work74 work75 work76 work77 work78 work79"
},
{
"type": "toolCall",
"id": "c6",
"name": "edit",
"arguments": {
"path": "src/after.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 7000,
"output": 120,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 7120,
"cost": {
"input": 0.007,
"output": 0.0012,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0082
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c6",
"toolName": "edit",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
}
],
"isSplitTurn": true,
"tokensBefore": 7650,
"previousSummary": "## Goal\nRefactor parser",
"fileOps": {
"read": [
"docs/README.md"
],
"written": [],
"edited": [
"src/after.ts"
]
}
}
},
{
"keep": 150,
"prep": {
"firstKeptEntryId": "e25",
"messagesToSummarize": [
{
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c4",
"toolName": "read",
"content": [
{
"type": "text",
"text": "readme body"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "toolResult",
"toolCallId": "c5",
"toolName": "grep",
"content": [
{
"type": "text",
"text": "match"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "Look at this screenshot"
},
{
"type": "image",
"data": "AAAA",
"mimeType": "image/png"
}
],
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 5200,
"output": 90,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 5290,
"cost": {
"input": 0.0052,
"output": 0.0009,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0060999999999999995
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "user",
"content": "thanks",
"timestamp": 1
}
],
"turnPrefixMessages": [
{
"role": "user",
"content": "continue after0 after1 after2 after3 after4 after5 after6 after7 after8 after9 after10 after11 after12 after13 after14 after15 after16 after17 after18 after19 after20 after21 after22 after23 after24 after25 after26 after27 after28 after29 after30 after31 after32 after33 after34 after35 after36 after37 after38 after39 after40 after41 after42 after43 after44 after45 after46 after47 after48 after49 after50 after51 after52 after53 after54 after55 after56 after57 after58 after59",
"timestamp": 1
}
],
"isSplitTurn": true,
"tokensBefore": 7650,
"previousSummary": "## Goal\nRefactor parser",
"fileOps": {
"read": [
"docs/README.md"
],
"written": [],
"edited": []
}
}
},
{
"keep": 400,
"prep": {
"firstKeptEntryId": "e21",
"messagesToSummarize": [
{
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c4",
"toolName": "read",
"content": [
{
"type": "text",
"text": "readme body"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "toolResult",
"toolCallId": "c5",
"toolName": "grep",
"content": [
{
"type": "text",
"text": "match"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
}
],
"turnPrefixMessages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Look at this screenshot"
},
{
"type": "image",
"data": "AAAA",
"mimeType": "image/png"
}
],
"timestamp": 1
}
],
"isSplitTurn": true,
"tokensBefore": 7650,
"previousSummary": "## Goal\nRefactor parser",
"fileOps": {
"read": [
"docs/README.md"
],
"written": [],
"edited": []
}
}
},
{
"keep": 900,
"prep": {
"firstKeptEntryId": "e20",
"messagesToSummarize": [
{
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c4",
"toolName": "read",
"content": [
{
"type": "text",
"text": "readme body"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "toolResult",
"toolCallId": "c5",
"toolName": "grep",
"content": [
{
"type": "text",
"text": "match"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
}
],
"turnPrefixMessages": [],
"isSplitTurn": false,
"tokensBefore": 7650,
"previousSummary": "## Goal\nRefactor parser",
"fileOps": {
"read": [
"docs/README.md"
],
"written": [],
"edited": []
}
}
},
{
"keep": 1500,
"prep": {
"firstKeptEntryId": "e20",
"messagesToSummarize": [
{
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "c4",
"toolName": "read",
"content": [
{
"type": "text",
"text": "readme body"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "toolResult",
"toolCallId": "c5",
"toolName": "grep",
"content": [
{
"type": "text",
"text": "match"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
}
],
"turnPrefixMessages": [],
"isSplitTurn": false,
"tokensBefore": 7650,
"previousSummary": "## Goal\nRefactor parser",
"fileOps": {
"read": [
"docs/README.md"
],
"written": [],
"edited": []
}
}
},
{
"keep": 3000,
"prep": null
},
{
"keep": 100000,
"prep": null
}
],
"branchPrep": [
{
"budget": 0,
"messages": [
{
"role": "system",
"content": "You are Ultron.",
"sections": {
"tools": "rlm only",
"empty": null
},
"toolsAdded": [
{
"name": "rlm",
"description": "repl",
"parameters": {
"type": "object"
}
}
],
"timestamp": 0
},
{
"role": "user",
"content": "Refactor the parser in src/parse.ts please ctx0 ctx1 ctx2 ctx3 ctx4 ctx5 ctx6 ctx7 ctx8 ctx9 ctx10 ctx11 ctx12 ctx13 ctx14 ctx15 ctx16 ctx17 ctx18 ctx19 ctx20 ctx21 ctx22 ctx23 ctx24 ctx25 ctx26 ctx27 ctx28 ctx29",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "thinking",
"thinking": "plan: read first"
},
{
"type": "text",
"text": "Reading."
},
{
"type": "toolCall",
"id": "c1",
"name": "read",
"arguments": {
"path": "src/parse.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 1200,
"output": 40,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1240,
"cost": {
"input": 0.0012,
"output": 0.0004,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0015999999999999999
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c2",
"name": "edit",
"arguments": {
"path": "src/parse.ts",
"oldText": "a",
"newText": "b"
}
},
{
"type": "toolCall",
"id": "c3",
"name": "write",
"arguments": {
"path": "src/new.ts",
"content": "x"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 2400,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 2460,
"cost": {
"input": 0.0024,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0029999999999999996
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "bashExecution",
"command": "npm test",
"output": "out0 out1 out2 out3 out4 out5 out6 out7 out8 out9 out10 out11 out12 out13 out14 out15 out16 out17 out18 out19 out20 out21 out22 out23 out24 out25 out26 out27 out28 out29 out30 out31 out32 out33 out34 out35 out36 out37 out38 out39",
"exitCode": 1,
"cancelled": false,
"truncated": true,
"fullOutputPath": "/tmp/full.log",
"timestamp": 4
},
{
"role": "bashExecution",
"command": "ls",
"output": "",
"exitCode": 0,
"cancelled": false,
"truncated": false,
"excludeFromContext": true,
"timestamp": 4
},
{
"role": "bashExecution",
"command": "pwd",
"output": "/w",
"exitCode": 0,
"cancelled": false,
"truncated": true,
"timestamp": 4
},
{
"role": "bashExecution",
"command": "sleep 9",
"output": "",
"exitCode": null,
"cancelled": true,
"truncated": false,
"timestamp": 4
},
{
"role": "custom",
"customType": "note",
"content": "Remember the 80 column limit 🙂",
"display": true,
"details": {
"k": 1
},
"timestamp": 1735689614000
},
{
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "Look at this screenshot"
},
{
"type": "image",
"data": "AAAA",
"mimeType": "image/png"
}
],
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 5200,
"output": 90,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 5290,
"cost": {
"input": 0.0052,
"output": 0.0009,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0060999999999999995
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "user",
"content": "thanks",
"timestamp": 1
},
{
"role": "compactionSummary",
"summary": "## Goal\nRefactor parser",
"tokensBefore": 9000,
"timestamp": 1735689623000
},
{
"role": "user",
"content": "continue after0 after1 after2 after3 after4 after5 after6 after7 after8 after9 after10 after11 after12 after13 after14 after15 after16 after17 after18 after19 after20 after21 after22 after23 after24 after25 after26 after27 after28 after29 after30 after31 after32 after33 after34 after35 after36 after37 after38 after39 after40 after41 after42 after43 after44 after45 after46 after47 after48 after49 after50 after51 after52 after53 after54 after55 after56 after57 after58 after59",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Continuing. work0 work1 work2 work3 work4 work5 work6 work7 work8 work9 work10 work11 work12 work13 work14 work15 work16 work17 work18 work19 work20 work21 work22 work23 work24 work25 work26 work27 work28 work29 work30 work31 work32 work33 work34 work35 work36 work37 work38 work39 work40 work41 work42 work43 work44 work45 work46 work47 work48 work49 work50 work51 work52 work53 work54 work55 work56 work57 work58 work59 work60 work61 work62 work63 work64 work65 work66 work67 work68 work69 work70 work71 work72 work73 work74 work75 work76 work77 work78 work79"
},
{
"type": "toolCall",
"id": "c6",
"name": "edit",
"arguments": {
"path": "src/after.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 7000,
"output": 120,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 7120,
"cost": {
"input": 0.007,
"output": 0.0012,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0082
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Wrapping up wrap0 wrap1 wrap2 wrap3 wrap4 wrap5 wrap6 wrap7 wrap8 wrap9 wrap10 wrap11 wrap12 wrap13 wrap14 wrap15 wrap16 wrap17 wrap18 wrap19 wrap20 wrap21 wrap22 wrap23 wrap24 wrap25 wrap26 wrap27 wrap28 wrap29 wrap30 wrap31 wrap32 wrap33 wrap34 wrap35 wrap36 wrap37 wrap38 wrap39"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 7600,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 7650,
"cost": {
"input": 0.0076,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0081
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"totalTokens": 1891,
"fileOps": {
"read": [
"docs/README.md",
"src/parse.ts"
],
"written": [
"src/new.ts"
],
"edited": [
"src/after.ts",
"src/parse.ts"
]
}
},
{
"budget": 30,
"messages": [],
"totalTokens": 0,
"fileOps": {
"read": [],
"written": [],
"edited": []
}
},
{
"budget": 120,
"messages": [
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Wrapping up wrap0 wrap1 wrap2 wrap3 wrap4 wrap5 wrap6 wrap7 wrap8 wrap9 wrap10 wrap11 wrap12 wrap13 wrap14 wrap15 wrap16 wrap17 wrap18 wrap19 wrap20 wrap21 wrap22 wrap23 wrap24 wrap25 wrap26 wrap27 wrap28 wrap29 wrap30 wrap31 wrap32 wrap33 wrap34 wrap35 wrap36 wrap37 wrap38 wrap39"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 7600,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 7650,
"cost": {
"input": 0.0076,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0081
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"totalTokens": 71,
"fileOps": {
"read": [],
"written": [],
"edited": [
"src/after.ts"
]
}
},
{
"budget": 400,
"messages": [
{
"role": "user",
"content": "thanks",
"timestamp": 1
},
{
"role": "compactionSummary",
"summary": "## Goal\nRefactor parser",
"tokensBefore": 9000,
"timestamp": 1735689623000
},
{
"role": "user",
"content": "continue after0 after1 after2 after3 after4 after5 after6 after7 after8 after9 after10 after11 after12 after13 after14 after15 after16 after17 after18 after19 after20 after21 after22 after23 after24 after25 after26 after27 after28 after29 after30 after31 after32 after33 after34 after35 after36 after37 after38 after39 after40 after41 after42 after43 after44 after45 after46 after47 after48 after49 after50 after51 after52 after53 after54 after55 after56 after57 after58 after59",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Continuing. work0 work1 work2 work3 work4 work5 work6 work7 work8 work9 work10 work11 work12 work13 work14 work15 work16 work17 work18 work19 work20 work21 work22 work23 work24 work25 work26 work27 work28 work29 work30 work31 work32 work33 work34 work35 work36 work37 work38 work39 work40 work41 work42 work43 work44 work45 work46 work47 work48 work49 work50 work51 work52 work53 work54 work55 work56 work57 work58 work59 work60 work61 work62 work63 work64 work65 work66 work67 work68 work69 work70 work71 work72 work73 work74 work75 work76 work77 work78 work79"
},
{
"type": "toolCall",
"id": "c6",
"name": "edit",
"arguments": {
"path": "src/after.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 7000,
"output": 120,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 7120,
"cost": {
"input": 0.007,
"output": 0.0012,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0082
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Wrapping up wrap0 wrap1 wrap2 wrap3 wrap4 wrap5 wrap6 wrap7 wrap8 wrap9 wrap10 wrap11 wrap12 wrap13 wrap14 wrap15 wrap16 wrap17 wrap18 wrap19 wrap20 wrap21 wrap22 wrap23 wrap24 wrap25 wrap26 wrap27 wrap28 wrap29 wrap30 wrap31 wrap32 wrap33 wrap34 wrap35 wrap36 wrap37 wrap38 wrap39"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 7600,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 7650,
"cost": {
"input": 0.0076,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0081
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"totalTokens": 346,
"fileOps": {
"read": [],
"written": [],
"edited": [
"src/after.ts"
]
}
},
{
"budget": 2000,
"messages": [
{
"role": "system",
"content": "You are Ultron.",
"sections": {
"tools": "rlm only",
"empty": null
},
"toolsAdded": [
{
"name": "rlm",
"description": "repl",
"parameters": {
"type": "object"
}
}
],
"timestamp": 0
},
{
"role": "user",
"content": "Refactor the parser in src/parse.ts please ctx0 ctx1 ctx2 ctx3 ctx4 ctx5 ctx6 ctx7 ctx8 ctx9 ctx10 ctx11 ctx12 ctx13 ctx14 ctx15 ctx16 ctx17 ctx18 ctx19 ctx20 ctx21 ctx22 ctx23 ctx24 ctx25 ctx26 ctx27 ctx28 ctx29",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "thinking",
"thinking": "plan: read first"
},
{
"type": "text",
"text": "Reading."
},
{
"type": "toolCall",
"id": "c1",
"name": "read",
"arguments": {
"path": "src/parse.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 1200,
"output": 40,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1240,
"cost": {
"input": 0.0012,
"output": 0.0004,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0015999999999999999
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c2",
"name": "edit",
"arguments": {
"path": "src/parse.ts",
"oldText": "a",
"newText": "b"
}
},
{
"type": "toolCall",
"id": "c3",
"name": "write",
"arguments": {
"path": "src/new.ts",
"content": "x"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 2400,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 2460,
"cost": {
"input": 0.0024,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0029999999999999996
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "bashExecution",
"command": "npm test",
"output": "out0 out1 out2 out3 out4 out5 out6 out7 out8 out9 out10 out11 out12 out13 out14 out15 out16 out17 out18 out19 out20 out21 out22 out23 out24 out25 out26 out27 out28 out29 out30 out31 out32 out33 out34 out35 out36 out37 out38 out39",
"exitCode": 1,
"cancelled": false,
"truncated": true,
"fullOutputPath": "/tmp/full.log",
"timestamp": 4
},
{
"role": "bashExecution",
"command": "ls",
"output": "",
"exitCode": 0,
"cancelled": false,
"truncated": false,
"excludeFromContext": true,
"timestamp": 4
},
{
"role": "bashExecution",
"command": "pwd",
"output": "/w",
"exitCode": 0,
"cancelled": false,
"truncated": true,
"timestamp": 4
},
{
"role": "bashExecution",
"command": "sleep 9",
"output": "",
"exitCode": null,
"cancelled": true,
"truncated": false,
"timestamp": 4
},
{
"role": "custom",
"customType": "note",
"content": "Remember the 80 column limit 🙂",
"display": true,
"details": {
"k": 1
},
"timestamp": 1735689614000
},
{
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "Look at this screenshot"
},
{
"type": "image",
"data": "AAAA",
"mimeType": "image/png"
}
],
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 5200,
"output": 90,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 5290,
"cost": {
"input": 0.0052,
"output": 0.0009,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0060999999999999995
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "user",
"content": "thanks",
"timestamp": 1
},
{
"role": "compactionSummary",
"summary": "## Goal\nRefactor parser",
"tokensBefore": 9000,
"timestamp": 1735689623000
},
{
"role": "user",
"content": "continue after0 after1 after2 after3 after4 after5 after6 after7 after8 after9 after10 after11 after12 after13 after14 after15 after16 after17 after18 after19 after20 after21 after22 after23 after24 after25 after26 after27 after28 after29 after30 after31 after32 after33 after34 after35 after36 after37 after38 after39 after40 after41 after42 after43 after44 after45 after46 after47 after48 after49 after50 after51 after52 after53 after54 after55 after56 after57 after58 after59",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Continuing. work0 work1 work2 work3 work4 work5 work6 work7 work8 work9 work10 work11 work12 work13 work14 work15 work16 work17 work18 work19 work20 work21 work22 work23 work24 work25 work26 work27 work28 work29 work30 work31 work32 work33 work34 work35 work36 work37 work38 work39 work40 work41 work42 work43 work44 work45 work46 work47 work48 work49 work50 work51 work52 work53 work54 work55 work56 work57 work58 work59 work60 work61 work62 work63 work64 work65 work66 work67 work68 work69 work70 work71 work72 work73 work74 work75 work76 work77 work78 work79"
},
{
"type": "toolCall",
"id": "c6",
"name": "edit",
"arguments": {
"path": "src/after.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 7000,
"output": 120,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 7120,
"cost": {
"input": 0.007,
"output": 0.0012,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0082
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Wrapping up wrap0 wrap1 wrap2 wrap3 wrap4 wrap5 wrap6 wrap7 wrap8 wrap9 wrap10 wrap11 wrap12 wrap13 wrap14 wrap15 wrap16 wrap17 wrap18 wrap19 wrap20 wrap21 wrap22 wrap23 wrap24 wrap25 wrap26 wrap27 wrap28 wrap29 wrap30 wrap31 wrap32 wrap33 wrap34 wrap35 wrap36 wrap37 wrap38 wrap39"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 7600,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 7650,
"cost": {
"input": 0.0076,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0081
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"totalTokens": 1891,
"fileOps": {
"read": [
"docs/README.md",
"src/parse.ts"
],
"written": [
"src/new.ts"
],
"edited": [
"src/after.ts",
"src/parse.ts"
]
}
}
]
},
"splitTurn": {
"entries": [
{
"type": "message",
"message": {
"role": "user",
"content": "Big task req0 req1 req2 req3 req4 req5 req6 req7 req8 req9",
"timestamp": 1
},
"id": "e1",
"parentId": null,
"timestamp": "2025-01-01T00:00:01.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "Step 1 s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 s32 s33 s34 s35 s36 s37 s38 s39 s40 s41 s42 s43 s44 s45 s46 s47 s48 s49 s50 s51 s52 s53 s54 s55 s56 s57 s58 s59 s60 s61 s62 s63 s64 s65 s66 s67 s68 s69 s70 s71 s72 s73 s74 s75 s76 s77 s78 s79 s80 s81 s82 s83 s84 s85 s86 s87 s88 s89 s90 s91 s92 s93 s94 s95 s96 s97 s98 s99 s100 s101 s102 s103 s104 s105 s106 s107 s108 s109 s110 s111 s112 s113 s114 s115 s116 s117 s118 s119 s120 s121 s122 s123 s124 s125 s126 s127 s128 s129 s130 s131 s132 s133 s134 s135 s136 s137 s138 s139 s140 s141 s142 s143 s144 s145 s146 s147 s148 s149 s150 s151 s152 s153 s154 s155 s156 s157 s158 s159 s160 s161 s162 s163 s164 s165 s166 s167 s168 s169 s170 s171 s172 s173 s174 s175 s176 s177 s178 s179 s180 s181 s182 s183 s184 s185 s186 s187 s188 s189 s190 s191 s192 s193 s194 s195 s196 s197 s198 s199"
},
{
"type": "toolCall",
"id": "t1",
"name": "read",
"arguments": {
"path": "a.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 800,
"output": 100,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 900,
"cost": {
"input": 0.0008,
"output": 0.001,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0018
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e2",
"parentId": "e1",
"timestamp": "2025-01-01T00:00:02.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "t1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "aaa0 aaa1 aaa2 aaa3 aaa4 aaa5 aaa6 aaa7 aaa8 aaa9 aaa10 aaa11 aaa12 aaa13 aaa14 aaa15 aaa16 aaa17 aaa18 aaa19 aaa20 aaa21 aaa22 aaa23 aaa24 aaa25 aaa26 aaa27 aaa28 aaa29 aaa30 aaa31 aaa32 aaa33 aaa34 aaa35 aaa36 aaa37 aaa38 aaa39 aaa40 aaa41 aaa42 aaa43 aaa44 aaa45 aaa46 aaa47 aaa48 aaa49 aaa50 aaa51 aaa52 aaa53 aaa54 aaa55 aaa56 aaa57 aaa58 aaa59 aaa60 aaa61 aaa62 aaa63 aaa64 aaa65 aaa66 aaa67 aaa68 aaa69 aaa70 aaa71 aaa72 aaa73 aaa74 aaa75 aaa76 aaa77 aaa78 aaa79 aaa80 aaa81 aaa82 aaa83 aaa84 aaa85 aaa86 aaa87 aaa88 aaa89 aaa90 aaa91 aaa92 aaa93 aaa94 aaa95 aaa96 aaa97 aaa98 aaa99 aaa100 aaa101 aaa102 aaa103 aaa104 aaa105 aaa106 aaa107 aaa108 aaa109 aaa110 aaa111 aaa112 aaa113 aaa114 aaa115 aaa116 aaa117 aaa118 aaa119 aaa120 aaa121 aaa122 aaa123 aaa124 aaa125 aaa126 aaa127 aaa128 aaa129 aaa130 aaa131 aaa132 aaa133 aaa134 aaa135 aaa136 aaa137 aaa138 aaa139 aaa140 aaa141 aaa142 aaa143 aaa144 aaa145 aaa146 aaa147 aaa148 aaa149 aaa150 aaa151 aaa152 aaa153 aaa154 aaa155 aaa156 aaa157 aaa158 aaa159 aaa160 aaa161 aaa162 aaa163 aaa164 aaa165 aaa166 aaa167 aaa168 aaa169 aaa170 aaa171 aaa172 aaa173 aaa174 aaa175 aaa176 aaa177 aaa178 aaa179 aaa180 aaa181 aaa182 aaa183 aaa184 aaa185 aaa186 aaa187 aaa188 aaa189 aaa190 aaa191 aaa192 aaa193 aaa194 aaa195 aaa196 aaa197 aaa198 aaa199 aaa200 aaa201 aaa202 aaa203 aaa204 aaa205 aaa206 aaa207 aaa208 aaa209 aaa210 aaa211 aaa212 aaa213 aaa214 aaa215 aaa216 aaa217 aaa218 aaa219 aaa220 aaa221 aaa222 aaa223 aaa224 aaa225 aaa226 aaa227 aaa228 aaa229 aaa230 aaa231 aaa232 aaa233 aaa234 aaa235 aaa236 aaa237 aaa238 aaa239 aaa240 aaa241 aaa242 aaa243 aaa244 aaa245 aaa246 aaa247 aaa248 aaa249 aaa250 aaa251 aaa252 aaa253 aaa254 aaa255 aaa256 aaa257 aaa258 aaa259 aaa260 aaa261 aaa262 aaa263 aaa264 aaa265 aaa266 aaa267 aaa268 aaa269 aaa270 aaa271 aaa272 aaa273 aaa274 aaa275 aaa276 aaa277 aaa278 aaa279 aaa280 aaa281 aaa282 aaa283 aaa284 aaa285 aaa286 aaa287 aaa288 aaa289 aaa290 aaa291 aaa292 aaa293 aaa294 aaa295 aaa296 aaa297 aaa298 aaa299"
}
],
"isError": false,
"timestamp": 3
},
"id": "e3",
"parentId": "e2",
"timestamp": "2025-01-01T00:00:03.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "Step 2 s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 s32 s33 s34 s35 s36 s37 s38 s39 s40 s41 s42 s43 s44 s45 s46 s47 s48 s49 s50 s51 s52 s53 s54 s55 s56 s57 s58 s59 s60 s61 s62 s63 s64 s65 s66 s67 s68 s69 s70 s71 s72 s73 s74 s75 s76 s77 s78 s79 s80 s81 s82 s83 s84 s85 s86 s87 s88 s89 s90 s91 s92 s93 s94 s95 s96 s97 s98 s99 s100 s101 s102 s103 s104 s105 s106 s107 s108 s109 s110 s111 s112 s113 s114 s115 s116 s117 s118 s119 s120 s121 s122 s123 s124 s125 s126 s127 s128 s129 s130 s131 s132 s133 s134 s135 s136 s137 s138 s139 s140 s141 s142 s143 s144 s145 s146 s147 s148 s149 s150 s151 s152 s153 s154 s155 s156 s157 s158 s159 s160 s161 s162 s163 s164 s165 s166 s167 s168 s169 s170 s171 s172 s173 s174 s175 s176 s177 s178 s179 s180 s181 s182 s183 s184 s185 s186 s187 s188 s189 s190 s191 s192 s193 s194 s195 s196 s197 s198 s199"
},
{
"type": "toolCall",
"id": "t2",
"name": "write",
"arguments": {
"path": "b.ts",
"content": "q"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 1600,
"output": 100,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1700,
"cost": {
"input": 0.0016,
"output": 0.001,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0026
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e4",
"parentId": "e3",
"timestamp": "2025-01-01T00:00:04.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "t2",
"toolName": "write",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
},
"id": "e5",
"parentId": "e4",
"timestamp": "2025-01-01T00:00:05.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "Step 3 s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 s32 s33 s34 s35 s36 s37 s38 s39 s40 s41 s42 s43 s44 s45 s46 s47 s48 s49 s50 s51 s52 s53 s54 s55 s56 s57 s58 s59 s60 s61 s62 s63 s64 s65 s66 s67 s68 s69 s70 s71 s72 s73 s74 s75 s76 s77 s78 s79 s80 s81 s82 s83 s84 s85 s86 s87 s88 s89 s90 s91 s92 s93 s94 s95 s96 s97 s98 s99 s100 s101 s102 s103 s104 s105 s106 s107 s108 s109 s110 s111 s112 s113 s114 s115 s116 s117 s118 s119 s120 s121 s122 s123 s124 s125 s126 s127 s128 s129 s130 s131 s132 s133 s134 s135 s136 s137 s138 s139 s140 s141 s142 s143 s144 s145 s146 s147 s148 s149 s150 s151 s152 s153 s154 s155 s156 s157 s158 s159 s160 s161 s162 s163 s164 s165 s166 s167 s168 s169 s170 s171 s172 s173 s174 s175 s176 s177 s178 s179 s180 s181 s182 s183 s184 s185 s186 s187 s188 s189 s190 s191 s192 s193 s194 s195 s196 s197 s198 s199"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 2400,
"output": 100,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 2500,
"cost": {
"input": 0.0024,
"output": 0.001,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0034
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e6",
"parentId": "e5",
"timestamp": "2025-01-01T00:00:06.000Z"
}
],
"messageTokens": [
15,
229,
498,
233,
1,
224
],
"rawMessageTokens": [
15,
229,
498,
233,
1,
224
],
"contextEstimate": {
"tokens": 2500,
"usageTokens": 2500,
"trailingTokens": 0,
"lastUsageIndex": 5
},
"projectedEstimate": {
"tokens": 2500,
"usageTokens": 2500,
"trailingTokens": 0,
"lastUsageIndex": 5
},
"lastAssistantUsage": {
"input": 2400,
"output": 100,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 2500,
"cost": {
"input": 0.0024,
"output": 0.001,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0034
}
},
"serialized": "[User]: Big task req0 req1 req2 req3 req4 req5 req6 req7 req8 req9\n\n[Assistant]: Step 1 s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 s32 s33 s34 s35 s36 s37 s38 s39 s40 s41 s42 s43 s44 s45 s46 s47 s48 s49 s50 s51 s52 s53 s54 s55 s56 s57 s58 s59 s60 s61 s62 s63 s64 s65 s66 s67 s68 s69 s70 s71 s72 s73 s74 s75 s76 s77 s78 s79 s80 s81 s82 s83 s84 s85 s86 s87 s88 s89 s90 s91 s92 s93 s94 s95 s96 s97 s98 s99 s100 s101 s102 s103 s104 s105 s106 s107 s108 s109 s110 s111 s112 s113 s114 s115 s116 s117 s118 s119 s120 s121 s122 s123 s124 s125 s126 s127 s128 s129 s130 s131 s132 s133 s134 s135 s136 s137 s138 s139 s140 s141 s142 s143 s144 s145 s146 s147 s148 s149 s150 s151 s152 s153 s154 s155 s156 s157 s158 s159 s160 s161 s162 s163 s164 s165 s166 s167 s168 s169 s170 s171 s172 s173 s174 s175 s176 s177 s178 s179 s180 s181 s182 s183 s184 s185 s186 s187 s188 s189 s190 s191 s192 s193 s194 s195 s196 s197 s198 s199\n\n[Assistant tool calls]: read(path=\"a.ts\")\n\n[Tool result]: aaa0 aaa1 aaa2 aaa3 aaa4 aaa5 aaa6 aaa7 aaa8 aaa9 aaa10 aaa11 aaa12 aaa13 aaa14 aaa15 aaa16 aaa17 aaa18 aaa19 aaa20 aaa21 aaa22 aaa23 aaa24 aaa25 aaa26 aaa27 aaa28 aaa29 aaa30 aaa31 aaa32 aaa33 aaa34 aaa35 aaa36 aaa37 aaa38 aaa39 aaa40 aaa41 aaa42 aaa43 aaa44 aaa45 aaa46 aaa47 aaa48 aaa49 aaa50 aaa51 aaa52 aaa53 aaa54 aaa55 aaa56 aaa57 aaa58 aaa59 aaa60 aaa61 aaa62 aaa63 aaa64 aaa65 aaa66 aaa67 aaa68 aaa69 aaa70 aaa71 aaa72 aaa73 aaa74 aaa75 aaa76 aaa77 aaa78 aaa79 aaa80 aaa81 aaa82 aaa83 aaa84 aaa85 aaa86 aaa87 aaa88 aaa89 aaa90 aaa91 aaa92 aaa93 aaa94 aaa95 aaa96 aaa97 aaa98 aaa99 aaa100 aaa101 aaa102 aaa103 aaa104 aaa105 aaa106 aaa107 aaa108 aaa109 aaa110 aaa111 aaa112 aaa113 aaa114 aaa115 aaa116 aaa117 aaa118 aaa119 aaa120 aaa121 aaa122 aaa123 aaa124 aaa125 aaa126 aaa127 aaa128 aaa129 aaa130 aaa131 aaa132 aaa133 aaa134 aaa135 aaa136 aaa137 aaa138 aaa139 aaa140 aaa141 aaa142 aaa143 aaa144 aaa145 aaa146 aaa147 aaa148 aaa149 aaa150 aaa151 aaa152 aaa153 aaa154 aaa155 aaa156 aaa157 aaa158 aaa159 aaa160 aaa161 aaa162 aaa163 aaa164 aaa165 aaa166 aaa167 aaa168 aaa169 aaa170 aaa171 aaa172 aaa173 aaa174 aaa175 aaa176 aaa177 aaa178 aaa179 aaa180 aaa181 aaa182 aaa183 aaa184 aaa185 aaa186 aaa187 aaa188 aaa189 aaa190 aaa191 aaa192 aaa193 aaa194 aaa195 aaa196 aaa197 aaa198 aaa199 aaa200 aaa201 aaa202 aaa203 aaa204 aaa205 aaa206 aaa207 aaa208 aaa209 aaa210 aaa211 aaa212 aaa213 aaa214 aaa215 aaa216 aaa217 aaa218 aaa219 aaa220 aaa221 aaa222 aaa223 aaa224 aaa225 aaa226 aaa227 aaa228 aaa229 aaa230 aaa231 aaa232 aaa233 aaa234 aaa235 aaa236 aaa237 aaa238 aaa239 aaa240 aaa241 aaa242 aaa243 aaa244 aaa245 aaa246 aaa247 aaa248 aaa249 aaa250 aaa251 aaa252 aaa253 aaa254 aaa255 aaa256 aaa257 aaa258 aaa259 aaa260 aaa261 aaa262 aaa263 aaa264 aaa265 aaa266 aaa267 aaa268 aaa269 aaa270 aaa271 aaa272 aaa273 aaa274 aaa275 aaa276 aaa277 aaa278 aaa279 aaa280 aaa281 aaa282 aaa283 aaa284 aaa285 aaa286 aaa287 aaa288 aaa289 aaa290 aaa291 aaa292 aaa293 aaa294 aaa295 aaa296 aaa297 aaa298 aaa299\n\n[Assistant]: Step 2 s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 s32 s33 s34 s35 s36 s37 s38 s39 s40 s41 s42 s43 s44 s45 s46 s47 s48 s49 s50 s51 s52 s53 s54 s55 s56 s57 s58 s59 s60 s61 s62 s63 s64 s65 s66 s67 s68 s69 s70 s71 s72 s73 s74 s75 s76 s77 s78 s79 s80 s81 s82 s83 s84 s85 s86 s87 s88 s89 s90 s91 s92 s93 s94 s95 s96 s97 s98 s99 s100 s101 s102 s103 s104 s105 s106 s107 s108 s109 s110 s111 s112 s113 s114 s115 s116 s117 s118 s119 s120 s121 s122 s123 s124 s125 s126 s127 s128 s129 s130 s131 s132 s133 s134 s135 s136 s137 s138 s139 s140 s141 s142 s143 s144 s145 s146 s147 s148 s149 s150 s151 s152 s153 s154 s155 s156 s157 s158 s159 s160 s161 s162 s163 s164 s165 s166 s167 s168 s169 s170 s171 s172 s173 s174 s175 s176 s177 s178 s179 s180 s181 s182 s183 s184 s185 s186 s187 s188 s189 s190 s191 s192 s193 s194 s195 s196 s197 s198 s199\n\n[Assistant tool calls]: write(path=\"b.ts\", content=\"q\")\n\n[Tool result]: ok\n\n[Assistant]: Step 3 s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 s32 s33 s34 s35 s36 s37 s38 s39 s40 s41 s42 s43 s44 s45 s46 s47 s48 s49 s50 s51 s52 s53 s54 s55 s56 s57 s58 s59 s60 s61 s62 s63 s64 s65 s66 s67 s68 s69 s70 s71 s72 s73 s74 s75 s76 s77 s78 s79 s80 s81 s82 s83 s84 s85 s86 s87 s88 s89 s90 s91 s92 s93 s94 s95 s96 s97 s98 s99 s100 s101 s102 s103 s104 s105 s106 s107 s108 s109 s110 s111 s112 s113 s114 s115 s116 s117 s118 s119 s120 s121 s122 s123 s124 s125 s126 s127 s128 s129 s130 s131 s132 s133 s134 s135 s136 s137 s138 s139 s140 s141 s142 s143 s144 s145 s146 s147 s148 s149 s150 s151 s152 s153 s154 s155 s156 s157 s158 s159 s160 s161 s162 s163 s164 s165 s166 s167 s168 s169 s170 s171 s172 s173 s174 s175 s176 s177 s178 s179 s180 s181 s182 s183 s184 s185 s186 s187 s188 s189 s190 s191 s192 s193 s194 s195 s196 s197 s198 s199",
"cutPoints": [
{
"keep": 0,
"result": {
"firstKeptEntryIndex": 5,
"turnStartIndex": 0,
"isSplitTurn": true
}
},
{
"keep": 1,
"result": {
"firstKeptEntryIndex": 5,
"turnStartIndex": 0,
"isSplitTurn": true
}
},
{
"keep": 20,
"result": {
"firstKeptEntryIndex": 5,
"turnStartIndex": 0,
"isSplitTurn": true
}
},
{
"keep": 50,
"result": {
"firstKeptEntryIndex": 5,
"turnStartIndex": 0,
"isSplitTurn": true
}
},
{
"keep": 150,
"result": {
"firstKeptEntryIndex": 5,
"turnStartIndex": 0,
"isSplitTurn": true
}
},
{
"keep": 400,
"result": {
"firstKeptEntryIndex": 3,
"turnStartIndex": 0,
"isSplitTurn": true
}
},
{
"keep": 900,
"result": {
"firstKeptEntryIndex": 3,
"turnStartIndex": 0,
"isSplitTurn": true
}
},
{
"keep": 1500,
"result": {
"firstKeptEntryIndex": 0,
"turnStartIndex": -1,
"isSplitTurn": false
}
},
{
"keep": 3000,
"result": {
"firstKeptEntryIndex": 0,
"turnStartIndex": -1,
"isSplitTurn": false
}
},
{
"keep": 100000,
"result": {
"firstKeptEntryIndex": 0,
"turnStartIndex": -1,
"isSplitTurn": false
}
}
],
"turnStarts": [
0,
0,
0,
0,
0,
0
],
"preparations": [
{
"keep": 0,
"prep": {
"firstKeptEntryId": "e6",
"messagesToSummarize": [],
"turnPrefixMessages": [
{
"role": "user",
"content": "Big task req0 req1 req2 req3 req4 req5 req6 req7 req8 req9",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Step 1 s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 s32 s33 s34 s35 s36 s37 s38 s39 s40 s41 s42 s43 s44 s45 s46 s47 s48 s49 s50 s51 s52 s53 s54 s55 s56 s57 s58 s59 s60 s61 s62 s63 s64 s65 s66 s67 s68 s69 s70 s71 s72 s73 s74 s75 s76 s77 s78 s79 s80 s81 s82 s83 s84 s85 s86 s87 s88 s89 s90 s91 s92 s93 s94 s95 s96 s97 s98 s99 s100 s101 s102 s103 s104 s105 s106 s107 s108 s109 s110 s111 s112 s113 s114 s115 s116 s117 s118 s119 s120 s121 s122 s123 s124 s125 s126 s127 s128 s129 s130 s131 s132 s133 s134 s135 s136 s137 s138 s139 s140 s141 s142 s143 s144 s145 s146 s147 s148 s149 s150 s151 s152 s153 s154 s155 s156 s157 s158 s159 s160 s161 s162 s163 s164 s165 s166 s167 s168 s169 s170 s171 s172 s173 s174 s175 s176 s177 s178 s179 s180 s181 s182 s183 s184 s185 s186 s187 s188 s189 s190 s191 s192 s193 s194 s195 s196 s197 s198 s199"
},
{
"type": "toolCall",
"id": "t1",
"name": "read",
"arguments": {
"path": "a.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 800,
"output": 100,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 900,
"cost": {
"input": 0.0008,
"output": 0.001,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0018
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "t1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "aaa0 aaa1 aaa2 aaa3 aaa4 aaa5 aaa6 aaa7 aaa8 aaa9 aaa10 aaa11 aaa12 aaa13 aaa14 aaa15 aaa16 aaa17 aaa18 aaa19 aaa20 aaa21 aaa22 aaa23 aaa24 aaa25 aaa26 aaa27 aaa28 aaa29 aaa30 aaa31 aaa32 aaa33 aaa34 aaa35 aaa36 aaa37 aaa38 aaa39 aaa40 aaa41 aaa42 aaa43 aaa44 aaa45 aaa46 aaa47 aaa48 aaa49 aaa50 aaa51 aaa52 aaa53 aaa54 aaa55 aaa56 aaa57 aaa58 aaa59 aaa60 aaa61 aaa62 aaa63 aaa64 aaa65 aaa66 aaa67 aaa68 aaa69 aaa70 aaa71 aaa72 aaa73 aaa74 aaa75 aaa76 aaa77 aaa78 aaa79 aaa80 aaa81 aaa82 aaa83 aaa84 aaa85 aaa86 aaa87 aaa88 aaa89 aaa90 aaa91 aaa92 aaa93 aaa94 aaa95 aaa96 aaa97 aaa98 aaa99 aaa100 aaa101 aaa102 aaa103 aaa104 aaa105 aaa106 aaa107 aaa108 aaa109 aaa110 aaa111 aaa112 aaa113 aaa114 aaa115 aaa116 aaa117 aaa118 aaa119 aaa120 aaa121 aaa122 aaa123 aaa124 aaa125 aaa126 aaa127 aaa128 aaa129 aaa130 aaa131 aaa132 aaa133 aaa134 aaa135 aaa136 aaa137 aaa138 aaa139 aaa140 aaa141 aaa142 aaa143 aaa144 aaa145 aaa146 aaa147 aaa148 aaa149 aaa150 aaa151 aaa152 aaa153 aaa154 aaa155 aaa156 aaa157 aaa158 aaa159 aaa160 aaa161 aaa162 aaa163 aaa164 aaa165 aaa166 aaa167 aaa168 aaa169 aaa170 aaa171 aaa172 aaa173 aaa174 aaa175 aaa176 aaa177 aaa178 aaa179 aaa180 aaa181 aaa182 aaa183 aaa184 aaa185 aaa186 aaa187 aaa188 aaa189 aaa190 aaa191 aaa192 aaa193 aaa194 aaa195 aaa196 aaa197 aaa198 aaa199 aaa200 aaa201 aaa202 aaa203 aaa204 aaa205 aaa206 aaa207 aaa208 aaa209 aaa210 aaa211 aaa212 aaa213 aaa214 aaa215 aaa216 aaa217 aaa218 aaa219 aaa220 aaa221 aaa222 aaa223 aaa224 aaa225 aaa226 aaa227 aaa228 aaa229 aaa230 aaa231 aaa232 aaa233 aaa234 aaa235 aaa236 aaa237 aaa238 aaa239 aaa240 aaa241 aaa242 aaa243 aaa244 aaa245 aaa246 aaa247 aaa248 aaa249 aaa250 aaa251 aaa252 aaa253 aaa254 aaa255 aaa256 aaa257 aaa258 aaa259 aaa260 aaa261 aaa262 aaa263 aaa264 aaa265 aaa266 aaa267 aaa268 aaa269 aaa270 aaa271 aaa272 aaa273 aaa274 aaa275 aaa276 aaa277 aaa278 aaa279 aaa280 aaa281 aaa282 aaa283 aaa284 aaa285 aaa286 aaa287 aaa288 aaa289 aaa290 aaa291 aaa292 aaa293 aaa294 aaa295 aaa296 aaa297 aaa298 aaa299"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Step 2 s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 s32 s33 s34 s35 s36 s37 s38 s39 s40 s41 s42 s43 s44 s45 s46 s47 s48 s49 s50 s51 s52 s53 s54 s55 s56 s57 s58 s59 s60 s61 s62 s63 s64 s65 s66 s67 s68 s69 s70 s71 s72 s73 s74 s75 s76 s77 s78 s79 s80 s81 s82 s83 s84 s85 s86 s87 s88 s89 s90 s91 s92 s93 s94 s95 s96 s97 s98 s99 s100 s101 s102 s103 s104 s105 s106 s107 s108 s109 s110 s111 s112 s113 s114 s115 s116 s117 s118 s119 s120 s121 s122 s123 s124 s125 s126 s127 s128 s129 s130 s131 s132 s133 s134 s135 s136 s137 s138 s139 s140 s141 s142 s143 s144 s145 s146 s147 s148 s149 s150 s151 s152 s153 s154 s155 s156 s157 s158 s159 s160 s161 s162 s163 s164 s165 s166 s167 s168 s169 s170 s171 s172 s173 s174 s175 s176 s177 s178 s179 s180 s181 s182 s183 s184 s185 s186 s187 s188 s189 s190 s191 s192 s193 s194 s195 s196 s197 s198 s199"
},
{
"type": "toolCall",
"id": "t2",
"name": "write",
"arguments": {
"path": "b.ts",
"content": "q"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 1600,
"output": 100,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1700,
"cost": {
"input": 0.0016,
"output": 0.001,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0026
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "t2",
"toolName": "write",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
}
],
"isSplitTurn": true,
"tokensBefore": 2500,
"previousSummary": null,
"fileOps": {
"read": [
"a.ts"
],
"written": [
"b.ts"
],
"edited": []
}
}
},
{
"keep": 1,
"prep": {
"firstKeptEntryId": "e6",
"messagesToSummarize": [],
"turnPrefixMessages": [
{
"role": "user",
"content": "Big task req0 req1 req2 req3 req4 req5 req6 req7 req8 req9",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Step 1 s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 s32 s33 s34 s35 s36 s37 s38 s39 s40 s41 s42 s43 s44 s45 s46 s47 s48 s49 s50 s51 s52 s53 s54 s55 s56 s57 s58 s59 s60 s61 s62 s63 s64 s65 s66 s67 s68 s69 s70 s71 s72 s73 s74 s75 s76 s77 s78 s79 s80 s81 s82 s83 s84 s85 s86 s87 s88 s89 s90 s91 s92 s93 s94 s95 s96 s97 s98 s99 s100 s101 s102 s103 s104 s105 s106 s107 s108 s109 s110 s111 s112 s113 s114 s115 s116 s117 s118 s119 s120 s121 s122 s123 s124 s125 s126 s127 s128 s129 s130 s131 s132 s133 s134 s135 s136 s137 s138 s139 s140 s141 s142 s143 s144 s145 s146 s147 s148 s149 s150 s151 s152 s153 s154 s155 s156 s157 s158 s159 s160 s161 s162 s163 s164 s165 s166 s167 s168 s169 s170 s171 s172 s173 s174 s175 s176 s177 s178 s179 s180 s181 s182 s183 s184 s185 s186 s187 s188 s189 s190 s191 s192 s193 s194 s195 s196 s197 s198 s199"
},
{
"type": "toolCall",
"id": "t1",
"name": "read",
"arguments": {
"path": "a.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 800,
"output": 100,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 900,
"cost": {
"input": 0.0008,
"output": 0.001,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0018
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "t1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "aaa0 aaa1 aaa2 aaa3 aaa4 aaa5 aaa6 aaa7 aaa8 aaa9 aaa10 aaa11 aaa12 aaa13 aaa14 aaa15 aaa16 aaa17 aaa18 aaa19 aaa20 aaa21 aaa22 aaa23 aaa24 aaa25 aaa26 aaa27 aaa28 aaa29 aaa30 aaa31 aaa32 aaa33 aaa34 aaa35 aaa36 aaa37 aaa38 aaa39 aaa40 aaa41 aaa42 aaa43 aaa44 aaa45 aaa46 aaa47 aaa48 aaa49 aaa50 aaa51 aaa52 aaa53 aaa54 aaa55 aaa56 aaa57 aaa58 aaa59 aaa60 aaa61 aaa62 aaa63 aaa64 aaa65 aaa66 aaa67 aaa68 aaa69 aaa70 aaa71 aaa72 aaa73 aaa74 aaa75 aaa76 aaa77 aaa78 aaa79 aaa80 aaa81 aaa82 aaa83 aaa84 aaa85 aaa86 aaa87 aaa88 aaa89 aaa90 aaa91 aaa92 aaa93 aaa94 aaa95 aaa96 aaa97 aaa98 aaa99 aaa100 aaa101 aaa102 aaa103 aaa104 aaa105 aaa106 aaa107 aaa108 aaa109 aaa110 aaa111 aaa112 aaa113 aaa114 aaa115 aaa116 aaa117 aaa118 aaa119 aaa120 aaa121 aaa122 aaa123 aaa124 aaa125 aaa126 aaa127 aaa128 aaa129 aaa130 aaa131 aaa132 aaa133 aaa134 aaa135 aaa136 aaa137 aaa138 aaa139 aaa140 aaa141 aaa142 aaa143 aaa144 aaa145 aaa146 aaa147 aaa148 aaa149 aaa150 aaa151 aaa152 aaa153 aaa154 aaa155 aaa156 aaa157 aaa158 aaa159 aaa160 aaa161 aaa162 aaa163 aaa164 aaa165 aaa166 aaa167 aaa168 aaa169 aaa170 aaa171 aaa172 aaa173 aaa174 aaa175 aaa176 aaa177 aaa178 aaa179 aaa180 aaa181 aaa182 aaa183 aaa184 aaa185 aaa186 aaa187 aaa188 aaa189 aaa190 aaa191 aaa192 aaa193 aaa194 aaa195 aaa196 aaa197 aaa198 aaa199 aaa200 aaa201 aaa202 aaa203 aaa204 aaa205 aaa206 aaa207 aaa208 aaa209 aaa210 aaa211 aaa212 aaa213 aaa214 aaa215 aaa216 aaa217 aaa218 aaa219 aaa220 aaa221 aaa222 aaa223 aaa224 aaa225 aaa226 aaa227 aaa228 aaa229 aaa230 aaa231 aaa232 aaa233 aaa234 aaa235 aaa236 aaa237 aaa238 aaa239 aaa240 aaa241 aaa242 aaa243 aaa244 aaa245 aaa246 aaa247 aaa248 aaa249 aaa250 aaa251 aaa252 aaa253 aaa254 aaa255 aaa256 aaa257 aaa258 aaa259 aaa260 aaa261 aaa262 aaa263 aaa264 aaa265 aaa266 aaa267 aaa268 aaa269 aaa270 aaa271 aaa272 aaa273 aaa274 aaa275 aaa276 aaa277 aaa278 aaa279 aaa280 aaa281 aaa282 aaa283 aaa284 aaa285 aaa286 aaa287 aaa288 aaa289 aaa290 aaa291 aaa292 aaa293 aaa294 aaa295 aaa296 aaa297 aaa298 aaa299"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Step 2 s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 s32 s33 s34 s35 s36 s37 s38 s39 s40 s41 s42 s43 s44 s45 s46 s47 s48 s49 s50 s51 s52 s53 s54 s55 s56 s57 s58 s59 s60 s61 s62 s63 s64 s65 s66 s67 s68 s69 s70 s71 s72 s73 s74 s75 s76 s77 s78 s79 s80 s81 s82 s83 s84 s85 s86 s87 s88 s89 s90 s91 s92 s93 s94 s95 s96 s97 s98 s99 s100 s101 s102 s103 s104 s105 s106 s107 s108 s109 s110 s111 s112 s113 s114 s115 s116 s117 s118 s119 s120 s121 s122 s123 s124 s125 s126 s127 s128 s129 s130 s131 s132 s133 s134 s135 s136 s137 s138 s139 s140 s141 s142 s143 s144 s145 s146 s147 s148 s149 s150 s151 s152 s153 s154 s155 s156 s157 s158 s159 s160 s161 s162 s163 s164 s165 s166 s167 s168 s169 s170 s171 s172 s173 s174 s175 s176 s177 s178 s179 s180 s181 s182 s183 s184 s185 s186 s187 s188 s189 s190 s191 s192 s193 s194 s195 s196 s197 s198 s199"
},
{
"type": "toolCall",
"id": "t2",
"name": "write",
"arguments": {
"path": "b.ts",
"content": "q"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 1600,
"output": 100,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1700,
"cost": {
"input": 0.0016,
"output": 0.001,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0026
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "t2",
"toolName": "write",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
}
],
"isSplitTurn": true,
"tokensBefore": 2500,
"previousSummary": null,
"fileOps": {
"read": [
"a.ts"
],
"written": [
"b.ts"
],
"edited": []
}
}
},
{
"keep": 20,
"prep": {
"firstKeptEntryId": "e6",
"messagesToSummarize": [],
"turnPrefixMessages": [
{
"role": "user",
"content": "Big task req0 req1 req2 req3 req4 req5 req6 req7 req8 req9",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Step 1 s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 s32 s33 s34 s35 s36 s37 s38 s39 s40 s41 s42 s43 s44 s45 s46 s47 s48 s49 s50 s51 s52 s53 s54 s55 s56 s57 s58 s59 s60 s61 s62 s63 s64 s65 s66 s67 s68 s69 s70 s71 s72 s73 s74 s75 s76 s77 s78 s79 s80 s81 s82 s83 s84 s85 s86 s87 s88 s89 s90 s91 s92 s93 s94 s95 s96 s97 s98 s99 s100 s101 s102 s103 s104 s105 s106 s107 s108 s109 s110 s111 s112 s113 s114 s115 s116 s117 s118 s119 s120 s121 s122 s123 s124 s125 s126 s127 s128 s129 s130 s131 s132 s133 s134 s135 s136 s137 s138 s139 s140 s141 s142 s143 s144 s145 s146 s147 s148 s149 s150 s151 s152 s153 s154 s155 s156 s157 s158 s159 s160 s161 s162 s163 s164 s165 s166 s167 s168 s169 s170 s171 s172 s173 s174 s175 s176 s177 s178 s179 s180 s181 s182 s183 s184 s185 s186 s187 s188 s189 s190 s191 s192 s193 s194 s195 s196 s197 s198 s199"
},
{
"type": "toolCall",
"id": "t1",
"name": "read",
"arguments": {
"path": "a.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 800,
"output": 100,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 900,
"cost": {
"input": 0.0008,
"output": 0.001,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0018
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "t1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "aaa0 aaa1 aaa2 aaa3 aaa4 aaa5 aaa6 aaa7 aaa8 aaa9 aaa10 aaa11 aaa12 aaa13 aaa14 aaa15 aaa16 aaa17 aaa18 aaa19 aaa20 aaa21 aaa22 aaa23 aaa24 aaa25 aaa26 aaa27 aaa28 aaa29 aaa30 aaa31 aaa32 aaa33 aaa34 aaa35 aaa36 aaa37 aaa38 aaa39 aaa40 aaa41 aaa42 aaa43 aaa44 aaa45 aaa46 aaa47 aaa48 aaa49 aaa50 aaa51 aaa52 aaa53 aaa54 aaa55 aaa56 aaa57 aaa58 aaa59 aaa60 aaa61 aaa62 aaa63 aaa64 aaa65 aaa66 aaa67 aaa68 aaa69 aaa70 aaa71 aaa72 aaa73 aaa74 aaa75 aaa76 aaa77 aaa78 aaa79 aaa80 aaa81 aaa82 aaa83 aaa84 aaa85 aaa86 aaa87 aaa88 aaa89 aaa90 aaa91 aaa92 aaa93 aaa94 aaa95 aaa96 aaa97 aaa98 aaa99 aaa100 aaa101 aaa102 aaa103 aaa104 aaa105 aaa106 aaa107 aaa108 aaa109 aaa110 aaa111 aaa112 aaa113 aaa114 aaa115 aaa116 aaa117 aaa118 aaa119 aaa120 aaa121 aaa122 aaa123 aaa124 aaa125 aaa126 aaa127 aaa128 aaa129 aaa130 aaa131 aaa132 aaa133 aaa134 aaa135 aaa136 aaa137 aaa138 aaa139 aaa140 aaa141 aaa142 aaa143 aaa144 aaa145 aaa146 aaa147 aaa148 aaa149 aaa150 aaa151 aaa152 aaa153 aaa154 aaa155 aaa156 aaa157 aaa158 aaa159 aaa160 aaa161 aaa162 aaa163 aaa164 aaa165 aaa166 aaa167 aaa168 aaa169 aaa170 aaa171 aaa172 aaa173 aaa174 aaa175 aaa176 aaa177 aaa178 aaa179 aaa180 aaa181 aaa182 aaa183 aaa184 aaa185 aaa186 aaa187 aaa188 aaa189 aaa190 aaa191 aaa192 aaa193 aaa194 aaa195 aaa196 aaa197 aaa198 aaa199 aaa200 aaa201 aaa202 aaa203 aaa204 aaa205 aaa206 aaa207 aaa208 aaa209 aaa210 aaa211 aaa212 aaa213 aaa214 aaa215 aaa216 aaa217 aaa218 aaa219 aaa220 aaa221 aaa222 aaa223 aaa224 aaa225 aaa226 aaa227 aaa228 aaa229 aaa230 aaa231 aaa232 aaa233 aaa234 aaa235 aaa236 aaa237 aaa238 aaa239 aaa240 aaa241 aaa242 aaa243 aaa244 aaa245 aaa246 aaa247 aaa248 aaa249 aaa250 aaa251 aaa252 aaa253 aaa254 aaa255 aaa256 aaa257 aaa258 aaa259 aaa260 aaa261 aaa262 aaa263 aaa264 aaa265 aaa266 aaa267 aaa268 aaa269 aaa270 aaa271 aaa272 aaa273 aaa274 aaa275 aaa276 aaa277 aaa278 aaa279 aaa280 aaa281 aaa282 aaa283 aaa284 aaa285 aaa286 aaa287 aaa288 aaa289 aaa290 aaa291 aaa292 aaa293 aaa294 aaa295 aaa296 aaa297 aaa298 aaa299"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Step 2 s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 s32 s33 s34 s35 s36 s37 s38 s39 s40 s41 s42 s43 s44 s45 s46 s47 s48 s49 s50 s51 s52 s53 s54 s55 s56 s57 s58 s59 s60 s61 s62 s63 s64 s65 s66 s67 s68 s69 s70 s71 s72 s73 s74 s75 s76 s77 s78 s79 s80 s81 s82 s83 s84 s85 s86 s87 s88 s89 s90 s91 s92 s93 s94 s95 s96 s97 s98 s99 s100 s101 s102 s103 s104 s105 s106 s107 s108 s109 s110 s111 s112 s113 s114 s115 s116 s117 s118 s119 s120 s121 s122 s123 s124 s125 s126 s127 s128 s129 s130 s131 s132 s133 s134 s135 s136 s137 s138 s139 s140 s141 s142 s143 s144 s145 s146 s147 s148 s149 s150 s151 s152 s153 s154 s155 s156 s157 s158 s159 s160 s161 s162 s163 s164 s165 s166 s167 s168 s169 s170 s171 s172 s173 s174 s175 s176 s177 s178 s179 s180 s181 s182 s183 s184 s185 s186 s187 s188 s189 s190 s191 s192 s193 s194 s195 s196 s197 s198 s199"
},
{
"type": "toolCall",
"id": "t2",
"name": "write",
"arguments": {
"path": "b.ts",
"content": "q"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 1600,
"output": 100,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1700,
"cost": {
"input": 0.0016,
"output": 0.001,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0026
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "t2",
"toolName": "write",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
}
],
"isSplitTurn": true,
"tokensBefore": 2500,
"previousSummary": null,
"fileOps": {
"read": [
"a.ts"
],
"written": [
"b.ts"
],
"edited": []
}
}
},
{
"keep": 50,
"prep": {
"firstKeptEntryId": "e6",
"messagesToSummarize": [],
"turnPrefixMessages": [
{
"role": "user",
"content": "Big task req0 req1 req2 req3 req4 req5 req6 req7 req8 req9",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Step 1 s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 s32 s33 s34 s35 s36 s37 s38 s39 s40 s41 s42 s43 s44 s45 s46 s47 s48 s49 s50 s51 s52 s53 s54 s55 s56 s57 s58 s59 s60 s61 s62 s63 s64 s65 s66 s67 s68 s69 s70 s71 s72 s73 s74 s75 s76 s77 s78 s79 s80 s81 s82 s83 s84 s85 s86 s87 s88 s89 s90 s91 s92 s93 s94 s95 s96 s97 s98 s99 s100 s101 s102 s103 s104 s105 s106 s107 s108 s109 s110 s111 s112 s113 s114 s115 s116 s117 s118 s119 s120 s121 s122 s123 s124 s125 s126 s127 s128 s129 s130 s131 s132 s133 s134 s135 s136 s137 s138 s139 s140 s141 s142 s143 s144 s145 s146 s147 s148 s149 s150 s151 s152 s153 s154 s155 s156 s157 s158 s159 s160 s161 s162 s163 s164 s165 s166 s167 s168 s169 s170 s171 s172 s173 s174 s175 s176 s177 s178 s179 s180 s181 s182 s183 s184 s185 s186 s187 s188 s189 s190 s191 s192 s193 s194 s195 s196 s197 s198 s199"
},
{
"type": "toolCall",
"id": "t1",
"name": "read",
"arguments": {
"path": "a.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 800,
"output": 100,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 900,
"cost": {
"input": 0.0008,
"output": 0.001,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0018
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "t1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "aaa0 aaa1 aaa2 aaa3 aaa4 aaa5 aaa6 aaa7 aaa8 aaa9 aaa10 aaa11 aaa12 aaa13 aaa14 aaa15 aaa16 aaa17 aaa18 aaa19 aaa20 aaa21 aaa22 aaa23 aaa24 aaa25 aaa26 aaa27 aaa28 aaa29 aaa30 aaa31 aaa32 aaa33 aaa34 aaa35 aaa36 aaa37 aaa38 aaa39 aaa40 aaa41 aaa42 aaa43 aaa44 aaa45 aaa46 aaa47 aaa48 aaa49 aaa50 aaa51 aaa52 aaa53 aaa54 aaa55 aaa56 aaa57 aaa58 aaa59 aaa60 aaa61 aaa62 aaa63 aaa64 aaa65 aaa66 aaa67 aaa68 aaa69 aaa70 aaa71 aaa72 aaa73 aaa74 aaa75 aaa76 aaa77 aaa78 aaa79 aaa80 aaa81 aaa82 aaa83 aaa84 aaa85 aaa86 aaa87 aaa88 aaa89 aaa90 aaa91 aaa92 aaa93 aaa94 aaa95 aaa96 aaa97 aaa98 aaa99 aaa100 aaa101 aaa102 aaa103 aaa104 aaa105 aaa106 aaa107 aaa108 aaa109 aaa110 aaa111 aaa112 aaa113 aaa114 aaa115 aaa116 aaa117 aaa118 aaa119 aaa120 aaa121 aaa122 aaa123 aaa124 aaa125 aaa126 aaa127 aaa128 aaa129 aaa130 aaa131 aaa132 aaa133 aaa134 aaa135 aaa136 aaa137 aaa138 aaa139 aaa140 aaa141 aaa142 aaa143 aaa144 aaa145 aaa146 aaa147 aaa148 aaa149 aaa150 aaa151 aaa152 aaa153 aaa154 aaa155 aaa156 aaa157 aaa158 aaa159 aaa160 aaa161 aaa162 aaa163 aaa164 aaa165 aaa166 aaa167 aaa168 aaa169 aaa170 aaa171 aaa172 aaa173 aaa174 aaa175 aaa176 aaa177 aaa178 aaa179 aaa180 aaa181 aaa182 aaa183 aaa184 aaa185 aaa186 aaa187 aaa188 aaa189 aaa190 aaa191 aaa192 aaa193 aaa194 aaa195 aaa196 aaa197 aaa198 aaa199 aaa200 aaa201 aaa202 aaa203 aaa204 aaa205 aaa206 aaa207 aaa208 aaa209 aaa210 aaa211 aaa212 aaa213 aaa214 aaa215 aaa216 aaa217 aaa218 aaa219 aaa220 aaa221 aaa222 aaa223 aaa224 aaa225 aaa226 aaa227 aaa228 aaa229 aaa230 aaa231 aaa232 aaa233 aaa234 aaa235 aaa236 aaa237 aaa238 aaa239 aaa240 aaa241 aaa242 aaa243 aaa244 aaa245 aaa246 aaa247 aaa248 aaa249 aaa250 aaa251 aaa252 aaa253 aaa254 aaa255 aaa256 aaa257 aaa258 aaa259 aaa260 aaa261 aaa262 aaa263 aaa264 aaa265 aaa266 aaa267 aaa268 aaa269 aaa270 aaa271 aaa272 aaa273 aaa274 aaa275 aaa276 aaa277 aaa278 aaa279 aaa280 aaa281 aaa282 aaa283 aaa284 aaa285 aaa286 aaa287 aaa288 aaa289 aaa290 aaa291 aaa292 aaa293 aaa294 aaa295 aaa296 aaa297 aaa298 aaa299"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Step 2 s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 s32 s33 s34 s35 s36 s37 s38 s39 s40 s41 s42 s43 s44 s45 s46 s47 s48 s49 s50 s51 s52 s53 s54 s55 s56 s57 s58 s59 s60 s61 s62 s63 s64 s65 s66 s67 s68 s69 s70 s71 s72 s73 s74 s75 s76 s77 s78 s79 s80 s81 s82 s83 s84 s85 s86 s87 s88 s89 s90 s91 s92 s93 s94 s95 s96 s97 s98 s99 s100 s101 s102 s103 s104 s105 s106 s107 s108 s109 s110 s111 s112 s113 s114 s115 s116 s117 s118 s119 s120 s121 s122 s123 s124 s125 s126 s127 s128 s129 s130 s131 s132 s133 s134 s135 s136 s137 s138 s139 s140 s141 s142 s143 s144 s145 s146 s147 s148 s149 s150 s151 s152 s153 s154 s155 s156 s157 s158 s159 s160 s161 s162 s163 s164 s165 s166 s167 s168 s169 s170 s171 s172 s173 s174 s175 s176 s177 s178 s179 s180 s181 s182 s183 s184 s185 s186 s187 s188 s189 s190 s191 s192 s193 s194 s195 s196 s197 s198 s199"
},
{
"type": "toolCall",
"id": "t2",
"name": "write",
"arguments": {
"path": "b.ts",
"content": "q"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 1600,
"output": 100,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1700,
"cost": {
"input": 0.0016,
"output": 0.001,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0026
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "t2",
"toolName": "write",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
}
],
"isSplitTurn": true,
"tokensBefore": 2500,
"previousSummary": null,
"fileOps": {
"read": [
"a.ts"
],
"written": [
"b.ts"
],
"edited": []
}
}
},
{
"keep": 150,
"prep": {
"firstKeptEntryId": "e6",
"messagesToSummarize": [],
"turnPrefixMessages": [
{
"role": "user",
"content": "Big task req0 req1 req2 req3 req4 req5 req6 req7 req8 req9",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Step 1 s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 s32 s33 s34 s35 s36 s37 s38 s39 s40 s41 s42 s43 s44 s45 s46 s47 s48 s49 s50 s51 s52 s53 s54 s55 s56 s57 s58 s59 s60 s61 s62 s63 s64 s65 s66 s67 s68 s69 s70 s71 s72 s73 s74 s75 s76 s77 s78 s79 s80 s81 s82 s83 s84 s85 s86 s87 s88 s89 s90 s91 s92 s93 s94 s95 s96 s97 s98 s99 s100 s101 s102 s103 s104 s105 s106 s107 s108 s109 s110 s111 s112 s113 s114 s115 s116 s117 s118 s119 s120 s121 s122 s123 s124 s125 s126 s127 s128 s129 s130 s131 s132 s133 s134 s135 s136 s137 s138 s139 s140 s141 s142 s143 s144 s145 s146 s147 s148 s149 s150 s151 s152 s153 s154 s155 s156 s157 s158 s159 s160 s161 s162 s163 s164 s165 s166 s167 s168 s169 s170 s171 s172 s173 s174 s175 s176 s177 s178 s179 s180 s181 s182 s183 s184 s185 s186 s187 s188 s189 s190 s191 s192 s193 s194 s195 s196 s197 s198 s199"
},
{
"type": "toolCall",
"id": "t1",
"name": "read",
"arguments": {
"path": "a.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 800,
"output": 100,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 900,
"cost": {
"input": 0.0008,
"output": 0.001,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0018
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "t1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "aaa0 aaa1 aaa2 aaa3 aaa4 aaa5 aaa6 aaa7 aaa8 aaa9 aaa10 aaa11 aaa12 aaa13 aaa14 aaa15 aaa16 aaa17 aaa18 aaa19 aaa20 aaa21 aaa22 aaa23 aaa24 aaa25 aaa26 aaa27 aaa28 aaa29 aaa30 aaa31 aaa32 aaa33 aaa34 aaa35 aaa36 aaa37 aaa38 aaa39 aaa40 aaa41 aaa42 aaa43 aaa44 aaa45 aaa46 aaa47 aaa48 aaa49 aaa50 aaa51 aaa52 aaa53 aaa54 aaa55 aaa56 aaa57 aaa58 aaa59 aaa60 aaa61 aaa62 aaa63 aaa64 aaa65 aaa66 aaa67 aaa68 aaa69 aaa70 aaa71 aaa72 aaa73 aaa74 aaa75 aaa76 aaa77 aaa78 aaa79 aaa80 aaa81 aaa82 aaa83 aaa84 aaa85 aaa86 aaa87 aaa88 aaa89 aaa90 aaa91 aaa92 aaa93 aaa94 aaa95 aaa96 aaa97 aaa98 aaa99 aaa100 aaa101 aaa102 aaa103 aaa104 aaa105 aaa106 aaa107 aaa108 aaa109 aaa110 aaa111 aaa112 aaa113 aaa114 aaa115 aaa116 aaa117 aaa118 aaa119 aaa120 aaa121 aaa122 aaa123 aaa124 aaa125 aaa126 aaa127 aaa128 aaa129 aaa130 aaa131 aaa132 aaa133 aaa134 aaa135 aaa136 aaa137 aaa138 aaa139 aaa140 aaa141 aaa142 aaa143 aaa144 aaa145 aaa146 aaa147 aaa148 aaa149 aaa150 aaa151 aaa152 aaa153 aaa154 aaa155 aaa156 aaa157 aaa158 aaa159 aaa160 aaa161 aaa162 aaa163 aaa164 aaa165 aaa166 aaa167 aaa168 aaa169 aaa170 aaa171 aaa172 aaa173 aaa174 aaa175 aaa176 aaa177 aaa178 aaa179 aaa180 aaa181 aaa182 aaa183 aaa184 aaa185 aaa186 aaa187 aaa188 aaa189 aaa190 aaa191 aaa192 aaa193 aaa194 aaa195 aaa196 aaa197 aaa198 aaa199 aaa200 aaa201 aaa202 aaa203 aaa204 aaa205 aaa206 aaa207 aaa208 aaa209 aaa210 aaa211 aaa212 aaa213 aaa214 aaa215 aaa216 aaa217 aaa218 aaa219 aaa220 aaa221 aaa222 aaa223 aaa224 aaa225 aaa226 aaa227 aaa228 aaa229 aaa230 aaa231 aaa232 aaa233 aaa234 aaa235 aaa236 aaa237 aaa238 aaa239 aaa240 aaa241 aaa242 aaa243 aaa244 aaa245 aaa246 aaa247 aaa248 aaa249 aaa250 aaa251 aaa252 aaa253 aaa254 aaa255 aaa256 aaa257 aaa258 aaa259 aaa260 aaa261 aaa262 aaa263 aaa264 aaa265 aaa266 aaa267 aaa268 aaa269 aaa270 aaa271 aaa272 aaa273 aaa274 aaa275 aaa276 aaa277 aaa278 aaa279 aaa280 aaa281 aaa282 aaa283 aaa284 aaa285 aaa286 aaa287 aaa288 aaa289 aaa290 aaa291 aaa292 aaa293 aaa294 aaa295 aaa296 aaa297 aaa298 aaa299"
}
],
"isError": false,
"timestamp": 3
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Step 2 s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 s32 s33 s34 s35 s36 s37 s38 s39 s40 s41 s42 s43 s44 s45 s46 s47 s48 s49 s50 s51 s52 s53 s54 s55 s56 s57 s58 s59 s60 s61 s62 s63 s64 s65 s66 s67 s68 s69 s70 s71 s72 s73 s74 s75 s76 s77 s78 s79 s80 s81 s82 s83 s84 s85 s86 s87 s88 s89 s90 s91 s92 s93 s94 s95 s96 s97 s98 s99 s100 s101 s102 s103 s104 s105 s106 s107 s108 s109 s110 s111 s112 s113 s114 s115 s116 s117 s118 s119 s120 s121 s122 s123 s124 s125 s126 s127 s128 s129 s130 s131 s132 s133 s134 s135 s136 s137 s138 s139 s140 s141 s142 s143 s144 s145 s146 s147 s148 s149 s150 s151 s152 s153 s154 s155 s156 s157 s158 s159 s160 s161 s162 s163 s164 s165 s166 s167 s168 s169 s170 s171 s172 s173 s174 s175 s176 s177 s178 s179 s180 s181 s182 s183 s184 s185 s186 s187 s188 s189 s190 s191 s192 s193 s194 s195 s196 s197 s198 s199"
},
{
"type": "toolCall",
"id": "t2",
"name": "write",
"arguments": {
"path": "b.ts",
"content": "q"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 1600,
"output": 100,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1700,
"cost": {
"input": 0.0016,
"output": 0.001,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0026
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "t2",
"toolName": "write",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
}
],
"isSplitTurn": true,
"tokensBefore": 2500,
"previousSummary": null,
"fileOps": {
"read": [
"a.ts"
],
"written": [
"b.ts"
],
"edited": []
}
}
},
{
"keep": 400,
"prep": {
"firstKeptEntryId": "e4",
"messagesToSummarize": [],
"turnPrefixMessages": [
{
"role": "user",
"content": "Big task req0 req1 req2 req3 req4 req5 req6 req7 req8 req9",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Step 1 s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 s32 s33 s34 s35 s36 s37 s38 s39 s40 s41 s42 s43 s44 s45 s46 s47 s48 s49 s50 s51 s52 s53 s54 s55 s56 s57 s58 s59 s60 s61 s62 s63 s64 s65 s66 s67 s68 s69 s70 s71 s72 s73 s74 s75 s76 s77 s78 s79 s80 s81 s82 s83 s84 s85 s86 s87 s88 s89 s90 s91 s92 s93 s94 s95 s96 s97 s98 s99 s100 s101 s102 s103 s104 s105 s106 s107 s108 s109 s110 s111 s112 s113 s114 s115 s116 s117 s118 s119 s120 s121 s122 s123 s124 s125 s126 s127 s128 s129 s130 s131 s132 s133 s134 s135 s136 s137 s138 s139 s140 s141 s142 s143 s144 s145 s146 s147 s148 s149 s150 s151 s152 s153 s154 s155 s156 s157 s158 s159 s160 s161 s162 s163 s164 s165 s166 s167 s168 s169 s170 s171 s172 s173 s174 s175 s176 s177 s178 s179 s180 s181 s182 s183 s184 s185 s186 s187 s188 s189 s190 s191 s192 s193 s194 s195 s196 s197 s198 s199"
},
{
"type": "toolCall",
"id": "t1",
"name": "read",
"arguments": {
"path": "a.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 800,
"output": 100,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 900,
"cost": {
"input": 0.0008,
"output": 0.001,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0018
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "t1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "aaa0 aaa1 aaa2 aaa3 aaa4 aaa5 aaa6 aaa7 aaa8 aaa9 aaa10 aaa11 aaa12 aaa13 aaa14 aaa15 aaa16 aaa17 aaa18 aaa19 aaa20 aaa21 aaa22 aaa23 aaa24 aaa25 aaa26 aaa27 aaa28 aaa29 aaa30 aaa31 aaa32 aaa33 aaa34 aaa35 aaa36 aaa37 aaa38 aaa39 aaa40 aaa41 aaa42 aaa43 aaa44 aaa45 aaa46 aaa47 aaa48 aaa49 aaa50 aaa51 aaa52 aaa53 aaa54 aaa55 aaa56 aaa57 aaa58 aaa59 aaa60 aaa61 aaa62 aaa63 aaa64 aaa65 aaa66 aaa67 aaa68 aaa69 aaa70 aaa71 aaa72 aaa73 aaa74 aaa75 aaa76 aaa77 aaa78 aaa79 aaa80 aaa81 aaa82 aaa83 aaa84 aaa85 aaa86 aaa87 aaa88 aaa89 aaa90 aaa91 aaa92 aaa93 aaa94 aaa95 aaa96 aaa97 aaa98 aaa99 aaa100 aaa101 aaa102 aaa103 aaa104 aaa105 aaa106 aaa107 aaa108 aaa109 aaa110 aaa111 aaa112 aaa113 aaa114 aaa115 aaa116 aaa117 aaa118 aaa119 aaa120 aaa121 aaa122 aaa123 aaa124 aaa125 aaa126 aaa127 aaa128 aaa129 aaa130 aaa131 aaa132 aaa133 aaa134 aaa135 aaa136 aaa137 aaa138 aaa139 aaa140 aaa141 aaa142 aaa143 aaa144 aaa145 aaa146 aaa147 aaa148 aaa149 aaa150 aaa151 aaa152 aaa153 aaa154 aaa155 aaa156 aaa157 aaa158 aaa159 aaa160 aaa161 aaa162 aaa163 aaa164 aaa165 aaa166 aaa167 aaa168 aaa169 aaa170 aaa171 aaa172 aaa173 aaa174 aaa175 aaa176 aaa177 aaa178 aaa179 aaa180 aaa181 aaa182 aaa183 aaa184 aaa185 aaa186 aaa187 aaa188 aaa189 aaa190 aaa191 aaa192 aaa193 aaa194 aaa195 aaa196 aaa197 aaa198 aaa199 aaa200 aaa201 aaa202 aaa203 aaa204 aaa205 aaa206 aaa207 aaa208 aaa209 aaa210 aaa211 aaa212 aaa213 aaa214 aaa215 aaa216 aaa217 aaa218 aaa219 aaa220 aaa221 aaa222 aaa223 aaa224 aaa225 aaa226 aaa227 aaa228 aaa229 aaa230 aaa231 aaa232 aaa233 aaa234 aaa235 aaa236 aaa237 aaa238 aaa239 aaa240 aaa241 aaa242 aaa243 aaa244 aaa245 aaa246 aaa247 aaa248 aaa249 aaa250 aaa251 aaa252 aaa253 aaa254 aaa255 aaa256 aaa257 aaa258 aaa259 aaa260 aaa261 aaa262 aaa263 aaa264 aaa265 aaa266 aaa267 aaa268 aaa269 aaa270 aaa271 aaa272 aaa273 aaa274 aaa275 aaa276 aaa277 aaa278 aaa279 aaa280 aaa281 aaa282 aaa283 aaa284 aaa285 aaa286 aaa287 aaa288 aaa289 aaa290 aaa291 aaa292 aaa293 aaa294 aaa295 aaa296 aaa297 aaa298 aaa299"
}
],
"isError": false,
"timestamp": 3
}
],
"isSplitTurn": true,
"tokensBefore": 2500,
"previousSummary": null,
"fileOps": {
"read": [
"a.ts"
],
"written": [],
"edited": []
}
}
},
{
"keep": 900,
"prep": {
"firstKeptEntryId": "e4",
"messagesToSummarize": [],
"turnPrefixMessages": [
{
"role": "user",
"content": "Big task req0 req1 req2 req3 req4 req5 req6 req7 req8 req9",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Step 1 s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 s32 s33 s34 s35 s36 s37 s38 s39 s40 s41 s42 s43 s44 s45 s46 s47 s48 s49 s50 s51 s52 s53 s54 s55 s56 s57 s58 s59 s60 s61 s62 s63 s64 s65 s66 s67 s68 s69 s70 s71 s72 s73 s74 s75 s76 s77 s78 s79 s80 s81 s82 s83 s84 s85 s86 s87 s88 s89 s90 s91 s92 s93 s94 s95 s96 s97 s98 s99 s100 s101 s102 s103 s104 s105 s106 s107 s108 s109 s110 s111 s112 s113 s114 s115 s116 s117 s118 s119 s120 s121 s122 s123 s124 s125 s126 s127 s128 s129 s130 s131 s132 s133 s134 s135 s136 s137 s138 s139 s140 s141 s142 s143 s144 s145 s146 s147 s148 s149 s150 s151 s152 s153 s154 s155 s156 s157 s158 s159 s160 s161 s162 s163 s164 s165 s166 s167 s168 s169 s170 s171 s172 s173 s174 s175 s176 s177 s178 s179 s180 s181 s182 s183 s184 s185 s186 s187 s188 s189 s190 s191 s192 s193 s194 s195 s196 s197 s198 s199"
},
{
"type": "toolCall",
"id": "t1",
"name": "read",
"arguments": {
"path": "a.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 800,
"output": 100,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 900,
"cost": {
"input": 0.0008,
"output": 0.001,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0018
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "toolResult",
"toolCallId": "t1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "aaa0 aaa1 aaa2 aaa3 aaa4 aaa5 aaa6 aaa7 aaa8 aaa9 aaa10 aaa11 aaa12 aaa13 aaa14 aaa15 aaa16 aaa17 aaa18 aaa19 aaa20 aaa21 aaa22 aaa23 aaa24 aaa25 aaa26 aaa27 aaa28 aaa29 aaa30 aaa31 aaa32 aaa33 aaa34 aaa35 aaa36 aaa37 aaa38 aaa39 aaa40 aaa41 aaa42 aaa43 aaa44 aaa45 aaa46 aaa47 aaa48 aaa49 aaa50 aaa51 aaa52 aaa53 aaa54 aaa55 aaa56 aaa57 aaa58 aaa59 aaa60 aaa61 aaa62 aaa63 aaa64 aaa65 aaa66 aaa67 aaa68 aaa69 aaa70 aaa71 aaa72 aaa73 aaa74 aaa75 aaa76 aaa77 aaa78 aaa79 aaa80 aaa81 aaa82 aaa83 aaa84 aaa85 aaa86 aaa87 aaa88 aaa89 aaa90 aaa91 aaa92 aaa93 aaa94 aaa95 aaa96 aaa97 aaa98 aaa99 aaa100 aaa101 aaa102 aaa103 aaa104 aaa105 aaa106 aaa107 aaa108 aaa109 aaa110 aaa111 aaa112 aaa113 aaa114 aaa115 aaa116 aaa117 aaa118 aaa119 aaa120 aaa121 aaa122 aaa123 aaa124 aaa125 aaa126 aaa127 aaa128 aaa129 aaa130 aaa131 aaa132 aaa133 aaa134 aaa135 aaa136 aaa137 aaa138 aaa139 aaa140 aaa141 aaa142 aaa143 aaa144 aaa145 aaa146 aaa147 aaa148 aaa149 aaa150 aaa151 aaa152 aaa153 aaa154 aaa155 aaa156 aaa157 aaa158 aaa159 aaa160 aaa161 aaa162 aaa163 aaa164 aaa165 aaa166 aaa167 aaa168 aaa169 aaa170 aaa171 aaa172 aaa173 aaa174 aaa175 aaa176 aaa177 aaa178 aaa179 aaa180 aaa181 aaa182 aaa183 aaa184 aaa185 aaa186 aaa187 aaa188 aaa189 aaa190 aaa191 aaa192 aaa193 aaa194 aaa195 aaa196 aaa197 aaa198 aaa199 aaa200 aaa201 aaa202 aaa203 aaa204 aaa205 aaa206 aaa207 aaa208 aaa209 aaa210 aaa211 aaa212 aaa213 aaa214 aaa215 aaa216 aaa217 aaa218 aaa219 aaa220 aaa221 aaa222 aaa223 aaa224 aaa225 aaa226 aaa227 aaa228 aaa229 aaa230 aaa231 aaa232 aaa233 aaa234 aaa235 aaa236 aaa237 aaa238 aaa239 aaa240 aaa241 aaa242 aaa243 aaa244 aaa245 aaa246 aaa247 aaa248 aaa249 aaa250 aaa251 aaa252 aaa253 aaa254 aaa255 aaa256 aaa257 aaa258 aaa259 aaa260 aaa261 aaa262 aaa263 aaa264 aaa265 aaa266 aaa267 aaa268 aaa269 aaa270 aaa271 aaa272 aaa273 aaa274 aaa275 aaa276 aaa277 aaa278 aaa279 aaa280 aaa281 aaa282 aaa283 aaa284 aaa285 aaa286 aaa287 aaa288 aaa289 aaa290 aaa291 aaa292 aaa293 aaa294 aaa295 aaa296 aaa297 aaa298 aaa299"
}
],
"isError": false,
"timestamp": 3
}
],
"isSplitTurn": true,
"tokensBefore": 2500,
"previousSummary": null,
"fileOps": {
"read": [
"a.ts"
],
"written": [],
"edited": []
}
}
},
{
"keep": 1500,
"prep": null
},
{
"keep": 3000,
"prep": null
},
{
"keep": 100000,
"prep": null
}
],
"branchPrep": [
{
"budget": 0,
"messages": [
{
"role": "user",
"content": "Big task req0 req1 req2 req3 req4 req5 req6 req7 req8 req9",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Step 1 s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 s32 s33 s34 s35 s36 s37 s38 s39 s40 s41 s42 s43 s44 s45 s46 s47 s48 s49 s50 s51 s52 s53 s54 s55 s56 s57 s58 s59 s60 s61 s62 s63 s64 s65 s66 s67 s68 s69 s70 s71 s72 s73 s74 s75 s76 s77 s78 s79 s80 s81 s82 s83 s84 s85 s86 s87 s88 s89 s90 s91 s92 s93 s94 s95 s96 s97 s98 s99 s100 s101 s102 s103 s104 s105 s106 s107 s108 s109 s110 s111 s112 s113 s114 s115 s116 s117 s118 s119 s120 s121 s122 s123 s124 s125 s126 s127 s128 s129 s130 s131 s132 s133 s134 s135 s136 s137 s138 s139 s140 s141 s142 s143 s144 s145 s146 s147 s148 s149 s150 s151 s152 s153 s154 s155 s156 s157 s158 s159 s160 s161 s162 s163 s164 s165 s166 s167 s168 s169 s170 s171 s172 s173 s174 s175 s176 s177 s178 s179 s180 s181 s182 s183 s184 s185 s186 s187 s188 s189 s190 s191 s192 s193 s194 s195 s196 s197 s198 s199"
},
{
"type": "toolCall",
"id": "t1",
"name": "read",
"arguments": {
"path": "a.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 800,
"output": 100,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 900,
"cost": {
"input": 0.0008,
"output": 0.001,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0018
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Step 2 s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 s32 s33 s34 s35 s36 s37 s38 s39 s40 s41 s42 s43 s44 s45 s46 s47 s48 s49 s50 s51 s52 s53 s54 s55 s56 s57 s58 s59 s60 s61 s62 s63 s64 s65 s66 s67 s68 s69 s70 s71 s72 s73 s74 s75 s76 s77 s78 s79 s80 s81 s82 s83 s84 s85 s86 s87 s88 s89 s90 s91 s92 s93 s94 s95 s96 s97 s98 s99 s100 s101 s102 s103 s104 s105 s106 s107 s108 s109 s110 s111 s112 s113 s114 s115 s116 s117 s118 s119 s120 s121 s122 s123 s124 s125 s126 s127 s128 s129 s130 s131 s132 s133 s134 s135 s136 s137 s138 s139 s140 s141 s142 s143 s144 s145 s146 s147 s148 s149 s150 s151 s152 s153 s154 s155 s156 s157 s158 s159 s160 s161 s162 s163 s164 s165 s166 s167 s168 s169 s170 s171 s172 s173 s174 s175 s176 s177 s178 s179 s180 s181 s182 s183 s184 s185 s186 s187 s188 s189 s190 s191 s192 s193 s194 s195 s196 s197 s198 s199"
},
{
"type": "toolCall",
"id": "t2",
"name": "write",
"arguments": {
"path": "b.ts",
"content": "q"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 1600,
"output": 100,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1700,
"cost": {
"input": 0.0016,
"output": 0.001,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0026
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Step 3 s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 s32 s33 s34 s35 s36 s37 s38 s39 s40 s41 s42 s43 s44 s45 s46 s47 s48 s49 s50 s51 s52 s53 s54 s55 s56 s57 s58 s59 s60 s61 s62 s63 s64 s65 s66 s67 s68 s69 s70 s71 s72 s73 s74 s75 s76 s77 s78 s79 s80 s81 s82 s83 s84 s85 s86 s87 s88 s89 s90 s91 s92 s93 s94 s95 s96 s97 s98 s99 s100 s101 s102 s103 s104 s105 s106 s107 s108 s109 s110 s111 s112 s113 s114 s115 s116 s117 s118 s119 s120 s121 s122 s123 s124 s125 s126 s127 s128 s129 s130 s131 s132 s133 s134 s135 s136 s137 s138 s139 s140 s141 s142 s143 s144 s145 s146 s147 s148 s149 s150 s151 s152 s153 s154 s155 s156 s157 s158 s159 s160 s161 s162 s163 s164 s165 s166 s167 s168 s169 s170 s171 s172 s173 s174 s175 s176 s177 s178 s179 s180 s181 s182 s183 s184 s185 s186 s187 s188 s189 s190 s191 s192 s193 s194 s195 s196 s197 s198 s199"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 2400,
"output": 100,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 2500,
"cost": {
"input": 0.0024,
"output": 0.001,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0034
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"totalTokens": 701,
"fileOps": {
"read": [
"a.ts"
],
"written": [
"b.ts"
],
"edited": []
}
},
{
"budget": 30,
"messages": [],
"totalTokens": 0,
"fileOps": {
"read": [],
"written": [],
"edited": []
}
},
{
"budget": 120,
"messages": [],
"totalTokens": 0,
"fileOps": {
"read": [],
"written": [],
"edited": []
}
},
{
"budget": 400,
"messages": [
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Step 3 s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 s32 s33 s34 s35 s36 s37 s38 s39 s40 s41 s42 s43 s44 s45 s46 s47 s48 s49 s50 s51 s52 s53 s54 s55 s56 s57 s58 s59 s60 s61 s62 s63 s64 s65 s66 s67 s68 s69 s70 s71 s72 s73 s74 s75 s76 s77 s78 s79 s80 s81 s82 s83 s84 s85 s86 s87 s88 s89 s90 s91 s92 s93 s94 s95 s96 s97 s98 s99 s100 s101 s102 s103 s104 s105 s106 s107 s108 s109 s110 s111 s112 s113 s114 s115 s116 s117 s118 s119 s120 s121 s122 s123 s124 s125 s126 s127 s128 s129 s130 s131 s132 s133 s134 s135 s136 s137 s138 s139 s140 s141 s142 s143 s144 s145 s146 s147 s148 s149 s150 s151 s152 s153 s154 s155 s156 s157 s158 s159 s160 s161 s162 s163 s164 s165 s166 s167 s168 s169 s170 s171 s172 s173 s174 s175 s176 s177 s178 s179 s180 s181 s182 s183 s184 s185 s186 s187 s188 s189 s190 s191 s192 s193 s194 s195 s196 s197 s198 s199"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 2400,
"output": 100,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 2500,
"cost": {
"input": 0.0024,
"output": 0.001,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0034
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"totalTokens": 224,
"fileOps": {
"read": [],
"written": [
"b.ts"
],
"edited": []
}
},
{
"budget": 2000,
"messages": [
{
"role": "user",
"content": "Big task req0 req1 req2 req3 req4 req5 req6 req7 req8 req9",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Step 1 s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 s32 s33 s34 s35 s36 s37 s38 s39 s40 s41 s42 s43 s44 s45 s46 s47 s48 s49 s50 s51 s52 s53 s54 s55 s56 s57 s58 s59 s60 s61 s62 s63 s64 s65 s66 s67 s68 s69 s70 s71 s72 s73 s74 s75 s76 s77 s78 s79 s80 s81 s82 s83 s84 s85 s86 s87 s88 s89 s90 s91 s92 s93 s94 s95 s96 s97 s98 s99 s100 s101 s102 s103 s104 s105 s106 s107 s108 s109 s110 s111 s112 s113 s114 s115 s116 s117 s118 s119 s120 s121 s122 s123 s124 s125 s126 s127 s128 s129 s130 s131 s132 s133 s134 s135 s136 s137 s138 s139 s140 s141 s142 s143 s144 s145 s146 s147 s148 s149 s150 s151 s152 s153 s154 s155 s156 s157 s158 s159 s160 s161 s162 s163 s164 s165 s166 s167 s168 s169 s170 s171 s172 s173 s174 s175 s176 s177 s178 s179 s180 s181 s182 s183 s184 s185 s186 s187 s188 s189 s190 s191 s192 s193 s194 s195 s196 s197 s198 s199"
},
{
"type": "toolCall",
"id": "t1",
"name": "read",
"arguments": {
"path": "a.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 800,
"output": 100,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 900,
"cost": {
"input": 0.0008,
"output": 0.001,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0018
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Step 2 s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 s32 s33 s34 s35 s36 s37 s38 s39 s40 s41 s42 s43 s44 s45 s46 s47 s48 s49 s50 s51 s52 s53 s54 s55 s56 s57 s58 s59 s60 s61 s62 s63 s64 s65 s66 s67 s68 s69 s70 s71 s72 s73 s74 s75 s76 s77 s78 s79 s80 s81 s82 s83 s84 s85 s86 s87 s88 s89 s90 s91 s92 s93 s94 s95 s96 s97 s98 s99 s100 s101 s102 s103 s104 s105 s106 s107 s108 s109 s110 s111 s112 s113 s114 s115 s116 s117 s118 s119 s120 s121 s122 s123 s124 s125 s126 s127 s128 s129 s130 s131 s132 s133 s134 s135 s136 s137 s138 s139 s140 s141 s142 s143 s144 s145 s146 s147 s148 s149 s150 s151 s152 s153 s154 s155 s156 s157 s158 s159 s160 s161 s162 s163 s164 s165 s166 s167 s168 s169 s170 s171 s172 s173 s174 s175 s176 s177 s178 s179 s180 s181 s182 s183 s184 s185 s186 s187 s188 s189 s190 s191 s192 s193 s194 s195 s196 s197 s198 s199"
},
{
"type": "toolCall",
"id": "t2",
"name": "write",
"arguments": {
"path": "b.ts",
"content": "q"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 1600,
"output": 100,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1700,
"cost": {
"input": 0.0016,
"output": 0.001,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0026
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Step 3 s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 s32 s33 s34 s35 s36 s37 s38 s39 s40 s41 s42 s43 s44 s45 s46 s47 s48 s49 s50 s51 s52 s53 s54 s55 s56 s57 s58 s59 s60 s61 s62 s63 s64 s65 s66 s67 s68 s69 s70 s71 s72 s73 s74 s75 s76 s77 s78 s79 s80 s81 s82 s83 s84 s85 s86 s87 s88 s89 s90 s91 s92 s93 s94 s95 s96 s97 s98 s99 s100 s101 s102 s103 s104 s105 s106 s107 s108 s109 s110 s111 s112 s113 s114 s115 s116 s117 s118 s119 s120 s121 s122 s123 s124 s125 s126 s127 s128 s129 s130 s131 s132 s133 s134 s135 s136 s137 s138 s139 s140 s141 s142 s143 s144 s145 s146 s147 s148 s149 s150 s151 s152 s153 s154 s155 s156 s157 s158 s159 s160 s161 s162 s163 s164 s165 s166 s167 s168 s169 s170 s171 s172 s173 s174 s175 s176 s177 s178 s179 s180 s181 s182 s183 s184 s185 s186 s187 s188 s189 s190 s191 s192 s193 s194 s195 s196 s197 s198 s199"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 2400,
"output": 100,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 2500,
"cost": {
"input": 0.0024,
"output": 0.001,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0034
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"totalTokens": 701,
"fileOps": {
"read": [
"a.ts"
],
"written": [
"b.ts"
],
"edited": []
}
}
]
},
"contextEdits": {
"entries": [
{
"type": "message",
"message": {
"role": "user",
"content": "First u0 u1 u2 u3 u4 u5 u6 u7 u8 u9 u10 u11 u12 u13 u14 u15 u16 u17 u18 u19 u20 u21 u22 u23 u24 u25 u26 u27 u28 u29 u30 u31 u32 u33 u34 u35 u36 u37 u38 u39",
"timestamp": 1
},
"id": "e1",
"parentId": null,
"timestamp": "2025-01-01T00:00:01.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "Answer a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16 a17 a18 a19 a20 a21 a22 a23 a24 a25 a26 a27 a28 a29 a30 a31 a32 a33 a34 a35 a36 a37 a38 a39"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 500,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 550,
"cost": {
"input": 0.0005,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.001
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e2",
"parentId": "e1",
"timestamp": "2025-01-01T00:00:02.000Z"
},
{
"type": "message",
"message": {
"role": "user",
"content": "Second v0 v1 v2 v3 v4 v5 v6 v7 v8 v9 v10 v11 v12 v13 v14 v15 v16 v17 v18 v19 v20 v21 v22 v23 v24 v25 v26 v27 v28 v29 v30 v31 v32 v33 v34 v35 v36 v37 v38 v39",
"timestamp": 1
},
"id": "e3",
"parentId": "e2",
"timestamp": "2025-01-01T00:00:03.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "Broken attempt b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11 b12 b13 b14 b15 b16 b17 b18 b19 b20 b21 b22 b23 b24 b25 b26 b27 b28 b29 b30 b31 b32 b33 b34 b35 b36 b37 b38 b39 b40 b41 b42 b43 b44 b45 b46 b47 b48 b49 b50 b51 b52 b53 b54 b55 b56 b57 b58 b59 b60 b61 b62 b63 b64 b65 b66 b67 b68 b69 b70 b71 b72 b73 b74 b75 b76 b77 b78 b79"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 900,
"output": 70,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 970,
"cost": {
"input": 0.0009,
"output": 0.0007,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0015999999999999999
}
},
"stopReason": "error",
"timestamp": 2,
"errorMessage": "boom"
},
"id": "e4",
"parentId": "e3",
"timestamp": "2025-01-01T00:00:04.000Z"
},
{
"type": "context_edit",
"targetId": "e4",
"replacement": null,
"id": "e5",
"parentId": "e4",
"timestamp": "2025-01-01T00:00:05.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "Retry r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 r32 r33 r34 r35 r36 r37 r38 r39 r40 r41 r42 r43 r44 r45 r46 r47 r48 r49 r50 r51 r52 r53 r54 r55 r56 r57 r58 r59"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 1300,
"output": 70,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1370,
"cost": {
"input": 0.0013,
"output": 0.0007,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.002
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e6",
"parentId": "e5",
"timestamp": "2025-01-01T00:00:06.000Z"
},
{
"type": "context_edit",
"targetId": "e6",
"replacement": {
"content": "short replacement"
},
"id": "e7",
"parentId": "e6",
"timestamp": "2025-01-01T00:00:07.000Z"
},
{
"type": "custom",
"customType": "state",
"data": {
"x": 1
},
"id": "e8",
"parentId": "e7",
"timestamp": "2025-01-01T00:00:08.000Z"
}
],
"messageTokens": [
39,
39,
39,
5
],
"rawMessageTokens": [
39,
39,
39,
81,
59
],
"contextEstimate": {
"tokens": 1370,
"usageTokens": 1370,
"trailingTokens": 0,
"lastUsageIndex": 3
},
"projectedEstimate": {
"tokens": 122,
"usageTokens": 0,
"trailingTokens": 122,
"lastUsageIndex": null
},
"lastAssistantUsage": {
"input": 1300,
"output": 70,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1370,
"cost": {
"input": 0.0013,
"output": 0.0007,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.002
}
},
"serialized": "[User]: First u0 u1 u2 u3 u4 u5 u6 u7 u8 u9 u10 u11 u12 u13 u14 u15 u16 u17 u18 u19 u20 u21 u22 u23 u24 u25 u26 u27 u28 u29 u30 u31 u32 u33 u34 u35 u36 u37 u38 u39\n\n[Assistant]: Answer a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16 a17 a18 a19 a20 a21 a22 a23 a24 a25 a26 a27 a28 a29 a30 a31 a32 a33 a34 a35 a36 a37 a38 a39\n\n[User]: Second v0 v1 v2 v3 v4 v5 v6 v7 v8 v9 v10 v11 v12 v13 v14 v15 v16 v17 v18 v19 v20 v21 v22 v23 v24 v25 v26 v27 v28 v29 v30 v31 v32 v33 v34 v35 v36 v37 v38 v39\n\n[Assistant]: Broken attempt b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11 b12 b13 b14 b15 b16 b17 b18 b19 b20 b21 b22 b23 b24 b25 b26 b27 b28 b29 b30 b31 b32 b33 b34 b35 b36 b37 b38 b39 b40 b41 b42 b43 b44 b45 b46 b47 b48 b49 b50 b51 b52 b53 b54 b55 b56 b57 b58 b59 b60 b61 b62 b63 b64 b65 b66 b67 b68 b69 b70 b71 b72 b73 b74 b75 b76 b77 b78 b79\n\n[Assistant]: Retry r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 r32 r33 r34 r35 r36 r37 r38 r39 r40 r41 r42 r43 r44 r45 r46 r47 r48 r49 r50 r51 r52 r53 r54 r55 r56 r57 r58 r59",
"cutPoints": [
{
"keep": 0,
"result": {
"firstKeptEntryIndex": 4,
"turnStartIndex": 2,
"isSplitTurn": true
}
},
{
"keep": 1,
"result": {
"firstKeptEntryIndex": 4,
"turnStartIndex": 2,
"isSplitTurn": true
}
},
{
"keep": 20,
"result": {
"firstKeptEntryIndex": 4,
"turnStartIndex": 2,
"isSplitTurn": true
}
},
{
"keep": 50,
"result": {
"firstKeptEntryIndex": 4,
"turnStartIndex": 2,
"isSplitTurn": true
}
},
{
"keep": 150,
"result": {
"firstKeptEntryIndex": 2,
"turnStartIndex": -1,
"isSplitTurn": false
}
},
{
"keep": 400,
"result": {
"firstKeptEntryIndex": 0,
"turnStartIndex": -1,
"isSplitTurn": false
}
},
{
"keep": 900,
"result": {
"firstKeptEntryIndex": 0,
"turnStartIndex": -1,
"isSplitTurn": false
}
},
{
"keep": 1500,
"result": {
"firstKeptEntryIndex": 0,
"turnStartIndex": -1,
"isSplitTurn": false
}
},
{
"keep": 3000,
"result": {
"firstKeptEntryIndex": 0,
"turnStartIndex": -1,
"isSplitTurn": false
}
},
{
"keep": 100000,
"result": {
"firstKeptEntryIndex": 0,
"turnStartIndex": -1,
"isSplitTurn": false
}
}
],
"turnStarts": [
0,
0,
2,
2,
2,
2,
2,
2
],
"preparations": [
{
"keep": 0,
"prep": {
"firstKeptEntryId": "e4",
"messagesToSummarize": [
{
"role": "user",
"content": "First u0 u1 u2 u3 u4 u5 u6 u7 u8 u9 u10 u11 u12 u13 u14 u15 u16 u17 u18 u19 u20 u21 u22 u23 u24 u25 u26 u27 u28 u29 u30 u31 u32 u33 u34 u35 u36 u37 u38 u39",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Answer a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16 a17 a18 a19 a20 a21 a22 a23 a24 a25 a26 a27 a28 a29 a30 a31 a32 a33 a34 a35 a36 a37 a38 a39"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 500,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 550,
"cost": {
"input": 0.0005,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.001
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"turnPrefixMessages": [
{
"role": "user",
"content": "Second v0 v1 v2 v3 v4 v5 v6 v7 v8 v9 v10 v11 v12 v13 v14 v15 v16 v17 v18 v19 v20 v21 v22 v23 v24 v25 v26 v27 v28 v29 v30 v31 v32 v33 v34 v35 v36 v37 v38 v39",
"timestamp": 1
}
],
"isSplitTurn": true,
"tokensBefore": 122,
"previousSummary": null,
"fileOps": {
"read": [],
"written": [],
"edited": []
}
}
},
{
"keep": 1,
"prep": {
"firstKeptEntryId": "e4",
"messagesToSummarize": [
{
"role": "user",
"content": "First u0 u1 u2 u3 u4 u5 u6 u7 u8 u9 u10 u11 u12 u13 u14 u15 u16 u17 u18 u19 u20 u21 u22 u23 u24 u25 u26 u27 u28 u29 u30 u31 u32 u33 u34 u35 u36 u37 u38 u39",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Answer a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16 a17 a18 a19 a20 a21 a22 a23 a24 a25 a26 a27 a28 a29 a30 a31 a32 a33 a34 a35 a36 a37 a38 a39"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 500,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 550,
"cost": {
"input": 0.0005,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.001
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"turnPrefixMessages": [
{
"role": "user",
"content": "Second v0 v1 v2 v3 v4 v5 v6 v7 v8 v9 v10 v11 v12 v13 v14 v15 v16 v17 v18 v19 v20 v21 v22 v23 v24 v25 v26 v27 v28 v29 v30 v31 v32 v33 v34 v35 v36 v37 v38 v39",
"timestamp": 1
}
],
"isSplitTurn": true,
"tokensBefore": 122,
"previousSummary": null,
"fileOps": {
"read": [],
"written": [],
"edited": []
}
}
},
{
"keep": 20,
"prep": {
"firstKeptEntryId": "e3",
"messagesToSummarize": [
{
"role": "user",
"content": "First u0 u1 u2 u3 u4 u5 u6 u7 u8 u9 u10 u11 u12 u13 u14 u15 u16 u17 u18 u19 u20 u21 u22 u23 u24 u25 u26 u27 u28 u29 u30 u31 u32 u33 u34 u35 u36 u37 u38 u39",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Answer a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16 a17 a18 a19 a20 a21 a22 a23 a24 a25 a26 a27 a28 a29 a30 a31 a32 a33 a34 a35 a36 a37 a38 a39"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 500,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 550,
"cost": {
"input": 0.0005,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.001
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"turnPrefixMessages": [],
"isSplitTurn": false,
"tokensBefore": 122,
"previousSummary": null,
"fileOps": {
"read": [],
"written": [],
"edited": []
}
}
},
{
"keep": 50,
"prep": {
"firstKeptEntryId": "e2",
"messagesToSummarize": [],
"turnPrefixMessages": [
{
"role": "user",
"content": "First u0 u1 u2 u3 u4 u5 u6 u7 u8 u9 u10 u11 u12 u13 u14 u15 u16 u17 u18 u19 u20 u21 u22 u23 u24 u25 u26 u27 u28 u29 u30 u31 u32 u33 u34 u35 u36 u37 u38 u39",
"timestamp": 1
}
],
"isSplitTurn": true,
"tokensBefore": 122,
"previousSummary": null,
"fileOps": {
"read": [],
"written": [],
"edited": []
}
}
},
{
"keep": 150,
"prep": null
},
{
"keep": 400,
"prep": null
},
{
"keep": 900,
"prep": null
},
{
"keep": 1500,
"prep": null
},
{
"keep": 3000,
"prep": null
},
{
"keep": 100000,
"prep": null
}
],
"branchPrep": [
{
"budget": 0,
"messages": [
{
"role": "user",
"content": "First u0 u1 u2 u3 u4 u5 u6 u7 u8 u9 u10 u11 u12 u13 u14 u15 u16 u17 u18 u19 u20 u21 u22 u23 u24 u25 u26 u27 u28 u29 u30 u31 u32 u33 u34 u35 u36 u37 u38 u39",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Answer a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16 a17 a18 a19 a20 a21 a22 a23 a24 a25 a26 a27 a28 a29 a30 a31 a32 a33 a34 a35 a36 a37 a38 a39"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 500,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 550,
"cost": {
"input": 0.0005,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.001
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "user",
"content": "Second v0 v1 v2 v3 v4 v5 v6 v7 v8 v9 v10 v11 v12 v13 v14 v15 v16 v17 v18 v19 v20 v21 v22 v23 v24 v25 v26 v27 v28 v29 v30 v31 v32 v33 v34 v35 v36 v37 v38 v39",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Broken attempt b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11 b12 b13 b14 b15 b16 b17 b18 b19 b20 b21 b22 b23 b24 b25 b26 b27 b28 b29 b30 b31 b32 b33 b34 b35 b36 b37 b38 b39 b40 b41 b42 b43 b44 b45 b46 b47 b48 b49 b50 b51 b52 b53 b54 b55 b56 b57 b58 b59 b60 b61 b62 b63 b64 b65 b66 b67 b68 b69 b70 b71 b72 b73 b74 b75 b76 b77 b78 b79"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 900,
"output": 70,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 970,
"cost": {
"input": 0.0009,
"output": 0.0007,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0015999999999999999
}
},
"stopReason": "error",
"timestamp": 2,
"errorMessage": "boom"
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Retry r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 r32 r33 r34 r35 r36 r37 r38 r39 r40 r41 r42 r43 r44 r45 r46 r47 r48 r49 r50 r51 r52 r53 r54 r55 r56 r57 r58 r59"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 1300,
"output": 70,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1370,
"cost": {
"input": 0.0013,
"output": 0.0007,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.002
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"totalTokens": 257,
"fileOps": {
"read": [],
"written": [],
"edited": []
}
},
{
"budget": 30,
"messages": [],
"totalTokens": 0,
"fileOps": {
"read": [],
"written": [],
"edited": []
}
},
{
"budget": 120,
"messages": [
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Retry r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 r32 r33 r34 r35 r36 r37 r38 r39 r40 r41 r42 r43 r44 r45 r46 r47 r48 r49 r50 r51 r52 r53 r54 r55 r56 r57 r58 r59"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 1300,
"output": 70,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1370,
"cost": {
"input": 0.0013,
"output": 0.0007,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.002
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"totalTokens": 59,
"fileOps": {
"read": [],
"written": [],
"edited": []
}
},
{
"budget": 400,
"messages": [
{
"role": "user",
"content": "First u0 u1 u2 u3 u4 u5 u6 u7 u8 u9 u10 u11 u12 u13 u14 u15 u16 u17 u18 u19 u20 u21 u22 u23 u24 u25 u26 u27 u28 u29 u30 u31 u32 u33 u34 u35 u36 u37 u38 u39",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Answer a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16 a17 a18 a19 a20 a21 a22 a23 a24 a25 a26 a27 a28 a29 a30 a31 a32 a33 a34 a35 a36 a37 a38 a39"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 500,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 550,
"cost": {
"input": 0.0005,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.001
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "user",
"content": "Second v0 v1 v2 v3 v4 v5 v6 v7 v8 v9 v10 v11 v12 v13 v14 v15 v16 v17 v18 v19 v20 v21 v22 v23 v24 v25 v26 v27 v28 v29 v30 v31 v32 v33 v34 v35 v36 v37 v38 v39",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Broken attempt b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11 b12 b13 b14 b15 b16 b17 b18 b19 b20 b21 b22 b23 b24 b25 b26 b27 b28 b29 b30 b31 b32 b33 b34 b35 b36 b37 b38 b39 b40 b41 b42 b43 b44 b45 b46 b47 b48 b49 b50 b51 b52 b53 b54 b55 b56 b57 b58 b59 b60 b61 b62 b63 b64 b65 b66 b67 b68 b69 b70 b71 b72 b73 b74 b75 b76 b77 b78 b79"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 900,
"output": 70,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 970,
"cost": {
"input": 0.0009,
"output": 0.0007,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0015999999999999999
}
},
"stopReason": "error",
"timestamp": 2,
"errorMessage": "boom"
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Retry r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 r32 r33 r34 r35 r36 r37 r38 r39 r40 r41 r42 r43 r44 r45 r46 r47 r48 r49 r50 r51 r52 r53 r54 r55 r56 r57 r58 r59"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 1300,
"output": 70,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1370,
"cost": {
"input": 0.0013,
"output": 0.0007,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.002
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"totalTokens": 257,
"fileOps": {
"read": [],
"written": [],
"edited": []
}
},
{
"budget": 2000,
"messages": [
{
"role": "user",
"content": "First u0 u1 u2 u3 u4 u5 u6 u7 u8 u9 u10 u11 u12 u13 u14 u15 u16 u17 u18 u19 u20 u21 u22 u23 u24 u25 u26 u27 u28 u29 u30 u31 u32 u33 u34 u35 u36 u37 u38 u39",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Answer a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16 a17 a18 a19 a20 a21 a22 a23 a24 a25 a26 a27 a28 a29 a30 a31 a32 a33 a34 a35 a36 a37 a38 a39"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 500,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 550,
"cost": {
"input": 0.0005,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.001
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "user",
"content": "Second v0 v1 v2 v3 v4 v5 v6 v7 v8 v9 v10 v11 v12 v13 v14 v15 v16 v17 v18 v19 v20 v21 v22 v23 v24 v25 v26 v27 v28 v29 v30 v31 v32 v33 v34 v35 v36 v37 v38 v39",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Broken attempt b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11 b12 b13 b14 b15 b16 b17 b18 b19 b20 b21 b22 b23 b24 b25 b26 b27 b28 b29 b30 b31 b32 b33 b34 b35 b36 b37 b38 b39 b40 b41 b42 b43 b44 b45 b46 b47 b48 b49 b50 b51 b52 b53 b54 b55 b56 b57 b58 b59 b60 b61 b62 b63 b64 b65 b66 b67 b68 b69 b70 b71 b72 b73 b74 b75 b76 b77 b78 b79"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 900,
"output": 70,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 970,
"cost": {
"input": 0.0009,
"output": 0.0007,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0015999999999999999
}
},
"stopReason": "error",
"timestamp": 2,
"errorMessage": "boom"
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Retry r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 r32 r33 r34 r35 r36 r37 r38 r39 r40 r41 r42 r43 r44 r45 r46 r47 r48 r49 r50 r51 r52 r53 r54 r55 r56 r57 r58 r59"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 1300,
"output": 70,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1370,
"cost": {
"input": 0.0013,
"output": 0.0007,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.002
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"totalTokens": 257,
"fileOps": {
"read": [],
"written": [],
"edited": []
}
}
]
},
"recoveryOmission": {
"entries": [
{
"type": "message",
"message": {
"role": "user",
"content": "Hello h0 h1 h2 h3 h4 h5 h6 h7 h8 h9 h10 h11 h12 h13 h14 h15 h16 h17 h18 h19 h20 h21 h22 h23 h24 h25 h26 h27 h28 h29 h30 h31 h32 h33 h34 h35 h36 h37 h38 h39 h40 h41 h42 h43 h44 h45 h46 h47 h48 h49 h50 h51 h52 h53 h54 h55 h56 h57 h58 h59",
"timestamp": 1
},
"id": "e1",
"parentId": null,
"timestamp": "2025-01-01T00:00:01.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "Hi i0 i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 i11 i12 i13 i14 i15 i16 i17 i18 i19 i20 i21 i22 i23 i24 i25 i26 i27 i28 i29 i30 i31 i32 i33 i34 i35 i36 i37 i38 i39 i40 i41 i42 i43 i44 i45 i46 i47 i48 i49 i50 i51 i52 i53 i54 i55 i56 i57 i58 i59"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 400,
"output": 40,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 440,
"cost": {
"input": 0.0004,
"output": 0.0004,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0008
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e2",
"parentId": "e1",
"timestamp": "2025-01-01T00:00:02.000Z"
},
{
"type": "message",
"message": {
"role": "user",
"content": "Do it d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 d32 d33 d34 d35 d36 d37 d38 d39 d40 d41 d42 d43 d44 d45 d46 d47 d48 d49 d50 d51 d52 d53 d54 d55 d56 d57 d58 d59",
"timestamp": 1
},
"id": "e3",
"parentId": "e2",
"timestamp": "2025-01-01T00:00:03.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "Attempt x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 x31 x32 x33 x34 x35 x36 x37 x38 x39 x40 x41 x42 x43 x44 x45 x46 x47 x48 x49 x50 x51 x52 x53 x54 x55 x56 x57 x58 x59"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "error",
"timestamp": 2,
"errorMessage": "overloaded"
},
"id": "e4",
"parentId": "e3",
"timestamp": "2025-01-01T00:00:04.000Z"
},
{
"type": "context_edit",
"targetId": "e4",
"replacement": null,
"id": "e5",
"parentId": "e4",
"timestamp": "2025-01-01T00:00:05.000Z"
}
],
"messageTokens": [
59,
58,
59
],
"rawMessageTokens": [
59,
58,
59,
60
],
"contextEstimate": {
"tokens": 499,
"usageTokens": 440,
"trailingTokens": 59,
"lastUsageIndex": 1
},
"projectedEstimate": {
"tokens": 176,
"usageTokens": 0,
"trailingTokens": 176,
"lastUsageIndex": null
},
"lastAssistantUsage": {
"input": 400,
"output": 40,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 440,
"cost": {
"input": 0.0004,
"output": 0.0004,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0008
}
},
"serialized": "[User]: Hello h0 h1 h2 h3 h4 h5 h6 h7 h8 h9 h10 h11 h12 h13 h14 h15 h16 h17 h18 h19 h20 h21 h22 h23 h24 h25 h26 h27 h28 h29 h30 h31 h32 h33 h34 h35 h36 h37 h38 h39 h40 h41 h42 h43 h44 h45 h46 h47 h48 h49 h50 h51 h52 h53 h54 h55 h56 h57 h58 h59\n\n[Assistant]: Hi i0 i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 i11 i12 i13 i14 i15 i16 i17 i18 i19 i20 i21 i22 i23 i24 i25 i26 i27 i28 i29 i30 i31 i32 i33 i34 i35 i36 i37 i38 i39 i40 i41 i42 i43 i44 i45 i46 i47 i48 i49 i50 i51 i52 i53 i54 i55 i56 i57 i58 i59\n\n[User]: Do it d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 d32 d33 d34 d35 d36 d37 d38 d39 d40 d41 d42 d43 d44 d45 d46 d47 d48 d49 d50 d51 d52 d53 d54 d55 d56 d57 d58 d59\n\n[Assistant]: Attempt x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 x31 x32 x33 x34 x35 x36 x37 x38 x39 x40 x41 x42 x43 x44 x45 x46 x47 x48 x49 x50 x51 x52 x53 x54 x55 x56 x57 x58 x59",
"cutPoints": [
{
"keep": 0,
"result": {
"firstKeptEntryIndex": 3,
"turnStartIndex": 2,
"isSplitTurn": true
}
},
{
"keep": 1,
"result": {
"firstKeptEntryIndex": 3,
"turnStartIndex": 2,
"isSplitTurn": true
}
},
{
"keep": 20,
"result": {
"firstKeptEntryIndex": 3,
"turnStartIndex": 2,
"isSplitTurn": true
}
},
{
"keep": 50,
"result": {
"firstKeptEntryIndex": 3,
"turnStartIndex": 2,
"isSplitTurn": true
}
},
{
"keep": 150,
"result": {
"firstKeptEntryIndex": 1,
"turnStartIndex": 0,
"isSplitTurn": true
}
},
{
"keep": 400,
"result": {
"firstKeptEntryIndex": 0,
"turnStartIndex": -1,
"isSplitTurn": false
}
},
{
"keep": 900,
"result": {
"firstKeptEntryIndex": 0,
"turnStartIndex": -1,
"isSplitTurn": false
}
},
{
"keep": 1500,
"result": {
"firstKeptEntryIndex": 0,
"turnStartIndex": -1,
"isSplitTurn": false
}
},
{
"keep": 3000,
"result": {
"firstKeptEntryIndex": 0,
"turnStartIndex": -1,
"isSplitTurn": false
}
},
{
"keep": 100000,
"result": {
"firstKeptEntryIndex": 0,
"turnStartIndex": -1,
"isSplitTurn": false
}
}
],
"turnStarts": [
0,
0,
2,
2,
2
],
"preparations": [
{
"keep": 0,
"prep": {
"firstKeptEntryId": "e4",
"messagesToSummarize": [
{
"role": "user",
"content": "Hello h0 h1 h2 h3 h4 h5 h6 h7 h8 h9 h10 h11 h12 h13 h14 h15 h16 h17 h18 h19 h20 h21 h22 h23 h24 h25 h26 h27 h28 h29 h30 h31 h32 h33 h34 h35 h36 h37 h38 h39 h40 h41 h42 h43 h44 h45 h46 h47 h48 h49 h50 h51 h52 h53 h54 h55 h56 h57 h58 h59",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Hi i0 i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 i11 i12 i13 i14 i15 i16 i17 i18 i19 i20 i21 i22 i23 i24 i25 i26 i27 i28 i29 i30 i31 i32 i33 i34 i35 i36 i37 i38 i39 i40 i41 i42 i43 i44 i45 i46 i47 i48 i49 i50 i51 i52 i53 i54 i55 i56 i57 i58 i59"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 400,
"output": 40,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 440,
"cost": {
"input": 0.0004,
"output": 0.0004,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0008
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"turnPrefixMessages": [
{
"role": "user",
"content": "Do it d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 d32 d33 d34 d35 d36 d37 d38 d39 d40 d41 d42 d43 d44 d45 d46 d47 d48 d49 d50 d51 d52 d53 d54 d55 d56 d57 d58 d59",
"timestamp": 1
}
],
"isSplitTurn": true,
"tokensBefore": 176,
"previousSummary": null,
"fileOps": {
"read": [],
"written": [],
"edited": []
}
}
},
{
"keep": 1,
"prep": {
"firstKeptEntryId": "e4",
"messagesToSummarize": [
{
"role": "user",
"content": "Hello h0 h1 h2 h3 h4 h5 h6 h7 h8 h9 h10 h11 h12 h13 h14 h15 h16 h17 h18 h19 h20 h21 h22 h23 h24 h25 h26 h27 h28 h29 h30 h31 h32 h33 h34 h35 h36 h37 h38 h39 h40 h41 h42 h43 h44 h45 h46 h47 h48 h49 h50 h51 h52 h53 h54 h55 h56 h57 h58 h59",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Hi i0 i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 i11 i12 i13 i14 i15 i16 i17 i18 i19 i20 i21 i22 i23 i24 i25 i26 i27 i28 i29 i30 i31 i32 i33 i34 i35 i36 i37 i38 i39 i40 i41 i42 i43 i44 i45 i46 i47 i48 i49 i50 i51 i52 i53 i54 i55 i56 i57 i58 i59"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 400,
"output": 40,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 440,
"cost": {
"input": 0.0004,
"output": 0.0004,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0008
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"turnPrefixMessages": [
{
"role": "user",
"content": "Do it d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 d32 d33 d34 d35 d36 d37 d38 d39 d40 d41 d42 d43 d44 d45 d46 d47 d48 d49 d50 d51 d52 d53 d54 d55 d56 d57 d58 d59",
"timestamp": 1
}
],
"isSplitTurn": true,
"tokensBefore": 176,
"previousSummary": null,
"fileOps": {
"read": [],
"written": [],
"edited": []
}
}
},
{
"keep": 20,
"prep": {
"firstKeptEntryId": "e4",
"messagesToSummarize": [
{
"role": "user",
"content": "Hello h0 h1 h2 h3 h4 h5 h6 h7 h8 h9 h10 h11 h12 h13 h14 h15 h16 h17 h18 h19 h20 h21 h22 h23 h24 h25 h26 h27 h28 h29 h30 h31 h32 h33 h34 h35 h36 h37 h38 h39 h40 h41 h42 h43 h44 h45 h46 h47 h48 h49 h50 h51 h52 h53 h54 h55 h56 h57 h58 h59",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Hi i0 i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 i11 i12 i13 i14 i15 i16 i17 i18 i19 i20 i21 i22 i23 i24 i25 i26 i27 i28 i29 i30 i31 i32 i33 i34 i35 i36 i37 i38 i39 i40 i41 i42 i43 i44 i45 i46 i47 i48 i49 i50 i51 i52 i53 i54 i55 i56 i57 i58 i59"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 400,
"output": 40,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 440,
"cost": {
"input": 0.0004,
"output": 0.0004,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0008
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"turnPrefixMessages": [
{
"role": "user",
"content": "Do it d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 d32 d33 d34 d35 d36 d37 d38 d39 d40 d41 d42 d43 d44 d45 d46 d47 d48 d49 d50 d51 d52 d53 d54 d55 d56 d57 d58 d59",
"timestamp": 1
}
],
"isSplitTurn": true,
"tokensBefore": 176,
"previousSummary": null,
"fileOps": {
"read": [],
"written": [],
"edited": []
}
}
},
{
"keep": 50,
"prep": {
"firstKeptEntryId": "e4",
"messagesToSummarize": [
{
"role": "user",
"content": "Hello h0 h1 h2 h3 h4 h5 h6 h7 h8 h9 h10 h11 h12 h13 h14 h15 h16 h17 h18 h19 h20 h21 h22 h23 h24 h25 h26 h27 h28 h29 h30 h31 h32 h33 h34 h35 h36 h37 h38 h39 h40 h41 h42 h43 h44 h45 h46 h47 h48 h49 h50 h51 h52 h53 h54 h55 h56 h57 h58 h59",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Hi i0 i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 i11 i12 i13 i14 i15 i16 i17 i18 i19 i20 i21 i22 i23 i24 i25 i26 i27 i28 i29 i30 i31 i32 i33 i34 i35 i36 i37 i38 i39 i40 i41 i42 i43 i44 i45 i46 i47 i48 i49 i50 i51 i52 i53 i54 i55 i56 i57 i58 i59"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 400,
"output": 40,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 440,
"cost": {
"input": 0.0004,
"output": 0.0004,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0008
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"turnPrefixMessages": [
{
"role": "user",
"content": "Do it d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 d32 d33 d34 d35 d36 d37 d38 d39 d40 d41 d42 d43 d44 d45 d46 d47 d48 d49 d50 d51 d52 d53 d54 d55 d56 d57 d58 d59",
"timestamp": 1
}
],
"isSplitTurn": true,
"tokensBefore": 176,
"previousSummary": null,
"fileOps": {
"read": [],
"written": [],
"edited": []
}
}
},
{
"keep": 150,
"prep": null
},
{
"keep": 400,
"prep": null
},
{
"keep": 900,
"prep": null
},
{
"keep": 1500,
"prep": null
},
{
"keep": 3000,
"prep": null
},
{
"keep": 100000,
"prep": null
}
],
"branchPrep": [
{
"budget": 0,
"messages": [
{
"role": "user",
"content": "Hello h0 h1 h2 h3 h4 h5 h6 h7 h8 h9 h10 h11 h12 h13 h14 h15 h16 h17 h18 h19 h20 h21 h22 h23 h24 h25 h26 h27 h28 h29 h30 h31 h32 h33 h34 h35 h36 h37 h38 h39 h40 h41 h42 h43 h44 h45 h46 h47 h48 h49 h50 h51 h52 h53 h54 h55 h56 h57 h58 h59",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Hi i0 i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 i11 i12 i13 i14 i15 i16 i17 i18 i19 i20 i21 i22 i23 i24 i25 i26 i27 i28 i29 i30 i31 i32 i33 i34 i35 i36 i37 i38 i39 i40 i41 i42 i43 i44 i45 i46 i47 i48 i49 i50 i51 i52 i53 i54 i55 i56 i57 i58 i59"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 400,
"output": 40,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 440,
"cost": {
"input": 0.0004,
"output": 0.0004,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0008
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "user",
"content": "Do it d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 d32 d33 d34 d35 d36 d37 d38 d39 d40 d41 d42 d43 d44 d45 d46 d47 d48 d49 d50 d51 d52 d53 d54 d55 d56 d57 d58 d59",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Attempt x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 x31 x32 x33 x34 x35 x36 x37 x38 x39 x40 x41 x42 x43 x44 x45 x46 x47 x48 x49 x50 x51 x52 x53 x54 x55 x56 x57 x58 x59"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "error",
"timestamp": 2,
"errorMessage": "overloaded"
}
],
"totalTokens": 236,
"fileOps": {
"read": [],
"written": [],
"edited": []
}
},
{
"budget": 30,
"messages": [],
"totalTokens": 0,
"fileOps": {
"read": [],
"written": [],
"edited": []
}
},
{
"budget": 120,
"messages": [
{
"role": "user",
"content": "Do it d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 d32 d33 d34 d35 d36 d37 d38 d39 d40 d41 d42 d43 d44 d45 d46 d47 d48 d49 d50 d51 d52 d53 d54 d55 d56 d57 d58 d59",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Attempt x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 x31 x32 x33 x34 x35 x36 x37 x38 x39 x40 x41 x42 x43 x44 x45 x46 x47 x48 x49 x50 x51 x52 x53 x54 x55 x56 x57 x58 x59"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "error",
"timestamp": 2,
"errorMessage": "overloaded"
}
],
"totalTokens": 119,
"fileOps": {
"read": [],
"written": [],
"edited": []
}
},
{
"budget": 400,
"messages": [
{
"role": "user",
"content": "Hello h0 h1 h2 h3 h4 h5 h6 h7 h8 h9 h10 h11 h12 h13 h14 h15 h16 h17 h18 h19 h20 h21 h22 h23 h24 h25 h26 h27 h28 h29 h30 h31 h32 h33 h34 h35 h36 h37 h38 h39 h40 h41 h42 h43 h44 h45 h46 h47 h48 h49 h50 h51 h52 h53 h54 h55 h56 h57 h58 h59",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Hi i0 i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 i11 i12 i13 i14 i15 i16 i17 i18 i19 i20 i21 i22 i23 i24 i25 i26 i27 i28 i29 i30 i31 i32 i33 i34 i35 i36 i37 i38 i39 i40 i41 i42 i43 i44 i45 i46 i47 i48 i49 i50 i51 i52 i53 i54 i55 i56 i57 i58 i59"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 400,
"output": 40,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 440,
"cost": {
"input": 0.0004,
"output": 0.0004,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0008
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "user",
"content": "Do it d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 d32 d33 d34 d35 d36 d37 d38 d39 d40 d41 d42 d43 d44 d45 d46 d47 d48 d49 d50 d51 d52 d53 d54 d55 d56 d57 d58 d59",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Attempt x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 x31 x32 x33 x34 x35 x36 x37 x38 x39 x40 x41 x42 x43 x44 x45 x46 x47 x48 x49 x50 x51 x52 x53 x54 x55 x56 x57 x58 x59"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "error",
"timestamp": 2,
"errorMessage": "overloaded"
}
],
"totalTokens": 236,
"fileOps": {
"read": [],
"written": [],
"edited": []
}
},
{
"budget": 2000,
"messages": [
{
"role": "user",
"content": "Hello h0 h1 h2 h3 h4 h5 h6 h7 h8 h9 h10 h11 h12 h13 h14 h15 h16 h17 h18 h19 h20 h21 h22 h23 h24 h25 h26 h27 h28 h29 h30 h31 h32 h33 h34 h35 h36 h37 h38 h39 h40 h41 h42 h43 h44 h45 h46 h47 h48 h49 h50 h51 h52 h53 h54 h55 h56 h57 h58 h59",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Hi i0 i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 i11 i12 i13 i14 i15 i16 i17 i18 i19 i20 i21 i22 i23 i24 i25 i26 i27 i28 i29 i30 i31 i32 i33 i34 i35 i36 i37 i38 i39 i40 i41 i42 i43 i44 i45 i46 i47 i48 i49 i50 i51 i52 i53 i54 i55 i56 i57 i58 i59"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 400,
"output": 40,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 440,
"cost": {
"input": 0.0004,
"output": 0.0004,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0008
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "user",
"content": "Do it d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 d32 d33 d34 d35 d36 d37 d38 d39 d40 d41 d42 d43 d44 d45 d46 d47 d48 d49 d50 d51 d52 d53 d54 d55 d56 d57 d58 d59",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Attempt x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 x31 x32 x33 x34 x35 x36 x37 x38 x39 x40 x41 x42 x43 x44 x45 x46 x47 x48 x49 x50 x51 x52 x53 x54 x55 x56 x57 x58 x59"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "error",
"timestamp": 2,
"errorMessage": "overloaded"
}
],
"totalTokens": 236,
"fileOps": {
"read": [],
"written": [],
"edited": []
}
}
]
},
"branch": {
"entries": [
{
"type": "message",
"message": {
"role": "user",
"content": "root question",
"timestamp": 1
},
"id": "e1",
"parentId": null,
"timestamp": "2025-01-01T00:00:01.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "root answer"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 100,
"output": 10,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 110,
"cost": {
"input": 0.0001,
"output": 0.0001,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0002
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e2",
"parentId": "e1",
"timestamp": "2025-01-01T00:00:02.000Z"
},
{
"type": "message",
"message": {
"role": "user",
"content": "Explore option A optA0 optA1 optA2 optA3 optA4 optA5 optA6 optA7 optA8 optA9 optA10 optA11 optA12 optA13 optA14 optA15 optA16 optA17 optA18 optA19 optA20 optA21 optA22 optA23 optA24 optA25 optA26 optA27 optA28 optA29",
"timestamp": 1
},
"id": "e3",
"parentId": "e2",
"timestamp": "2025-01-01T00:00:03.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "Option A analysis anal0 anal1 anal2 anal3 anal4 anal5 anal6 anal7 anal8 anal9 anal10 anal11 anal12 anal13 anal14 anal15 anal16 anal17 anal18 anal19 anal20 anal21 anal22 anal23 anal24 anal25 anal26 anal27 anal28 anal29 anal30 anal31 anal32 anal33 anal34 anal35 anal36 anal37 anal38 anal39 anal40 anal41 anal42 anal43 anal44 anal45 anal46 anal47 anal48 anal49 anal50 anal51 anal52 anal53 anal54 anal55 anal56 anal57 anal58 anal59"
},
{
"type": "toolCall",
"id": "b1",
"name": "read",
"arguments": {
"path": "lib/a.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 400,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 450,
"cost": {
"input": 0.0004,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0009
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e4",
"parentId": "e3",
"timestamp": "2025-01-01T00:00:04.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "b1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "contents of a"
}
],
"isError": false,
"timestamp": 3
},
"id": "e5",
"parentId": "e4",
"timestamp": "2025-01-01T00:00:05.000Z"
},
{
"type": "branch_summary",
"fromId": "zzz",
"summary": "Earlier exploration of option Z",
"details": {
"readFiles": [
"lib/z.ts"
],
"modifiedFiles": [
"lib/zz.ts"
]
},
"id": "e6",
"parentId": "e5",
"timestamp": "2025-01-01T00:00:06.000Z"
},
{
"type": "branch_summary",
"fromId": "yyy",
"summary": "Hooked summary",
"details": {
"readFiles": [
"hook/r.ts"
]
},
"fromHook": true,
"id": "e7",
"parentId": "e6",
"timestamp": "2025-01-01T00:00:07.000Z"
},
{
"type": "compaction",
"summary": "Compacted part of A",
"firstKeptEntryId": "e2",
"tokensBefore": 500,
"id": "e8",
"parentId": "e7",
"timestamp": "2025-01-01T00:00:08.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "b2",
"name": "edit",
"arguments": {
"path": "lib/a.ts"
}
},
{
"type": "text",
"text": "Edited A ed0 ed1 ed2 ed3 ed4 ed5 ed6 ed7 ed8 ed9 ed10 ed11 ed12 ed13 ed14 ed15 ed16 ed17 ed18 ed19 ed20 ed21 ed22 ed23 ed24 ed25 ed26 ed27 ed28 ed29"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 700,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 760,
"cost": {
"input": 0.0007,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0013
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e9",
"parentId": "e8",
"timestamp": "2025-01-01T00:00:09.000Z"
},
{
"type": "custom_message",
"customType": "hint",
"content": [
{
"type": "text",
"text": "custom block"
},
{
"type": "image",
"data": "BB",
"mimeType": "image/png"
}
],
"display": false,
"id": "e10",
"parentId": "e9",
"timestamp": "2025-01-01T00:00:10.000Z"
},
{
"type": "session_info",
"name": "named",
"id": "e11",
"parentId": "e10",
"timestamp": "2025-01-01T00:00:11.000Z"
},
{
"type": "message",
"message": {
"role": "user",
"content": "Explore option B instead",
"timestamp": 1
},
"id": "e12",
"parentId": "e2",
"timestamp": "2025-01-01T00:00:12.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "B"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 150,
"output": 5,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 155,
"cost": {
"input": 0.00015,
"output": 0.00005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.00019999999999999998
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e13",
"parentId": "e12",
"timestamp": "2025-01-01T00:00:13.000Z"
}
],
"messageTokens": [
4,
3,
6,
1
],
"rawMessageTokens": [
4,
3,
54,
113,
4,
43,
6,
1
],
"contextEstimate": {
"tokens": 155,
"usageTokens": 155,
"trailingTokens": 0,
"lastUsageIndex": 3
},
"projectedEstimate": {
"tokens": 155,
"usageTokens": 155,
"trailingTokens": 0,
"lastUsageIndex": 3
},
"lastAssistantUsage": {
"input": 150,
"output": 5,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 155,
"cost": {
"input": 0.00015,
"output": 0.00005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.00019999999999999998
}
},
"serialized": "[User]: root question\n\n[Assistant]: root answer\n\n[User]: Explore option A optA0 optA1 optA2 optA3 optA4 optA5 optA6 optA7 optA8 optA9 optA10 optA11 optA12 optA13 optA14 optA15 optA16 optA17 optA18 optA19 optA20 optA21 optA22 optA23 optA24 optA25 optA26 optA27 optA28 optA29\n\n[Assistant]: Option A analysis anal0 anal1 anal2 anal3 anal4 anal5 anal6 anal7 anal8 anal9 anal10 anal11 anal12 anal13 anal14 anal15 anal16 anal17 anal18 anal19 anal20 anal21 anal22 anal23 anal24 anal25 anal26 anal27 anal28 anal29 anal30 anal31 anal32 anal33 anal34 anal35 anal36 anal37 anal38 anal39 anal40 anal41 anal42 anal43 anal44 anal45 anal46 anal47 anal48 anal49 anal50 anal51 anal52 anal53 anal54 anal55 anal56 anal57 anal58 anal59\n\n[Assistant tool calls]: read(path=\"lib/a.ts\")\n\n[Tool result]: contents of a\n\n[Assistant]: Edited A ed0 ed1 ed2 ed3 ed4 ed5 ed6 ed7 ed8 ed9 ed10 ed11 ed12 ed13 ed14 ed15 ed16 ed17 ed18 ed19 ed20 ed21 ed22 ed23 ed24 ed25 ed26 ed27 ed28 ed29\n\n[Assistant tool calls]: edit(path=\"lib/a.ts\")\n\n[User]: Explore option B instead\n\n[Assistant]: B",
"cutPoints": [
{
"keep": 0,
"result": {
"firstKeptEntryIndex": 12,
"turnStartIndex": 11,
"isSplitTurn": true
}
},
{
"keep": 1,
"result": {
"firstKeptEntryIndex": 12,
"turnStartIndex": 11,
"isSplitTurn": true
}
},
{
"keep": 20,
"result": {
"firstKeptEntryIndex": 9,
"turnStartIndex": -1,
"isSplitTurn": false
}
},
{
"keep": 50,
"result": {
"firstKeptEntryIndex": 9,
"turnStartIndex": -1,
"isSplitTurn": false
}
},
{
"keep": 150,
"result": {
"firstKeptEntryIndex": 9,
"turnStartIndex": -1,
"isSplitTurn": false
}
},
{
"keep": 400,
"result": {
"firstKeptEntryIndex": 9,
"turnStartIndex": -1,
"isSplitTurn": false
}
},
{
"keep": 900,
"result": {
"firstKeptEntryIndex": 9,
"turnStartIndex": -1,
"isSplitTurn": false
}
},
{
"keep": 1500,
"result": {
"firstKeptEntryIndex": 0,
"turnStartIndex": -1,
"isSplitTurn": false
}
},
{
"keep": 3000,
"result": {
"firstKeptEntryIndex": 0,
"turnStartIndex": -1,
"isSplitTurn": false
}
},
{
"keep": 100000,
"result": {
"firstKeptEntryIndex": 0,
"turnStartIndex": -1,
"isSplitTurn": false
}
}
],
"turnStarts": [
0,
0,
2,
2,
2,
5,
6,
6,
6,
9,
9,
11,
11
],
"preparations": [
{
"keep": 0,
"prep": {
"firstKeptEntryId": "e13",
"messagesToSummarize": [
{
"role": "user",
"content": "root question",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "root answer"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 100,
"output": 10,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 110,
"cost": {
"input": 0.0001,
"output": 0.0001,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0002
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"turnPrefixMessages": [
{
"role": "user",
"content": "Explore option B instead",
"timestamp": 1
}
],
"isSplitTurn": true,
"tokensBefore": 155,
"previousSummary": null,
"fileOps": {
"read": [],
"written": [],
"edited": []
}
}
},
{
"keep": 1,
"prep": {
"firstKeptEntryId": "e13",
"messagesToSummarize": [
{
"role": "user",
"content": "root question",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "root answer"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 100,
"output": 10,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 110,
"cost": {
"input": 0.0001,
"output": 0.0001,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0002
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"turnPrefixMessages": [
{
"role": "user",
"content": "Explore option B instead",
"timestamp": 1
}
],
"isSplitTurn": true,
"tokensBefore": 155,
"previousSummary": null,
"fileOps": {
"read": [],
"written": [],
"edited": []
}
}
},
{
"keep": 20,
"prep": null
},
{
"keep": 50,
"prep": null
},
{
"keep": 150,
"prep": null
},
{
"keep": 400,
"prep": null
},
{
"keep": 900,
"prep": null
},
{
"keep": 1500,
"prep": null
},
{
"keep": 3000,
"prep": null
},
{
"keep": 100000,
"prep": null
}
],
"branchPrep": [
{
"budget": 0,
"messages": [
{
"role": "user",
"content": "root question",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "root answer"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 100,
"output": 10,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 110,
"cost": {
"input": 0.0001,
"output": 0.0001,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0002
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "user",
"content": "Explore option A optA0 optA1 optA2 optA3 optA4 optA5 optA6 optA7 optA8 optA9 optA10 optA11 optA12 optA13 optA14 optA15 optA16 optA17 optA18 optA19 optA20 optA21 optA22 optA23 optA24 optA25 optA26 optA27 optA28 optA29",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Option A analysis anal0 anal1 anal2 anal3 anal4 anal5 anal6 anal7 anal8 anal9 anal10 anal11 anal12 anal13 anal14 anal15 anal16 anal17 anal18 anal19 anal20 anal21 anal22 anal23 anal24 anal25 anal26 anal27 anal28 anal29 anal30 anal31 anal32 anal33 anal34 anal35 anal36 anal37 anal38 anal39 anal40 anal41 anal42 anal43 anal44 anal45 anal46 anal47 anal48 anal49 anal50 anal51 anal52 anal53 anal54 anal55 anal56 anal57 anal58 anal59"
},
{
"type": "toolCall",
"id": "b1",
"name": "read",
"arguments": {
"path": "lib/a.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 400,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 450,
"cost": {
"input": 0.0004,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0009
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "branchSummary",
"summary": "Earlier exploration of option Z",
"fromId": "zzz",
"timestamp": 1735689606000
},
{
"role": "branchSummary",
"summary": "Hooked summary",
"fromId": "yyy",
"timestamp": 1735689607000
},
{
"role": "compactionSummary",
"summary": "Compacted part of A",
"tokensBefore": 500,
"timestamp": 1735689608000
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "b2",
"name": "edit",
"arguments": {
"path": "lib/a.ts"
}
},
{
"type": "text",
"text": "Edited A ed0 ed1 ed2 ed3 ed4 ed5 ed6 ed7 ed8 ed9 ed10 ed11 ed12 ed13 ed14 ed15 ed16 ed17 ed18 ed19 ed20 ed21 ed22 ed23 ed24 ed25 ed26 ed27 ed28 ed29"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 700,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 760,
"cost": {
"input": 0.0007,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0013
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "custom",
"customType": "hint",
"content": [
{
"type": "text",
"text": "custom block"
},
{
"type": "image",
"data": "BB",
"mimeType": "image/png"
}
],
"display": false,
"timestamp": 1735689610000
},
{
"role": "user",
"content": "Explore option B instead",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "B"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 150,
"output": 5,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 155,
"cost": {
"input": 0.00015,
"output": 0.00005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.00019999999999999998
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"totalTokens": 1444,
"fileOps": {
"read": [
"lib/z.ts",
"lib/a.ts"
],
"written": [],
"edited": [
"lib/zz.ts",
"lib/a.ts"
]
}
},
{
"budget": 30,
"messages": [
{
"role": "user",
"content": "Explore option B instead",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "B"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 150,
"output": 5,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 155,
"cost": {
"input": 0.00015,
"output": 0.00005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.00019999999999999998
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"totalTokens": 7,
"fileOps": {
"read": [
"lib/z.ts"
],
"written": [],
"edited": [
"lib/zz.ts"
]
}
},
{
"budget": 120,
"messages": [
{
"role": "user",
"content": "Explore option B instead",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "B"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 150,
"output": 5,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 155,
"cost": {
"input": 0.00015,
"output": 0.00005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.00019999999999999998
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"totalTokens": 7,
"fileOps": {
"read": [
"lib/z.ts"
],
"written": [],
"edited": [
"lib/zz.ts"
]
}
},
{
"budget": 400,
"messages": [
{
"role": "user",
"content": "Explore option B instead",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "B"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 150,
"output": 5,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 155,
"cost": {
"input": 0.00015,
"output": 0.00005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.00019999999999999998
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"totalTokens": 7,
"fileOps": {
"read": [
"lib/z.ts"
],
"written": [],
"edited": [
"lib/zz.ts"
]
}
},
{
"budget": 2000,
"messages": [
{
"role": "user",
"content": "root question",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "root answer"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 100,
"output": 10,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 110,
"cost": {
"input": 0.0001,
"output": 0.0001,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0002
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "user",
"content": "Explore option A optA0 optA1 optA2 optA3 optA4 optA5 optA6 optA7 optA8 optA9 optA10 optA11 optA12 optA13 optA14 optA15 optA16 optA17 optA18 optA19 optA20 optA21 optA22 optA23 optA24 optA25 optA26 optA27 optA28 optA29",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Option A analysis anal0 anal1 anal2 anal3 anal4 anal5 anal6 anal7 anal8 anal9 anal10 anal11 anal12 anal13 anal14 anal15 anal16 anal17 anal18 anal19 anal20 anal21 anal22 anal23 anal24 anal25 anal26 anal27 anal28 anal29 anal30 anal31 anal32 anal33 anal34 anal35 anal36 anal37 anal38 anal39 anal40 anal41 anal42 anal43 anal44 anal45 anal46 anal47 anal48 anal49 anal50 anal51 anal52 anal53 anal54 anal55 anal56 anal57 anal58 anal59"
},
{
"type": "toolCall",
"id": "b1",
"name": "read",
"arguments": {
"path": "lib/a.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 400,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 450,
"cost": {
"input": 0.0004,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0009
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "branchSummary",
"summary": "Earlier exploration of option Z",
"fromId": "zzz",
"timestamp": 1735689606000
},
{
"role": "branchSummary",
"summary": "Hooked summary",
"fromId": "yyy",
"timestamp": 1735689607000
},
{
"role": "compactionSummary",
"summary": "Compacted part of A",
"tokensBefore": 500,
"timestamp": 1735689608000
},
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "b2",
"name": "edit",
"arguments": {
"path": "lib/a.ts"
}
},
{
"type": "text",
"text": "Edited A ed0 ed1 ed2 ed3 ed4 ed5 ed6 ed7 ed8 ed9 ed10 ed11 ed12 ed13 ed14 ed15 ed16 ed17 ed18 ed19 ed20 ed21 ed22 ed23 ed24 ed25 ed26 ed27 ed28 ed29"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 700,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 760,
"cost": {
"input": 0.0007,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0013
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "custom",
"customType": "hint",
"content": [
{
"type": "text",
"text": "custom block"
},
{
"type": "image",
"data": "BB",
"mimeType": "image/png"
}
],
"display": false,
"timestamp": 1735689610000
},
{
"role": "user",
"content": "Explore option B instead",
"timestamp": 1
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "B"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 150,
"output": 5,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 155,
"cost": {
"input": 0.00015,
"output": 0.00005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.00019999999999999998
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"totalTokens": 1444,
"fileOps": {
"read": [
"lib/z.ts",
"lib/a.ts"
],
"written": [],
"edited": [
"lib/zz.ts",
"lib/a.ts"
]
}
}
]
}
},
"summaryBudget": [
{
"budget": 10,
"entries": [
{
"type": "branch_summary",
"fromId": "x",
"summary": "ssssssssssss",
"id": "e1",
"parentId": null,
"timestamp": "2025-01-01T00:00:01.000Z"
},
{
"type": "compaction",
"summary": "cccccccccccc",
"firstKeptEntryId": "e1",
"tokensBefore": 1,
"id": "e2",
"parentId": "e1",
"timestamp": "2025-01-01T00:00:02.000Z"
},
{
"type": "message",
"message": {
"role": "user",
"content": "uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu",
"timestamp": 1
},
"id": "e3",
"parentId": "e2",
"timestamp": "2025-01-01T00:00:03.000Z"
}
],
"messages": [
{
"role": "user",
"content": "uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu",
"timestamp": 1
}
]
},
{
"budget": 11,
"entries": [
{
"type": "branch_summary",
"fromId": "x",
"summary": "ssssssssssss",
"id": "e1",
"parentId": null,
"timestamp": "2025-01-01T00:00:01.000Z"
},
{
"type": "compaction",
"summary": "cccccccccccc",
"firstKeptEntryId": "e1",
"tokensBefore": 1,
"id": "e2",
"parentId": "e1",
"timestamp": "2025-01-01T00:00:02.000Z"
},
{
"type": "message",
"message": {
"role": "user",
"content": "uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu",
"timestamp": 1
},
"id": "e3",
"parentId": "e2",
"timestamp": "2025-01-01T00:00:03.000Z"
}
],
"messages": [
{
"role": "compactionSummary",
"summary": "cccccccccccc",
"tokensBefore": 1,
"timestamp": 1735689602000
},
{
"role": "user",
"content": "uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu",
"timestamp": 1
}
]
},
{
"budget": 12,
"entries": [
{
"type": "branch_summary",
"fromId": "x",
"summary": "ssssssssssss",
"id": "e1",
"parentId": null,
"timestamp": "2025-01-01T00:00:01.000Z"
},
{
"type": "compaction",
"summary": "cccccccccccc",
"firstKeptEntryId": "e1",
"tokensBefore": 1,
"id": "e2",
"parentId": "e1",
"timestamp": "2025-01-01T00:00:02.000Z"
},
{
"type": "message",
"message": {
"role": "user",
"content": "uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu",
"timestamp": 1
},
"id": "e3",
"parentId": "e2",
"timestamp": "2025-01-01T00:00:03.000Z"
}
],
"messages": [
{
"role": "compactionSummary",
"summary": "cccccccccccc",
"tokensBefore": 1,
"timestamp": 1735689602000
},
{
"role": "user",
"content": "uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu",
"timestamp": 1
}
]
},
{
"budget": 13,
"entries": [
{
"type": "branch_summary",
"fromId": "x",
"summary": "ssssssssssss",
"id": "e1",
"parentId": null,
"timestamp": "2025-01-01T00:00:01.000Z"
},
{
"type": "compaction",
"summary": "cccccccccccc",
"firstKeptEntryId": "e1",
"tokensBefore": 1,
"id": "e2",
"parentId": "e1",
"timestamp": "2025-01-01T00:00:02.000Z"
},
{
"type": "message",
"message": {
"role": "user",
"content": "uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu",
"timestamp": 1
},
"id": "e3",
"parentId": "e2",
"timestamp": "2025-01-01T00:00:03.000Z"
}
],
"messages": [
{
"role": "compactionSummary",
"summary": "cccccccccccc",
"tokensBefore": 1,
"timestamp": 1735689602000
},
{
"role": "user",
"content": "uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu",
"timestamp": 1
}
]
}
],
"shouldCompact": [
{
"tokens": 100,
"window": 1000,
"reserve": 100,
"enabled": true,
"result": false
},
{
"tokens": 900,
"window": 1000,
"reserve": 100,
"enabled": true,
"result": false
},
{
"tokens": 901,
"window": 1000,
"reserve": 100,
"enabled": true,
"result": true
},
{
"tokens": 901,
"window": 1000,
"reserve": 100,
"enabled": false,
"result": false
},
{
"tokens": 0,
"window": 0,
"reserve": 0,
"enabled": true,
"result": false
},
{
"tokens": 5,
"window": 0,
"reserve": 10,
"enabled": true,
"result": true
}
],
"fileLists": [
{
"ops": {
"read": [
"b",
"a",
"z/ü",
"z/😀",
"z/ï¿¿"
],
"written": [],
"edited": []
},
"lists": {
"readFiles": [
"a",
"b",
"z/ü",
"z/😀",
"z/ï¿¿"
],
"modifiedFiles": []
},
"formatted": "\n\n<read-files>\na\nb\nz/ü\nz/😀\nz/￿\n</read-files>"
},
{
"ops": {
"read": [
"a",
"b",
"c"
],
"written": [
"b"
],
"edited": [
"c",
"d"
]
},
"lists": {
"readFiles": [
"a"
],
"modifiedFiles": [
"b",
"c",
"d"
]
},
"formatted": "\n\n<read-files>\na\n</read-files>\n\n<modified-files>\nb\nc\nd\n</modified-files>"
},
{
"ops": {
"read": [],
"written": [],
"edited": []
},
"lists": {
"readFiles": [],
"modifiedFiles": []
},
"formatted": ""
},
{
"ops": {
"read": [],
"written": [
"w"
],
"edited": []
},
"lists": {
"readFiles": [],
"modifiedFiles": [
"w"
]
},
"formatted": "\n\n<modified-files>\nw\n</modified-files>"
}
],
"compactCases": [
{
"name": "plain",
"transcript": "basic",
"keep": 400,
"responses": [
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "SUMMARY A"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"model": {
"id": "sum-1",
"name": "Summarizer",
"api": "anthropic-messages",
"provider": "anthropic",
"baseUrl": "https://example.invalid",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 1,
"output": 2,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 3000,
"maxTokens": 6000
},
"reserveTokens": 1000,
"requests": [
{
"model": "sum-1",
"context": {
"messages": [
{
"role": "system",
"content": "You are a context summarization assistant. Your task is to read a conversation between a user and an AI assistant, then produce a structured summary following the exact format specified.\n\nDo NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.",
"timestamp": 0
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "<conversation>\n[User]: Refactor the parser in src/parse.ts please ctx0 ctx1 ctx2 ctx3 ctx4 ctx5 ctx6 ctx7 ctx8 ctx9 ctx10 ctx11 ctx12 ctx13 ctx14 ctx15 ctx16 ctx17 ctx18 ctx19 ctx20 ctx21 ctx22 ctx23 ctx24 ctx25 ctx26 ctx27 ctx28 ctx29\n\n[Assistant thinking]: plan: read first\n\n[Assistant]: Reading.\n\n[Assistant tool calls]: read(path=\"src/parse.ts\")\n\n[Tool result]: line0 line1 line2 line3 line4 line5 line6 line7 line8 line9 line10 line11 line12 line13 line14 line15 line16 line17 line18 line19 line20 line21 line22 line23 line24 line25 line26 line27 line28 line29 line30 line31 line32 line33 line34 line35 line36 line37 line38 line39 line40 line41 line42 line43 line44 line45 line46 line47 line48 line49 line50 line51 line52 line53 line54 line55 line56 line57 line58 line59 line60 line61 line62 line63 line64 line65 line66 line67 line68 line69 line70 line71 line72 line73 line74 line75 line76 line77 line78 line79 line80 line81 line82 line83 line84 line85 line86 line87 line88 line89 line90 line91 line92 line93 line94 line95 line96 line97 line98 line99 line100 line101 line102 line103 line104 line105 line106 line107 line108 line109 line110 line111 line112 line113 line114 line115 line116 line117 line118 line119 line120 line121 line122 line123 line124 line125 line126 line127 line128 line129 line130 line131 line132 line133 line134 line135 line136 line137 line138 line139 line140 line141 line142 line143 line144 line145 line146 line147 line148 line149 line150 line151 line152 line153 line154 line155 line156 line157 line158 line159 line160 line161 line162 line163 line164 line165 line166 line167 line168 line169 line170 line171 line172 line173 line174 line175 line176 line177 line178 line179 line180 line181 line182 line183 line184 line185 line186 line187 line188 line189 line190 line191 line192 line193 line194 line195 line196 line197 line198 line199 line200 line201 line202 line203 line204 line205 line206 line207 line208 line209 line210 line211 line212 line213 line214 line215 line216 line217 line218 line219 line220 line221 line222 line223 line224 line225 line226 line227 line228 line229 line230 line231 line232 line233 line234 line235 line236 line237 line238 line239 line240 line241 line242 line243 line244 line245 line246 line247 line248 line249 line250 line251 line252 line253 line254 line255 line256 line257 line258 line259 line260 line261 line262 line26\n\n[... 3489 more characters truncated]\n\n[Assistant tool calls]: edit(path=\"src/parse.ts\", oldText=\"a\", newText=\"b\"); write(path=\"src/new.ts\", content=\"x\")\n\n[Tool result]: ok\n\n[Tool result]: ok\n\n[User]: Ran `npm test`\n```\nout0 out1 out2 out3 out4 out5 out6 out7 out8 out9 out10 out11 out12 out13 out14 out15 out16 out17 out18 out19 out20 out21 out22 out23 out24 out25 out26 out27 out28 out29 out30 out31 out32 out33 out34 out35 out36 out37 out38 out39\n```\n\nCommand exited with code 1\n\n[Output truncated. Full output: /tmp/full.log]\n\n[User]: Ran `pwd`\n```\n/w\n```\n\n[User]: Ran `sleep 9`\n(no output)\n\n(command cancelled)\n\n[User]: Remember the 80 column limit 🙂\n\n[User]: Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19\n\n[Assistant tool calls]: read(path=\"docs/README.md\"); grep(pattern=\"x\", path=\"src\")\n\n[Tool result]: readme body\n\n[Tool result]: match\n\n[Assistant]: Done with step one.\nSecond block.\n</conversation>\n\nThe messages above are a conversation to summarize. Create a structured context checkpoint summary that another LLM will use to continue the work.\n\nUse this EXACT format:\n\n## Goal\n[What is the user trying to accomplish? Can be multiple items if the session covers different tasks.]\n\n## Constraints & Preferences\n- [Any constraints, preferences, or requirements mentioned by user]\n- [Or \"(none)\" if none were mentioned]\n\n## Progress\n### Done\n- [x] [Completed tasks/changes]\n\n### In Progress\n- [ ] [Current work]\n\n### Blocked\n- [Issues preventing progress, if any]\n\n## Key Decisions\n- **[Decision]**: [Brief rationale]\n\n## Next Steps\n1. [Ordered list of what should happen next]\n\n## Critical Context\n- [Any data, examples, or references needed to continue]\n- [Or \"(none)\" if not applicable]\n\nKeep each section concise. Preserve exact file paths, function names, and error messages."
}
],
"timestamp": 1760000000000
}
]
},
"options": {
"maxTokens": 800,
"apiKey": "key",
"sessionId": "<fresh>",
"cacheRetention": "none"
}
}
],
"outcome": {
"ok": {
"summary": "SUMMARY A\n\n<read-files>\ndocs/README.md\n</read-files>\n\n<modified-files>\nsrc/new.ts\nsrc/parse.ts\n</modified-files>",
"firstKeptEntryId": "e20",
"tokensBefore": 5292,
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"details": {
"readFiles": [
"docs/README.md"
],
"modifiedFiles": [
"src/new.ts",
"src/parse.ts"
]
}
}
}
},
{
"name": "custom+thinking",
"transcript": "basic",
"keep": 400,
"customInstructions": "focus on tests",
"thinkingLevel": "high",
"sessionId": "sess-1",
"responses": [
{
"role": "assistant",
"content": [
{
"type": "thinking",
"thinking": "hm"
},
{
"type": "text",
"text": "S1"
},
{
"type": "text",
"text": "S2"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"model": {
"id": "sum-1",
"name": "Summarizer",
"api": "anthropic-messages",
"provider": "anthropic",
"baseUrl": "https://example.invalid",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 1,
"output": 2,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 3000,
"maxTokens": 6000
},
"reserveTokens": 1000,
"requests": [
{
"model": "sum-1",
"context": {
"messages": [
{
"role": "system",
"content": "You are a context summarization assistant. Your task is to read a conversation between a user and an AI assistant, then produce a structured summary following the exact format specified.\n\nDo NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.",
"timestamp": 0
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "<conversation>\n[User]: Refactor the parser in src/parse.ts please ctx0 ctx1 ctx2 ctx3 ctx4 ctx5 ctx6 ctx7 ctx8 ctx9 ctx10 ctx11 ctx12 ctx13 ctx14 ctx15 ctx16 ctx17 ctx18 ctx19 ctx20 ctx21 ctx22 ctx23 ctx24 ctx25 ctx26 ctx27 ctx28 ctx29\n\n[Assistant thinking]: plan: read first\n\n[Assistant]: Reading.\n\n[Assistant tool calls]: read(path=\"src/parse.ts\")\n\n[Tool result]: line0 line1 line2 line3 line4 line5 line6 line7 line8 line9 line10 line11 line12 line13 line14 line15 line16 line17 line18 line19 line20 line21 line22 line23 line24 line25 line26 line27 line28 line29 line30 line31 line32 line33 line34 line35 line36 line37 line38 line39 line40 line41 line42 line43 line44 line45 line46 line47 line48 line49 line50 line51 line52 line53 line54 line55 line56 line57 line58 line59 line60 line61 line62 line63 line64 line65 line66 line67 line68 line69 line70 line71 line72 line73 line74 line75 line76 line77 line78 line79 line80 line81 line82 line83 line84 line85 line86 line87 line88 line89 line90 line91 line92 line93 line94 line95 line96 line97 line98 line99 line100 line101 line102 line103 line104 line105 line106 line107 line108 line109 line110 line111 line112 line113 line114 line115 line116 line117 line118 line119 line120 line121 line122 line123 line124 line125 line126 line127 line128 line129 line130 line131 line132 line133 line134 line135 line136 line137 line138 line139 line140 line141 line142 line143 line144 line145 line146 line147 line148 line149 line150 line151 line152 line153 line154 line155 line156 line157 line158 line159 line160 line161 line162 line163 line164 line165 line166 line167 line168 line169 line170 line171 line172 line173 line174 line175 line176 line177 line178 line179 line180 line181 line182 line183 line184 line185 line186 line187 line188 line189 line190 line191 line192 line193 line194 line195 line196 line197 line198 line199 line200 line201 line202 line203 line204 line205 line206 line207 line208 line209 line210 line211 line212 line213 line214 line215 line216 line217 line218 line219 line220 line221 line222 line223 line224 line225 line226 line227 line228 line229 line230 line231 line232 line233 line234 line235 line236 line237 line238 line239 line240 line241 line242 line243 line244 line245 line246 line247 line248 line249 line250 line251 line252 line253 line254 line255 line256 line257 line258 line259 line260 line261 line262 line26\n\n[... 3489 more characters truncated]\n\n[Assistant tool calls]: edit(path=\"src/parse.ts\", oldText=\"a\", newText=\"b\"); write(path=\"src/new.ts\", content=\"x\")\n\n[Tool result]: ok\n\n[Tool result]: ok\n\n[User]: Ran `npm test`\n```\nout0 out1 out2 out3 out4 out5 out6 out7 out8 out9 out10 out11 out12 out13 out14 out15 out16 out17 out18 out19 out20 out21 out22 out23 out24 out25 out26 out27 out28 out29 out30 out31 out32 out33 out34 out35 out36 out37 out38 out39\n```\n\nCommand exited with code 1\n\n[Output truncated. Full output: /tmp/full.log]\n\n[User]: Ran `pwd`\n```\n/w\n```\n\n[User]: Ran `sleep 9`\n(no output)\n\n(command cancelled)\n\n[User]: Remember the 80 column limit 🙂\n\n[User]: Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19\n\n[Assistant tool calls]: read(path=\"docs/README.md\"); grep(pattern=\"x\", path=\"src\")\n\n[Tool result]: readme body\n\n[Tool result]: match\n\n[Assistant]: Done with step one.\nSecond block.\n</conversation>\n\nThe messages above are a conversation to summarize. Create a structured context checkpoint summary that another LLM will use to continue the work.\n\nUse this EXACT format:\n\n## Goal\n[What is the user trying to accomplish? Can be multiple items if the session covers different tasks.]\n\n## Constraints & Preferences\n- [Any constraints, preferences, or requirements mentioned by user]\n- [Or \"(none)\" if none were mentioned]\n\n## Progress\n### Done\n- [x] [Completed tasks/changes]\n\n### In Progress\n- [ ] [Current work]\n\n### Blocked\n- [Issues preventing progress, if any]\n\n## Key Decisions\n- **[Decision]**: [Brief rationale]\n\n## Next Steps\n1. [Ordered list of what should happen next]\n\n## Critical Context\n- [Any data, examples, or references needed to continue]\n- [Or \"(none)\" if not applicable]\n\nKeep each section concise. Preserve exact file paths, function names, and error messages.\n\nAdditional focus: focus on tests"
}
],
"timestamp": 1760000000000
}
]
},
"options": {
"maxTokens": 800,
"apiKey": "key",
"sessionId": "sess-1",
"reasoning": "high",
"cacheRetention": "none"
}
}
],
"outcome": {
"ok": {
"summary": "S1\nS2\n\n<read-files>\ndocs/README.md\n</read-files>\n\n<modified-files>\nsrc/new.ts\nsrc/parse.ts\n</modified-files>",
"firstKeptEntryId": "e20",
"tokensBefore": 5292,
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"details": {
"readFiles": [
"docs/README.md"
],
"modifiedFiles": [
"src/new.ts",
"src/parse.ts"
]
}
}
}
},
{
"name": "thinking-off",
"transcript": "basic",
"keep": 400,
"thinkingLevel": "off",
"responses": [
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "X"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"model": {
"id": "sum-1",
"name": "Summarizer",
"api": "anthropic-messages",
"provider": "anthropic",
"baseUrl": "https://example.invalid",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 1,
"output": 2,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 3000,
"maxTokens": 6000
},
"reserveTokens": 1000,
"requests": [
{
"model": "sum-1",
"context": {
"messages": [
{
"role": "system",
"content": "You are a context summarization assistant. Your task is to read a conversation between a user and an AI assistant, then produce a structured summary following the exact format specified.\n\nDo NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.",
"timestamp": 0
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "<conversation>\n[User]: Refactor the parser in src/parse.ts please ctx0 ctx1 ctx2 ctx3 ctx4 ctx5 ctx6 ctx7 ctx8 ctx9 ctx10 ctx11 ctx12 ctx13 ctx14 ctx15 ctx16 ctx17 ctx18 ctx19 ctx20 ctx21 ctx22 ctx23 ctx24 ctx25 ctx26 ctx27 ctx28 ctx29\n\n[Assistant thinking]: plan: read first\n\n[Assistant]: Reading.\n\n[Assistant tool calls]: read(path=\"src/parse.ts\")\n\n[Tool result]: line0 line1 line2 line3 line4 line5 line6 line7 line8 line9 line10 line11 line12 line13 line14 line15 line16 line17 line18 line19 line20 line21 line22 line23 line24 line25 line26 line27 line28 line29 line30 line31 line32 line33 line34 line35 line36 line37 line38 line39 line40 line41 line42 line43 line44 line45 line46 line47 line48 line49 line50 line51 line52 line53 line54 line55 line56 line57 line58 line59 line60 line61 line62 line63 line64 line65 line66 line67 line68 line69 line70 line71 line72 line73 line74 line75 line76 line77 line78 line79 line80 line81 line82 line83 line84 line85 line86 line87 line88 line89 line90 line91 line92 line93 line94 line95 line96 line97 line98 line99 line100 line101 line102 line103 line104 line105 line106 line107 line108 line109 line110 line111 line112 line113 line114 line115 line116 line117 line118 line119 line120 line121 line122 line123 line124 line125 line126 line127 line128 line129 line130 line131 line132 line133 line134 line135 line136 line137 line138 line139 line140 line141 line142 line143 line144 line145 line146 line147 line148 line149 line150 line151 line152 line153 line154 line155 line156 line157 line158 line159 line160 line161 line162 line163 line164 line165 line166 line167 line168 line169 line170 line171 line172 line173 line174 line175 line176 line177 line178 line179 line180 line181 line182 line183 line184 line185 line186 line187 line188 line189 line190 line191 line192 line193 line194 line195 line196 line197 line198 line199 line200 line201 line202 line203 line204 line205 line206 line207 line208 line209 line210 line211 line212 line213 line214 line215 line216 line217 line218 line219 line220 line221 line222 line223 line224 line225 line226 line227 line228 line229 line230 line231 line232 line233 line234 line235 line236 line237 line238 line239 line240 line241 line242 line243 line244 line245 line246 line247 line248 line249 line250 line251 line252 line253 line254 line255 line256 line257 line258 line259 line260 line261 line262 line26\n\n[... 3489 more characters truncated]\n\n[Assistant tool calls]: edit(path=\"src/parse.ts\", oldText=\"a\", newText=\"b\"); write(path=\"src/new.ts\", content=\"x\")\n\n[Tool result]: ok\n\n[Tool result]: ok\n\n[User]: Ran `npm test`\n```\nout0 out1 out2 out3 out4 out5 out6 out7 out8 out9 out10 out11 out12 out13 out14 out15 out16 out17 out18 out19 out20 out21 out22 out23 out24 out25 out26 out27 out28 out29 out30 out31 out32 out33 out34 out35 out36 out37 out38 out39\n```\n\nCommand exited with code 1\n\n[Output truncated. Full output: /tmp/full.log]\n\n[User]: Ran `pwd`\n```\n/w\n```\n\n[User]: Ran `sleep 9`\n(no output)\n\n(command cancelled)\n\n[User]: Remember the 80 column limit 🙂\n\n[User]: Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19\n\n[Assistant tool calls]: read(path=\"docs/README.md\"); grep(pattern=\"x\", path=\"src\")\n\n[Tool result]: readme body\n\n[Tool result]: match\n\n[Assistant]: Done with step one.\nSecond block.\n</conversation>\n\nThe messages above are a conversation to summarize. Create a structured context checkpoint summary that another LLM will use to continue the work.\n\nUse this EXACT format:\n\n## Goal\n[What is the user trying to accomplish? Can be multiple items if the session covers different tasks.]\n\n## Constraints & Preferences\n- [Any constraints, preferences, or requirements mentioned by user]\n- [Or \"(none)\" if none were mentioned]\n\n## Progress\n### Done\n- [x] [Completed tasks/changes]\n\n### In Progress\n- [ ] [Current work]\n\n### Blocked\n- [Issues preventing progress, if any]\n\n## Key Decisions\n- **[Decision]**: [Brief rationale]\n\n## Next Steps\n1. [Ordered list of what should happen next]\n\n## Critical Context\n- [Any data, examples, or references needed to continue]\n- [Or \"(none)\" if not applicable]\n\nKeep each section concise. Preserve exact file paths, function names, and error messages."
}
],
"timestamp": 1760000000000
}
]
},
"options": {
"maxTokens": 800,
"apiKey": "key",
"sessionId": "<fresh>",
"cacheRetention": "none"
}
}
],
"outcome": {
"ok": {
"summary": "X\n\n<read-files>\ndocs/README.md\n</read-files>\n\n<modified-files>\nsrc/new.ts\nsrc/parse.ts\n</modified-files>",
"firstKeptEntryId": "e20",
"tokensBefore": 5292,
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"details": {
"readFiles": [
"docs/README.md"
],
"modifiedFiles": [
"src/new.ts",
"src/parse.ts"
]
}
}
}
},
{
"name": "no-reasoning-model",
"transcript": "basic",
"keep": 400,
"thinkingLevel": "low",
"model": {
"id": "sum-1",
"name": "Summarizer",
"api": "anthropic-messages",
"provider": "anthropic",
"baseUrl": "https://example.invalid",
"reasoning": false,
"input": [
"text"
],
"cost": {
"input": 1,
"output": 2,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 3000,
"maxTokens": 0
},
"responses": [
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "X"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"reserveTokens": 1000,
"requests": [
{
"model": "sum-1",
"context": {
"messages": [
{
"role": "system",
"content": "You are a context summarization assistant. Your task is to read a conversation between a user and an AI assistant, then produce a structured summary following the exact format specified.\n\nDo NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.",
"timestamp": 0
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "<conversation>\n[User]: Refactor the parser in src/parse.ts please ctx0 ctx1 ctx2 ctx3 ctx4 ctx5 ctx6 ctx7 ctx8 ctx9 ctx10 ctx11 ctx12 ctx13 ctx14 ctx15 ctx16 ctx17 ctx18 ctx19 ctx20 ctx21 ctx22 ctx23 ctx24 ctx25 ctx26 ctx27 ctx28 ctx29\n\n[Assistant thinking]: plan: read first\n\n[Assistant]: Reading.\n\n[Assistant tool calls]: read(path=\"src/parse.ts\")\n\n[Tool result]: line0 line1 line2 line3 line4 line5 line6 line7 line8 line9 line10 line11 line12 line13 line14 line15 line16 line17 line18 line19 line20 line21 line22 line23 line24 line25 line26 line27 line28 line29 line30 line31 line32 line33 line34 line35 line36 line37 line38 line39 line40 line41 line42 line43 line44 line45 line46 line47 line48 line49 line50 line51 line52 line53 line54 line55 line56 line57 line58 line59 line60 line61 line62 line63 line64 line65 line66 line67 line68 line69 line70 line71 line72 line73 line74 line75 line76 line77 line78 line79 line80 line81 line82 line83 line84 line85 line86 line87 line88 line89 line90 line91 line92 line93 line94 line95 line96 line97 line98 line99 line100 line101 line102 line103 line104 line105 line106 line107 line108 line109 line110 line111 line112 line113 line114 line115 line116 line117 line118 line119 line120 line121 line122 line123 line124 line125 line126 line127 line128 line129 line130 line131 line132 line133 line134 line135 line136 line137 line138 line139 line140 line141 line142 line143 line144 line145 line146 line147 line148 line149 line150 line151 line152 line153 line154 line155 line156 line157 line158 line159 line160 line161 line162 line163 line164 line165 line166 line167 line168 line169 line170 line171 line172 line173 line174 line175 line176 line177 line178 line179 line180 line181 line182 line183 line184 line185 line186 line187 line188 line189 line190 line191 line192 line193 line194 line195 line196 line197 line198 line199 line200 line201 line202 line203 line204 line205 line206 line207 line208 line209 line210 line211 line212 line213 line214 line215 line216 line217 line218 line219 line220 line221 line222 line223 line224 line225 line226 line227 line228 line229 line230 line231 line232 line233 line234 line235 line236 line237 line238 line239 line240 line241 line242 line243 line244 line245 line246 line247 line248 line249 line250 line251 line252 line253 line254 line255 line256 line257 line258 line259 line260 line261 line262 line26\n\n[... 3489 more characters truncated]\n\n[Assistant tool calls]: edit(path=\"src/parse.ts\", oldText=\"a\", newText=\"b\"); write(path=\"src/new.ts\", content=\"x\")\n\n[Tool result]: ok\n\n[Tool result]: ok\n\n[User]: Ran `npm test`\n```\nout0 out1 out2 out3 out4 out5 out6 out7 out8 out9 out10 out11 out12 out13 out14 out15 out16 out17 out18 out19 out20 out21 out22 out23 out24 out25 out26 out27 out28 out29 out30 out31 out32 out33 out34 out35 out36 out37 out38 out39\n```\n\nCommand exited with code 1\n\n[Output truncated. Full output: /tmp/full.log]\n\n[User]: Ran `pwd`\n```\n/w\n```\n\n[User]: Ran `sleep 9`\n(no output)\n\n(command cancelled)\n\n[User]: Remember the 80 column limit 🙂\n\n[User]: Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19\n\n[Assistant tool calls]: read(path=\"docs/README.md\"); grep(pattern=\"x\", path=\"src\")\n\n[Tool result]: readme body\n\n[Tool result]: match\n\n[Assistant]: Done with step one.\nSecond block.\n</conversation>\n\nThe messages above are a conversation to summarize. Create a structured context checkpoint summary that another LLM will use to continue the work.\n\nUse this EXACT format:\n\n## Goal\n[What is the user trying to accomplish? Can be multiple items if the session covers different tasks.]\n\n## Constraints & Preferences\n- [Any constraints, preferences, or requirements mentioned by user]\n- [Or \"(none)\" if none were mentioned]\n\n## Progress\n### Done\n- [x] [Completed tasks/changes]\n\n### In Progress\n- [ ] [Current work]\n\n### Blocked\n- [Issues preventing progress, if any]\n\n## Key Decisions\n- **[Decision]**: [Brief rationale]\n\n## Next Steps\n1. [Ordered list of what should happen next]\n\n## Critical Context\n- [Any data, examples, or references needed to continue]\n- [Or \"(none)\" if not applicable]\n\nKeep each section concise. Preserve exact file paths, function names, and error messages."
}
],
"timestamp": 1760000000000
}
]
},
"options": {
"maxTokens": 800,
"apiKey": "key",
"sessionId": "<fresh>",
"cacheRetention": "none"
}
}
],
"outcome": {
"ok": {
"summary": "X\n\n<read-files>\ndocs/README.md\n</read-files>\n\n<modified-files>\nsrc/new.ts\nsrc/parse.ts\n</modified-files>",
"firstKeptEntryId": "e20",
"tokensBefore": 5292,
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"details": {
"readFiles": [
"docs/README.md"
],
"modifiedFiles": [
"src/new.ts",
"src/parse.ts"
]
}
}
}
},
{
"name": "update",
"transcript": "withCompaction",
"keep": 150,
"responses": [
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "UPDATED"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"model": {
"id": "sum-1",
"name": "Summarizer",
"api": "anthropic-messages",
"provider": "anthropic",
"baseUrl": "https://example.invalid",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 1,
"output": 2,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 3000,
"maxTokens": 6000
},
"reserveTokens": 1000,
"requests": [
{
"model": "sum-1",
"context": {
"messages": [
{
"role": "system",
"content": "You are a context summarization assistant. Your task is to read a conversation between a user and an AI assistant, then produce a structured summary following the exact format specified.\n\nDo NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.",
"timestamp": 0
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "<conversation>\n[User]: Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19\n\n[Assistant tool calls]: read(path=\"docs/README.md\"); grep(pattern=\"x\", path=\"src\")\n\n[Tool result]: readme body\n\n[Tool result]: match\n\n[Assistant]: Done with step one.\nSecond block.\n\n[User]: Look at this screenshot\n\n[Assistant]: I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49\n\n[User]: thanks\n</conversation>\n\n<previous-summary>\n## Goal\nRefactor parser\n</previous-summary>\n\nThe messages above are NEW conversation messages to incorporate into the existing summary provided in <previous-summary> tags.\n\nUpdate the existing structured summary with new information. RULES:\n- PRESERVE all existing information from the previous summary\n- ADD new progress, decisions, and context from the new messages\n- UPDATE the Progress section: move items from \"In Progress\" to \"Done\" when completed\n- UPDATE \"Next Steps\" based on what was accomplished\n- PRESERVE exact file paths, function names, and error messages\n- If something is no longer relevant, you may remove it\n\nUse this EXACT format:\n\n## Goal\n[Preserve existing goals, add new ones if the task expanded]\n\n## Constraints & Preferences\n- [Preserve existing, add new ones discovered]\n\n## Progress\n### Done\n- [x] [Include previously done items AND newly completed items]\n\n### In Progress\n- [ ] [Current work - update based on progress]\n\n### Blocked\n- [Current blockers - remove if resolved]\n\n## Key Decisions\n- **[Decision]**: [Brief rationale] (preserve all previous, add new)\n\n## Next Steps\n1. [Update based on current state]\n\n## Critical Context\n- [Preserve important context, add new if needed]\n\nKeep each section concise. Preserve exact file paths, function names, and error messages."
}
],
"timestamp": 1760000000000
}
]
},
"options": {
"maxTokens": 800,
"apiKey": "key",
"sessionId": "<fresh>",
"cacheRetention": "none"
}
},
{
"model": "sum-1",
"context": {
"messages": [
{
"role": "system",
"content": "You are a context summarization assistant. Your task is to read a conversation between a user and an AI assistant, then produce a structured summary following the exact format specified.\n\nDo NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.",
"timestamp": 0
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "# Conversation\n[User]: continue after0 after1 after2 after3 after4 after5 after6 after7 after8 after9 after10 after11 after12 after13 after14 after15 after16 after17 after18 after19 after20 after21 after22 after23 after24 after25 after26 after27 after28 after29 after30 after31 after32 after33 after34 after35 after36 after37 after38 after39 after40 after41 after42 after43 after44 after45 after46 after47 after48 after49 after50 after51 after52 after53 after54 after55 after56 after57 after58 after59\n\n# Instructions\nThe messages above are earlier context from an ongoing conversation. Later messages are stored separately and do not need to be reconstructed.\n\nCreate a concise checkpoint of the user's request and the progress shown above. This checkpoint will be placed before the later messages so the conversation can continue with the necessary context.\n\n## Original Request\n[What did the user ask for?]\n\n## Progress So Far\n- [Key decisions and work completed in these messages]\n\n## Context Needed to Continue\n- [Information from these messages needed to understand the later work]\n\nOnly summarize information explicitly present above. Do not infer or recreate later messages."
}
],
"timestamp": 1760000000000
}
]
},
"options": {
"maxTokens": 500,
"apiKey": "key",
"sessionId": "<fresh>",
"cacheRetention": "none"
}
}
],
"outcome": {
"ok": {
"summary": "UPDATED\n\n---\n\n**Turn Context (split turn):**\n\nUPDATED\n\n<read-files>\ndocs/README.md\nold/read.ts\nsrc/parse.ts\n</read-files>\n\n<modified-files>\nold/mod.ts\n</modified-files>",
"firstKeptEntryId": "e25",
"tokensBefore": 7650,
"usage": {
"input": 600,
"output": 40,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 640,
"cost": {
"input": 0.0006,
"output": 0.0004,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.001
}
},
"details": {
"readFiles": [
"docs/README.md",
"old/read.ts",
"src/parse.ts"
],
"modifiedFiles": [
"old/mod.ts"
]
}
}
}
},
{
"name": "hooked",
"transcript": "hookedCompaction",
"keep": 150,
"responses": [
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "H"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"model": {
"id": "sum-1",
"name": "Summarizer",
"api": "anthropic-messages",
"provider": "anthropic",
"baseUrl": "https://example.invalid",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 1,
"output": 2,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 3000,
"maxTokens": 6000
},
"reserveTokens": 1000,
"requests": [
{
"model": "sum-1",
"context": {
"messages": [
{
"role": "system",
"content": "You are a context summarization assistant. Your task is to read a conversation between a user and an AI assistant, then produce a structured summary following the exact format specified.\n\nDo NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.",
"timestamp": 0
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "<conversation>\n[User]: Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19\n\n[Assistant tool calls]: read(path=\"docs/README.md\"); grep(pattern=\"x\", path=\"src\")\n\n[Tool result]: readme body\n\n[Tool result]: match\n\n[Assistant]: Done with step one.\nSecond block.\n\n[User]: Look at this screenshot\n\n[Assistant]: I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49\n\n[User]: thanks\n</conversation>\n\n<previous-summary>\n## Goal\nRefactor parser\n</previous-summary>\n\nThe messages above are NEW conversation messages to incorporate into the existing summary provided in <previous-summary> tags.\n\nUpdate the existing structured summary with new information. RULES:\n- PRESERVE all existing information from the previous summary\n- ADD new progress, decisions, and context from the new messages\n- UPDATE the Progress section: move items from \"In Progress\" to \"Done\" when completed\n- UPDATE \"Next Steps\" based on what was accomplished\n- PRESERVE exact file paths, function names, and error messages\n- If something is no longer relevant, you may remove it\n\nUse this EXACT format:\n\n## Goal\n[Preserve existing goals, add new ones if the task expanded]\n\n## Constraints & Preferences\n- [Preserve existing, add new ones discovered]\n\n## Progress\n### Done\n- [x] [Include previously done items AND newly completed items]\n\n### In Progress\n- [ ] [Current work - update based on progress]\n\n### Blocked\n- [Current blockers - remove if resolved]\n\n## Key Decisions\n- **[Decision]**: [Brief rationale] (preserve all previous, add new)\n\n## Next Steps\n1. [Update based on current state]\n\n## Critical Context\n- [Preserve important context, add new if needed]\n\nKeep each section concise. Preserve exact file paths, function names, and error messages."
}
],
"timestamp": 1760000000000
}
]
},
"options": {
"maxTokens": 800,
"apiKey": "key",
"sessionId": "<fresh>",
"cacheRetention": "none"
}
},
{
"model": "sum-1",
"context": {
"messages": [
{
"role": "system",
"content": "You are a context summarization assistant. Your task is to read a conversation between a user and an AI assistant, then produce a structured summary following the exact format specified.\n\nDo NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.",
"timestamp": 0
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "# Conversation\n[User]: continue after0 after1 after2 after3 after4 after5 after6 after7 after8 after9 after10 after11 after12 after13 after14 after15 after16 after17 after18 after19 after20 after21 after22 after23 after24 after25 after26 after27 after28 after29 after30 after31 after32 after33 after34 after35 after36 after37 after38 after39 after40 after41 after42 after43 after44 after45 after46 after47 after48 after49 after50 after51 after52 after53 after54 after55 after56 after57 after58 after59\n\n# Instructions\nThe messages above are earlier context from an ongoing conversation. Later messages are stored separately and do not need to be reconstructed.\n\nCreate a concise checkpoint of the user's request and the progress shown above. This checkpoint will be placed before the later messages so the conversation can continue with the necessary context.\n\n## Original Request\n[What did the user ask for?]\n\n## Progress So Far\n- [Key decisions and work completed in these messages]\n\n## Context Needed to Continue\n- [Information from these messages needed to understand the later work]\n\nOnly summarize information explicitly present above. Do not infer or recreate later messages."
}
],
"timestamp": 1760000000000
}
]
},
"options": {
"maxTokens": 500,
"apiKey": "key",
"sessionId": "<fresh>",
"cacheRetention": "none"
}
}
],
"outcome": {
"ok": {
"summary": "H\n\n---\n\n**Turn Context (split turn):**\n\nH\n\n<read-files>\ndocs/README.md\n</read-files>",
"firstKeptEntryId": "e25",
"tokensBefore": 7650,
"usage": {
"input": 600,
"output": 40,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 640,
"cost": {
"input": 0.0006,
"output": 0.0004,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.001
}
},
"details": {
"readFiles": [
"docs/README.md"
],
"modifiedFiles": []
}
}
}
},
{
"name": "split",
"transcript": "withCompaction",
"keep": 150,
"model": {
"id": "sum-1",
"name": "Summarizer",
"api": "anthropic-messages",
"provider": "anthropic",
"baseUrl": "https://example.invalid",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 1,
"output": 2,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 3000,
"maxTokens": 100
},
"responses": [
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "HISTORY"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
},
"reasoning": 3
},
"stopReason": "stop",
"timestamp": 2,
"usageExtra": {
"reasoning": 3
}
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "PREFIX"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
},
"cacheWrite1h": 2,
"reasoning": 4
},
"stopReason": "stop",
"timestamp": 2,
"usageExtra": {
"cacheWrite1h": 2,
"reasoning": 4
}
}
],
"reserveTokens": 1000,
"requests": [
{
"model": "sum-1",
"context": {
"messages": [
{
"role": "system",
"content": "You are a context summarization assistant. Your task is to read a conversation between a user and an AI assistant, then produce a structured summary following the exact format specified.\n\nDo NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.",
"timestamp": 0
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "<conversation>\n[User]: Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19\n\n[Assistant tool calls]: read(path=\"docs/README.md\"); grep(pattern=\"x\", path=\"src\")\n\n[Tool result]: readme body\n\n[Tool result]: match\n\n[Assistant]: Done with step one.\nSecond block.\n\n[User]: Look at this screenshot\n\n[Assistant]: I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49\n\n[User]: thanks\n</conversation>\n\n<previous-summary>\n## Goal\nRefactor parser\n</previous-summary>\n\nThe messages above are NEW conversation messages to incorporate into the existing summary provided in <previous-summary> tags.\n\nUpdate the existing structured summary with new information. RULES:\n- PRESERVE all existing information from the previous summary\n- ADD new progress, decisions, and context from the new messages\n- UPDATE the Progress section: move items from \"In Progress\" to \"Done\" when completed\n- UPDATE \"Next Steps\" based on what was accomplished\n- PRESERVE exact file paths, function names, and error messages\n- If something is no longer relevant, you may remove it\n\nUse this EXACT format:\n\n## Goal\n[Preserve existing goals, add new ones if the task expanded]\n\n## Constraints & Preferences\n- [Preserve existing, add new ones discovered]\n\n## Progress\n### Done\n- [x] [Include previously done items AND newly completed items]\n\n### In Progress\n- [ ] [Current work - update based on progress]\n\n### Blocked\n- [Current blockers - remove if resolved]\n\n## Key Decisions\n- **[Decision]**: [Brief rationale] (preserve all previous, add new)\n\n## Next Steps\n1. [Update based on current state]\n\n## Critical Context\n- [Preserve important context, add new if needed]\n\nKeep each section concise. Preserve exact file paths, function names, and error messages."
}
],
"timestamp": 1760000000000
}
]
},
"options": {
"maxTokens": 100,
"apiKey": "key",
"sessionId": "<fresh>",
"cacheRetention": "none"
}
},
{
"model": "sum-1",
"context": {
"messages": [
{
"role": "system",
"content": "You are a context summarization assistant. Your task is to read a conversation between a user and an AI assistant, then produce a structured summary following the exact format specified.\n\nDo NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.",
"timestamp": 0
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "# Conversation\n[User]: continue after0 after1 after2 after3 after4 after5 after6 after7 after8 after9 after10 after11 after12 after13 after14 after15 after16 after17 after18 after19 after20 after21 after22 after23 after24 after25 after26 after27 after28 after29 after30 after31 after32 after33 after34 after35 after36 after37 after38 after39 after40 after41 after42 after43 after44 after45 after46 after47 after48 after49 after50 after51 after52 after53 after54 after55 after56 after57 after58 after59\n\n# Instructions\nThe messages above are earlier context from an ongoing conversation. Later messages are stored separately and do not need to be reconstructed.\n\nCreate a concise checkpoint of the user's request and the progress shown above. This checkpoint will be placed before the later messages so the conversation can continue with the necessary context.\n\n## Original Request\n[What did the user ask for?]\n\n## Progress So Far\n- [Key decisions and work completed in these messages]\n\n## Context Needed to Continue\n- [Information from these messages needed to understand the later work]\n\nOnly summarize information explicitly present above. Do not infer or recreate later messages."
}
],
"timestamp": 1760000000000
}
]
},
"options": {
"maxTokens": 100,
"apiKey": "key",
"sessionId": "<fresh>",
"cacheRetention": "none"
}
}
],
"outcome": {
"ok": {
"summary": "HISTORY\n\n---\n\n**Turn Context (split turn):**\n\nPREFIX\n\n<read-files>\ndocs/README.md\nold/read.ts\nsrc/parse.ts\n</read-files>\n\n<modified-files>\nold/mod.ts\n</modified-files>",
"firstKeptEntryId": "e25",
"tokensBefore": 7650,
"usage": {
"input": 600,
"output": 40,
"cacheRead": 0,
"cacheWrite": 0,
"cacheWrite1h": 2,
"reasoning": 7,
"totalTokens": 640,
"cost": {
"input": 0.0006,
"output": 0.0004,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.001
}
},
"details": {
"readFiles": [
"docs/README.md",
"old/read.ts",
"src/parse.ts"
],
"modifiedFiles": [
"old/mod.ts"
]
}
}
}
},
{
"name": "split-prefix-only",
"transcript": "splitTurn",
"keep": 900,
"responses": [
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "PREFIX ONLY"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"model": {
"id": "sum-1",
"name": "Summarizer",
"api": "anthropic-messages",
"provider": "anthropic",
"baseUrl": "https://example.invalid",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 1,
"output": 2,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 3000,
"maxTokens": 6000
},
"reserveTokens": 1000,
"requests": [
{
"model": "sum-1",
"context": {
"messages": [
{
"role": "system",
"content": "You are a context summarization assistant. Your task is to read a conversation between a user and an AI assistant, then produce a structured summary following the exact format specified.\n\nDo NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.",
"timestamp": 0
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "# Conversation\n[User]: Big task req0 req1 req2 req3 req4 req5 req6 req7 req8 req9\n\n[Assistant]: Step 1 s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 s32 s33 s34 s35 s36 s37 s38 s39 s40 s41 s42 s43 s44 s45 s46 s47 s48 s49 s50 s51 s52 s53 s54 s55 s56 s57 s58 s59 s60 s61 s62 s63 s64 s65 s66 s67 s68 s69 s70 s71 s72 s73 s74 s75 s76 s77 s78 s79 s80 s81 s82 s83 s84 s85 s86 s87 s88 s89 s90 s91 s92 s93 s94 s95 s96 s97 s98 s99 s100 s101 s102 s103 s104 s105 s106 s107 s108 s109 s110 s111 s112 s113 s114 s115 s116 s117 s118 s119 s120 s121 s122 s123 s124 s125 s126 s127 s128 s129 s130 s131 s132 s133 s134 s135 s136 s137 s138 s139 s140 s141 s142 s143 s144 s145 s146 s147 s148 s149 s150 s151 s152 s153 s154 s155 s156 s157 s158 s159 s160 s161 s162 s163 s164 s165 s166 s167 s168 s169 s170 s171 s172 s173 s174 s175 s176 s177 s178 s179 s180 s181 s182 s183 s184 s185 s186 s187 s188 s189 s190 s191 s192 s193 s194 s195 s196 s197 s198 s199\n\n[Assistant tool calls]: read(path=\"a.ts\")\n\n[Tool result]: aaa0 aaa1 aaa2 aaa3 aaa4 aaa5 aaa6 aaa7 aaa8 aaa9 aaa10 aaa11 aaa12 aaa13 aaa14 aaa15 aaa16 aaa17 aaa18 aaa19 aaa20 aaa21 aaa22 aaa23 aaa24 aaa25 aaa26 aaa27 aaa28 aaa29 aaa30 aaa31 aaa32 aaa33 aaa34 aaa35 aaa36 aaa37 aaa38 aaa39 aaa40 aaa41 aaa42 aaa43 aaa44 aaa45 aaa46 aaa47 aaa48 aaa49 aaa50 aaa51 aaa52 aaa53 aaa54 aaa55 aaa56 aaa57 aaa58 aaa59 aaa60 aaa61 aaa62 aaa63 aaa64 aaa65 aaa66 aaa67 aaa68 aaa69 aaa70 aaa71 aaa72 aaa73 aaa74 aaa75 aaa76 aaa77 aaa78 aaa79 aaa80 aaa81 aaa82 aaa83 aaa84 aaa85 aaa86 aaa87 aaa88 aaa89 aaa90 aaa91 aaa92 aaa93 aaa94 aaa95 aaa96 aaa97 aaa98 aaa99 aaa100 aaa101 aaa102 aaa103 aaa104 aaa105 aaa106 aaa107 aaa108 aaa109 aaa110 aaa111 aaa112 aaa113 aaa114 aaa115 aaa116 aaa117 aaa118 aaa119 aaa120 aaa121 aaa122 aaa123 aaa124 aaa125 aaa126 aaa127 aaa128 aaa129 aaa130 aaa131 aaa132 aaa133 aaa134 aaa135 aaa136 aaa137 aaa138 aaa139 aaa140 aaa141 aaa142 aaa143 aaa144 aaa145 aaa146 aaa147 aaa148 aaa149 aaa150 aaa151 aaa152 aaa153 aaa154 aaa155 aaa156 aaa157 aaa158 aaa159 aaa160 aaa161 aaa162 aaa163 aaa164 aaa165 aaa166 aaa167 aaa168 aaa169 aaa170 aaa171 aaa172 aaa173 aaa174 aaa175 aaa176 aaa177 aaa178 aaa179 aaa180 aaa181 aaa182 aaa183 aaa184 aaa185 aaa186 aaa187 aaa188 aaa189 aaa190 aaa191 aaa192 aaa193 aaa194 aaa195 aaa196 aaa197 aaa198 aaa199 aaa200 aaa201 aaa202 aaa203 aaa204 aaa205 aaa206 aaa207 aaa208 aaa209 aaa210 aaa211 aaa212 aaa213 aaa214 aaa215 aaa216 aaa217 aaa218 aaa219 aaa220 aaa221 aaa222 aaa223 aaa224 aaa225 aaa226 aaa227 aaa228 aaa229 aaa230 aaa231 aaa232 aaa233 aaa234 aaa235 aaa236 aaa237 aaa238 aaa239 aaa240 aaa241 aaa242 aaa243 aaa244 aaa245 aaa246 aaa247 aaa248 aaa249 aaa250 aaa251 aaa252 aaa253 aaa254 aaa255 aaa256 aaa257 aaa258 aaa259 aaa260 aaa261 aaa262 aaa263 aaa264 aaa265 aaa266 aaa267 aaa268 aaa269 aaa270 aaa271 aaa272 aaa273 aaa274 aaa275 aaa276 aaa277 aaa278 aaa279 aaa280 aaa281 aaa282 aaa283 aaa284 aaa285 aaa286 aaa287 aaa288 aaa289 aaa290 aaa291 aaa292 aaa293 aaa294 aaa295 aaa296 aaa297 aaa298 aaa299\n\n# Instructions\nThe messages above are earlier context from an ongoing conversation. Later messages are stored separately and do not need to be reconstructed.\n\nCreate a concise checkpoint of the user's request and the progress shown above. This checkpoint will be placed before the later messages so the conversation can continue with the necessary context.\n\n## Original Request\n[What did the user ask for?]\n\n## Progress So Far\n- [Key decisions and work completed in these messages]\n\n## Context Needed to Continue\n- [Information from these messages needed to understand the later work]\n\nOnly summarize information explicitly present above. Do not infer or recreate later messages."
}
],
"timestamp": 1760000000000
}
]
},
"options": {
"maxTokens": 500,
"apiKey": "key",
"sessionId": "<fresh>",
"cacheRetention": "none"
}
}
],
"outcome": {
"ok": {
"summary": "No prior history.\n\n---\n\n**Turn Context (split turn):**\n\nPREFIX ONLY\n\n<read-files>\na.ts\n</read-files>",
"firstKeptEntryId": "e4",
"tokensBefore": 2500,
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"details": {
"readFiles": [
"a.ts"
],
"modifiedFiles": []
}
}
}
},
{
"name": "error",
"transcript": "basic",
"keep": 400,
"responses": [
{
"role": "assistant",
"content": [],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"stopReason": "error",
"timestamp": 2,
"errorMessage": "rate limited"
}
],
"model": {
"id": "sum-1",
"name": "Summarizer",
"api": "anthropic-messages",
"provider": "anthropic",
"baseUrl": "https://example.invalid",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 1,
"output": 2,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 3000,
"maxTokens": 6000
},
"reserveTokens": 1000,
"requests": [
{
"model": "sum-1",
"context": {
"messages": [
{
"role": "system",
"content": "You are a context summarization assistant. Your task is to read a conversation between a user and an AI assistant, then produce a structured summary following the exact format specified.\n\nDo NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.",
"timestamp": 0
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "<conversation>\n[User]: Refactor the parser in src/parse.ts please ctx0 ctx1 ctx2 ctx3 ctx4 ctx5 ctx6 ctx7 ctx8 ctx9 ctx10 ctx11 ctx12 ctx13 ctx14 ctx15 ctx16 ctx17 ctx18 ctx19 ctx20 ctx21 ctx22 ctx23 ctx24 ctx25 ctx26 ctx27 ctx28 ctx29\n\n[Assistant thinking]: plan: read first\n\n[Assistant]: Reading.\n\n[Assistant tool calls]: read(path=\"src/parse.ts\")\n\n[Tool result]: line0 line1 line2 line3 line4 line5 line6 line7 line8 line9 line10 line11 line12 line13 line14 line15 line16 line17 line18 line19 line20 line21 line22 line23 line24 line25 line26 line27 line28 line29 line30 line31 line32 line33 line34 line35 line36 line37 line38 line39 line40 line41 line42 line43 line44 line45 line46 line47 line48 line49 line50 line51 line52 line53 line54 line55 line56 line57 line58 line59 line60 line61 line62 line63 line64 line65 line66 line67 line68 line69 line70 line71 line72 line73 line74 line75 line76 line77 line78 line79 line80 line81 line82 line83 line84 line85 line86 line87 line88 line89 line90 line91 line92 line93 line94 line95 line96 line97 line98 line99 line100 line101 line102 line103 line104 line105 line106 line107 line108 line109 line110 line111 line112 line113 line114 line115 line116 line117 line118 line119 line120 line121 line122 line123 line124 line125 line126 line127 line128 line129 line130 line131 line132 line133 line134 line135 line136 line137 line138 line139 line140 line141 line142 line143 line144 line145 line146 line147 line148 line149 line150 line151 line152 line153 line154 line155 line156 line157 line158 line159 line160 line161 line162 line163 line164 line165 line166 line167 line168 line169 line170 line171 line172 line173 line174 line175 line176 line177 line178 line179 line180 line181 line182 line183 line184 line185 line186 line187 line188 line189 line190 line191 line192 line193 line194 line195 line196 line197 line198 line199 line200 line201 line202 line203 line204 line205 line206 line207 line208 line209 line210 line211 line212 line213 line214 line215 line216 line217 line218 line219 line220 line221 line222 line223 line224 line225 line226 line227 line228 line229 line230 line231 line232 line233 line234 line235 line236 line237 line238 line239 line240 line241 line242 line243 line244 line245 line246 line247 line248 line249 line250 line251 line252 line253 line254 line255 line256 line257 line258 line259 line260 line261 line262 line26\n\n[... 3489 more characters truncated]\n\n[Assistant tool calls]: edit(path=\"src/parse.ts\", oldText=\"a\", newText=\"b\"); write(path=\"src/new.ts\", content=\"x\")\n\n[Tool result]: ok\n\n[Tool result]: ok\n\n[User]: Ran `npm test`\n```\nout0 out1 out2 out3 out4 out5 out6 out7 out8 out9 out10 out11 out12 out13 out14 out15 out16 out17 out18 out19 out20 out21 out22 out23 out24 out25 out26 out27 out28 out29 out30 out31 out32 out33 out34 out35 out36 out37 out38 out39\n```\n\nCommand exited with code 1\n\n[Output truncated. Full output: /tmp/full.log]\n\n[User]: Ran `pwd`\n```\n/w\n```\n\n[User]: Ran `sleep 9`\n(no output)\n\n(command cancelled)\n\n[User]: Remember the 80 column limit 🙂\n\n[User]: Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19\n\n[Assistant tool calls]: read(path=\"docs/README.md\"); grep(pattern=\"x\", path=\"src\")\n\n[Tool result]: readme body\n\n[Tool result]: match\n\n[Assistant]: Done with step one.\nSecond block.\n</conversation>\n\nThe messages above are a conversation to summarize. Create a structured context checkpoint summary that another LLM will use to continue the work.\n\nUse this EXACT format:\n\n## Goal\n[What is the user trying to accomplish? Can be multiple items if the session covers different tasks.]\n\n## Constraints & Preferences\n- [Any constraints, preferences, or requirements mentioned by user]\n- [Or \"(none)\" if none were mentioned]\n\n## Progress\n### Done\n- [x] [Completed tasks/changes]\n\n### In Progress\n- [ ] [Current work]\n\n### Blocked\n- [Issues preventing progress, if any]\n\n## Key Decisions\n- **[Decision]**: [Brief rationale]\n\n## Next Steps\n1. [Ordered list of what should happen next]\n\n## Critical Context\n- [Any data, examples, or references needed to continue]\n- [Or \"(none)\" if not applicable]\n\nKeep each section concise. Preserve exact file paths, function names, and error messages."
}
],
"timestamp": 1760000000000
}
]
},
"options": {
"maxTokens": 800,
"apiKey": "key",
"sessionId": "<fresh>",
"cacheRetention": "none"
}
}
],
"outcome": {
"error": "Summarization failed: rate limited"
}
},
{
"name": "error-empty",
"transcript": "basic",
"keep": 400,
"responses": [
{
"role": "assistant",
"content": [],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"stopReason": "error",
"timestamp": 2
}
],
"model": {
"id": "sum-1",
"name": "Summarizer",
"api": "anthropic-messages",
"provider": "anthropic",
"baseUrl": "https://example.invalid",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 1,
"output": 2,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 3000,
"maxTokens": 6000
},
"reserveTokens": 1000,
"requests": [
{
"model": "sum-1",
"context": {
"messages": [
{
"role": "system",
"content": "You are a context summarization assistant. Your task is to read a conversation between a user and an AI assistant, then produce a structured summary following the exact format specified.\n\nDo NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.",
"timestamp": 0
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "<conversation>\n[User]: Refactor the parser in src/parse.ts please ctx0 ctx1 ctx2 ctx3 ctx4 ctx5 ctx6 ctx7 ctx8 ctx9 ctx10 ctx11 ctx12 ctx13 ctx14 ctx15 ctx16 ctx17 ctx18 ctx19 ctx20 ctx21 ctx22 ctx23 ctx24 ctx25 ctx26 ctx27 ctx28 ctx29\n\n[Assistant thinking]: plan: read first\n\n[Assistant]: Reading.\n\n[Assistant tool calls]: read(path=\"src/parse.ts\")\n\n[Tool result]: line0 line1 line2 line3 line4 line5 line6 line7 line8 line9 line10 line11 line12 line13 line14 line15 line16 line17 line18 line19 line20 line21 line22 line23 line24 line25 line26 line27 line28 line29 line30 line31 line32 line33 line34 line35 line36 line37 line38 line39 line40 line41 line42 line43 line44 line45 line46 line47 line48 line49 line50 line51 line52 line53 line54 line55 line56 line57 line58 line59 line60 line61 line62 line63 line64 line65 line66 line67 line68 line69 line70 line71 line72 line73 line74 line75 line76 line77 line78 line79 line80 line81 line82 line83 line84 line85 line86 line87 line88 line89 line90 line91 line92 line93 line94 line95 line96 line97 line98 line99 line100 line101 line102 line103 line104 line105 line106 line107 line108 line109 line110 line111 line112 line113 line114 line115 line116 line117 line118 line119 line120 line121 line122 line123 line124 line125 line126 line127 line128 line129 line130 line131 line132 line133 line134 line135 line136 line137 line138 line139 line140 line141 line142 line143 line144 line145 line146 line147 line148 line149 line150 line151 line152 line153 line154 line155 line156 line157 line158 line159 line160 line161 line162 line163 line164 line165 line166 line167 line168 line169 line170 line171 line172 line173 line174 line175 line176 line177 line178 line179 line180 line181 line182 line183 line184 line185 line186 line187 line188 line189 line190 line191 line192 line193 line194 line195 line196 line197 line198 line199 line200 line201 line202 line203 line204 line205 line206 line207 line208 line209 line210 line211 line212 line213 line214 line215 line216 line217 line218 line219 line220 line221 line222 line223 line224 line225 line226 line227 line228 line229 line230 line231 line232 line233 line234 line235 line236 line237 line238 line239 line240 line241 line242 line243 line244 line245 line246 line247 line248 line249 line250 line251 line252 line253 line254 line255 line256 line257 line258 line259 line260 line261 line262 line26\n\n[... 3489 more characters truncated]\n\n[Assistant tool calls]: edit(path=\"src/parse.ts\", oldText=\"a\", newText=\"b\"); write(path=\"src/new.ts\", content=\"x\")\n\n[Tool result]: ok\n\n[Tool result]: ok\n\n[User]: Ran `npm test`\n```\nout0 out1 out2 out3 out4 out5 out6 out7 out8 out9 out10 out11 out12 out13 out14 out15 out16 out17 out18 out19 out20 out21 out22 out23 out24 out25 out26 out27 out28 out29 out30 out31 out32 out33 out34 out35 out36 out37 out38 out39\n```\n\nCommand exited with code 1\n\n[Output truncated. Full output: /tmp/full.log]\n\n[User]: Ran `pwd`\n```\n/w\n```\n\n[User]: Ran `sleep 9`\n(no output)\n\n(command cancelled)\n\n[User]: Remember the 80 column limit 🙂\n\n[User]: Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19\n\n[Assistant tool calls]: read(path=\"docs/README.md\"); grep(pattern=\"x\", path=\"src\")\n\n[Tool result]: readme body\n\n[Tool result]: match\n\n[Assistant]: Done with step one.\nSecond block.\n</conversation>\n\nThe messages above are a conversation to summarize. Create a structured context checkpoint summary that another LLM will use to continue the work.\n\nUse this EXACT format:\n\n## Goal\n[What is the user trying to accomplish? Can be multiple items if the session covers different tasks.]\n\n## Constraints & Preferences\n- [Any constraints, preferences, or requirements mentioned by user]\n- [Or \"(none)\" if none were mentioned]\n\n## Progress\n### Done\n- [x] [Completed tasks/changes]\n\n### In Progress\n- [ ] [Current work]\n\n### Blocked\n- [Issues preventing progress, if any]\n\n## Key Decisions\n- **[Decision]**: [Brief rationale]\n\n## Next Steps\n1. [Ordered list of what should happen next]\n\n## Critical Context\n- [Any data, examples, or references needed to continue]\n- [Or \"(none)\" if not applicable]\n\nKeep each section concise. Preserve exact file paths, function names, and error messages."
}
],
"timestamp": 1760000000000
}
]
},
"options": {
"maxTokens": 800,
"apiKey": "key",
"sessionId": "<fresh>",
"cacheRetention": "none"
}
}
],
"outcome": {
"error": "Summarization failed: Unknown error"
}
},
{
"name": "length",
"transcript": "basic",
"keep": 400,
"responses": [
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "partial"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"stopReason": "length",
"timestamp": 2
}
],
"model": {
"id": "sum-1",
"name": "Summarizer",
"api": "anthropic-messages",
"provider": "anthropic",
"baseUrl": "https://example.invalid",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 1,
"output": 2,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 3000,
"maxTokens": 6000
},
"reserveTokens": 1000,
"requests": [
{
"model": "sum-1",
"context": {
"messages": [
{
"role": "system",
"content": "You are a context summarization assistant. Your task is to read a conversation between a user and an AI assistant, then produce a structured summary following the exact format specified.\n\nDo NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.",
"timestamp": 0
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "<conversation>\n[User]: Refactor the parser in src/parse.ts please ctx0 ctx1 ctx2 ctx3 ctx4 ctx5 ctx6 ctx7 ctx8 ctx9 ctx10 ctx11 ctx12 ctx13 ctx14 ctx15 ctx16 ctx17 ctx18 ctx19 ctx20 ctx21 ctx22 ctx23 ctx24 ctx25 ctx26 ctx27 ctx28 ctx29\n\n[Assistant thinking]: plan: read first\n\n[Assistant]: Reading.\n\n[Assistant tool calls]: read(path=\"src/parse.ts\")\n\n[Tool result]: line0 line1 line2 line3 line4 line5 line6 line7 line8 line9 line10 line11 line12 line13 line14 line15 line16 line17 line18 line19 line20 line21 line22 line23 line24 line25 line26 line27 line28 line29 line30 line31 line32 line33 line34 line35 line36 line37 line38 line39 line40 line41 line42 line43 line44 line45 line46 line47 line48 line49 line50 line51 line52 line53 line54 line55 line56 line57 line58 line59 line60 line61 line62 line63 line64 line65 line66 line67 line68 line69 line70 line71 line72 line73 line74 line75 line76 line77 line78 line79 line80 line81 line82 line83 line84 line85 line86 line87 line88 line89 line90 line91 line92 line93 line94 line95 line96 line97 line98 line99 line100 line101 line102 line103 line104 line105 line106 line107 line108 line109 line110 line111 line112 line113 line114 line115 line116 line117 line118 line119 line120 line121 line122 line123 line124 line125 line126 line127 line128 line129 line130 line131 line132 line133 line134 line135 line136 line137 line138 line139 line140 line141 line142 line143 line144 line145 line146 line147 line148 line149 line150 line151 line152 line153 line154 line155 line156 line157 line158 line159 line160 line161 line162 line163 line164 line165 line166 line167 line168 line169 line170 line171 line172 line173 line174 line175 line176 line177 line178 line179 line180 line181 line182 line183 line184 line185 line186 line187 line188 line189 line190 line191 line192 line193 line194 line195 line196 line197 line198 line199 line200 line201 line202 line203 line204 line205 line206 line207 line208 line209 line210 line211 line212 line213 line214 line215 line216 line217 line218 line219 line220 line221 line222 line223 line224 line225 line226 line227 line228 line229 line230 line231 line232 line233 line234 line235 line236 line237 line238 line239 line240 line241 line242 line243 line244 line245 line246 line247 line248 line249 line250 line251 line252 line253 line254 line255 line256 line257 line258 line259 line260 line261 line262 line26\n\n[... 3489 more characters truncated]\n\n[Assistant tool calls]: edit(path=\"src/parse.ts\", oldText=\"a\", newText=\"b\"); write(path=\"src/new.ts\", content=\"x\")\n\n[Tool result]: ok\n\n[Tool result]: ok\n\n[User]: Ran `npm test`\n```\nout0 out1 out2 out3 out4 out5 out6 out7 out8 out9 out10 out11 out12 out13 out14 out15 out16 out17 out18 out19 out20 out21 out22 out23 out24 out25 out26 out27 out28 out29 out30 out31 out32 out33 out34 out35 out36 out37 out38 out39\n```\n\nCommand exited with code 1\n\n[Output truncated. Full output: /tmp/full.log]\n\n[User]: Ran `pwd`\n```\n/w\n```\n\n[User]: Ran `sleep 9`\n(no output)\n\n(command cancelled)\n\n[User]: Remember the 80 column limit 🙂\n\n[User]: Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19\n\n[Assistant tool calls]: read(path=\"docs/README.md\"); grep(pattern=\"x\", path=\"src\")\n\n[Tool result]: readme body\n\n[Tool result]: match\n\n[Assistant]: Done with step one.\nSecond block.\n</conversation>\n\nThe messages above are a conversation to summarize. Create a structured context checkpoint summary that another LLM will use to continue the work.\n\nUse this EXACT format:\n\n## Goal\n[What is the user trying to accomplish? Can be multiple items if the session covers different tasks.]\n\n## Constraints & Preferences\n- [Any constraints, preferences, or requirements mentioned by user]\n- [Or \"(none)\" if none were mentioned]\n\n## Progress\n### Done\n- [x] [Completed tasks/changes]\n\n### In Progress\n- [ ] [Current work]\n\n### Blocked\n- [Issues preventing progress, if any]\n\n## Key Decisions\n- **[Decision]**: [Brief rationale]\n\n## Next Steps\n1. [Ordered list of what should happen next]\n\n## Critical Context\n- [Any data, examples, or references needed to continue]\n- [Or \"(none)\" if not applicable]\n\nKeep each section concise. Preserve exact file paths, function names, and error messages."
}
],
"timestamp": 1760000000000
}
]
},
"options": {
"maxTokens": 800,
"apiKey": "key",
"sessionId": "<fresh>",
"cacheRetention": "none"
}
}
],
"outcome": {
"error": "Summarization failed: generation hit the token cap and the summary is incomplete"
}
},
{
"name": "tool-call",
"transcript": "basic",
"keep": 400,
"responses": [
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "x",
"name": "read",
"arguments": {}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"model": {
"id": "sum-1",
"name": "Summarizer",
"api": "anthropic-messages",
"provider": "anthropic",
"baseUrl": "https://example.invalid",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 1,
"output": 2,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 3000,
"maxTokens": 6000
},
"reserveTokens": 1000,
"requests": [
{
"model": "sum-1",
"context": {
"messages": [
{
"role": "system",
"content": "You are a context summarization assistant. Your task is to read a conversation between a user and an AI assistant, then produce a structured summary following the exact format specified.\n\nDo NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.",
"timestamp": 0
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "<conversation>\n[User]: Refactor the parser in src/parse.ts please ctx0 ctx1 ctx2 ctx3 ctx4 ctx5 ctx6 ctx7 ctx8 ctx9 ctx10 ctx11 ctx12 ctx13 ctx14 ctx15 ctx16 ctx17 ctx18 ctx19 ctx20 ctx21 ctx22 ctx23 ctx24 ctx25 ctx26 ctx27 ctx28 ctx29\n\n[Assistant thinking]: plan: read first\n\n[Assistant]: Reading.\n\n[Assistant tool calls]: read(path=\"src/parse.ts\")\n\n[Tool result]: line0 line1 line2 line3 line4 line5 line6 line7 line8 line9 line10 line11 line12 line13 line14 line15 line16 line17 line18 line19 line20 line21 line22 line23 line24 line25 line26 line27 line28 line29 line30 line31 line32 line33 line34 line35 line36 line37 line38 line39 line40 line41 line42 line43 line44 line45 line46 line47 line48 line49 line50 line51 line52 line53 line54 line55 line56 line57 line58 line59 line60 line61 line62 line63 line64 line65 line66 line67 line68 line69 line70 line71 line72 line73 line74 line75 line76 line77 line78 line79 line80 line81 line82 line83 line84 line85 line86 line87 line88 line89 line90 line91 line92 line93 line94 line95 line96 line97 line98 line99 line100 line101 line102 line103 line104 line105 line106 line107 line108 line109 line110 line111 line112 line113 line114 line115 line116 line117 line118 line119 line120 line121 line122 line123 line124 line125 line126 line127 line128 line129 line130 line131 line132 line133 line134 line135 line136 line137 line138 line139 line140 line141 line142 line143 line144 line145 line146 line147 line148 line149 line150 line151 line152 line153 line154 line155 line156 line157 line158 line159 line160 line161 line162 line163 line164 line165 line166 line167 line168 line169 line170 line171 line172 line173 line174 line175 line176 line177 line178 line179 line180 line181 line182 line183 line184 line185 line186 line187 line188 line189 line190 line191 line192 line193 line194 line195 line196 line197 line198 line199 line200 line201 line202 line203 line204 line205 line206 line207 line208 line209 line210 line211 line212 line213 line214 line215 line216 line217 line218 line219 line220 line221 line222 line223 line224 line225 line226 line227 line228 line229 line230 line231 line232 line233 line234 line235 line236 line237 line238 line239 line240 line241 line242 line243 line244 line245 line246 line247 line248 line249 line250 line251 line252 line253 line254 line255 line256 line257 line258 line259 line260 line261 line262 line26\n\n[... 3489 more characters truncated]\n\n[Assistant tool calls]: edit(path=\"src/parse.ts\", oldText=\"a\", newText=\"b\"); write(path=\"src/new.ts\", content=\"x\")\n\n[Tool result]: ok\n\n[Tool result]: ok\n\n[User]: Ran `npm test`\n```\nout0 out1 out2 out3 out4 out5 out6 out7 out8 out9 out10 out11 out12 out13 out14 out15 out16 out17 out18 out19 out20 out21 out22 out23 out24 out25 out26 out27 out28 out29 out30 out31 out32 out33 out34 out35 out36 out37 out38 out39\n```\n\nCommand exited with code 1\n\n[Output truncated. Full output: /tmp/full.log]\n\n[User]: Ran `pwd`\n```\n/w\n```\n\n[User]: Ran `sleep 9`\n(no output)\n\n(command cancelled)\n\n[User]: Remember the 80 column limit 🙂\n\n[User]: Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19\n\n[Assistant tool calls]: read(path=\"docs/README.md\"); grep(pattern=\"x\", path=\"src\")\n\n[Tool result]: readme body\n\n[Tool result]: match\n\n[Assistant]: Done with step one.\nSecond block.\n</conversation>\n\nThe messages above are a conversation to summarize. Create a structured context checkpoint summary that another LLM will use to continue the work.\n\nUse this EXACT format:\n\n## Goal\n[What is the user trying to accomplish? Can be multiple items if the session covers different tasks.]\n\n## Constraints & Preferences\n- [Any constraints, preferences, or requirements mentioned by user]\n- [Or \"(none)\" if none were mentioned]\n\n## Progress\n### Done\n- [x] [Completed tasks/changes]\n\n### In Progress\n- [ ] [Current work]\n\n### Blocked\n- [Issues preventing progress, if any]\n\n## Key Decisions\n- **[Decision]**: [Brief rationale]\n\n## Next Steps\n1. [Ordered list of what should happen next]\n\n## Critical Context\n- [Any data, examples, or references needed to continue]\n- [Or \"(none)\" if not applicable]\n\nKeep each section concise. Preserve exact file paths, function names, and error messages."
}
],
"timestamp": 1760000000000
}
]
},
"options": {
"maxTokens": 800,
"apiKey": "key",
"sessionId": "<fresh>",
"cacheRetention": "none"
}
}
],
"outcome": {
"error": "Summarization attempted to call a tool"
}
},
{
"name": "split-prefix-error",
"transcript": "withCompaction",
"keep": 150,
"responses": [
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "ok"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"stopReason": "stop",
"timestamp": 2
},
{
"role": "assistant",
"content": [],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"stopReason": "length",
"timestamp": 2
}
],
"model": {
"id": "sum-1",
"name": "Summarizer",
"api": "anthropic-messages",
"provider": "anthropic",
"baseUrl": "https://example.invalid",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 1,
"output": 2,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 3000,
"maxTokens": 6000
},
"reserveTokens": 1000,
"requests": [
{
"model": "sum-1",
"context": {
"messages": [
{
"role": "system",
"content": "You are a context summarization assistant. Your task is to read a conversation between a user and an AI assistant, then produce a structured summary following the exact format specified.\n\nDo NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.",
"timestamp": 0
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "<conversation>\n[User]: Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19\n\n[Assistant tool calls]: read(path=\"docs/README.md\"); grep(pattern=\"x\", path=\"src\")\n\n[Tool result]: readme body\n\n[Tool result]: match\n\n[Assistant]: Done with step one.\nSecond block.\n\n[User]: Look at this screenshot\n\n[Assistant]: I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49\n\n[User]: thanks\n</conversation>\n\n<previous-summary>\n## Goal\nRefactor parser\n</previous-summary>\n\nThe messages above are NEW conversation messages to incorporate into the existing summary provided in <previous-summary> tags.\n\nUpdate the existing structured summary with new information. RULES:\n- PRESERVE all existing information from the previous summary\n- ADD new progress, decisions, and context from the new messages\n- UPDATE the Progress section: move items from \"In Progress\" to \"Done\" when completed\n- UPDATE \"Next Steps\" based on what was accomplished\n- PRESERVE exact file paths, function names, and error messages\n- If something is no longer relevant, you may remove it\n\nUse this EXACT format:\n\n## Goal\n[Preserve existing goals, add new ones if the task expanded]\n\n## Constraints & Preferences\n- [Preserve existing, add new ones discovered]\n\n## Progress\n### Done\n- [x] [Include previously done items AND newly completed items]\n\n### In Progress\n- [ ] [Current work - update based on progress]\n\n### Blocked\n- [Current blockers - remove if resolved]\n\n## Key Decisions\n- **[Decision]**: [Brief rationale] (preserve all previous, add new)\n\n## Next Steps\n1. [Update based on current state]\n\n## Critical Context\n- [Preserve important context, add new if needed]\n\nKeep each section concise. Preserve exact file paths, function names, and error messages."
}
],
"timestamp": 1760000000000
}
]
},
"options": {
"maxTokens": 800,
"apiKey": "key",
"sessionId": "<fresh>",
"cacheRetention": "none"
}
},
{
"model": "sum-1",
"context": {
"messages": [
{
"role": "system",
"content": "You are a context summarization assistant. Your task is to read a conversation between a user and an AI assistant, then produce a structured summary following the exact format specified.\n\nDo NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.",
"timestamp": 0
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "# Conversation\n[User]: continue after0 after1 after2 after3 after4 after5 after6 after7 after8 after9 after10 after11 after12 after13 after14 after15 after16 after17 after18 after19 after20 after21 after22 after23 after24 after25 after26 after27 after28 after29 after30 after31 after32 after33 after34 after35 after36 after37 after38 after39 after40 after41 after42 after43 after44 after45 after46 after47 after48 after49 after50 after51 after52 after53 after54 after55 after56 after57 after58 after59\n\n# Instructions\nThe messages above are earlier context from an ongoing conversation. Later messages are stored separately and do not need to be reconstructed.\n\nCreate a concise checkpoint of the user's request and the progress shown above. This checkpoint will be placed before the later messages so the conversation can continue with the necessary context.\n\n## Original Request\n[What did the user ask for?]\n\n## Progress So Far\n- [Key decisions and work completed in these messages]\n\n## Context Needed to Continue\n- [Information from these messages needed to understand the later work]\n\nOnly summarize information explicitly present above. Do not infer or recreate later messages."
}
],
"timestamp": 1760000000000
}
]
},
"options": {
"maxTokens": 500,
"apiKey": "key",
"sessionId": "<fresh>",
"cacheRetention": "none"
}
}
],
"outcome": {
"error": "Turn prefix summarization failed: generation hit the token cap and the summary is incomplete"
}
},
{
"name": "split-prefix-tool",
"transcript": "splitTurn",
"keep": 900,
"responses": [
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "x",
"name": "read",
"arguments": {}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"model": {
"id": "sum-1",
"name": "Summarizer",
"api": "anthropic-messages",
"provider": "anthropic",
"baseUrl": "https://example.invalid",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 1,
"output": 2,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 3000,
"maxTokens": 6000
},
"reserveTokens": 1000,
"requests": [
{
"model": "sum-1",
"context": {
"messages": [
{
"role": "system",
"content": "You are a context summarization assistant. Your task is to read a conversation between a user and an AI assistant, then produce a structured summary following the exact format specified.\n\nDo NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.",
"timestamp": 0
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "# Conversation\n[User]: Big task req0 req1 req2 req3 req4 req5 req6 req7 req8 req9\n\n[Assistant]: Step 1 s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 s32 s33 s34 s35 s36 s37 s38 s39 s40 s41 s42 s43 s44 s45 s46 s47 s48 s49 s50 s51 s52 s53 s54 s55 s56 s57 s58 s59 s60 s61 s62 s63 s64 s65 s66 s67 s68 s69 s70 s71 s72 s73 s74 s75 s76 s77 s78 s79 s80 s81 s82 s83 s84 s85 s86 s87 s88 s89 s90 s91 s92 s93 s94 s95 s96 s97 s98 s99 s100 s101 s102 s103 s104 s105 s106 s107 s108 s109 s110 s111 s112 s113 s114 s115 s116 s117 s118 s119 s120 s121 s122 s123 s124 s125 s126 s127 s128 s129 s130 s131 s132 s133 s134 s135 s136 s137 s138 s139 s140 s141 s142 s143 s144 s145 s146 s147 s148 s149 s150 s151 s152 s153 s154 s155 s156 s157 s158 s159 s160 s161 s162 s163 s164 s165 s166 s167 s168 s169 s170 s171 s172 s173 s174 s175 s176 s177 s178 s179 s180 s181 s182 s183 s184 s185 s186 s187 s188 s189 s190 s191 s192 s193 s194 s195 s196 s197 s198 s199\n\n[Assistant tool calls]: read(path=\"a.ts\")\n\n[Tool result]: aaa0 aaa1 aaa2 aaa3 aaa4 aaa5 aaa6 aaa7 aaa8 aaa9 aaa10 aaa11 aaa12 aaa13 aaa14 aaa15 aaa16 aaa17 aaa18 aaa19 aaa20 aaa21 aaa22 aaa23 aaa24 aaa25 aaa26 aaa27 aaa28 aaa29 aaa30 aaa31 aaa32 aaa33 aaa34 aaa35 aaa36 aaa37 aaa38 aaa39 aaa40 aaa41 aaa42 aaa43 aaa44 aaa45 aaa46 aaa47 aaa48 aaa49 aaa50 aaa51 aaa52 aaa53 aaa54 aaa55 aaa56 aaa57 aaa58 aaa59 aaa60 aaa61 aaa62 aaa63 aaa64 aaa65 aaa66 aaa67 aaa68 aaa69 aaa70 aaa71 aaa72 aaa73 aaa74 aaa75 aaa76 aaa77 aaa78 aaa79 aaa80 aaa81 aaa82 aaa83 aaa84 aaa85 aaa86 aaa87 aaa88 aaa89 aaa90 aaa91 aaa92 aaa93 aaa94 aaa95 aaa96 aaa97 aaa98 aaa99 aaa100 aaa101 aaa102 aaa103 aaa104 aaa105 aaa106 aaa107 aaa108 aaa109 aaa110 aaa111 aaa112 aaa113 aaa114 aaa115 aaa116 aaa117 aaa118 aaa119 aaa120 aaa121 aaa122 aaa123 aaa124 aaa125 aaa126 aaa127 aaa128 aaa129 aaa130 aaa131 aaa132 aaa133 aaa134 aaa135 aaa136 aaa137 aaa138 aaa139 aaa140 aaa141 aaa142 aaa143 aaa144 aaa145 aaa146 aaa147 aaa148 aaa149 aaa150 aaa151 aaa152 aaa153 aaa154 aaa155 aaa156 aaa157 aaa158 aaa159 aaa160 aaa161 aaa162 aaa163 aaa164 aaa165 aaa166 aaa167 aaa168 aaa169 aaa170 aaa171 aaa172 aaa173 aaa174 aaa175 aaa176 aaa177 aaa178 aaa179 aaa180 aaa181 aaa182 aaa183 aaa184 aaa185 aaa186 aaa187 aaa188 aaa189 aaa190 aaa191 aaa192 aaa193 aaa194 aaa195 aaa196 aaa197 aaa198 aaa199 aaa200 aaa201 aaa202 aaa203 aaa204 aaa205 aaa206 aaa207 aaa208 aaa209 aaa210 aaa211 aaa212 aaa213 aaa214 aaa215 aaa216 aaa217 aaa218 aaa219 aaa220 aaa221 aaa222 aaa223 aaa224 aaa225 aaa226 aaa227 aaa228 aaa229 aaa230 aaa231 aaa232 aaa233 aaa234 aaa235 aaa236 aaa237 aaa238 aaa239 aaa240 aaa241 aaa242 aaa243 aaa244 aaa245 aaa246 aaa247 aaa248 aaa249 aaa250 aaa251 aaa252 aaa253 aaa254 aaa255 aaa256 aaa257 aaa258 aaa259 aaa260 aaa261 aaa262 aaa263 aaa264 aaa265 aaa266 aaa267 aaa268 aaa269 aaa270 aaa271 aaa272 aaa273 aaa274 aaa275 aaa276 aaa277 aaa278 aaa279 aaa280 aaa281 aaa282 aaa283 aaa284 aaa285 aaa286 aaa287 aaa288 aaa289 aaa290 aaa291 aaa292 aaa293 aaa294 aaa295 aaa296 aaa297 aaa298 aaa299\n\n# Instructions\nThe messages above are earlier context from an ongoing conversation. Later messages are stored separately and do not need to be reconstructed.\n\nCreate a concise checkpoint of the user's request and the progress shown above. This checkpoint will be placed before the later messages so the conversation can continue with the necessary context.\n\n## Original Request\n[What did the user ask for?]\n\n## Progress So Far\n- [Key decisions and work completed in these messages]\n\n## Context Needed to Continue\n- [Information from these messages needed to understand the later work]\n\nOnly summarize information explicitly present above. Do not infer or recreate later messages."
}
],
"timestamp": 1760000000000
}
]
},
"options": {
"maxTokens": 500,
"apiKey": "key",
"sessionId": "<fresh>",
"cacheRetention": "none"
}
}
],
"outcome": {
"error": "Turn prefix summarization attempted to call a tool"
}
},
{
"name": "edits",
"transcript": "contextEdits",
"keep": 50,
"responses": [
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "E"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"model": {
"id": "sum-1",
"name": "Summarizer",
"api": "anthropic-messages",
"provider": "anthropic",
"baseUrl": "https://example.invalid",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 1,
"output": 2,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 3000,
"maxTokens": 6000
},
"reserveTokens": 1000,
"requests": [
{
"model": "sum-1",
"context": {
"messages": [
{
"role": "system",
"content": "You are a context summarization assistant. Your task is to read a conversation between a user and an AI assistant, then produce a structured summary following the exact format specified.\n\nDo NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.",
"timestamp": 0
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "# Conversation\n[User]: First u0 u1 u2 u3 u4 u5 u6 u7 u8 u9 u10 u11 u12 u13 u14 u15 u16 u17 u18 u19 u20 u21 u22 u23 u24 u25 u26 u27 u28 u29 u30 u31 u32 u33 u34 u35 u36 u37 u38 u39\n\n# Instructions\nThe messages above are earlier context from an ongoing conversation. Later messages are stored separately and do not need to be reconstructed.\n\nCreate a concise checkpoint of the user's request and the progress shown above. This checkpoint will be placed before the later messages so the conversation can continue with the necessary context.\n\n## Original Request\n[What did the user ask for?]\n\n## Progress So Far\n- [Key decisions and work completed in these messages]\n\n## Context Needed to Continue\n- [Information from these messages needed to understand the later work]\n\nOnly summarize information explicitly present above. Do not infer or recreate later messages."
}
],
"timestamp": 1760000000000
}
]
},
"options": {
"maxTokens": 500,
"apiKey": "key",
"sessionId": "<fresh>",
"cacheRetention": "none"
}
}
],
"outcome": {
"ok": {
"summary": "No prior history.\n\n---\n\n**Turn Context (split turn):**\n\nE",
"firstKeptEntryId": "e2",
"tokensBefore": 122,
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"details": {
"readFiles": [],
"modifiedFiles": []
}
}
}
}
],
"collect": [
{
"from": "e11",
"to": "e13",
"result": {
"entries": [
{
"type": "message",
"message": {
"role": "user",
"content": "Explore option A optA0 optA1 optA2 optA3 optA4 optA5 optA6 optA7 optA8 optA9 optA10 optA11 optA12 optA13 optA14 optA15 optA16 optA17 optA18 optA19 optA20 optA21 optA22 optA23 optA24 optA25 optA26 optA27 optA28 optA29",
"timestamp": 1
},
"id": "e3",
"parentId": "e2",
"timestamp": "2025-01-01T00:00:03.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "Option A analysis anal0 anal1 anal2 anal3 anal4 anal5 anal6 anal7 anal8 anal9 anal10 anal11 anal12 anal13 anal14 anal15 anal16 anal17 anal18 anal19 anal20 anal21 anal22 anal23 anal24 anal25 anal26 anal27 anal28 anal29 anal30 anal31 anal32 anal33 anal34 anal35 anal36 anal37 anal38 anal39 anal40 anal41 anal42 anal43 anal44 anal45 anal46 anal47 anal48 anal49 anal50 anal51 anal52 anal53 anal54 anal55 anal56 anal57 anal58 anal59"
},
{
"type": "toolCall",
"id": "b1",
"name": "read",
"arguments": {
"path": "lib/a.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 400,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 450,
"cost": {
"input": 0.0004,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0009
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e4",
"parentId": "e3",
"timestamp": "2025-01-01T00:00:04.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "b1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "contents of a"
}
],
"isError": false,
"timestamp": 3
},
"id": "e5",
"parentId": "e4",
"timestamp": "2025-01-01T00:00:05.000Z"
},
{
"type": "branch_summary",
"fromId": "zzz",
"summary": "Earlier exploration of option Z",
"details": {
"readFiles": [
"lib/z.ts"
],
"modifiedFiles": [
"lib/zz.ts"
]
},
"id": "e6",
"parentId": "e5",
"timestamp": "2025-01-01T00:00:06.000Z"
},
{
"type": "branch_summary",
"fromId": "yyy",
"summary": "Hooked summary",
"details": {
"readFiles": [
"hook/r.ts"
]
},
"fromHook": true,
"id": "e7",
"parentId": "e6",
"timestamp": "2025-01-01T00:00:07.000Z"
},
{
"type": "compaction",
"summary": "Compacted part of A",
"firstKeptEntryId": "e2",
"tokensBefore": 500,
"id": "e8",
"parentId": "e7",
"timestamp": "2025-01-01T00:00:08.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "b2",
"name": "edit",
"arguments": {
"path": "lib/a.ts"
}
},
{
"type": "text",
"text": "Edited A ed0 ed1 ed2 ed3 ed4 ed5 ed6 ed7 ed8 ed9 ed10 ed11 ed12 ed13 ed14 ed15 ed16 ed17 ed18 ed19 ed20 ed21 ed22 ed23 ed24 ed25 ed26 ed27 ed28 ed29"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 700,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 760,
"cost": {
"input": 0.0007,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0013
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e9",
"parentId": "e8",
"timestamp": "2025-01-01T00:00:09.000Z"
},
{
"type": "custom_message",
"customType": "hint",
"content": [
{
"type": "text",
"text": "custom block"
},
{
"type": "image",
"data": "BB",
"mimeType": "image/png"
}
],
"display": false,
"id": "e10",
"parentId": "e9",
"timestamp": "2025-01-01T00:00:10.000Z"
},
{
"type": "session_info",
"name": "named",
"id": "e11",
"parentId": "e10",
"timestamp": "2025-01-01T00:00:11.000Z"
}
],
"commonAncestorId": "e2"
}
},
{
"from": "e13",
"to": "e11",
"result": {
"entries": [
{
"type": "message",
"message": {
"role": "user",
"content": "Explore option B instead",
"timestamp": 1
},
"id": "e12",
"parentId": "e2",
"timestamp": "2025-01-01T00:00:12.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "B"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 150,
"output": 5,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 155,
"cost": {
"input": 0.00015,
"output": 0.00005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.00019999999999999998
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e13",
"parentId": "e12",
"timestamp": "2025-01-01T00:00:13.000Z"
}
],
"commonAncestorId": "e2"
}
},
{
"from": null,
"to": "e13",
"result": {
"entries": [],
"commonAncestorId": null
}
},
{
"from": "e11",
"to": "e11",
"result": {
"entries": [],
"commonAncestorId": "e11"
}
},
{
"from": "e11",
"to": "e1",
"result": {
"entries": [
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "root answer"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 100,
"output": 10,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 110,
"cost": {
"input": 0.0001,
"output": 0.0001,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0002
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e2",
"parentId": "e1",
"timestamp": "2025-01-01T00:00:02.000Z"
},
{
"type": "message",
"message": {
"role": "user",
"content": "Explore option A optA0 optA1 optA2 optA3 optA4 optA5 optA6 optA7 optA8 optA9 optA10 optA11 optA12 optA13 optA14 optA15 optA16 optA17 optA18 optA19 optA20 optA21 optA22 optA23 optA24 optA25 optA26 optA27 optA28 optA29",
"timestamp": 1
},
"id": "e3",
"parentId": "e2",
"timestamp": "2025-01-01T00:00:03.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "Option A analysis anal0 anal1 anal2 anal3 anal4 anal5 anal6 anal7 anal8 anal9 anal10 anal11 anal12 anal13 anal14 anal15 anal16 anal17 anal18 anal19 anal20 anal21 anal22 anal23 anal24 anal25 anal26 anal27 anal28 anal29 anal30 anal31 anal32 anal33 anal34 anal35 anal36 anal37 anal38 anal39 anal40 anal41 anal42 anal43 anal44 anal45 anal46 anal47 anal48 anal49 anal50 anal51 anal52 anal53 anal54 anal55 anal56 anal57 anal58 anal59"
},
{
"type": "toolCall",
"id": "b1",
"name": "read",
"arguments": {
"path": "lib/a.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 400,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 450,
"cost": {
"input": 0.0004,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0009
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e4",
"parentId": "e3",
"timestamp": "2025-01-01T00:00:04.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "b1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "contents of a"
}
],
"isError": false,
"timestamp": 3
},
"id": "e5",
"parentId": "e4",
"timestamp": "2025-01-01T00:00:05.000Z"
},
{
"type": "branch_summary",
"fromId": "zzz",
"summary": "Earlier exploration of option Z",
"details": {
"readFiles": [
"lib/z.ts"
],
"modifiedFiles": [
"lib/zz.ts"
]
},
"id": "e6",
"parentId": "e5",
"timestamp": "2025-01-01T00:00:06.000Z"
},
{
"type": "branch_summary",
"fromId": "yyy",
"summary": "Hooked summary",
"details": {
"readFiles": [
"hook/r.ts"
]
},
"fromHook": true,
"id": "e7",
"parentId": "e6",
"timestamp": "2025-01-01T00:00:07.000Z"
},
{
"type": "compaction",
"summary": "Compacted part of A",
"firstKeptEntryId": "e2",
"tokensBefore": 500,
"id": "e8",
"parentId": "e7",
"timestamp": "2025-01-01T00:00:08.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "b2",
"name": "edit",
"arguments": {
"path": "lib/a.ts"
}
},
{
"type": "text",
"text": "Edited A ed0 ed1 ed2 ed3 ed4 ed5 ed6 ed7 ed8 ed9 ed10 ed11 ed12 ed13 ed14 ed15 ed16 ed17 ed18 ed19 ed20 ed21 ed22 ed23 ed24 ed25 ed26 ed27 ed28 ed29"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 700,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 760,
"cost": {
"input": 0.0007,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0013
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e9",
"parentId": "e8",
"timestamp": "2025-01-01T00:00:09.000Z"
},
{
"type": "custom_message",
"customType": "hint",
"content": [
{
"type": "text",
"text": "custom block"
},
{
"type": "image",
"data": "BB",
"mimeType": "image/png"
}
],
"display": false,
"id": "e10",
"parentId": "e9",
"timestamp": "2025-01-01T00:00:10.000Z"
},
{
"type": "session_info",
"name": "named",
"id": "e11",
"parentId": "e10",
"timestamp": "2025-01-01T00:00:11.000Z"
}
],
"commonAncestorId": "e1"
}
},
{
"from": "e11",
"to": "e2",
"result": {
"entries": [
{
"type": "message",
"message": {
"role": "user",
"content": "Explore option A optA0 optA1 optA2 optA3 optA4 optA5 optA6 optA7 optA8 optA9 optA10 optA11 optA12 optA13 optA14 optA15 optA16 optA17 optA18 optA19 optA20 optA21 optA22 optA23 optA24 optA25 optA26 optA27 optA28 optA29",
"timestamp": 1
},
"id": "e3",
"parentId": "e2",
"timestamp": "2025-01-01T00:00:03.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "Option A analysis anal0 anal1 anal2 anal3 anal4 anal5 anal6 anal7 anal8 anal9 anal10 anal11 anal12 anal13 anal14 anal15 anal16 anal17 anal18 anal19 anal20 anal21 anal22 anal23 anal24 anal25 anal26 anal27 anal28 anal29 anal30 anal31 anal32 anal33 anal34 anal35 anal36 anal37 anal38 anal39 anal40 anal41 anal42 anal43 anal44 anal45 anal46 anal47 anal48 anal49 anal50 anal51 anal52 anal53 anal54 anal55 anal56 anal57 anal58 anal59"
},
{
"type": "toolCall",
"id": "b1",
"name": "read",
"arguments": {
"path": "lib/a.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 400,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 450,
"cost": {
"input": 0.0004,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0009
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e4",
"parentId": "e3",
"timestamp": "2025-01-01T00:00:04.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "b1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "contents of a"
}
],
"isError": false,
"timestamp": 3
},
"id": "e5",
"parentId": "e4",
"timestamp": "2025-01-01T00:00:05.000Z"
},
{
"type": "branch_summary",
"fromId": "zzz",
"summary": "Earlier exploration of option Z",
"details": {
"readFiles": [
"lib/z.ts"
],
"modifiedFiles": [
"lib/zz.ts"
]
},
"id": "e6",
"parentId": "e5",
"timestamp": "2025-01-01T00:00:06.000Z"
},
{
"type": "branch_summary",
"fromId": "yyy",
"summary": "Hooked summary",
"details": {
"readFiles": [
"hook/r.ts"
]
},
"fromHook": true,
"id": "e7",
"parentId": "e6",
"timestamp": "2025-01-01T00:00:07.000Z"
},
{
"type": "compaction",
"summary": "Compacted part of A",
"firstKeptEntryId": "e2",
"tokensBefore": 500,
"id": "e8",
"parentId": "e7",
"timestamp": "2025-01-01T00:00:08.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "b2",
"name": "edit",
"arguments": {
"path": "lib/a.ts"
}
},
{
"type": "text",
"text": "Edited A ed0 ed1 ed2 ed3 ed4 ed5 ed6 ed7 ed8 ed9 ed10 ed11 ed12 ed13 ed14 ed15 ed16 ed17 ed18 ed19 ed20 ed21 ed22 ed23 ed24 ed25 ed26 ed27 ed28 ed29"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 700,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 760,
"cost": {
"input": 0.0007,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0013
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e9",
"parentId": "e8",
"timestamp": "2025-01-01T00:00:09.000Z"
},
{
"type": "custom_message",
"customType": "hint",
"content": [
{
"type": "text",
"text": "custom block"
},
{
"type": "image",
"data": "BB",
"mimeType": "image/png"
}
],
"display": false,
"id": "e10",
"parentId": "e9",
"timestamp": "2025-01-01T00:00:10.000Z"
},
{
"type": "session_info",
"name": "named",
"id": "e11",
"parentId": "e10",
"timestamp": "2025-01-01T00:00:11.000Z"
}
],
"commonAncestorId": "e2"
}
},
{
"from": "e13",
"to": "missing",
"result": {
"entries": [
{
"type": "message",
"message": {
"role": "user",
"content": "root question",
"timestamp": 1
},
"id": "e1",
"parentId": null,
"timestamp": "2025-01-01T00:00:01.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "root answer"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 100,
"output": 10,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 110,
"cost": {
"input": 0.0001,
"output": 0.0001,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0002
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e2",
"parentId": "e1",
"timestamp": "2025-01-01T00:00:02.000Z"
},
{
"type": "message",
"message": {
"role": "user",
"content": "Explore option B instead",
"timestamp": 1
},
"id": "e12",
"parentId": "e2",
"timestamp": "2025-01-01T00:00:12.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "B"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 150,
"output": 5,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 155,
"cost": {
"input": 0.00015,
"output": 0.00005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.00019999999999999998
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e13",
"parentId": "e12",
"timestamp": "2025-01-01T00:00:13.000Z"
}
],
"commonAncestorId": null
}
}
],
"tree": [
{
"type": "message",
"message": {
"role": "user",
"content": "root question",
"timestamp": 1
},
"id": "e1",
"parentId": null,
"timestamp": "2025-01-01T00:00:01.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "root answer"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 100,
"output": 10,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 110,
"cost": {
"input": 0.0001,
"output": 0.0001,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0002
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e2",
"parentId": "e1",
"timestamp": "2025-01-01T00:00:02.000Z"
},
{
"type": "message",
"message": {
"role": "user",
"content": "Explore option A optA0 optA1 optA2 optA3 optA4 optA5 optA6 optA7 optA8 optA9 optA10 optA11 optA12 optA13 optA14 optA15 optA16 optA17 optA18 optA19 optA20 optA21 optA22 optA23 optA24 optA25 optA26 optA27 optA28 optA29",
"timestamp": 1
},
"id": "e3",
"parentId": "e2",
"timestamp": "2025-01-01T00:00:03.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "Option A analysis anal0 anal1 anal2 anal3 anal4 anal5 anal6 anal7 anal8 anal9 anal10 anal11 anal12 anal13 anal14 anal15 anal16 anal17 anal18 anal19 anal20 anal21 anal22 anal23 anal24 anal25 anal26 anal27 anal28 anal29 anal30 anal31 anal32 anal33 anal34 anal35 anal36 anal37 anal38 anal39 anal40 anal41 anal42 anal43 anal44 anal45 anal46 anal47 anal48 anal49 anal50 anal51 anal52 anal53 anal54 anal55 anal56 anal57 anal58 anal59"
},
{
"type": "toolCall",
"id": "b1",
"name": "read",
"arguments": {
"path": "lib/a.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 400,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 450,
"cost": {
"input": 0.0004,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0009
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e4",
"parentId": "e3",
"timestamp": "2025-01-01T00:00:04.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "b1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "contents of a"
}
],
"isError": false,
"timestamp": 3
},
"id": "e5",
"parentId": "e4",
"timestamp": "2025-01-01T00:00:05.000Z"
},
{
"type": "branch_summary",
"fromId": "zzz",
"summary": "Earlier exploration of option Z",
"details": {
"readFiles": [
"lib/z.ts"
],
"modifiedFiles": [
"lib/zz.ts"
]
},
"id": "e6",
"parentId": "e5",
"timestamp": "2025-01-01T00:00:06.000Z"
},
{
"type": "branch_summary",
"fromId": "yyy",
"summary": "Hooked summary",
"details": {
"readFiles": [
"hook/r.ts"
]
},
"fromHook": true,
"id": "e7",
"parentId": "e6",
"timestamp": "2025-01-01T00:00:07.000Z"
},
{
"type": "compaction",
"summary": "Compacted part of A",
"firstKeptEntryId": "e2",
"tokensBefore": 500,
"id": "e8",
"parentId": "e7",
"timestamp": "2025-01-01T00:00:08.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "b2",
"name": "edit",
"arguments": {
"path": "lib/a.ts"
}
},
{
"type": "text",
"text": "Edited A ed0 ed1 ed2 ed3 ed4 ed5 ed6 ed7 ed8 ed9 ed10 ed11 ed12 ed13 ed14 ed15 ed16 ed17 ed18 ed19 ed20 ed21 ed22 ed23 ed24 ed25 ed26 ed27 ed28 ed29"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 700,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 760,
"cost": {
"input": 0.0007,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0013
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e9",
"parentId": "e8",
"timestamp": "2025-01-01T00:00:09.000Z"
},
{
"type": "custom_message",
"customType": "hint",
"content": [
{
"type": "text",
"text": "custom block"
},
{
"type": "image",
"data": "BB",
"mimeType": "image/png"
}
],
"display": false,
"id": "e10",
"parentId": "e9",
"timestamp": "2025-01-01T00:00:10.000Z"
},
{
"type": "session_info",
"name": "named",
"id": "e11",
"parentId": "e10",
"timestamp": "2025-01-01T00:00:11.000Z"
},
{
"type": "message",
"message": {
"role": "user",
"content": "Explore option B instead",
"timestamp": 1
},
"id": "e12",
"parentId": "e2",
"timestamp": "2025-01-01T00:00:12.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "B"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 150,
"output": 5,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 155,
"cost": {
"input": 0.00015,
"output": 0.00005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.00019999999999999998
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e13",
"parentId": "e12",
"timestamp": "2025-01-01T00:00:13.000Z"
}
],
"branchCases": [
{
"name": "plain",
"entries": [
{
"type": "message",
"message": {
"role": "user",
"content": "Explore option A optA0 optA1 optA2 optA3 optA4 optA5 optA6 optA7 optA8 optA9 optA10 optA11 optA12 optA13 optA14 optA15 optA16 optA17 optA18 optA19 optA20 optA21 optA22 optA23 optA24 optA25 optA26 optA27 optA28 optA29",
"timestamp": 1
},
"id": "e3",
"parentId": "e2",
"timestamp": "2025-01-01T00:00:03.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "Option A analysis anal0 anal1 anal2 anal3 anal4 anal5 anal6 anal7 anal8 anal9 anal10 anal11 anal12 anal13 anal14 anal15 anal16 anal17 anal18 anal19 anal20 anal21 anal22 anal23 anal24 anal25 anal26 anal27 anal28 anal29 anal30 anal31 anal32 anal33 anal34 anal35 anal36 anal37 anal38 anal39 anal40 anal41 anal42 anal43 anal44 anal45 anal46 anal47 anal48 anal49 anal50 anal51 anal52 anal53 anal54 anal55 anal56 anal57 anal58 anal59"
},
{
"type": "toolCall",
"id": "b1",
"name": "read",
"arguments": {
"path": "lib/a.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 400,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 450,
"cost": {
"input": 0.0004,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0009
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e4",
"parentId": "e3",
"timestamp": "2025-01-01T00:00:04.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "b1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "contents of a"
}
],
"isError": false,
"timestamp": 3
},
"id": "e5",
"parentId": "e4",
"timestamp": "2025-01-01T00:00:05.000Z"
},
{
"type": "branch_summary",
"fromId": "zzz",
"summary": "Earlier exploration of option Z",
"details": {
"readFiles": [
"lib/z.ts"
],
"modifiedFiles": [
"lib/zz.ts"
]
},
"id": "e6",
"parentId": "e5",
"timestamp": "2025-01-01T00:00:06.000Z"
},
{
"type": "branch_summary",
"fromId": "yyy",
"summary": "Hooked summary",
"details": {
"readFiles": [
"hook/r.ts"
]
},
"fromHook": true,
"id": "e7",
"parentId": "e6",
"timestamp": "2025-01-01T00:00:07.000Z"
},
{
"type": "compaction",
"summary": "Compacted part of A",
"firstKeptEntryId": "e2",
"tokensBefore": 500,
"id": "e8",
"parentId": "e7",
"timestamp": "2025-01-01T00:00:08.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "b2",
"name": "edit",
"arguments": {
"path": "lib/a.ts"
}
},
{
"type": "text",
"text": "Edited A ed0 ed1 ed2 ed3 ed4 ed5 ed6 ed7 ed8 ed9 ed10 ed11 ed12 ed13 ed14 ed15 ed16 ed17 ed18 ed19 ed20 ed21 ed22 ed23 ed24 ed25 ed26 ed27 ed28 ed29"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 700,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 760,
"cost": {
"input": 0.0007,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0013
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e9",
"parentId": "e8",
"timestamp": "2025-01-01T00:00:09.000Z"
},
{
"type": "custom_message",
"customType": "hint",
"content": [
{
"type": "text",
"text": "custom block"
},
{
"type": "image",
"data": "BB",
"mimeType": "image/png"
}
],
"display": false,
"id": "e10",
"parentId": "e9",
"timestamp": "2025-01-01T00:00:10.000Z"
},
{
"type": "session_info",
"name": "named",
"id": "e11",
"parentId": "e10",
"timestamp": "2025-01-01T00:00:11.000Z"
}
],
"responses": [
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "BRANCH"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"model": {
"id": "sum-1",
"name": "Summarizer",
"api": "anthropic-messages",
"provider": "anthropic",
"baseUrl": "https://example.invalid",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 1,
"output": 2,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 3000,
"maxTokens": 6000
},
"requests": [
{
"model": "sum-1",
"context": {
"messages": [
{
"role": "system",
"content": "You are a context summarization assistant. Your task is to read a conversation between a user and an AI assistant, then produce a structured summary following the exact format specified.\n\nDo NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.",
"timestamp": 0
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "<conversation>\n[User]: Explore option A optA0 optA1 optA2 optA3 optA4 optA5 optA6 optA7 optA8 optA9 optA10 optA11 optA12 optA13 optA14 optA15 optA16 optA17 optA18 optA19 optA20 optA21 optA22 optA23 optA24 optA25 optA26 optA27 optA28 optA29\n\n[Assistant]: Option A analysis anal0 anal1 anal2 anal3 anal4 anal5 anal6 anal7 anal8 anal9 anal10 anal11 anal12 anal13 anal14 anal15 anal16 anal17 anal18 anal19 anal20 anal21 anal22 anal23 anal24 anal25 anal26 anal27 anal28 anal29 anal30 anal31 anal32 anal33 anal34 anal35 anal36 anal37 anal38 anal39 anal40 anal41 anal42 anal43 anal44 anal45 anal46 anal47 anal48 anal49 anal50 anal51 anal52 anal53 anal54 anal55 anal56 anal57 anal58 anal59\n\n[Assistant tool calls]: read(path=\"lib/a.ts\")\n\n[User]: The following is a summary of a branch that this conversation came back from:\n\n<summary>\nEarlier exploration of option Z</summary>\n\n[User]: The following is a summary of a branch that this conversation came back from:\n\n<summary>\nHooked summary</summary>\n\n[User]: The conversation history before this point was compacted into the following summary:\n\n<summary>\nCompacted part of A\n</summary>\n\n[Assistant]: Edited A ed0 ed1 ed2 ed3 ed4 ed5 ed6 ed7 ed8 ed9 ed10 ed11 ed12 ed13 ed14 ed15 ed16 ed17 ed18 ed19 ed20 ed21 ed22 ed23 ed24 ed25 ed26 ed27 ed28 ed29\n\n[Assistant tool calls]: edit(path=\"lib/a.ts\")\n\n[User]: custom block\n</conversation>\n\nCreate a structured summary of this conversation branch for context when returning later.\n\nUse this EXACT format:\n\n## Goal\n[What was the user trying to accomplish in this branch?]\n\n## Constraints & Preferences\n- [Any constraints, preferences, or requirements mentioned]\n- [Or \"(none)\" if none were mentioned]\n\n## Progress\n### Done\n- [x] [Completed tasks/changes]\n\n### In Progress\n- [ ] [Work that was started but not finished]\n\n### Blocked\n- [Issues preventing progress, if any]\n\n## Key Decisions\n- **[Decision]**: [Brief rationale]\n\n## Next Steps\n1. [What should happen next to continue this work]\n\nKeep each section concise. Preserve exact file paths, function names, and error messages."
}
],
"timestamp": 1760000000000
}
]
},
"options": {
"apiKey": "key",
"maxTokens": 4096,
"cacheRetention": "none",
"sessionId": "<fresh>"
}
}
],
"outcome": {
"summary": "The user explored a different conversation branch before returning here.\nSummary of that exploration:\n\nBRANCH\n\n<read-files>\nlib/z.ts\n</read-files>\n\n<modified-files>\nlib/a.ts\nlib/zz.ts\n</modified-files>",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"readFiles": [
"lib/z.ts"
],
"modifiedFiles": [
"lib/a.ts",
"lib/zz.ts"
]
}
},
{
"name": "custom",
"entries": [
{
"type": "message",
"message": {
"role": "user",
"content": "Explore option A optA0 optA1 optA2 optA3 optA4 optA5 optA6 optA7 optA8 optA9 optA10 optA11 optA12 optA13 optA14 optA15 optA16 optA17 optA18 optA19 optA20 optA21 optA22 optA23 optA24 optA25 optA26 optA27 optA28 optA29",
"timestamp": 1
},
"id": "e3",
"parentId": "e2",
"timestamp": "2025-01-01T00:00:03.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "Option A analysis anal0 anal1 anal2 anal3 anal4 anal5 anal6 anal7 anal8 anal9 anal10 anal11 anal12 anal13 anal14 anal15 anal16 anal17 anal18 anal19 anal20 anal21 anal22 anal23 anal24 anal25 anal26 anal27 anal28 anal29 anal30 anal31 anal32 anal33 anal34 anal35 anal36 anal37 anal38 anal39 anal40 anal41 anal42 anal43 anal44 anal45 anal46 anal47 anal48 anal49 anal50 anal51 anal52 anal53 anal54 anal55 anal56 anal57 anal58 anal59"
},
{
"type": "toolCall",
"id": "b1",
"name": "read",
"arguments": {
"path": "lib/a.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 400,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 450,
"cost": {
"input": 0.0004,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0009
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e4",
"parentId": "e3",
"timestamp": "2025-01-01T00:00:04.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "b1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "contents of a"
}
],
"isError": false,
"timestamp": 3
},
"id": "e5",
"parentId": "e4",
"timestamp": "2025-01-01T00:00:05.000Z"
},
{
"type": "branch_summary",
"fromId": "zzz",
"summary": "Earlier exploration of option Z",
"details": {
"readFiles": [
"lib/z.ts"
],
"modifiedFiles": [
"lib/zz.ts"
]
},
"id": "e6",
"parentId": "e5",
"timestamp": "2025-01-01T00:00:06.000Z"
},
{
"type": "branch_summary",
"fromId": "yyy",
"summary": "Hooked summary",
"details": {
"readFiles": [
"hook/r.ts"
]
},
"fromHook": true,
"id": "e7",
"parentId": "e6",
"timestamp": "2025-01-01T00:00:07.000Z"
},
{
"type": "compaction",
"summary": "Compacted part of A",
"firstKeptEntryId": "e2",
"tokensBefore": 500,
"id": "e8",
"parentId": "e7",
"timestamp": "2025-01-01T00:00:08.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "b2",
"name": "edit",
"arguments": {
"path": "lib/a.ts"
}
},
{
"type": "text",
"text": "Edited A ed0 ed1 ed2 ed3 ed4 ed5 ed6 ed7 ed8 ed9 ed10 ed11 ed12 ed13 ed14 ed15 ed16 ed17 ed18 ed19 ed20 ed21 ed22 ed23 ed24 ed25 ed26 ed27 ed28 ed29"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 700,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 760,
"cost": {
"input": 0.0007,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0013
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e9",
"parentId": "e8",
"timestamp": "2025-01-01T00:00:09.000Z"
},
{
"type": "custom_message",
"customType": "hint",
"content": [
{
"type": "text",
"text": "custom block"
},
{
"type": "image",
"data": "BB",
"mimeType": "image/png"
}
],
"display": false,
"id": "e10",
"parentId": "e9",
"timestamp": "2025-01-01T00:00:10.000Z"
},
{
"type": "session_info",
"name": "named",
"id": "e11",
"parentId": "e10",
"timestamp": "2025-01-01T00:00:11.000Z"
}
],
"customInstructions": "only files",
"responses": [
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "C"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"model": {
"id": "sum-1",
"name": "Summarizer",
"api": "anthropic-messages",
"provider": "anthropic",
"baseUrl": "https://example.invalid",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 1,
"output": 2,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 3000,
"maxTokens": 6000
},
"requests": [
{
"model": "sum-1",
"context": {
"messages": [
{
"role": "system",
"content": "You are a context summarization assistant. Your task is to read a conversation between a user and an AI assistant, then produce a structured summary following the exact format specified.\n\nDo NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.",
"timestamp": 0
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "<conversation>\n[User]: Explore option A optA0 optA1 optA2 optA3 optA4 optA5 optA6 optA7 optA8 optA9 optA10 optA11 optA12 optA13 optA14 optA15 optA16 optA17 optA18 optA19 optA20 optA21 optA22 optA23 optA24 optA25 optA26 optA27 optA28 optA29\n\n[Assistant]: Option A analysis anal0 anal1 anal2 anal3 anal4 anal5 anal6 anal7 anal8 anal9 anal10 anal11 anal12 anal13 anal14 anal15 anal16 anal17 anal18 anal19 anal20 anal21 anal22 anal23 anal24 anal25 anal26 anal27 anal28 anal29 anal30 anal31 anal32 anal33 anal34 anal35 anal36 anal37 anal38 anal39 anal40 anal41 anal42 anal43 anal44 anal45 anal46 anal47 anal48 anal49 anal50 anal51 anal52 anal53 anal54 anal55 anal56 anal57 anal58 anal59\n\n[Assistant tool calls]: read(path=\"lib/a.ts\")\n\n[User]: The following is a summary of a branch that this conversation came back from:\n\n<summary>\nEarlier exploration of option Z</summary>\n\n[User]: The following is a summary of a branch that this conversation came back from:\n\n<summary>\nHooked summary</summary>\n\n[User]: The conversation history before this point was compacted into the following summary:\n\n<summary>\nCompacted part of A\n</summary>\n\n[Assistant]: Edited A ed0 ed1 ed2 ed3 ed4 ed5 ed6 ed7 ed8 ed9 ed10 ed11 ed12 ed13 ed14 ed15 ed16 ed17 ed18 ed19 ed20 ed21 ed22 ed23 ed24 ed25 ed26 ed27 ed28 ed29\n\n[Assistant tool calls]: edit(path=\"lib/a.ts\")\n\n[User]: custom block\n</conversation>\n\nCreate a structured summary of this conversation branch for context when returning later.\n\nUse this EXACT format:\n\n## Goal\n[What was the user trying to accomplish in this branch?]\n\n## Constraints & Preferences\n- [Any constraints, preferences, or requirements mentioned]\n- [Or \"(none)\" if none were mentioned]\n\n## Progress\n### Done\n- [x] [Completed tasks/changes]\n\n### In Progress\n- [ ] [Work that was started but not finished]\n\n### Blocked\n- [Issues preventing progress, if any]\n\n## Key Decisions\n- **[Decision]**: [Brief rationale]\n\n## Next Steps\n1. [What should happen next to continue this work]\n\nKeep each section concise. Preserve exact file paths, function names, and error messages.\n\nAdditional focus: only files"
}
],
"timestamp": 1760000000000
}
]
},
"options": {
"apiKey": "key",
"maxTokens": 4096,
"cacheRetention": "none",
"sessionId": "<fresh>"
}
}
],
"outcome": {
"summary": "The user explored a different conversation branch before returning here.\nSummary of that exploration:\n\nC\n\n<read-files>\nlib/z.ts\n</read-files>\n\n<modified-files>\nlib/a.ts\nlib/zz.ts\n</modified-files>",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"readFiles": [
"lib/z.ts"
],
"modifiedFiles": [
"lib/a.ts",
"lib/zz.ts"
]
}
},
{
"name": "replace",
"entries": [
{
"type": "message",
"message": {
"role": "user",
"content": "Explore option A optA0 optA1 optA2 optA3 optA4 optA5 optA6 optA7 optA8 optA9 optA10 optA11 optA12 optA13 optA14 optA15 optA16 optA17 optA18 optA19 optA20 optA21 optA22 optA23 optA24 optA25 optA26 optA27 optA28 optA29",
"timestamp": 1
},
"id": "e3",
"parentId": "e2",
"timestamp": "2025-01-01T00:00:03.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "Option A analysis anal0 anal1 anal2 anal3 anal4 anal5 anal6 anal7 anal8 anal9 anal10 anal11 anal12 anal13 anal14 anal15 anal16 anal17 anal18 anal19 anal20 anal21 anal22 anal23 anal24 anal25 anal26 anal27 anal28 anal29 anal30 anal31 anal32 anal33 anal34 anal35 anal36 anal37 anal38 anal39 anal40 anal41 anal42 anal43 anal44 anal45 anal46 anal47 anal48 anal49 anal50 anal51 anal52 anal53 anal54 anal55 anal56 anal57 anal58 anal59"
},
{
"type": "toolCall",
"id": "b1",
"name": "read",
"arguments": {
"path": "lib/a.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 400,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 450,
"cost": {
"input": 0.0004,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0009
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e4",
"parentId": "e3",
"timestamp": "2025-01-01T00:00:04.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "b1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "contents of a"
}
],
"isError": false,
"timestamp": 3
},
"id": "e5",
"parentId": "e4",
"timestamp": "2025-01-01T00:00:05.000Z"
},
{
"type": "branch_summary",
"fromId": "zzz",
"summary": "Earlier exploration of option Z",
"details": {
"readFiles": [
"lib/z.ts"
],
"modifiedFiles": [
"lib/zz.ts"
]
},
"id": "e6",
"parentId": "e5",
"timestamp": "2025-01-01T00:00:06.000Z"
},
{
"type": "branch_summary",
"fromId": "yyy",
"summary": "Hooked summary",
"details": {
"readFiles": [
"hook/r.ts"
]
},
"fromHook": true,
"id": "e7",
"parentId": "e6",
"timestamp": "2025-01-01T00:00:07.000Z"
},
{
"type": "compaction",
"summary": "Compacted part of A",
"firstKeptEntryId": "e2",
"tokensBefore": 500,
"id": "e8",
"parentId": "e7",
"timestamp": "2025-01-01T00:00:08.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "b2",
"name": "edit",
"arguments": {
"path": "lib/a.ts"
}
},
{
"type": "text",
"text": "Edited A ed0 ed1 ed2 ed3 ed4 ed5 ed6 ed7 ed8 ed9 ed10 ed11 ed12 ed13 ed14 ed15 ed16 ed17 ed18 ed19 ed20 ed21 ed22 ed23 ed24 ed25 ed26 ed27 ed28 ed29"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 700,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 760,
"cost": {
"input": 0.0007,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0013
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e9",
"parentId": "e8",
"timestamp": "2025-01-01T00:00:09.000Z"
},
{
"type": "custom_message",
"customType": "hint",
"content": [
{
"type": "text",
"text": "custom block"
},
{
"type": "image",
"data": "BB",
"mimeType": "image/png"
}
],
"display": false,
"id": "e10",
"parentId": "e9",
"timestamp": "2025-01-01T00:00:10.000Z"
},
{
"type": "session_info",
"name": "named",
"id": "e11",
"parentId": "e10",
"timestamp": "2025-01-01T00:00:11.000Z"
}
],
"customInstructions": "Just list files.",
"replaceInstructions": true,
"responses": [
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "R"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"model": {
"id": "sum-1",
"name": "Summarizer",
"api": "anthropic-messages",
"provider": "anthropic",
"baseUrl": "https://example.invalid",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 1,
"output": 2,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 3000,
"maxTokens": 6000
},
"requests": [
{
"model": "sum-1",
"context": {
"messages": [
{
"role": "system",
"content": "You are a context summarization assistant. Your task is to read a conversation between a user and an AI assistant, then produce a structured summary following the exact format specified.\n\nDo NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.",
"timestamp": 0
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "<conversation>\n[User]: Explore option A optA0 optA1 optA2 optA3 optA4 optA5 optA6 optA7 optA8 optA9 optA10 optA11 optA12 optA13 optA14 optA15 optA16 optA17 optA18 optA19 optA20 optA21 optA22 optA23 optA24 optA25 optA26 optA27 optA28 optA29\n\n[Assistant]: Option A analysis anal0 anal1 anal2 anal3 anal4 anal5 anal6 anal7 anal8 anal9 anal10 anal11 anal12 anal13 anal14 anal15 anal16 anal17 anal18 anal19 anal20 anal21 anal22 anal23 anal24 anal25 anal26 anal27 anal28 anal29 anal30 anal31 anal32 anal33 anal34 anal35 anal36 anal37 anal38 anal39 anal40 anal41 anal42 anal43 anal44 anal45 anal46 anal47 anal48 anal49 anal50 anal51 anal52 anal53 anal54 anal55 anal56 anal57 anal58 anal59\n\n[Assistant tool calls]: read(path=\"lib/a.ts\")\n\n[User]: The following is a summary of a branch that this conversation came back from:\n\n<summary>\nEarlier exploration of option Z</summary>\n\n[User]: The following is a summary of a branch that this conversation came back from:\n\n<summary>\nHooked summary</summary>\n\n[User]: The conversation history before this point was compacted into the following summary:\n\n<summary>\nCompacted part of A\n</summary>\n\n[Assistant]: Edited A ed0 ed1 ed2 ed3 ed4 ed5 ed6 ed7 ed8 ed9 ed10 ed11 ed12 ed13 ed14 ed15 ed16 ed17 ed18 ed19 ed20 ed21 ed22 ed23 ed24 ed25 ed26 ed27 ed28 ed29\n\n[Assistant tool calls]: edit(path=\"lib/a.ts\")\n\n[User]: custom block\n</conversation>\n\nJust list files."
}
],
"timestamp": 1760000000000
}
]
},
"options": {
"apiKey": "key",
"maxTokens": 4096,
"cacheRetention": "none",
"sessionId": "<fresh>"
}
}
],
"outcome": {
"summary": "The user explored a different conversation branch before returning here.\nSummary of that exploration:\n\nR\n\n<read-files>\nlib/z.ts\n</read-files>\n\n<modified-files>\nlib/a.ts\nlib/zz.ts\n</modified-files>",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"readFiles": [
"lib/z.ts"
],
"modifiedFiles": [
"lib/a.ts",
"lib/zz.ts"
]
}
},
{
"name": "replace-without-custom",
"entries": [
{
"type": "message",
"message": {
"role": "user",
"content": "Explore option A optA0 optA1 optA2 optA3 optA4 optA5 optA6 optA7 optA8 optA9 optA10 optA11 optA12 optA13 optA14 optA15 optA16 optA17 optA18 optA19 optA20 optA21 optA22 optA23 optA24 optA25 optA26 optA27 optA28 optA29",
"timestamp": 1
},
"id": "e3",
"parentId": "e2",
"timestamp": "2025-01-01T00:00:03.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "Option A analysis anal0 anal1 anal2 anal3 anal4 anal5 anal6 anal7 anal8 anal9 anal10 anal11 anal12 anal13 anal14 anal15 anal16 anal17 anal18 anal19 anal20 anal21 anal22 anal23 anal24 anal25 anal26 anal27 anal28 anal29 anal30 anal31 anal32 anal33 anal34 anal35 anal36 anal37 anal38 anal39 anal40 anal41 anal42 anal43 anal44 anal45 anal46 anal47 anal48 anal49 anal50 anal51 anal52 anal53 anal54 anal55 anal56 anal57 anal58 anal59"
},
{
"type": "toolCall",
"id": "b1",
"name": "read",
"arguments": {
"path": "lib/a.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 400,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 450,
"cost": {
"input": 0.0004,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0009
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e4",
"parentId": "e3",
"timestamp": "2025-01-01T00:00:04.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "b1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "contents of a"
}
],
"isError": false,
"timestamp": 3
},
"id": "e5",
"parentId": "e4",
"timestamp": "2025-01-01T00:00:05.000Z"
},
{
"type": "branch_summary",
"fromId": "zzz",
"summary": "Earlier exploration of option Z",
"details": {
"readFiles": [
"lib/z.ts"
],
"modifiedFiles": [
"lib/zz.ts"
]
},
"id": "e6",
"parentId": "e5",
"timestamp": "2025-01-01T00:00:06.000Z"
},
{
"type": "branch_summary",
"fromId": "yyy",
"summary": "Hooked summary",
"details": {
"readFiles": [
"hook/r.ts"
]
},
"fromHook": true,
"id": "e7",
"parentId": "e6",
"timestamp": "2025-01-01T00:00:07.000Z"
},
{
"type": "compaction",
"summary": "Compacted part of A",
"firstKeptEntryId": "e2",
"tokensBefore": 500,
"id": "e8",
"parentId": "e7",
"timestamp": "2025-01-01T00:00:08.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "b2",
"name": "edit",
"arguments": {
"path": "lib/a.ts"
}
},
{
"type": "text",
"text": "Edited A ed0 ed1 ed2 ed3 ed4 ed5 ed6 ed7 ed8 ed9 ed10 ed11 ed12 ed13 ed14 ed15 ed16 ed17 ed18 ed19 ed20 ed21 ed22 ed23 ed24 ed25 ed26 ed27 ed28 ed29"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 700,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 760,
"cost": {
"input": 0.0007,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0013
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e9",
"parentId": "e8",
"timestamp": "2025-01-01T00:00:09.000Z"
},
{
"type": "custom_message",
"customType": "hint",
"content": [
{
"type": "text",
"text": "custom block"
},
{
"type": "image",
"data": "BB",
"mimeType": "image/png"
}
],
"display": false,
"id": "e10",
"parentId": "e9",
"timestamp": "2025-01-01T00:00:10.000Z"
},
{
"type": "session_info",
"name": "named",
"id": "e11",
"parentId": "e10",
"timestamp": "2025-01-01T00:00:11.000Z"
}
],
"replaceInstructions": true,
"responses": [
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "R"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"model": {
"id": "sum-1",
"name": "Summarizer",
"api": "anthropic-messages",
"provider": "anthropic",
"baseUrl": "https://example.invalid",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 1,
"output": 2,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 3000,
"maxTokens": 6000
},
"requests": [
{
"model": "sum-1",
"context": {
"messages": [
{
"role": "system",
"content": "You are a context summarization assistant. Your task is to read a conversation between a user and an AI assistant, then produce a structured summary following the exact format specified.\n\nDo NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.",
"timestamp": 0
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "<conversation>\n[User]: Explore option A optA0 optA1 optA2 optA3 optA4 optA5 optA6 optA7 optA8 optA9 optA10 optA11 optA12 optA13 optA14 optA15 optA16 optA17 optA18 optA19 optA20 optA21 optA22 optA23 optA24 optA25 optA26 optA27 optA28 optA29\n\n[Assistant]: Option A analysis anal0 anal1 anal2 anal3 anal4 anal5 anal6 anal7 anal8 anal9 anal10 anal11 anal12 anal13 anal14 anal15 anal16 anal17 anal18 anal19 anal20 anal21 anal22 anal23 anal24 anal25 anal26 anal27 anal28 anal29 anal30 anal31 anal32 anal33 anal34 anal35 anal36 anal37 anal38 anal39 anal40 anal41 anal42 anal43 anal44 anal45 anal46 anal47 anal48 anal49 anal50 anal51 anal52 anal53 anal54 anal55 anal56 anal57 anal58 anal59\n\n[Assistant tool calls]: read(path=\"lib/a.ts\")\n\n[User]: The following is a summary of a branch that this conversation came back from:\n\n<summary>\nEarlier exploration of option Z</summary>\n\n[User]: The following is a summary of a branch that this conversation came back from:\n\n<summary>\nHooked summary</summary>\n\n[User]: The conversation history before this point was compacted into the following summary:\n\n<summary>\nCompacted part of A\n</summary>\n\n[Assistant]: Edited A ed0 ed1 ed2 ed3 ed4 ed5 ed6 ed7 ed8 ed9 ed10 ed11 ed12 ed13 ed14 ed15 ed16 ed17 ed18 ed19 ed20 ed21 ed22 ed23 ed24 ed25 ed26 ed27 ed28 ed29\n\n[Assistant tool calls]: edit(path=\"lib/a.ts\")\n\n[User]: custom block\n</conversation>\n\nCreate a structured summary of this conversation branch for context when returning later.\n\nUse this EXACT format:\n\n## Goal\n[What was the user trying to accomplish in this branch?]\n\n## Constraints & Preferences\n- [Any constraints, preferences, or requirements mentioned]\n- [Or \"(none)\" if none were mentioned]\n\n## Progress\n### Done\n- [x] [Completed tasks/changes]\n\n### In Progress\n- [ ] [Work that was started but not finished]\n\n### Blocked\n- [Issues preventing progress, if any]\n\n## Key Decisions\n- **[Decision]**: [Brief rationale]\n\n## Next Steps\n1. [What should happen next to continue this work]\n\nKeep each section concise. Preserve exact file paths, function names, and error messages."
}
],
"timestamp": 1760000000000
}
]
},
"options": {
"apiKey": "key",
"maxTokens": 4096,
"cacheRetention": "none",
"sessionId": "<fresh>"
}
}
],
"outcome": {
"summary": "The user explored a different conversation branch before returning here.\nSummary of that exploration:\n\nR\n\n<read-files>\nlib/z.ts\n</read-files>\n\n<modified-files>\nlib/a.ts\nlib/zz.ts\n</modified-files>",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"readFiles": [
"lib/z.ts"
],
"modifiedFiles": [
"lib/a.ts",
"lib/zz.ts"
]
}
},
{
"name": "budget",
"entries": [
{
"type": "message",
"message": {
"role": "user",
"content": "Explore option A optA0 optA1 optA2 optA3 optA4 optA5 optA6 optA7 optA8 optA9 optA10 optA11 optA12 optA13 optA14 optA15 optA16 optA17 optA18 optA19 optA20 optA21 optA22 optA23 optA24 optA25 optA26 optA27 optA28 optA29",
"timestamp": 1
},
"id": "e3",
"parentId": "e2",
"timestamp": "2025-01-01T00:00:03.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "Option A analysis anal0 anal1 anal2 anal3 anal4 anal5 anal6 anal7 anal8 anal9 anal10 anal11 anal12 anal13 anal14 anal15 anal16 anal17 anal18 anal19 anal20 anal21 anal22 anal23 anal24 anal25 anal26 anal27 anal28 anal29 anal30 anal31 anal32 anal33 anal34 anal35 anal36 anal37 anal38 anal39 anal40 anal41 anal42 anal43 anal44 anal45 anal46 anal47 anal48 anal49 anal50 anal51 anal52 anal53 anal54 anal55 anal56 anal57 anal58 anal59"
},
{
"type": "toolCall",
"id": "b1",
"name": "read",
"arguments": {
"path": "lib/a.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 400,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 450,
"cost": {
"input": 0.0004,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0009
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e4",
"parentId": "e3",
"timestamp": "2025-01-01T00:00:04.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "b1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "contents of a"
}
],
"isError": false,
"timestamp": 3
},
"id": "e5",
"parentId": "e4",
"timestamp": "2025-01-01T00:00:05.000Z"
},
{
"type": "branch_summary",
"fromId": "zzz",
"summary": "Earlier exploration of option Z",
"details": {
"readFiles": [
"lib/z.ts"
],
"modifiedFiles": [
"lib/zz.ts"
]
},
"id": "e6",
"parentId": "e5",
"timestamp": "2025-01-01T00:00:06.000Z"
},
{
"type": "branch_summary",
"fromId": "yyy",
"summary": "Hooked summary",
"details": {
"readFiles": [
"hook/r.ts"
]
},
"fromHook": true,
"id": "e7",
"parentId": "e6",
"timestamp": "2025-01-01T00:00:07.000Z"
},
{
"type": "compaction",
"summary": "Compacted part of A",
"firstKeptEntryId": "e2",
"tokensBefore": 500,
"id": "e8",
"parentId": "e7",
"timestamp": "2025-01-01T00:00:08.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "b2",
"name": "edit",
"arguments": {
"path": "lib/a.ts"
}
},
{
"type": "text",
"text": "Edited A ed0 ed1 ed2 ed3 ed4 ed5 ed6 ed7 ed8 ed9 ed10 ed11 ed12 ed13 ed14 ed15 ed16 ed17 ed18 ed19 ed20 ed21 ed22 ed23 ed24 ed25 ed26 ed27 ed28 ed29"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 700,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 760,
"cost": {
"input": 0.0007,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0013
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e9",
"parentId": "e8",
"timestamp": "2025-01-01T00:00:09.000Z"
},
{
"type": "custom_message",
"customType": "hint",
"content": [
{
"type": "text",
"text": "custom block"
},
{
"type": "image",
"data": "BB",
"mimeType": "image/png"
}
],
"display": false,
"id": "e10",
"parentId": "e9",
"timestamp": "2025-01-01T00:00:10.000Z"
},
{
"type": "session_info",
"name": "named",
"id": "e11",
"parentId": "e10",
"timestamp": "2025-01-01T00:00:11.000Z"
}
],
"model": {
"id": "sum-1",
"name": "Summarizer",
"api": "anthropic-messages",
"provider": "anthropic",
"baseUrl": "https://example.invalid",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 1,
"output": 2,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 400,
"maxTokens": 1000
},
"reserveTokens": 300,
"responses": [
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "small"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"requests": [],
"outcome": {
"summary": "No content to summarize"
}
},
{
"name": "default-window",
"entries": [
{
"type": "message",
"message": {
"role": "user",
"content": "Explore option A optA0 optA1 optA2 optA3 optA4 optA5 optA6 optA7 optA8 optA9 optA10 optA11 optA12 optA13 optA14 optA15 optA16 optA17 optA18 optA19 optA20 optA21 optA22 optA23 optA24 optA25 optA26 optA27 optA28 optA29",
"timestamp": 1
},
"id": "e3",
"parentId": "e2",
"timestamp": "2025-01-01T00:00:03.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "Option A analysis anal0 anal1 anal2 anal3 anal4 anal5 anal6 anal7 anal8 anal9 anal10 anal11 anal12 anal13 anal14 anal15 anal16 anal17 anal18 anal19 anal20 anal21 anal22 anal23 anal24 anal25 anal26 anal27 anal28 anal29 anal30 anal31 anal32 anal33 anal34 anal35 anal36 anal37 anal38 anal39 anal40 anal41 anal42 anal43 anal44 anal45 anal46 anal47 anal48 anal49 anal50 anal51 anal52 anal53 anal54 anal55 anal56 anal57 anal58 anal59"
},
{
"type": "toolCall",
"id": "b1",
"name": "read",
"arguments": {
"path": "lib/a.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 400,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 450,
"cost": {
"input": 0.0004,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0009
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e4",
"parentId": "e3",
"timestamp": "2025-01-01T00:00:04.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "b1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "contents of a"
}
],
"isError": false,
"timestamp": 3
},
"id": "e5",
"parentId": "e4",
"timestamp": "2025-01-01T00:00:05.000Z"
},
{
"type": "branch_summary",
"fromId": "zzz",
"summary": "Earlier exploration of option Z",
"details": {
"readFiles": [
"lib/z.ts"
],
"modifiedFiles": [
"lib/zz.ts"
]
},
"id": "e6",
"parentId": "e5",
"timestamp": "2025-01-01T00:00:06.000Z"
},
{
"type": "branch_summary",
"fromId": "yyy",
"summary": "Hooked summary",
"details": {
"readFiles": [
"hook/r.ts"
]
},
"fromHook": true,
"id": "e7",
"parentId": "e6",
"timestamp": "2025-01-01T00:00:07.000Z"
},
{
"type": "compaction",
"summary": "Compacted part of A",
"firstKeptEntryId": "e2",
"tokensBefore": 500,
"id": "e8",
"parentId": "e7",
"timestamp": "2025-01-01T00:00:08.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "b2",
"name": "edit",
"arguments": {
"path": "lib/a.ts"
}
},
{
"type": "text",
"text": "Edited A ed0 ed1 ed2 ed3 ed4 ed5 ed6 ed7 ed8 ed9 ed10 ed11 ed12 ed13 ed14 ed15 ed16 ed17 ed18 ed19 ed20 ed21 ed22 ed23 ed24 ed25 ed26 ed27 ed28 ed29"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 700,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 760,
"cost": {
"input": 0.0007,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0013
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e9",
"parentId": "e8",
"timestamp": "2025-01-01T00:00:09.000Z"
},
{
"type": "custom_message",
"customType": "hint",
"content": [
{
"type": "text",
"text": "custom block"
},
{
"type": "image",
"data": "BB",
"mimeType": "image/png"
}
],
"display": false,
"id": "e10",
"parentId": "e9",
"timestamp": "2025-01-01T00:00:10.000Z"
},
{
"type": "session_info",
"name": "named",
"id": "e11",
"parentId": "e10",
"timestamp": "2025-01-01T00:00:11.000Z"
}
],
"model": {
"id": "sum-1",
"name": "Summarizer",
"api": "anthropic-messages",
"provider": "anthropic",
"baseUrl": "https://example.invalid",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 1,
"output": 2,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 0,
"maxTokens": 0
},
"responses": [
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "w"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"requests": [
{
"model": "sum-1",
"context": {
"messages": [
{
"role": "system",
"content": "You are a context summarization assistant. Your task is to read a conversation between a user and an AI assistant, then produce a structured summary following the exact format specified.\n\nDo NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.",
"timestamp": 0
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "<conversation>\n[User]: Explore option A optA0 optA1 optA2 optA3 optA4 optA5 optA6 optA7 optA8 optA9 optA10 optA11 optA12 optA13 optA14 optA15 optA16 optA17 optA18 optA19 optA20 optA21 optA22 optA23 optA24 optA25 optA26 optA27 optA28 optA29\n\n[Assistant]: Option A analysis anal0 anal1 anal2 anal3 anal4 anal5 anal6 anal7 anal8 anal9 anal10 anal11 anal12 anal13 anal14 anal15 anal16 anal17 anal18 anal19 anal20 anal21 anal22 anal23 anal24 anal25 anal26 anal27 anal28 anal29 anal30 anal31 anal32 anal33 anal34 anal35 anal36 anal37 anal38 anal39 anal40 anal41 anal42 anal43 anal44 anal45 anal46 anal47 anal48 anal49 anal50 anal51 anal52 anal53 anal54 anal55 anal56 anal57 anal58 anal59\n\n[Assistant tool calls]: read(path=\"lib/a.ts\")\n\n[User]: The following is a summary of a branch that this conversation came back from:\n\n<summary>\nEarlier exploration of option Z</summary>\n\n[User]: The following is a summary of a branch that this conversation came back from:\n\n<summary>\nHooked summary</summary>\n\n[User]: The conversation history before this point was compacted into the following summary:\n\n<summary>\nCompacted part of A\n</summary>\n\n[Assistant]: Edited A ed0 ed1 ed2 ed3 ed4 ed5 ed6 ed7 ed8 ed9 ed10 ed11 ed12 ed13 ed14 ed15 ed16 ed17 ed18 ed19 ed20 ed21 ed22 ed23 ed24 ed25 ed26 ed27 ed28 ed29\n\n[Assistant tool calls]: edit(path=\"lib/a.ts\")\n\n[User]: custom block\n</conversation>\n\nCreate a structured summary of this conversation branch for context when returning later.\n\nUse this EXACT format:\n\n## Goal\n[What was the user trying to accomplish in this branch?]\n\n## Constraints & Preferences\n- [Any constraints, preferences, or requirements mentioned]\n- [Or \"(none)\" if none were mentioned]\n\n## Progress\n### Done\n- [x] [Completed tasks/changes]\n\n### In Progress\n- [ ] [Work that was started but not finished]\n\n### Blocked\n- [Issues preventing progress, if any]\n\n## Key Decisions\n- **[Decision]**: [Brief rationale]\n\n## Next Steps\n1. [What should happen next to continue this work]\n\nKeep each section concise. Preserve exact file paths, function names, and error messages."
}
],
"timestamp": 1760000000000
}
]
},
"options": {
"apiKey": "key",
"maxTokens": 4096,
"cacheRetention": "none",
"sessionId": "<fresh>"
}
}
],
"outcome": {
"summary": "The user explored a different conversation branch before returning here.\nSummary of that exploration:\n\nw\n\n<read-files>\nlib/z.ts\n</read-files>\n\n<modified-files>\nlib/a.ts\nlib/zz.ts\n</modified-files>",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"readFiles": [
"lib/z.ts"
],
"modifiedFiles": [
"lib/a.ts",
"lib/zz.ts"
]
}
},
{
"name": "empty",
"entries": [],
"responses": [
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "never"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"model": {
"id": "sum-1",
"name": "Summarizer",
"api": "anthropic-messages",
"provider": "anthropic",
"baseUrl": "https://example.invalid",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 1,
"output": 2,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 3000,
"maxTokens": 6000
},
"requests": [],
"outcome": {
"summary": "No content to summarize"
}
},
{
"name": "only-metadata",
"entries": [
{
"type": "session_info",
"name": "named",
"id": "e11",
"parentId": "e10",
"timestamp": "2025-01-01T00:00:11.000Z"
}
],
"responses": [
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "never"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"model": {
"id": "sum-1",
"name": "Summarizer",
"api": "anthropic-messages",
"provider": "anthropic",
"baseUrl": "https://example.invalid",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 1,
"output": 2,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 3000,
"maxTokens": 6000
},
"requests": [],
"outcome": {
"summary": "No content to summarize"
}
},
{
"name": "aborted",
"entries": [
{
"type": "message",
"message": {
"role": "user",
"content": "Explore option A optA0 optA1 optA2 optA3 optA4 optA5 optA6 optA7 optA8 optA9 optA10 optA11 optA12 optA13 optA14 optA15 optA16 optA17 optA18 optA19 optA20 optA21 optA22 optA23 optA24 optA25 optA26 optA27 optA28 optA29",
"timestamp": 1
},
"id": "e3",
"parentId": "e2",
"timestamp": "2025-01-01T00:00:03.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "Option A analysis anal0 anal1 anal2 anal3 anal4 anal5 anal6 anal7 anal8 anal9 anal10 anal11 anal12 anal13 anal14 anal15 anal16 anal17 anal18 anal19 anal20 anal21 anal22 anal23 anal24 anal25 anal26 anal27 anal28 anal29 anal30 anal31 anal32 anal33 anal34 anal35 anal36 anal37 anal38 anal39 anal40 anal41 anal42 anal43 anal44 anal45 anal46 anal47 anal48 anal49 anal50 anal51 anal52 anal53 anal54 anal55 anal56 anal57 anal58 anal59"
},
{
"type": "toolCall",
"id": "b1",
"name": "read",
"arguments": {
"path": "lib/a.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 400,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 450,
"cost": {
"input": 0.0004,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0009
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e4",
"parentId": "e3",
"timestamp": "2025-01-01T00:00:04.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "b1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "contents of a"
}
],
"isError": false,
"timestamp": 3
},
"id": "e5",
"parentId": "e4",
"timestamp": "2025-01-01T00:00:05.000Z"
},
{
"type": "branch_summary",
"fromId": "zzz",
"summary": "Earlier exploration of option Z",
"details": {
"readFiles": [
"lib/z.ts"
],
"modifiedFiles": [
"lib/zz.ts"
]
},
"id": "e6",
"parentId": "e5",
"timestamp": "2025-01-01T00:00:06.000Z"
},
{
"type": "branch_summary",
"fromId": "yyy",
"summary": "Hooked summary",
"details": {
"readFiles": [
"hook/r.ts"
]
},
"fromHook": true,
"id": "e7",
"parentId": "e6",
"timestamp": "2025-01-01T00:00:07.000Z"
},
{
"type": "compaction",
"summary": "Compacted part of A",
"firstKeptEntryId": "e2",
"tokensBefore": 500,
"id": "e8",
"parentId": "e7",
"timestamp": "2025-01-01T00:00:08.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "b2",
"name": "edit",
"arguments": {
"path": "lib/a.ts"
}
},
{
"type": "text",
"text": "Edited A ed0 ed1 ed2 ed3 ed4 ed5 ed6 ed7 ed8 ed9 ed10 ed11 ed12 ed13 ed14 ed15 ed16 ed17 ed18 ed19 ed20 ed21 ed22 ed23 ed24 ed25 ed26 ed27 ed28 ed29"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 700,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 760,
"cost": {
"input": 0.0007,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0013
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e9",
"parentId": "e8",
"timestamp": "2025-01-01T00:00:09.000Z"
},
{
"type": "custom_message",
"customType": "hint",
"content": [
{
"type": "text",
"text": "custom block"
},
{
"type": "image",
"data": "BB",
"mimeType": "image/png"
}
],
"display": false,
"id": "e10",
"parentId": "e9",
"timestamp": "2025-01-01T00:00:10.000Z"
},
{
"type": "session_info",
"name": "named",
"id": "e11",
"parentId": "e10",
"timestamp": "2025-01-01T00:00:11.000Z"
}
],
"responses": [
{
"role": "assistant",
"content": [],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"stopReason": "aborted",
"timestamp": 2
}
],
"model": {
"id": "sum-1",
"name": "Summarizer",
"api": "anthropic-messages",
"provider": "anthropic",
"baseUrl": "https://example.invalid",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 1,
"output": 2,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 3000,
"maxTokens": 6000
},
"requests": [
{
"model": "sum-1",
"context": {
"messages": [
{
"role": "system",
"content": "You are a context summarization assistant. Your task is to read a conversation between a user and an AI assistant, then produce a structured summary following the exact format specified.\n\nDo NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.",
"timestamp": 0
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "<conversation>\n[User]: Explore option A optA0 optA1 optA2 optA3 optA4 optA5 optA6 optA7 optA8 optA9 optA10 optA11 optA12 optA13 optA14 optA15 optA16 optA17 optA18 optA19 optA20 optA21 optA22 optA23 optA24 optA25 optA26 optA27 optA28 optA29\n\n[Assistant]: Option A analysis anal0 anal1 anal2 anal3 anal4 anal5 anal6 anal7 anal8 anal9 anal10 anal11 anal12 anal13 anal14 anal15 anal16 anal17 anal18 anal19 anal20 anal21 anal22 anal23 anal24 anal25 anal26 anal27 anal28 anal29 anal30 anal31 anal32 anal33 anal34 anal35 anal36 anal37 anal38 anal39 anal40 anal41 anal42 anal43 anal44 anal45 anal46 anal47 anal48 anal49 anal50 anal51 anal52 anal53 anal54 anal55 anal56 anal57 anal58 anal59\n\n[Assistant tool calls]: read(path=\"lib/a.ts\")\n\n[User]: The following is a summary of a branch that this conversation came back from:\n\n<summary>\nEarlier exploration of option Z</summary>\n\n[User]: The following is a summary of a branch that this conversation came back from:\n\n<summary>\nHooked summary</summary>\n\n[User]: The conversation history before this point was compacted into the following summary:\n\n<summary>\nCompacted part of A\n</summary>\n\n[Assistant]: Edited A ed0 ed1 ed2 ed3 ed4 ed5 ed6 ed7 ed8 ed9 ed10 ed11 ed12 ed13 ed14 ed15 ed16 ed17 ed18 ed19 ed20 ed21 ed22 ed23 ed24 ed25 ed26 ed27 ed28 ed29\n\n[Assistant tool calls]: edit(path=\"lib/a.ts\")\n\n[User]: custom block\n</conversation>\n\nCreate a structured summary of this conversation branch for context when returning later.\n\nUse this EXACT format:\n\n## Goal\n[What was the user trying to accomplish in this branch?]\n\n## Constraints & Preferences\n- [Any constraints, preferences, or requirements mentioned]\n- [Or \"(none)\" if none were mentioned]\n\n## Progress\n### Done\n- [x] [Completed tasks/changes]\n\n### In Progress\n- [ ] [Work that was started but not finished]\n\n### Blocked\n- [Issues preventing progress, if any]\n\n## Key Decisions\n- **[Decision]**: [Brief rationale]\n\n## Next Steps\n1. [What should happen next to continue this work]\n\nKeep each section concise. Preserve exact file paths, function names, and error messages."
}
],
"timestamp": 1760000000000
}
]
},
"options": {
"apiKey": "key",
"maxTokens": 4096,
"cacheRetention": "none",
"sessionId": "<fresh>"
}
}
],
"outcome": {
"aborted": true
}
},
{
"name": "error",
"entries": [
{
"type": "message",
"message": {
"role": "user",
"content": "Explore option A optA0 optA1 optA2 optA3 optA4 optA5 optA6 optA7 optA8 optA9 optA10 optA11 optA12 optA13 optA14 optA15 optA16 optA17 optA18 optA19 optA20 optA21 optA22 optA23 optA24 optA25 optA26 optA27 optA28 optA29",
"timestamp": 1
},
"id": "e3",
"parentId": "e2",
"timestamp": "2025-01-01T00:00:03.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "Option A analysis anal0 anal1 anal2 anal3 anal4 anal5 anal6 anal7 anal8 anal9 anal10 anal11 anal12 anal13 anal14 anal15 anal16 anal17 anal18 anal19 anal20 anal21 anal22 anal23 anal24 anal25 anal26 anal27 anal28 anal29 anal30 anal31 anal32 anal33 anal34 anal35 anal36 anal37 anal38 anal39 anal40 anal41 anal42 anal43 anal44 anal45 anal46 anal47 anal48 anal49 anal50 anal51 anal52 anal53 anal54 anal55 anal56 anal57 anal58 anal59"
},
{
"type": "toolCall",
"id": "b1",
"name": "read",
"arguments": {
"path": "lib/a.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 400,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 450,
"cost": {
"input": 0.0004,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0009
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e4",
"parentId": "e3",
"timestamp": "2025-01-01T00:00:04.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "b1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "contents of a"
}
],
"isError": false,
"timestamp": 3
},
"id": "e5",
"parentId": "e4",
"timestamp": "2025-01-01T00:00:05.000Z"
},
{
"type": "branch_summary",
"fromId": "zzz",
"summary": "Earlier exploration of option Z",
"details": {
"readFiles": [
"lib/z.ts"
],
"modifiedFiles": [
"lib/zz.ts"
]
},
"id": "e6",
"parentId": "e5",
"timestamp": "2025-01-01T00:00:06.000Z"
},
{
"type": "branch_summary",
"fromId": "yyy",
"summary": "Hooked summary",
"details": {
"readFiles": [
"hook/r.ts"
]
},
"fromHook": true,
"id": "e7",
"parentId": "e6",
"timestamp": "2025-01-01T00:00:07.000Z"
},
{
"type": "compaction",
"summary": "Compacted part of A",
"firstKeptEntryId": "e2",
"tokensBefore": 500,
"id": "e8",
"parentId": "e7",
"timestamp": "2025-01-01T00:00:08.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "b2",
"name": "edit",
"arguments": {
"path": "lib/a.ts"
}
},
{
"type": "text",
"text": "Edited A ed0 ed1 ed2 ed3 ed4 ed5 ed6 ed7 ed8 ed9 ed10 ed11 ed12 ed13 ed14 ed15 ed16 ed17 ed18 ed19 ed20 ed21 ed22 ed23 ed24 ed25 ed26 ed27 ed28 ed29"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 700,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 760,
"cost": {
"input": 0.0007,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0013
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e9",
"parentId": "e8",
"timestamp": "2025-01-01T00:00:09.000Z"
},
{
"type": "custom_message",
"customType": "hint",
"content": [
{
"type": "text",
"text": "custom block"
},
{
"type": "image",
"data": "BB",
"mimeType": "image/png"
}
],
"display": false,
"id": "e10",
"parentId": "e9",
"timestamp": "2025-01-01T00:00:10.000Z"
},
{
"type": "session_info",
"name": "named",
"id": "e11",
"parentId": "e10",
"timestamp": "2025-01-01T00:00:11.000Z"
}
],
"responses": [
{
"role": "assistant",
"content": [],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"stopReason": "error",
"timestamp": 2,
"errorMessage": "nope"
}
],
"model": {
"id": "sum-1",
"name": "Summarizer",
"api": "anthropic-messages",
"provider": "anthropic",
"baseUrl": "https://example.invalid",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 1,
"output": 2,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 3000,
"maxTokens": 6000
},
"requests": [
{
"model": "sum-1",
"context": {
"messages": [
{
"role": "system",
"content": "You are a context summarization assistant. Your task is to read a conversation between a user and an AI assistant, then produce a structured summary following the exact format specified.\n\nDo NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.",
"timestamp": 0
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "<conversation>\n[User]: Explore option A optA0 optA1 optA2 optA3 optA4 optA5 optA6 optA7 optA8 optA9 optA10 optA11 optA12 optA13 optA14 optA15 optA16 optA17 optA18 optA19 optA20 optA21 optA22 optA23 optA24 optA25 optA26 optA27 optA28 optA29\n\n[Assistant]: Option A analysis anal0 anal1 anal2 anal3 anal4 anal5 anal6 anal7 anal8 anal9 anal10 anal11 anal12 anal13 anal14 anal15 anal16 anal17 anal18 anal19 anal20 anal21 anal22 anal23 anal24 anal25 anal26 anal27 anal28 anal29 anal30 anal31 anal32 anal33 anal34 anal35 anal36 anal37 anal38 anal39 anal40 anal41 anal42 anal43 anal44 anal45 anal46 anal47 anal48 anal49 anal50 anal51 anal52 anal53 anal54 anal55 anal56 anal57 anal58 anal59\n\n[Assistant tool calls]: read(path=\"lib/a.ts\")\n\n[User]: The following is a summary of a branch that this conversation came back from:\n\n<summary>\nEarlier exploration of option Z</summary>\n\n[User]: The following is a summary of a branch that this conversation came back from:\n\n<summary>\nHooked summary</summary>\n\n[User]: The conversation history before this point was compacted into the following summary:\n\n<summary>\nCompacted part of A\n</summary>\n\n[Assistant]: Edited A ed0 ed1 ed2 ed3 ed4 ed5 ed6 ed7 ed8 ed9 ed10 ed11 ed12 ed13 ed14 ed15 ed16 ed17 ed18 ed19 ed20 ed21 ed22 ed23 ed24 ed25 ed26 ed27 ed28 ed29\n\n[Assistant tool calls]: edit(path=\"lib/a.ts\")\n\n[User]: custom block\n</conversation>\n\nCreate a structured summary of this conversation branch for context when returning later.\n\nUse this EXACT format:\n\n## Goal\n[What was the user trying to accomplish in this branch?]\n\n## Constraints & Preferences\n- [Any constraints, preferences, or requirements mentioned]\n- [Or \"(none)\" if none were mentioned]\n\n## Progress\n### Done\n- [x] [Completed tasks/changes]\n\n### In Progress\n- [ ] [Work that was started but not finished]\n\n### Blocked\n- [Issues preventing progress, if any]\n\n## Key Decisions\n- **[Decision]**: [Brief rationale]\n\n## Next Steps\n1. [What should happen next to continue this work]\n\nKeep each section concise. Preserve exact file paths, function names, and error messages."
}
],
"timestamp": 1760000000000
}
]
},
"options": {
"apiKey": "key",
"maxTokens": 4096,
"cacheRetention": "none",
"sessionId": "<fresh>"
}
}
],
"outcome": {
"error": "Branch summarization failed: nope"
}
},
{
"name": "length",
"entries": [
{
"type": "message",
"message": {
"role": "user",
"content": "Explore option A optA0 optA1 optA2 optA3 optA4 optA5 optA6 optA7 optA8 optA9 optA10 optA11 optA12 optA13 optA14 optA15 optA16 optA17 optA18 optA19 optA20 optA21 optA22 optA23 optA24 optA25 optA26 optA27 optA28 optA29",
"timestamp": 1
},
"id": "e3",
"parentId": "e2",
"timestamp": "2025-01-01T00:00:03.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "Option A analysis anal0 anal1 anal2 anal3 anal4 anal5 anal6 anal7 anal8 anal9 anal10 anal11 anal12 anal13 anal14 anal15 anal16 anal17 anal18 anal19 anal20 anal21 anal22 anal23 anal24 anal25 anal26 anal27 anal28 anal29 anal30 anal31 anal32 anal33 anal34 anal35 anal36 anal37 anal38 anal39 anal40 anal41 anal42 anal43 anal44 anal45 anal46 anal47 anal48 anal49 anal50 anal51 anal52 anal53 anal54 anal55 anal56 anal57 anal58 anal59"
},
{
"type": "toolCall",
"id": "b1",
"name": "read",
"arguments": {
"path": "lib/a.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 400,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 450,
"cost": {
"input": 0.0004,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0009
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e4",
"parentId": "e3",
"timestamp": "2025-01-01T00:00:04.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "b1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "contents of a"
}
],
"isError": false,
"timestamp": 3
},
"id": "e5",
"parentId": "e4",
"timestamp": "2025-01-01T00:00:05.000Z"
},
{
"type": "branch_summary",
"fromId": "zzz",
"summary": "Earlier exploration of option Z",
"details": {
"readFiles": [
"lib/z.ts"
],
"modifiedFiles": [
"lib/zz.ts"
]
},
"id": "e6",
"parentId": "e5",
"timestamp": "2025-01-01T00:00:06.000Z"
},
{
"type": "branch_summary",
"fromId": "yyy",
"summary": "Hooked summary",
"details": {
"readFiles": [
"hook/r.ts"
]
},
"fromHook": true,
"id": "e7",
"parentId": "e6",
"timestamp": "2025-01-01T00:00:07.000Z"
},
{
"type": "compaction",
"summary": "Compacted part of A",
"firstKeptEntryId": "e2",
"tokensBefore": 500,
"id": "e8",
"parentId": "e7",
"timestamp": "2025-01-01T00:00:08.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "b2",
"name": "edit",
"arguments": {
"path": "lib/a.ts"
}
},
{
"type": "text",
"text": "Edited A ed0 ed1 ed2 ed3 ed4 ed5 ed6 ed7 ed8 ed9 ed10 ed11 ed12 ed13 ed14 ed15 ed16 ed17 ed18 ed19 ed20 ed21 ed22 ed23 ed24 ed25 ed26 ed27 ed28 ed29"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 700,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 760,
"cost": {
"input": 0.0007,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0013
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e9",
"parentId": "e8",
"timestamp": "2025-01-01T00:00:09.000Z"
},
{
"type": "custom_message",
"customType": "hint",
"content": [
{
"type": "text",
"text": "custom block"
},
{
"type": "image",
"data": "BB",
"mimeType": "image/png"
}
],
"display": false,
"id": "e10",
"parentId": "e9",
"timestamp": "2025-01-01T00:00:10.000Z"
},
{
"type": "session_info",
"name": "named",
"id": "e11",
"parentId": "e10",
"timestamp": "2025-01-01T00:00:11.000Z"
}
],
"responses": [
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "p"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"stopReason": "length",
"timestamp": 2
}
],
"model": {
"id": "sum-1",
"name": "Summarizer",
"api": "anthropic-messages",
"provider": "anthropic",
"baseUrl": "https://example.invalid",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 1,
"output": 2,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 3000,
"maxTokens": 6000
},
"requests": [
{
"model": "sum-1",
"context": {
"messages": [
{
"role": "system",
"content": "You are a context summarization assistant. Your task is to read a conversation between a user and an AI assistant, then produce a structured summary following the exact format specified.\n\nDo NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.",
"timestamp": 0
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "<conversation>\n[User]: Explore option A optA0 optA1 optA2 optA3 optA4 optA5 optA6 optA7 optA8 optA9 optA10 optA11 optA12 optA13 optA14 optA15 optA16 optA17 optA18 optA19 optA20 optA21 optA22 optA23 optA24 optA25 optA26 optA27 optA28 optA29\n\n[Assistant]: Option A analysis anal0 anal1 anal2 anal3 anal4 anal5 anal6 anal7 anal8 anal9 anal10 anal11 anal12 anal13 anal14 anal15 anal16 anal17 anal18 anal19 anal20 anal21 anal22 anal23 anal24 anal25 anal26 anal27 anal28 anal29 anal30 anal31 anal32 anal33 anal34 anal35 anal36 anal37 anal38 anal39 anal40 anal41 anal42 anal43 anal44 anal45 anal46 anal47 anal48 anal49 anal50 anal51 anal52 anal53 anal54 anal55 anal56 anal57 anal58 anal59\n\n[Assistant tool calls]: read(path=\"lib/a.ts\")\n\n[User]: The following is a summary of a branch that this conversation came back from:\n\n<summary>\nEarlier exploration of option Z</summary>\n\n[User]: The following is a summary of a branch that this conversation came back from:\n\n<summary>\nHooked summary</summary>\n\n[User]: The conversation history before this point was compacted into the following summary:\n\n<summary>\nCompacted part of A\n</summary>\n\n[Assistant]: Edited A ed0 ed1 ed2 ed3 ed4 ed5 ed6 ed7 ed8 ed9 ed10 ed11 ed12 ed13 ed14 ed15 ed16 ed17 ed18 ed19 ed20 ed21 ed22 ed23 ed24 ed25 ed26 ed27 ed28 ed29\n\n[Assistant tool calls]: edit(path=\"lib/a.ts\")\n\n[User]: custom block\n</conversation>\n\nCreate a structured summary of this conversation branch for context when returning later.\n\nUse this EXACT format:\n\n## Goal\n[What was the user trying to accomplish in this branch?]\n\n## Constraints & Preferences\n- [Any constraints, preferences, or requirements mentioned]\n- [Or \"(none)\" if none were mentioned]\n\n## Progress\n### Done\n- [x] [Completed tasks/changes]\n\n### In Progress\n- [ ] [Work that was started but not finished]\n\n### Blocked\n- [Issues preventing progress, if any]\n\n## Key Decisions\n- **[Decision]**: [Brief rationale]\n\n## Next Steps\n1. [What should happen next to continue this work]\n\nKeep each section concise. Preserve exact file paths, function names, and error messages."
}
],
"timestamp": 1760000000000
}
]
},
"options": {
"apiKey": "key",
"maxTokens": 4096,
"cacheRetention": "none",
"sessionId": "<fresh>"
}
}
],
"outcome": {
"error": "Branch summarization failed: generation hit the token cap and the summary is incomplete"
}
},
{
"name": "tool",
"entries": [
{
"type": "message",
"message": {
"role": "user",
"content": "Explore option A optA0 optA1 optA2 optA3 optA4 optA5 optA6 optA7 optA8 optA9 optA10 optA11 optA12 optA13 optA14 optA15 optA16 optA17 optA18 optA19 optA20 optA21 optA22 optA23 optA24 optA25 optA26 optA27 optA28 optA29",
"timestamp": 1
},
"id": "e3",
"parentId": "e2",
"timestamp": "2025-01-01T00:00:03.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "Option A analysis anal0 anal1 anal2 anal3 anal4 anal5 anal6 anal7 anal8 anal9 anal10 anal11 anal12 anal13 anal14 anal15 anal16 anal17 anal18 anal19 anal20 anal21 anal22 anal23 anal24 anal25 anal26 anal27 anal28 anal29 anal30 anal31 anal32 anal33 anal34 anal35 anal36 anal37 anal38 anal39 anal40 anal41 anal42 anal43 anal44 anal45 anal46 anal47 anal48 anal49 anal50 anal51 anal52 anal53 anal54 anal55 anal56 anal57 anal58 anal59"
},
{
"type": "toolCall",
"id": "b1",
"name": "read",
"arguments": {
"path": "lib/a.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 400,
"output": 50,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 450,
"cost": {
"input": 0.0004,
"output": 0.0005,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0009
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e4",
"parentId": "e3",
"timestamp": "2025-01-01T00:00:04.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "b1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "contents of a"
}
],
"isError": false,
"timestamp": 3
},
"id": "e5",
"parentId": "e4",
"timestamp": "2025-01-01T00:00:05.000Z"
},
{
"type": "branch_summary",
"fromId": "zzz",
"summary": "Earlier exploration of option Z",
"details": {
"readFiles": [
"lib/z.ts"
],
"modifiedFiles": [
"lib/zz.ts"
]
},
"id": "e6",
"parentId": "e5",
"timestamp": "2025-01-01T00:00:06.000Z"
},
{
"type": "branch_summary",
"fromId": "yyy",
"summary": "Hooked summary",
"details": {
"readFiles": [
"hook/r.ts"
]
},
"fromHook": true,
"id": "e7",
"parentId": "e6",
"timestamp": "2025-01-01T00:00:07.000Z"
},
{
"type": "compaction",
"summary": "Compacted part of A",
"firstKeptEntryId": "e2",
"tokensBefore": 500,
"id": "e8",
"parentId": "e7",
"timestamp": "2025-01-01T00:00:08.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "b2",
"name": "edit",
"arguments": {
"path": "lib/a.ts"
}
},
{
"type": "text",
"text": "Edited A ed0 ed1 ed2 ed3 ed4 ed5 ed6 ed7 ed8 ed9 ed10 ed11 ed12 ed13 ed14 ed15 ed16 ed17 ed18 ed19 ed20 ed21 ed22 ed23 ed24 ed25 ed26 ed27 ed28 ed29"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 700,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 760,
"cost": {
"input": 0.0007,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0013
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e9",
"parentId": "e8",
"timestamp": "2025-01-01T00:00:09.000Z"
},
{
"type": "custom_message",
"customType": "hint",
"content": [
{
"type": "text",
"text": "custom block"
},
{
"type": "image",
"data": "BB",
"mimeType": "image/png"
}
],
"display": false,
"id": "e10",
"parentId": "e9",
"timestamp": "2025-01-01T00:00:10.000Z"
},
{
"type": "session_info",
"name": "named",
"id": "e11",
"parentId": "e10",
"timestamp": "2025-01-01T00:00:11.000Z"
}
],
"responses": [
{
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "q",
"name": "edit",
"arguments": {}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"model": {
"id": "sum-1",
"name": "Summarizer",
"api": "anthropic-messages",
"provider": "anthropic",
"baseUrl": "https://example.invalid",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 1,
"output": 2,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 3000,
"maxTokens": 6000
},
"requests": [
{
"model": "sum-1",
"context": {
"messages": [
{
"role": "system",
"content": "You are a context summarization assistant. Your task is to read a conversation between a user and an AI assistant, then produce a structured summary following the exact format specified.\n\nDo NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.",
"timestamp": 0
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "<conversation>\n[User]: Explore option A optA0 optA1 optA2 optA3 optA4 optA5 optA6 optA7 optA8 optA9 optA10 optA11 optA12 optA13 optA14 optA15 optA16 optA17 optA18 optA19 optA20 optA21 optA22 optA23 optA24 optA25 optA26 optA27 optA28 optA29\n\n[Assistant]: Option A analysis anal0 anal1 anal2 anal3 anal4 anal5 anal6 anal7 anal8 anal9 anal10 anal11 anal12 anal13 anal14 anal15 anal16 anal17 anal18 anal19 anal20 anal21 anal22 anal23 anal24 anal25 anal26 anal27 anal28 anal29 anal30 anal31 anal32 anal33 anal34 anal35 anal36 anal37 anal38 anal39 anal40 anal41 anal42 anal43 anal44 anal45 anal46 anal47 anal48 anal49 anal50 anal51 anal52 anal53 anal54 anal55 anal56 anal57 anal58 anal59\n\n[Assistant tool calls]: read(path=\"lib/a.ts\")\n\n[User]: The following is a summary of a branch that this conversation came back from:\n\n<summary>\nEarlier exploration of option Z</summary>\n\n[User]: The following is a summary of a branch that this conversation came back from:\n\n<summary>\nHooked summary</summary>\n\n[User]: The conversation history before this point was compacted into the following summary:\n\n<summary>\nCompacted part of A\n</summary>\n\n[Assistant]: Edited A ed0 ed1 ed2 ed3 ed4 ed5 ed6 ed7 ed8 ed9 ed10 ed11 ed12 ed13 ed14 ed15 ed16 ed17 ed18 ed19 ed20 ed21 ed22 ed23 ed24 ed25 ed26 ed27 ed28 ed29\n\n[Assistant tool calls]: edit(path=\"lib/a.ts\")\n\n[User]: custom block\n</conversation>\n\nCreate a structured summary of this conversation branch for context when returning later.\n\nUse this EXACT format:\n\n## Goal\n[What was the user trying to accomplish in this branch?]\n\n## Constraints & Preferences\n- [Any constraints, preferences, or requirements mentioned]\n- [Or \"(none)\" if none were mentioned]\n\n## Progress\n### Done\n- [x] [Completed tasks/changes]\n\n### In Progress\n- [ ] [Work that was started but not finished]\n\n### Blocked\n- [Issues preventing progress, if any]\n\n## Key Decisions\n- **[Decision]**: [Brief rationale]\n\n## Next Steps\n1. [What should happen next to continue this work]\n\nKeep each section concise. Preserve exact file paths, function names, and error messages."
}
],
"timestamp": 1760000000000
}
]
},
"options": {
"apiKey": "key",
"maxTokens": 4096,
"cacheRetention": "none",
"sessionId": "<fresh>"
}
}
],
"outcome": {
"error": "Branch summarization attempted to call a tool"
}
},
{
"name": "basic-transcript",
"entries": [
{
"type": "thinking_level_change",
"thinkingLevel": "high",
"id": "e1",
"parentId": null,
"timestamp": "2025-01-01T00:00:01.000Z"
},
{
"type": "message",
"message": {
"role": "system",
"content": "You are Ultron.",
"sections": {
"tools": "rlm only",
"empty": null
},
"toolsAdded": [
{
"name": "rlm",
"description": "repl",
"parameters": {
"type": "object"
}
}
],
"timestamp": 0
},
"id": "e2",
"parentId": "e1",
"timestamp": "2025-01-01T00:00:02.000Z"
},
{
"type": "message",
"message": {
"role": "user",
"content": "Refactor the parser in src/parse.ts please ctx0 ctx1 ctx2 ctx3 ctx4 ctx5 ctx6 ctx7 ctx8 ctx9 ctx10 ctx11 ctx12 ctx13 ctx14 ctx15 ctx16 ctx17 ctx18 ctx19 ctx20 ctx21 ctx22 ctx23 ctx24 ctx25 ctx26 ctx27 ctx28 ctx29",
"timestamp": 1
},
"id": "e3",
"parentId": "e2",
"timestamp": "2025-01-01T00:00:03.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "thinking",
"thinking": "plan: read first"
},
{
"type": "text",
"text": "Reading."
},
{
"type": "toolCall",
"id": "c1",
"name": "read",
"arguments": {
"path": "src/parse.ts"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 1200,
"output": 40,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 1240,
"cost": {
"input": 0.0012,
"output": 0.0004,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0015999999999999999
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e4",
"parentId": "e3",
"timestamp": "2025-01-01T00:00:04.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "c1",
"toolName": "read",
"content": [
{
"type": "text",
"text": "line0 line1 line2 line3 line4 line5 line6 line7 line8 line9 line10 line11 line12 line13 line14 line15 line16 line17 line18 line19 line20 line21 line22 line23 line24 line25 line26 line27 line28 line29 line30 line31 line32 line33 line34 line35 line36 line37 line38 line39 line40 line41 line42 line43 line44 line45 line46 line47 line48 line49 line50 line51 line52 line53 line54 line55 line56 line57 line58 line59 line60 line61 line62 line63 line64 line65 line66 line67 line68 line69 line70 line71 line72 line73 line74 line75 line76 line77 line78 line79 line80 line81 line82 line83 line84 line85 line86 line87 line88 line89 line90 line91 line92 line93 line94 line95 line96 line97 line98 line99 line100 line101 line102 line103 line104 line105 line106 line107 line108 line109 line110 line111 line112 line113 line114 line115 line116 line117 line118 line119 line120 line121 line122 line123 line124 line125 line126 line127 line128 line129 line130 line131 line132 line133 line134 line135 line136 line137 line138 line139 line140 line141 line142 line143 line144 line145 line146 line147 line148 line149 line150 line151 line152 line153 line154 line155 line156 line157 line158 line159 line160 line161 line162 line163 line164 line165 line166 line167 line168 line169 line170 line171 line172 line173 line174 line175 line176 line177 line178 line179 line180 line181 line182 line183 line184 line185 line186 line187 line188 line189 line190 line191 line192 line193 line194 line195 line196 line197 line198 line199 line200 line201 line202 line203 line204 line205 line206 line207 line208 line209 line210 line211 line212 line213 line214 line215 line216 line217 line218 line219 line220 line221 line222 line223 line224 line225 line226 line227 line228 line229 line230 line231 line232 line233 line234 line235 line236 line237 line238 line239 line240 line241 line242 line243 line244 line245 line246 line247 line248 line249 line250 line251 line252 line253 line254 line255 line256 line257 line258 line259 line260 line261 line262 line263 line264 line265 line266 line267 line268 line269 line270 line271 line272 line273 line274 line275 line276 line277 line278 line279 line280 line281 line282 line283 line284 line285 line286 line287 line288 line289 line290 line291 line292 line293 line294 line295 line296 line297 line298 line299 line300 line301 line302 line303 line304 line305 line306 line307 line308 line309 line310 line311 line312 line313 line314 line315 line316 line317 line318 line319 line320 line321 line322 line323 line324 line325 line326 line327 line328 line329 line330 line331 line332 line333 line334 line335 line336 line337 line338 line339 line340 line341 line342 line343 line344 line345 line346 line347 line348 line349 line350 line351 line352 line353 line354 line355 line356 line357 line358 line359 line360 line361 line362 line363 line364 line365 line366 line367 line368 line369 line370 line371 line372 line373 line374 line375 line376 line377 line378 line379 line380 line381 line382 line383 line384 line385 line386 line387 line388 line389 line390 line391 line392 line393 line394 line395 line396 line397 line398 line399 line400 line401 line402 line403 line404 line405 line406 line407 line408 line409 line410 line411 line412 line413 line414 line415 line416 line417 line418 line419 line420 line421 line422 line423 line424 line425 line426 line427 line428 line429 line430 line431 line432 line433 line434 line435 line436 line437 line438 line439 line440 line441 line442 line443 line444 line445 line446 line447 line448 line449 line450 line451 line452 line453 line454 line455 line456 line457 line458 line459 line460 line461 line462 line463 line464 line465 line466 line467 line468 line469 line470 line471 line472 line473 line474 line475 line476 line477 line478 line479 line480 line481 line482 line483 line484 line485 line486 line487 line488 line489 line490 line491 line492 line493 line494 line495 line496 line497 line498 line499 line500 line501 line502 line503 line504 line505 line506 line507 line508 line509 line510 line511 line512 line513 line514 line515 line516 line517 line518 line519 line520 line521 line522 line523 line524 line525 line526 line527 line528 line529 line530 line531 line532 line533 line534 line535 line536 line537 line538 line539 line540 line541 line542 line543 line544 line545 line546 line547 line548 line549 line550 line551 line552 line553 line554 line555 line556 line557 line558 line559 line560 line561 line562 line563 line564 line565 line566 line567 line568 line569 line570 line571 line572 line573 line574 line575 line576 line577 line578 line579 line580 line581 line582 line583 line584 line585 line586 line587 line588 line589 line590 line591 line592 line593 line594 line595 line596 line597 line598 line599 line600 line601 line602 line603 line604 line605 line606 line607 line608 line609 line610 line611 line612 line613 line614 line615 line616 line617 line618 line619 line620 line621 line622 line623 line624 line625 line626 line627 line628 line629 line630 line631 line632 line633 line634 line635 line636 line637 line638 line639 line640 line641 line642 line643 line644 line645 line646 line647 line648 line649 line650 line651 line652 line653 line654 line655 line656 line657 line658 line659 line660 line661 line662 line663 line664 line665 line666 line667 line668 line669 line670 line671 line672 line673 line674 line675 line676 line677 line678 line679 line680 line681 line682 line683 line684 line685 line686 line687 line688 line689 line690 line691 line692 line693 line694 line695 line696 line697 line698 line699"
}
],
"isError": false,
"timestamp": 3
},
"id": "e5",
"parentId": "e4",
"timestamp": "2025-01-01T00:00:05.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c2",
"name": "edit",
"arguments": {
"path": "src/parse.ts",
"oldText": "a",
"newText": "b"
}
},
{
"type": "toolCall",
"id": "c3",
"name": "write",
"arguments": {
"path": "src/new.ts",
"content": "x"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 2400,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 2460,
"cost": {
"input": 0.0024,
"output": 0.0006,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0029999999999999996
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e6",
"parentId": "e5",
"timestamp": "2025-01-01T00:00:06.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "c2",
"toolName": "edit",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
},
"id": "e7",
"parentId": "e6",
"timestamp": "2025-01-01T00:00:07.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "c3",
"toolName": "write",
"content": [
{
"type": "text",
"text": "ok"
}
],
"isError": false,
"timestamp": 3
},
"id": "e8",
"parentId": "e7",
"timestamp": "2025-01-01T00:00:08.000Z"
},
{
"type": "label",
"targetId": "e3",
"label": "start",
"id": "e9",
"parentId": "e8",
"timestamp": "2025-01-01T00:00:09.000Z"
},
{
"type": "message",
"message": {
"role": "bashExecution",
"command": "npm test",
"output": "out0 out1 out2 out3 out4 out5 out6 out7 out8 out9 out10 out11 out12 out13 out14 out15 out16 out17 out18 out19 out20 out21 out22 out23 out24 out25 out26 out27 out28 out29 out30 out31 out32 out33 out34 out35 out36 out37 out38 out39",
"exitCode": 1,
"cancelled": false,
"truncated": true,
"fullOutputPath": "/tmp/full.log",
"timestamp": 4
},
"id": "e10",
"parentId": "e9",
"timestamp": "2025-01-01T00:00:10.000Z"
},
{
"type": "message",
"message": {
"role": "bashExecution",
"command": "ls",
"output": "",
"exitCode": 0,
"cancelled": false,
"truncated": false,
"excludeFromContext": true,
"timestamp": 4
},
"id": "e11",
"parentId": "e10",
"timestamp": "2025-01-01T00:00:11.000Z"
},
{
"type": "message",
"message": {
"role": "bashExecution",
"command": "pwd",
"output": "/w",
"exitCode": 0,
"cancelled": false,
"truncated": true,
"timestamp": 4
},
"id": "e12",
"parentId": "e11",
"timestamp": "2025-01-01T00:00:12.000Z"
},
{
"type": "message",
"message": {
"role": "bashExecution",
"command": "sleep 9",
"output": "",
"exitCode": null,
"cancelled": true,
"truncated": false,
"timestamp": 4
},
"id": "e13",
"parentId": "e12",
"timestamp": "2025-01-01T00:00:13.000Z"
},
{
"type": "custom_message",
"customType": "note",
"content": "Remember the 80 column limit 🙂",
"display": true,
"details": {
"k": 1
},
"id": "e14",
"parentId": "e13",
"timestamp": "2025-01-01T00:00:14.000Z"
},
{
"type": "message",
"message": {
"role": "user",
"content": "Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19",
"timestamp": 1
},
"id": "e15",
"parentId": "e14",
"timestamp": "2025-01-01T00:00:15.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "toolCall",
"id": "c4",
"name": "read",
"arguments": {
"path": "docs/README.md"
}
},
{
"type": "toolCall",
"id": "c5",
"name": "grep",
"arguments": {
"pattern": "x",
"path": "src"
}
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 3000,
"output": 30,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 3030,
"cost": {
"input": 0.003,
"output": 0.0003,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0033
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e16",
"parentId": "e15",
"timestamp": "2025-01-01T00:00:16.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "c4",
"toolName": "read",
"content": [
{
"type": "text",
"text": "readme body"
}
],
"isError": false,
"timestamp": 3
},
"id": "e17",
"parentId": "e16",
"timestamp": "2025-01-01T00:00:17.000Z"
},
{
"type": "message",
"message": {
"role": "toolResult",
"toolCallId": "c5",
"toolName": "grep",
"content": [
{
"type": "text",
"text": "match"
}
],
"isError": false,
"timestamp": 3
},
"id": "e18",
"parentId": "e17",
"timestamp": "2025-01-01T00:00:18.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "Done with step one."
},
{
"type": "text",
"text": "Second block."
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 0,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0
}
},
"stopReason": "aborted",
"timestamp": 2
},
"id": "e19",
"parentId": "e18",
"timestamp": "2025-01-01T00:00:19.000Z"
},
{
"type": "message",
"message": {
"role": "user",
"content": [
{
"type": "text",
"text": "Look at this screenshot"
},
{
"type": "image",
"data": "AAAA",
"mimeType": "image/png"
}
],
"timestamp": 1
},
"id": "e20",
"parentId": "e19",
"timestamp": "2025-01-01T00:00:20.000Z"
},
{
"type": "message",
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 5200,
"output": 90,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 5290,
"cost": {
"input": 0.0052,
"output": 0.0009,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0060999999999999995
}
},
"stopReason": "stop",
"timestamp": 2
},
"id": "e21",
"parentId": "e20",
"timestamp": "2025-01-01T00:00:21.000Z"
},
{
"type": "message",
"message": {
"role": "user",
"content": "thanks",
"timestamp": 1
},
"id": "e22",
"parentId": "e21",
"timestamp": "2025-01-01T00:00:22.000Z"
}
],
"responses": [
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "b"
}
],
"api": "anthropic-messages",
"provider": "anthropic",
"model": "m1",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"stopReason": "stop",
"timestamp": 2
}
],
"model": {
"id": "sum-1",
"name": "Summarizer",
"api": "anthropic-messages",
"provider": "anthropic",
"baseUrl": "https://example.invalid",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 1,
"output": 2,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 3000,
"maxTokens": 6000
},
"requests": [
{
"model": "sum-1",
"context": {
"messages": [
{
"role": "system",
"content": "You are a context summarization assistant. Your task is to read a conversation between a user and an AI assistant, then produce a structured summary following the exact format specified.\n\nDo NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.",
"timestamp": 0
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "<conversation>\n[User]: Refactor the parser in src/parse.ts please ctx0 ctx1 ctx2 ctx3 ctx4 ctx5 ctx6 ctx7 ctx8 ctx9 ctx10 ctx11 ctx12 ctx13 ctx14 ctx15 ctx16 ctx17 ctx18 ctx19 ctx20 ctx21 ctx22 ctx23 ctx24 ctx25 ctx26 ctx27 ctx28 ctx29\n\n[Assistant thinking]: plan: read first\n\n[Assistant]: Reading.\n\n[Assistant tool calls]: read(path=\"src/parse.ts\")\n\n[Assistant tool calls]: edit(path=\"src/parse.ts\", oldText=\"a\", newText=\"b\"); write(path=\"src/new.ts\", content=\"x\")\n\n[User]: Ran `npm test`\n```\nout0 out1 out2 out3 out4 out5 out6 out7 out8 out9 out10 out11 out12 out13 out14 out15 out16 out17 out18 out19 out20 out21 out22 out23 out24 out25 out26 out27 out28 out29 out30 out31 out32 out33 out34 out35 out36 out37 out38 out39\n```\n\nCommand exited with code 1\n\n[Output truncated. Full output: /tmp/full.log]\n\n[User]: Ran `pwd`\n```\n/w\n```\n\n[User]: Ran `sleep 9`\n(no output)\n\n(command cancelled)\n\n[User]: Remember the 80 column limit 🙂\n\n[User]: Now also read docs/README.md more0 more1 more2 more3 more4 more5 more6 more7 more8 more9 more10 more11 more12 more13 more14 more15 more16 more17 more18 more19\n\n[Assistant tool calls]: read(path=\"docs/README.md\"); grep(pattern=\"x\", path=\"src\")\n\n[Assistant]: Done with step one.\nSecond block.\n\n[User]: Look at this screenshot\n\n[Assistant]: I see a chart. desc0 desc1 desc2 desc3 desc4 desc5 desc6 desc7 desc8 desc9 desc10 desc11 desc12 desc13 desc14 desc15 desc16 desc17 desc18 desc19 desc20 desc21 desc22 desc23 desc24 desc25 desc26 desc27 desc28 desc29 desc30 desc31 desc32 desc33 desc34 desc35 desc36 desc37 desc38 desc39 desc40 desc41 desc42 desc43 desc44 desc45 desc46 desc47 desc48 desc49\n\n[User]: thanks\n</conversation>\n\nCreate a structured summary of this conversation branch for context when returning later.\n\nUse this EXACT format:\n\n## Goal\n[What was the user trying to accomplish in this branch?]\n\n## Constraints & Preferences\n- [Any constraints, preferences, or requirements mentioned]\n- [Or \"(none)\" if none were mentioned]\n\n## Progress\n### Done\n- [x] [Completed tasks/changes]\n\n### In Progress\n- [ ] [Work that was started but not finished]\n\n### Blocked\n- [Issues preventing progress, if any]\n\n## Key Decisions\n- **[Decision]**: [Brief rationale]\n\n## Next Steps\n1. [What should happen next to continue this work]\n\nKeep each section concise. Preserve exact file paths, function names, and error messages."
}
],
"timestamp": 1760000000000
}
]
},
"options": {
"apiKey": "key",
"maxTokens": 4096,
"cacheRetention": "none",
"sessionId": "<fresh>"
}
}
],
"outcome": {
"summary": "The user explored a different conversation branch before returning here.\nSummary of that exploration:\n\nb\n\n<read-files>\ndocs/README.md\n</read-files>\n\n<modified-files>\nsrc/new.ts\nsrc/parse.ts\n</modified-files>",
"usage": {
"input": 300,
"output": 20,
"cacheRead": 0,
"cacheWrite": 0,
"totalTokens": 320,
"cost": {
"input": 0.0003,
"output": 0.0002,
"cacheRead": 0,
"cacheWrite": 0,
"total": 0.0005
}
},
"readFiles": [
"docs/README.md"
],
"modifiedFiles": [
"src/new.ts",
"src/parse.ts"
]
}
}
]
}