[{"data":1,"prerenderedAt":1034},["ShallowReactive",2],{"navigation_docs":3,"-guides-run-logs-and-disk-space":504,"-guides-run-logs-and-disk-space-surround":1029},[4,28,51,187,214,469],{"title":5,"path":6,"stem":7,"children":8},"Get started","\u002Fget-started","1.get-started",[9,12,16,20,24],{"title":10,"path":6,"stem":11},"Overview","1.get-started\u002Findex",{"title":13,"path":14,"stem":15},"Why Kraft","\u002Fget-started\u002Fwhy-kraft","1.get-started\u002F0.why-kraft",{"title":17,"path":18,"stem":19},"Install","\u002Fget-started\u002Finstall","1.get-started\u002F1.install",{"title":21,"path":22,"stem":23},"Your first work item","\u002Fget-started\u002Ffirst-work-item","1.get-started\u002F2.first-work-item",{"title":25,"path":26,"stem":27},"FAQ","\u002Fget-started\u002Ffaq","1.get-started\u002F3.faq",{"title":29,"path":30,"stem":31,"children":32},"Concepts","\u002Fconcepts","2.concepts",[33,35,39,43,47],{"title":10,"path":30,"stem":34},"2.concepts\u002Findex",{"title":36,"path":37,"stem":38},"How a work item runs","\u002Fconcepts\u002Fhow-a-work-item-runs","2.concepts\u002F1.how-a-work-item-runs",{"title":40,"path":41,"stem":42},"Caps and budgets","\u002Fconcepts\u002Fcaps-and-budgets","2.concepts\u002F2.caps-and-budgets",{"title":44,"path":45,"stem":46},"Why a permission gate","\u002Fconcepts\u002Fpermission-gate","2.concepts\u002F3.permission-gate",{"title":48,"path":49,"stem":50},"Vocabulary","\u002Fconcepts\u002Fvocabulary","2.concepts\u002F4.vocabulary",{"title":52,"path":53,"stem":54,"children":55},"Guides","\u002Fguides","3.guides",[56,58,96,113,134,183],{"title":10,"path":53,"stem":57},"3.guides\u002Findex",{"title":59,"path":60,"stem":61,"children":62,"page":95},"Day to day","\u002Fguides\u002Fday-to-day","3.guides\u002F1.day-to-day",[63,67,71,75,79,83,87,91],{"title":64,"path":65,"stem":66},"The setup wizard on first start","\u002Fguides\u002Fday-to-day\u002Ffirst-run","3.guides\u002F1.day-to-day\u002F2.first-run",{"title":68,"path":69,"stem":70},"File a work item","\u002Fguides\u002Fday-to-day\u002Ffile-a-work-item","3.guides\u002F1.day-to-day\u002F3.file-a-work-item",{"title":72,"path":73,"stem":74},"Use Kraft from your agent","\u002Fguides\u002Fday-to-day\u002Fagent-integration","3.guides\u002F1.day-to-day\u002F4.agent-integration",{"title":76,"path":77,"stem":78},"Reviewing a change","\u002Fguides\u002Fday-to-day\u002Freview-a-change","3.guides\u002F1.day-to-day\u002F5.review-a-change",{"title":80,"path":81,"stem":82},"Raise a cap on a stopped item","\u002Fguides\u002Fday-to-day\u002Fraise-a-cap","3.guides\u002F1.day-to-day\u002F6.raise-a-cap",{"title":84,"path":85,"stem":86},"Kraft for VS Code","\u002Fguides\u002Fday-to-day\u002Fvscode","3.guides\u002F1.day-to-day\u002F7.vscode",{"title":88,"path":89,"stem":90},"Kraft on a phone","\u002Fguides\u002Fday-to-day\u002Fkraft-on-a-phone","3.guides\u002F1.day-to-day\u002F8.kraft-on-a-phone",{"title":92,"path":93,"stem":94},"Get notified when an item needs you","\u002Fguides\u002Fday-to-day\u002Fnotifications","3.guides\u002F1.day-to-day\u002F9.notifications",false,{"title":97,"path":98,"stem":99,"children":100,"page":95},"Customize and automate","\u002Fguides\u002Fcustomize","3.guides\u002F2.customize",[101,105,109],{"title":102,"path":103,"stem":104},"Write your own chain","\u002Fguides\u002Fcustomize\u002Fwrite-your-own-chain","3.guides\u002F2.customize\u002F1.write-your-own-chain",{"title":106,"path":107,"stem":108},"Add a security review or a gate reviewer","\u002Fguides\u002Fcustomize\u002Fadd-review-agents","3.guides\u002F2.customize\u002F2.add-review-agents",{"title":110,"path":111,"stem":112},"Schedule or webhook work","\u002Fguides\u002Fcustomize\u002Fschedule-and-webhook-work","3.guides\u002F2.customize\u002F3.schedule-and-webhook-work",{"title":114,"path":115,"stem":116,"children":117,"page":95},"Agents and harnesses","\u002Fguides\u002Fharnesses","3.guides\u002F3.harnesses",[118,122,126,130],{"title":119,"path":120,"stem":121},"Switch a task to another harness","\u002Fguides\u002Fharnesses\u002Fswitch-harness","3.guides\u002F3.harnesses\u002F1.switch-harness",{"title":123,"path":124,"stem":125},"Add or override a harness","\u002Fguides\u002Fharnesses\u002Fadding-a-harness","3.guides\u002F3.harnesses\u002F2.adding-a-harness",{"title":127,"path":128,"stem":129},"Build a worker Kit","\u002Fguides\u002Fharnesses\u002Fworker-kit","3.guides\u002F3.harnesses\u002F3.worker-kit",{"title":131,"path":132,"stem":133},"Give a worker its login","\u002Fguides\u002Fharnesses\u002Fgive-a-worker-its-login","3.guides\u002F3.harnesses\u002F4.give-a-worker-its-login",{"title":135,"path":136,"stem":137,"children":138,"page":95},"Run the server","\u002Fguides\u002Frun","3.guides\u002F4.run",[139,143,147,151,155,159,163,167,171,175,179],{"title":140,"path":141,"stem":142},"Remote access","\u002Fguides\u002Frun\u002Fremote-access","3.guides\u002F4.run\u002F01.remote-access",{"title":144,"path":145,"stem":146},"Put a proxy in front of Kraft","\u002Fguides\u002Frun\u002Fput-a-proxy-in-front-of-kraft","3.guides\u002F4.run\u002F02.put-a-proxy-in-front-of-kraft",{"title":148,"path":149,"stem":150},"Restart Kraft without ending running agents","\u002Fguides\u002Frun\u002Frestart-kraft","3.guides\u002F4.run\u002F03.restart-kraft",{"title":152,"path":153,"stem":154},"Back up and restore the database","\u002Fguides\u002Frun\u002Fback-up-and-restore","3.guides\u002F4.run\u002F04.back-up-and-restore",{"title":156,"path":157,"stem":158},"Logs and disk space","\u002Fguides\u002Frun\u002Flogs-and-disk-space","3.guides\u002F4.run\u002F05.logs-and-disk-space",{"title":160,"path":161,"stem":162},"Run Kraft as a service","\u002Fguides\u002Frun\u002Frun-as-a-service","3.guides\u002F4.run\u002F06.run-as-a-service",{"title":164,"path":165,"stem":166},"Upgrade Kraft","\u002Fguides\u002Frun\u002Fupgrade-kraft","3.guides\u002F4.run\u002F07.upgrade-kraft",{"title":168,"path":169,"stem":170},"Upgrade your configuration","\u002Fguides\u002Frun\u002Fupgrade-your-configuration","3.guides\u002F4.run\u002F08.upgrade-your-configuration",{"title":172,"path":173,"stem":174},"Upgrade from 1.4","\u002Fguides\u002Frun\u002Fupgrade-from-1-4","3.guides\u002F4.run\u002F09.upgrade-from-1-4",{"title":176,"path":177,"stem":178},"Upgrade from 0.x or a release candidate","\u002Fguides\u002Frun\u002Fupgrade-from-0-x-or-a-release-candidate","3.guides\u002F4.run\u002F10.upgrade-from-0-x-or-a-release-candidate",{"title":180,"path":181,"stem":182},"Roll back to 1.4","\u002Fguides\u002Frun\u002Froll-back","3.guides\u002F4.run\u002F11.roll-back",{"title":184,"path":185,"stem":186},"Kraft Lite","\u002Fguides\u002Fkraft-lite","3.guides\u002F5.kraft-lite",{"title":188,"path":189,"stem":190,"children":191},"Troubleshooting","\u002Ftroubleshooting","4.troubleshooting",[192,194,198,202,206,210],{"title":10,"path":189,"stem":193},"4.troubleshooting\u002Findex",{"title":195,"path":196,"stem":197},"Why did my item stop?","\u002Ftroubleshooting\u002Fwhy-did-my-item-stop","4.troubleshooting\u002F1.why-did-my-item-stop",{"title":199,"path":200,"stem":201},"Stop reasons in detail","\u002Ftroubleshooting\u002Fstop-reasons-in-detail","4.troubleshooting\u002F2.stop-reasons-in-detail",{"title":203,"path":204,"stem":205},"Starting and reaching Kraft","\u002Ftroubleshooting\u002Fstarting-and-reaching-kraft","4.troubleshooting\u002F3.starting-and-reaching-kraft",{"title":207,"path":208,"stem":209},"Doctor failures","\u002Ftroubleshooting\u002Fdoctor-failures","4.troubleshooting\u002F4.doctor-failures",{"title":211,"path":212,"stem":213},"Sandbox and Kit stops","\u002Ftroubleshooting\u002Fsandbox-and-kit-stops","4.troubleshooting\u002F5.sandbox-and-kit-stops",{"title":215,"path":216,"stem":217,"children":218},"Reference","\u002Freference","5.reference",[219,221,259,281,285,375,393,419,423,427,461,465],{"title":10,"path":216,"stem":220},"5.reference\u002Findex",{"title":222,"path":223,"stem":224,"children":225},"Web UI","\u002Freference\u002Fweb-ui","5.reference\u002F00.web-ui\u002Findex",[226,227,231,235,239,243,247,251,255],{"title":10,"path":223,"stem":224},{"title":228,"path":229,"stem":230},"Sidebar, search, and keyboard","\u002Freference\u002Fweb-ui\u002Fsidebar-search-and-keyboard","5.reference\u002F00.web-ui\u002F0.sidebar-search-and-keyboard",{"title":232,"path":233,"stem":234},"The board","\u002Freference\u002Fweb-ui\u002Fboard","5.reference\u002F00.web-ui\u002F1.board",{"title":236,"path":237,"stem":238},"An item's page","\u002Freference\u002Fweb-ui\u002Fitem-page","5.reference\u002F00.web-ui\u002F2.item-page",{"title":240,"path":241,"stem":242},"Fix loops and test scopes","\u002Freference\u002Fweb-ui\u002Ffix-loops-and-test-scopes","5.reference\u002F00.web-ui\u002F3.fix-loops-and-test-scopes",{"title":244,"path":245,"stem":246},"Config before an item starts","\u002Freference\u002Fweb-ui\u002Fconfig-before-start","5.reference\u002F00.web-ui\u002F4.config-before-start",{"title":248,"path":249,"stem":250},"The review page","\u002Freference\u002Fweb-ui\u002Freview-page","5.reference\u002F00.web-ui\u002F5.review-page",{"title":252,"path":253,"stem":254},"Templates and Settings","\u002Freference\u002Fweb-ui\u002Ftemplates-and-settings","5.reference\u002F00.web-ui\u002F6.templates-and-settings",{"title":256,"path":257,"stem":258},"Analytics","\u002Freference\u002Fweb-ui\u002Fanalytics","5.reference\u002F00.web-ui\u002F7.analytics",{"title":260,"path":261,"stem":262,"children":263},"CLI","\u002Freference\u002Fcli","5.reference\u002F01.cli\u002Findex",[264,265,269,273,277],{"title":10,"path":261,"stem":262},{"title":266,"path":267,"stem":268},"Item verbs","\u002Freference\u002Fcli\u002Fitem","5.reference\u002F01.cli\u002F2.item",{"title":270,"path":271,"stem":272},"View verbs","\u002Freference\u002Fcli\u002Fview","5.reference\u002F01.cli\u002F3.view",{"title":274,"path":275,"stem":276},"Repo verbs","\u002Freference\u002Fcli\u002Frepo","5.reference\u002F01.cli\u002F4.repo",{"title":278,"path":279,"stem":280},"Admin verbs","\u002Freference\u002Fcli\u002Fadmin","5.reference\u002F01.cli\u002F5.admin",{"title":282,"path":283,"stem":284},"Work item statuses","\u002Freference\u002Fstatuses","5.reference\u002F02.statuses",{"title":286,"path":287,"stem":288,"children":289},"Configuration","\u002Freference\u002Fconfiguration","5.reference\u002F03.configuration\u002Findex",[290,291,309,313,317,321,325,329,333,337,371],{"title":10,"path":287,"stem":288},{"title":292,"path":293,"stem":294,"children":295},"repos.yaml","\u002Freference\u002Fconfiguration\u002Frepos","5.reference\u002F03.configuration\u002F02.repos\u002Findex",[296,297,301,305],{"title":10,"path":293,"stem":294},{"title":298,"path":299,"stem":300},"How connect proposes commands","\u002Freference\u002Fconfiguration\u002Frepos\u002Fconnect-proposals","5.reference\u002F03.configuration\u002F02.repos\u002F1.connect-proposals",{"title":302,"path":303,"stem":304},"detectors.yaml","\u002Freference\u002Fconfiguration\u002Frepos\u002Fdetectors","5.reference\u002F03.configuration\u002F02.repos\u002F2.detectors",{"title":306,"path":307,"stem":308},"Workspaces","\u002Freference\u002Fconfiguration\u002Frepos\u002Fworkspaces","5.reference\u002F03.configuration\u002F02.repos\u002F3.workspaces",{"title":310,"path":311,"stem":312},"policy.yaml","\u002Freference\u002Fconfiguration\u002Fpolicy","5.reference\u002F03.configuration\u002F03.policy",{"title":314,"path":315,"stem":316},"Library and chains","\u002Freference\u002Fconfiguration\u002Flibrary-and-chains","5.reference\u002F03.configuration\u002F04.library-and-chains",{"title":318,"path":319,"stem":320},"harnesses.yaml","\u002Freference\u002Fconfiguration\u002Fharnesses-file","5.reference\u002F03.configuration\u002F05.harnesses-file",{"title":322,"path":323,"stem":324},"access.yaml","\u002Freference\u002Fconfiguration\u002Faccess","5.reference\u002F03.configuration\u002F06.access",{"title":326,"path":327,"stem":328},"intake.yaml","\u002Freference\u002Fconfiguration\u002Fintake","5.reference\u002F03.configuration\u002F07.intake",{"title":330,"path":331,"stem":332},"notify.yaml","\u002Freference\u002Fconfiguration\u002Fnotify","5.reference\u002F03.configuration\u002F08.notify",{"title":334,"path":335,"stem":336},"theme.yaml","\u002Freference\u002Fconfiguration\u002Ftheme","5.reference\u002F03.configuration\u002F09.theme",{"title":338,"path":339,"stem":340,"children":341},"Sandboxed workers","\u002Freference\u002Fconfiguration\u002Fsandbox","5.reference\u002F03.configuration\u002F10.sandbox\u002Findex",[342,343,347,351,355,359,363,367],{"title":10,"path":339,"stem":340},{"title":344,"path":345,"stem":346},"Resource limits","\u002Freference\u002Fconfiguration\u002Fsandbox\u002Fresource-limits","5.reference\u002F03.configuration\u002F10.sandbox\u002F1.resource-limits",{"title":348,"path":349,"stem":350},"Callbacks from a sandbox","\u002Freference\u002Fconfiguration\u002Fsandbox\u002Fcallbacks","5.reference\u002F03.configuration\u002F10.sandbox\u002F2.callbacks",{"title":352,"path":353,"stem":354},"Network policy","\u002Freference\u002Fconfiguration\u002Fsandbox\u002Fnetwork-policy","5.reference\u002F03.configuration\u002F10.sandbox\u002F3.network-policy",{"title":356,"path":357,"stem":358},"Credentials","\u002Freference\u002Fconfiguration\u002Fsandbox\u002Fcredentials","5.reference\u002F03.configuration\u002F10.sandbox\u002F4.credentials",{"title":360,"path":361,"stem":362},"Kits","\u002Freference\u002Fconfiguration\u002Fsandbox\u002Fkits","5.reference\u002F03.configuration\u002F10.sandbox\u002F5.kits",{"title":364,"path":365,"stem":366},"sandbox.yaml","\u002Freference\u002Fconfiguration\u002Fsandbox\u002Fsandbox-yaml","5.reference\u002F03.configuration\u002F10.sandbox\u002F6.sandbox-yaml",{"title":368,"path":369,"stem":370},"Git in a sandbox","\u002Freference\u002Fconfiguration\u002Fsandbox\u002Fgit-in-a-sandbox","5.reference\u002F03.configuration\u002F10.sandbox\u002F7.git-in-a-sandbox",{"title":372,"path":373,"stem":374},"Environment variables","\u002Freference\u002Fconfiguration\u002Fenvironment-variables","5.reference\u002F03.configuration\u002F11.environment-variables",{"title":376,"path":377,"stem":378,"children":379},"Chain file keys","\u002Freference\u002Fchain-nodes","5.reference\u002F04.chain-nodes\u002Findex",[380,381,385,389],{"title":10,"path":377,"stem":378},{"title":382,"path":383,"stem":384},"Subprocess tasks","\u002Freference\u002Fchain-nodes\u002Fsubprocess-tasks","5.reference\u002F04.chain-nodes\u002F2.subprocess-tasks",{"title":386,"path":387,"stem":388},"Fix loop and judge","\u002Freference\u002Fchain-nodes\u002Ffix-loop","5.reference\u002F04.chain-nodes\u002F3.fix-loop",{"title":390,"path":391,"stem":392},"Result file","\u002Freference\u002Fchain-nodes\u002Fresult-file","5.reference\u002F04.chain-nodes\u002F4.result-file",{"title":394,"path":395,"stem":396,"children":397},"Agent harnesses","\u002Freference\u002Fharnesses","5.reference\u002F05.harnesses\u002Findex",[398,399,403,407,411,415],{"title":10,"path":395,"stem":396},{"title":400,"path":401,"stem":402},"Unattended runs","\u002Freference\u002Fharnesses\u002Funattended-runs","5.reference\u002F05.harnesses\u002F2.unattended-runs",{"title":404,"path":405,"stem":406},"Agent profiles","\u002Freference\u002Fharnesses\u002Fagent-profiles","5.reference\u002F05.harnesses\u002F3.agent-profiles",{"title":408,"path":409,"stem":410},"Harness definition files","\u002Freference\u002Fharnesses\u002Fharness-files","5.reference\u002F05.harnesses\u002F4.harness-files",{"title":412,"path":413,"stem":414},"Fallback and escalation","\u002Freference\u002Fharnesses\u002Ffallback-and-escalation","5.reference\u002F05.harnesses\u002F5.fallback-and-escalation",{"title":416,"path":417,"stem":418},"Cost reporting","\u002Freference\u002Fharnesses\u002Fcost-reporting","5.reference\u002F05.harnesses\u002F6.cost-reporting",{"title":420,"path":421,"stem":422},"Permission gate","\u002Freference\u002Fpermissions","5.reference\u002F06.permissions",{"title":424,"path":425,"stem":426},"Inbound triggers","\u002Freference\u002Ftriggers","5.reference\u002F07.triggers",{"title":428,"path":429,"stem":430,"children":431},"HTTP API","\u002Freference\u002Fhttp-api","5.reference\u002F08.http-api\u002Findex",[432,433,437,441,445,449,453,457],{"title":10,"path":429,"stem":430},{"title":434,"path":435,"stem":436},"Filing, reading and changing work items","\u002Freference\u002Fhttp-api\u002Fwork-items","5.reference\u002F08.http-api\u002F2.work-items",{"title":438,"path":439,"stem":440},"Gates, run control, ending and retry","\u002Freference\u002Fhttp-api\u002Fgates-run-control-and-ending","5.reference\u002F08.http-api\u002F3.gates-run-control-and-ending",{"title":442,"path":443,"stem":444},"The work item object","\u002Freference\u002Fhttp-api\u002Fwork-item-object","5.reference\u002F08.http-api\u002F4.work-item-object",{"title":446,"path":447,"stem":448},"Budget, events, diff and documents","\u002Freference\u002Fhttp-api\u002Fbudget-and-events","5.reference\u002F08.http-api\u002F5.budget-and-events",{"title":450,"path":451,"stem":452},"Repos, chains, harnesses and the server","\u002Freference\u002Fhttp-api\u002Frepos-chains-harnesses-and-server","5.reference\u002F08.http-api\u002F6.repos-chains-harnesses-and-server",{"title":454,"path":455,"stem":456},"Drafts","\u002Freference\u002Fhttp-api\u002Fdrafts","5.reference\u002F08.http-api\u002F7.drafts",{"title":458,"path":459,"stem":460},"Ops for each draft area","\u002Freference\u002Fhttp-api\u002Fdraft-ops","5.reference\u002F08.http-api\u002F8.draft-ops",{"title":462,"path":463,"stem":464},"MCP tools","\u002Freference\u002Fmcp-tools","5.reference\u002F09.mcp-tools",{"title":466,"path":467,"stem":468},"Events","\u002Freference\u002Fevents","5.reference\u002F10.events",{"title":470,"path":471,"stem":472,"children":473},"Security and project","\u002Fproject","6.project",[474,476,480,484,488,492,496,500],{"title":10,"path":471,"stem":475},"6.project\u002Findex",{"title":477,"path":478,"stem":479},"Security","\u002Fproject\u002Fsecurity","6.project\u002F1.security",{"title":481,"path":482,"stem":483},"Data and privacy","\u002Fproject\u002Fdata-and-privacy","6.project\u002F2.data-and-privacy",{"title":485,"path":486,"stem":487},"What's new in 2.0","\u002Fproject\u002Fwhats-new","6.project\u002F3.whats-new",{"title":489,"path":490,"stem":491},"Status and support","\u002Fproject\u002Fstatus-and-support","6.project\u002F4.status-and-support",{"title":493,"path":494,"stem":495},"Architecture","\u002Fproject\u002Farchitecture","6.project\u002F5.architecture",{"title":497,"path":498,"stem":499},"Source map","\u002Fproject\u002Fsource-map","6.project\u002F6.source-map",{"title":501,"path":502,"stem":503},"Contributing","\u002Fproject\u002Fcontributing","6.project\u002F7.contributing",{"id":505,"title":156,"body":506,"description":1022,"extension":1023,"links":1024,"meta":1025,"navigation":1026,"path":157,"seo":1027,"stem":158,"__hash__":1028},"docs\u002F3.guides\u002F4.run\u002F05.logs-and-disk-space.md",{"type":507,"value":508,"toc":1013},"minimark",[509,524,529,568,572,579,614,617,667,674,693,721,731,734,767,776,780,792,934,947,952,968,981,985,1009],[510,511,512,513,517,518,523],"p",{},"You will find the log you need, read what an agent printed with ",[514,515,516],"code",{},"kraft view logs",", and free the disk space that ",[519,520,522],"a",{"href":521},"\u002Fconcepts\u002Fvocabulary#worktree","worktrees"," take.",[525,526,528],"h2",{"id":527},"before-you-start","Before you start",[530,531,532,560],"ul",{},[533,534,535,538,539,542,543,545,546,549,550,553,554,556,557,559],"li",{},[514,536,537],{},"$KRAFT_HOME"," is ",[514,540,541],{},"~\u002F.kraft"," unless you set it; see\n",[519,544,372],{"href":373},". The\ncommands find ",[514,547,548],{},"run\u002F"," as Kraft does: ",[514,551,552],{},"$KRAFT_RUN_DIR"," when you set it, else\n",[514,555,548],{}," under ",[514,558,537],{},".",[533,561,562,563,567],{},"Deleting old session logs needs the server stopped. If Kraft runs as a\nservice, stop it as ",[519,564,566],{"href":565},"\u002Fguides\u002Frun\u002Frun-as-a-service#stop-a-service","Stop a service","\nsays.",[525,569,571],{"id":570},"find-the-logs","Find the logs",[510,573,574,575,578],{},"All logs are in ",[514,576,577],{},"run\u002Flogs\u002F",":",[530,580,581,595,601],{},[533,582,583,586,587,590,591,594],{},[514,584,585],{},"server.log"," is the server's own output: startup, shutdown and its reason,\nerrors. A foreground ",[514,588,589],{},"kraft"," writes here as well as to the terminal. Kraft\nmoves it to ",[514,592,593],{},"server.log.1"," at start once it passes about 8 MB, replacing the\nlast one.",[533,596,597,600],{},[514,598,599],{},"\u003Csession id>.log"," is one worker session: everything an agent or command\nprinted. Kraft never deletes these.",[533,602,603,606,607,610,611,613],{},[514,604,605],{},"\u003Csession id>.times.jsonl"," holds when each line of that session's log was\nwritten, one JSON object per line: ",[514,608,609],{},"{\"n\": \u003Cline number>, \"t\": \u003Ctimestamp>}",".\n",[514,612,516],{}," and the item page's log take a line's time from it when the\nline carries none of its own.",[510,615,616],{},"Read a session's log through Kraft rather than by file name:",[618,619,620,633],"table",{},[621,622,623],"thead",{},[624,625,626,630],"tr",{},[627,628,629],"th",{},"Command",[627,631,632],{},"What it shows",[634,635,636,647,657],"tbody",{},[624,637,638,644],{},[639,640,641],"td",{},[514,642,643],{},"kraft view logs ID",[639,645,646],{},"The newest session. While the item is stopped, the one that stopped it.",[624,648,649,654],{},[639,650,651],{},[514,652,653],{},"kraft view logs ID --session SESSION",[639,655,656],{},"One session.",[624,658,659,664],{},[639,660,661],{},[514,662,663],{},"kraft view logs ID -f",[639,665,666],{},"A running session, followed.",[510,668,669,670,673],{},"A session's log is its output with stdout and stderr merged. Each line shows a\ntime, a source and the text. The time is when Kraft saw the line, in UTC. It is\n",[514,671,672],{},"--:--:--"," for a session Kraft took over after a restart, and for a log from\nbefore Kraft recorded times.",[510,675,676,677,680,681,684,685,688,689,692],{},"The source is ",[514,678,679],{},"stdout"," for a plain line. A line of the agent's structured\nlog is ",[514,682,683],{},"agent"," (what the agent says), ",[514,686,687],{},"tool"," (a tool call or its result) or\n",[514,690,691],{},"sys"," (the session's own start and result lines):",[694,695,701],"pre",{"className":696,"code":698,"language":699,"meta":700},[697],"language-text","09:30:15 sys    init claude-sonnet-5-5\n09:30:17 agent  I'll start with the failing test.\n09:30:18 tool   Read(tests\u002Ftest_board.py)\n09:30:21 stdout npm warn deprecated inflight@1.0.6\n","text","",[514,702,703,709,713,717],{"__ignoreMap":700},[704,705,708],"span",{"className":706},[707],"line","09:30:15 sys    init claude-sonnet-5-5\n",[704,710,712],{"className":711},[707],"09:30:17 agent  I'll start with the failing test.\n",[704,714,716],{"className":715},[707],"09:30:18 tool   Read(tests\u002Ftest_board.py)\n",[704,718,720],{"className":719},[707],"09:30:21 stdout npm warn deprecated inflight@1.0.6\n",[510,722,723,724,726,727,730],{},"While the item is stopped, a bare ",[514,725,643],{}," shows the session that\nstopped it, and names the newest one, such as an auto-escalation, on stderr.\nWith ",[514,728,729],{},"-f"," it follows the newest one instead, and names on stderr the session\nthat stopped the item.",[510,732,733],{},"To list an item's session ids:",[694,735,739],{"className":736,"code":737,"language":738,"meta":700,"style":700},"language-bash shiki shiki-themes github-light-high-contrast github-light-high-contrast github-dark-high-contrast","kraft view events ID --type worker_session_created --json\n","bash",[514,740,741],{"__ignoreMap":700},[704,742,744,747,751,754,757,761,764],{"class":707,"line":743},1,[704,745,589],{"class":746},"szw1H",[704,748,750],{"class":749},"semJd"," view",[704,752,753],{"class":749}," events",[704,755,756],{"class":749}," ID",[704,758,760],{"class":759},"ssYy9"," --type",[704,762,763],{"class":749}," worker_session_created",[704,765,766],{"class":759}," --json\n",[510,768,769,770,772,773,559],{},"You know it worked when ",[514,771,643],{}," prints the lines the agent or\ncommand wrote. For the server's own log, read the end of ",[514,774,775],{},"run\u002Flogs\u002Fserver.log",[525,777,779],{"id":778},"reclaim-disk-space","Reclaim disk space",[510,781,782,783,787,788,791],{},"Each ",[519,784,786],{"href":785},"\u002Fconcepts\u002Fvocabulary#work-item","work item"," gets a git worktree in ",[514,789,790],{},"run\u002Fworktrees\u002F\u003Citem id>\u002F",", a full\ncheckout of its repo, plus any dependencies its setup command installed. That\nadds up.",[793,794,795,871,924],"ol",{},[533,796,797,798],{},"See what uses space:",[694,799,801],{"className":736,"code":800,"language":738,"meta":700,"style":700},"run=\"${KRAFT_RUN_DIR:-${KRAFT_HOME:-$HOME\u002F.kraft}\u002Frun}\"\ndu -sh \"$run\"\u002F*\n",[514,802,803,850],{"__ignoreMap":700},[704,804,805,809,813,816,819,822,825,828,830,833,836,838,840,843,845,847],{"class":707,"line":743},[704,806,808],{"class":807},"s7iLA","run",[704,810,812],{"class":811},"sklAV","=",[704,814,815],{"class":749},"\"${",[704,817,818],{"class":807},"KRAFT_RUN_DIR",[704,820,821],{"class":811},":-",[704,823,824],{"class":749},"${",[704,826,827],{"class":807},"KRAFT_HOME",[704,829,821],{"class":811},[704,831,832],{"class":807},"$HOME",[704,834,835],{"class":811},"\u002F",[704,837,559],{"class":749},[704,839,589],{"class":807},[704,841,842],{"class":749},"}",[704,844,835],{"class":811},[704,846,808],{"class":807},[704,848,849],{"class":749},"}\"\n",[704,851,853,856,859,862,865,868],{"class":707,"line":852},2,[704,854,855],{"class":746},"du",[704,857,858],{"class":759}," -sh",[704,860,861],{"class":749}," \"",[704,863,864],{"class":807},"$run",[704,866,867],{"class":749},"\"\u002F",[704,869,870],{"class":759},"*\n",[533,872,873,874],{},"Remove the worktrees you no longer need. A worktree is removed when its item\nis abandoned or archived:",[530,875,876,891,905],{},[533,877,878,882,883,886,887,890],{},[879,880,881],"strong",{},"Abandon"," a work item you no longer want: ",[514,884,885],{},"kraft item abandon ID --yes",".\nIt removes the worktree, and deletes the item's local branch and its\nattachment copies in ",[514,888,889],{},"run\u002Fattachments\u002F",". Uncommitted work is lost, and so\nare commits you never pushed.",[533,892,893,896,897,900,901,904],{},[879,894,895],{},"Archive"," a completed or abandoned item from the board's Done group, or\nwith ",[514,898,899],{},"POST \u002Fapi\u002Fwork-items\u002FID\u002Farchive",". It removes the worktree and keeps\nthe item's record and its attachment copies, so you can still duplicate\nit. Commit uncommitted changes in the worktree first, or copy them out from\n",[514,902,903],{},"kraft repo open ID",": archiving loses them.",[533,906,907,910,911,914,915,917,918,921,922,559],{},[879,908,909],{},"Auto-archive."," ",[514,912,913],{},"archive.after_days"," in ",[514,916,310],{}," archives completed\nand abandoned items that old. The shipped file sets ",[514,919,920],{},"30",". Lower it to\nreclaim space sooner. See ",[519,923,310],{"href":311},[533,925,926,927,929,930,933],{},"Delete old session logs in ",[514,928,577],{}," and result files in ",[514,931,932],{},"run\u002Fresults\u002F"," by\nhand, with the server stopped. They stay after archiving.",[510,935,769,936,939,940,942,943,946],{},[514,937,938],{},"du -sh \"$run\"\u002F*"," shows ",[514,941,522],{}," smaller, and\n",[514,944,945],{},"ls \"$run\u002Fworktrees\""," no longer lists the item.",[948,949,951],"h3",{"id":950},"what-archive-does-to-the-branch","What archive does to the branch",[530,953,954,957],{},[533,955,956],{},"It deletes the local branch only when every commit on it is somewhere else\ntoo: another branch such as the base, a remote-tracking branch, a tag, or what\nKraft pushed. Otherwise the branch stays, and the archive event says how many\ncommits it kept.",[533,958,959,960,963,964,967],{},"Commits on a detached HEAD in the worktree are kept on a new branch,\n",[514,961,962],{},"kraft\u002Frescued\u002F\u003Citem id>",". If Kraft cannot make that branch, it archives the\nitem but leaves the worktree, and the archive event's ",[514,965,966],{},"worktree_kept"," says\nwhy.",[510,969,970,973,974,977,978,559],{},[514,971,972],{},"kraft item complete"," and ",[514,975,976],{},"kraft item cancel"," keep the worktree until the\nitem is archived. A cancelled item that never pushed keeps its branch after\nthat too. Delete it by hand once you are done with it:\n",[514,979,980],{},"git branch -D \u003Cbranch>",[525,982,984],{"id":983},"next-steps","Next steps",[530,986,987,992,1002],{},[533,988,989,991],{},[519,990,152],{"href":153},": copy the database before you delete anything by hand",[533,993,994,996,997,999,1000],{},[519,995,310],{"href":311},": set ",[514,998,913],{}," and the rest of ",[514,1001,310],{},[533,1003,1004,1006,1007],{},[519,1005,270],{"href":271},": every flag of ",[514,1008,516],{},[1010,1011,1012],"style",{},"html pre.shiki code .szw1H, html code.shiki .szw1H{--shiki-light:#702C00;--shiki-default:#702C00;--shiki-dark:#FFB757}html pre.shiki code .semJd, html code.shiki .semJd{--shiki-light:#032563;--shiki-default:#032563;--shiki-dark:#ADDCFF}html pre.shiki code .ssYy9, html code.shiki .ssYy9{--shiki-light:#023B95;--shiki-default:#023B95;--shiki-dark:#91CBFF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s7iLA, html code.shiki .s7iLA{--shiki-light:#0E1116;--shiki-default:#0E1116;--shiki-dark:#F0F3F6}html pre.shiki code .sklAV, html code.shiki .sklAV{--shiki-light:#A0111F;--shiki-default:#A0111F;--shiki-dark:#FF9492}",{"title":700,"searchDepth":852,"depth":852,"links":1014},[1015,1016,1017,1021],{"id":527,"depth":852,"text":528},{"id":570,"depth":852,"text":571},{"id":778,"depth":852,"text":779,"children":1018},[1019],{"id":950,"depth":1020,"text":951},3,{"id":983,"depth":852,"text":984},"Where Kraft writes its logs, how to read a session's log, and how to free the disk space worktrees use.","md",null,{},true,{"title":156,"description":1022},"lZv1Q-akV9eIFzYpmTTPO0KTCgNoViq6-NjFKmFESMg",[1030,1032],{"title":152,"path":153,"stem":154,"description":1031,"children":-1},"Back up Kraft's database while the server runs, check the backup, restore it, and find the copy Kraft makes before an upgrade.",{"title":160,"path":161,"stem":162,"description":1033,"children":-1},"Start Kraft at login and restart it if it exits, set its environment, stop or remove the service, and run a second instance beside the first.",1791801252686]