supercode-harness 0.4.10

The optional native Supercode agent and tool harness
Documentation
{"type":"session","version":3,"id":"1e6f2a3b-0000-4000-8000-000000000001","timestamp":"2026-01-01T00:00:00.000Z","cwd":"/tmp/demo-repo"}
{"type":"message","id":"e1000001","parentId":null,"timestamp":"2026-01-01T00:00:01.000Z","message":{"role":"user","content":"Please create hello.txt with 'hi' in it.","timestamp":1751900000000}}
{"type":"message","id":"e2000002","parentId":"e1000001","timestamp":"2026-01-01T00:00:02.000Z","message":{"role":"assistant","content":[{"type":"text","text":"Sure, creating it now."},{"type":"toolCall","id":"t1000001","name":"write_file","arguments":{"path":"hello.txt","content":"hi"}}],"api":"anthropic-messages","provider":"anthropic","model":"claude-3-5-sonnet-20241022","usage":{"input":120,"output":45,"cacheRead":0,"cacheWrite":0,"totalTokens":165,"cost":{"input":0.00036,"output":0.000675,"cacheRead":0,"cacheWrite":0,"total":0.001035}},"stopReason":"toolUse","timestamp":1751900000200}}
{"type":"message","id":"e3000003","parentId":"e2000002","timestamp":"2026-01-01T00:00:03.000Z","message":{"role":"toolResult","toolCallId":"t1000001","toolName":"write_file","content":[{"type":"text","text":"wrote 2 bytes to hello.txt"}],"details":{"bytesWritten":2},"isError":false,"timestamp":1751900000500}}
{"type":"message","id":"e4000004","parentId":"e3000003","timestamp":"2026-01-01T00:00:04.000Z","message":{"role":"assistant","content":[{"type":"text","text":"Done! Created hello.txt."}],"api":"anthropic-messages","provider":"anthropic","model":"claude-3-5-sonnet-20241022","usage":{"input":40,"output":15,"cacheRead":0,"cacheWrite":0,"totalTokens":55,"cost":{"input":0.00012,"output":0.000225,"cacheRead":0,"cacheWrite":0,"total":0.000345}},"stopReason":"stop","timestamp":1751900000700}}
{"type":"message","id":"e2b00002","parentId":"e1000001","timestamp":"2026-01-01T00:00:05.000Z","message":{"role":"assistant","content":[{"type":"text","text":"(exploring an alternate approach that was later abandoned)"}],"api":"anthropic-messages","provider":"anthropic","model":"claude-3-5-sonnet-20241022","usage":{"input":50,"output":20,"cacheRead":0,"cacheWrite":0,"totalTokens":70,"cost":{"input":0.00015,"output":0.0003,"cacheRead":0,"cacheWrite":0,"total":0.00045}},"stopReason":"stop","timestamp":1751900000800}}
{"type":"branch_summary","id":"ebranch1","parentId":"e1000001","timestamp":"2026-01-01T00:00:06.000Z","fromId":"e2b00002","summary":"explored writing via a shell heredoc instead; abandoned"}
{"type":"message","id":"e4b00004","parentId":"e4000004","timestamp":"2026-01-01T00:00:06.500Z","message":{"role":"assistant","content":[{"type":"text","text":"(drafting a much wordier confirmation write-up, discarded before sending)"}],"api":"anthropic-messages","provider":"anthropic","model":"claude-3-5-sonnet-20241022","usage":{"input":35,"output":18,"cacheRead":0,"cacheWrite":0,"totalTokens":53,"cost":{"input":0.000105,"output":0.00027,"cacheRead":0,"cacheWrite":0,"total":0.000375}},"stopReason":"stop","timestamp":1751900000750}}
{"type":"branch_summary","id":"ebranchAct1","parentId":"e4000004","timestamp":"2026-01-01T00:00:06.700Z","fromId":"e4b00004","summary":"drafted a longer confirmation reply, then rewound and kept the terse one"}
{"type":"model_change","id":"e5000005","parentId":"ebranchAct1","timestamp":"2026-01-01T00:00:07.000Z","provider":"openrouter","modelId":"anthropic/claude-opus-4.1"}
{"type":"message","id":"e6000006","parentId":"e5000005","timestamp":"2026-01-01T00:00:08.000Z","message":{"role":"bashExecution","command":"cat hello.txt","output":"hi","exitCode":0,"cancelled":false,"truncated":false,"timestamp":1751900002000}}
{"type":"thinking_level_change","id":"etlc0001","parentId":"e3000003","timestamp":"2026-01-01T00:00:09.000Z","thinkingLevel":"high"}
{"type":"message","id":"eimg0001","parentId":"e6000006","timestamp":"2026-01-01T00:00:10.000Z","message":{"role":"user","content":[{"type":"text","text":"Here's a screenshot of the result:"},{"type":"image","mimeType":"image/png","data":"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII="}],"timestamp":1751900003000}}
{"type":"compaction","id":"ecompact1","parentId":"eimg0001","timestamp":"2026-01-01T00:00:11.000Z","summary":"User asked to create hello.txt with 'hi'; assistant wrote the file and confirmed via cat; a screenshot was shared.","firstKeptEntryId":"e6000006","tokensBefore":4321}
{"type":"custom_message","id":"e7000007","parentId":"ecompact1","timestamp":"2026-01-01T00:00:12.000Z","customType":"note","content":"reminder: keep going","display":true,"details":{"source":"hook"}}
{"type":"message","id":"e8000008","parentId":"e7000007","timestamp":"2026-01-01T00:00:13.000Z","message":{"role":"assistant","content":[{"type":"text","text":"Understood, continuing."}],"api":"anthropic-messages","provider":"anthropic","model":"claude-opus-4-6","usage":{"input":30,"output":10,"cacheRead":0,"cacheWrite":0,"totalTokens":40,"cost":{"input":9e-05,"output":0.00015,"cacheRead":0,"cacheWrite":0,"total":0.00024}},"stopReason":"stop","timestamp":1751900004000}}
{"type":"label","id":"elabel001","parentId":"e8000008","timestamp":"2026-01-01T00:00:14.000Z","targetId":"e8000008","label":"milestone"}
{"type":"custom","id":"ecustom001","parentId":"elabel001","timestamp":"2026-01-01T00:00:15.000Z","customType":"scratch","data":{"foo":"bar"}}
{"type":"session_info","id":"esinfo0001","parentId":"ecustom001","timestamp":"2026-01-01T00:00:16.000Z","name":"demo session"}