[{"data":1,"prerenderedAt":1103},["ShallowReactive",2],{"navigation_docs":3,"-guides-harnesses-adding-a-harness":520,"-guides-harnesses-adding-a-harness-surround":1098},[4,28,51,191,222,485],{"title":5,"path":6,"stem":7,"children":8,"page":-1},"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,"page":-1},"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,"page":-1},"Guides","\u002Fguides","3.guides",[56,58,96,117,138,187],{"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,113],{"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},"Share chains with add-ons","\u002Fguides\u002Fcustomize\u002Fshare-chains-with-addons","3.guides\u002F2.customize\u002F4.share-chains-with-addons",{"title":118,"path":119,"stem":120,"children":121,"page":95},"Agents and harnesses","\u002Fguides\u002Fharnesses","3.guides\u002F3.harnesses",[122,126,130,134],{"title":123,"path":124,"stem":125},"Switch a task to another harness","\u002Fguides\u002Fharnesses\u002Fswitch-harness","3.guides\u002F3.harnesses\u002F1.switch-harness",{"title":127,"path":128,"stem":129},"Add or override a harness","\u002Fguides\u002Fharnesses\u002Fadding-a-harness","3.guides\u002F3.harnesses\u002F2.adding-a-harness",{"title":131,"path":132,"stem":133},"Build a worker Kit","\u002Fguides\u002Fharnesses\u002Fworker-kit","3.guides\u002F3.harnesses\u002F3.worker-kit",{"title":135,"path":136,"stem":137},"Give a worker its login","\u002Fguides\u002Fharnesses\u002Fgive-a-worker-its-login","3.guides\u002F3.harnesses\u002F4.give-a-worker-its-login",{"title":139,"path":140,"stem":141,"children":142,"page":95},"Run the server","\u002Fguides\u002Frun","3.guides\u002F4.run",[143,147,151,155,159,163,167,171,175,179,183],{"title":144,"path":145,"stem":146},"Remote access","\u002Fguides\u002Frun\u002Fremote-access","3.guides\u002F4.run\u002F01.remote-access",{"title":148,"path":149,"stem":150},"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":152,"path":153,"stem":154},"Restart Kraft without ending running agents","\u002Fguides\u002Frun\u002Frestart-kraft","3.guides\u002F4.run\u002F03.restart-kraft",{"title":156,"path":157,"stem":158},"Back up and restore the database","\u002Fguides\u002Frun\u002Fback-up-and-restore","3.guides\u002F4.run\u002F04.back-up-and-restore",{"title":160,"path":161,"stem":162},"Logs and disk space","\u002Fguides\u002Frun\u002Flogs-and-disk-space","3.guides\u002F4.run\u002F05.logs-and-disk-space",{"title":164,"path":165,"stem":166},"Run Kraft as a service","\u002Fguides\u002Frun\u002Frun-as-a-service","3.guides\u002F4.run\u002F06.run-as-a-service",{"title":168,"path":169,"stem":170},"Upgrade Kraft","\u002Fguides\u002Frun\u002Fupgrade-kraft","3.guides\u002F4.run\u002F07.upgrade-kraft",{"title":172,"path":173,"stem":174},"Upgrade your configuration","\u002Fguides\u002Frun\u002Fupgrade-your-configuration","3.guides\u002F4.run\u002F08.upgrade-your-configuration",{"title":176,"path":177,"stem":178},"Upgrade from 1.4","\u002Fguides\u002Frun\u002Fupgrade-from-1-4","3.guides\u002F4.run\u002F09.upgrade-from-1-4",{"title":180,"path":181,"stem":182},"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":184,"path":185,"stem":186},"Roll back to 1.4","\u002Fguides\u002Frun\u002Froll-back","3.guides\u002F4.run\u002F11.roll-back",{"title":188,"path":189,"stem":190},"Kraft Lite","\u002Fguides\u002Fkraft-lite","3.guides\u002F5.kraft-lite",{"title":192,"path":193,"stem":194,"children":195,"page":-1},"Troubleshooting","\u002Ftroubleshooting","4.troubleshooting",[196,198,202,206,210,214,218],{"title":10,"path":193,"stem":197},"4.troubleshooting\u002Findex",{"title":199,"path":200,"stem":201},"Why did my item stop?","\u002Ftroubleshooting\u002Fwhy-did-my-item-stop","4.troubleshooting\u002F1.why-did-my-item-stop",{"title":203,"path":204,"stem":205},"Stop reasons in detail","\u002Ftroubleshooting\u002Fstop-reasons-in-detail","4.troubleshooting\u002F2.stop-reasons-in-detail",{"title":207,"path":208,"stem":209},"Starting and reaching Kraft","\u002Ftroubleshooting\u002Fstarting-and-reaching-kraft","4.troubleshooting\u002F3.starting-and-reaching-kraft",{"title":211,"path":212,"stem":213},"Doctor failures","\u002Ftroubleshooting\u002Fdoctor-failures","4.troubleshooting\u002F4.doctor-failures",{"title":215,"path":216,"stem":217},"Sandbox and Kit stops","\u002Ftroubleshooting\u002Fsandbox-and-kit-stops","4.troubleshooting\u002F5.sandbox-and-kit-stops",{"title":219,"path":220,"stem":221},"Add-on problems","\u002Ftroubleshooting\u002Faddon-problems","4.troubleshooting\u002F6.addon-problems",{"title":223,"path":224,"stem":225,"children":226,"page":-1},"Reference","\u002Freference","5.reference",[227,229,267,289,293,391,409,435,439,443,477,481],{"title":10,"path":224,"stem":228},"5.reference\u002Findex",{"title":230,"path":231,"stem":232,"children":233,"page":-1},"Web UI","\u002Freference\u002Fweb-ui","5.reference\u002F00.web-ui\u002Findex",[234,235,239,243,247,251,255,259,263],{"title":10,"path":231,"stem":232},{"title":236,"path":237,"stem":238},"Sidebar, search, and keyboard","\u002Freference\u002Fweb-ui\u002Fsidebar-search-and-keyboard","5.reference\u002F00.web-ui\u002F0.sidebar-search-and-keyboard",{"title":240,"path":241,"stem":242},"The board","\u002Freference\u002Fweb-ui\u002Fboard","5.reference\u002F00.web-ui\u002F1.board",{"title":244,"path":245,"stem":246},"An item's page","\u002Freference\u002Fweb-ui\u002Fitem-page","5.reference\u002F00.web-ui\u002F2.item-page",{"title":248,"path":249,"stem":250},"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":252,"path":253,"stem":254},"Config before an item starts","\u002Freference\u002Fweb-ui\u002Fconfig-before-start","5.reference\u002F00.web-ui\u002F4.config-before-start",{"title":256,"path":257,"stem":258},"The review page","\u002Freference\u002Fweb-ui\u002Freview-page","5.reference\u002F00.web-ui\u002F5.review-page",{"title":260,"path":261,"stem":262},"Templates and Settings","\u002Freference\u002Fweb-ui\u002Ftemplates-and-settings","5.reference\u002F00.web-ui\u002F6.templates-and-settings",{"title":264,"path":265,"stem":266},"Analytics","\u002Freference\u002Fweb-ui\u002Fanalytics","5.reference\u002F00.web-ui\u002F7.analytics",{"title":268,"path":269,"stem":270,"children":271,"page":-1},"CLI","\u002Freference\u002Fcli","5.reference\u002F01.cli\u002Findex",[272,273,277,281,285],{"title":10,"path":269,"stem":270},{"title":274,"path":275,"stem":276},"Item verbs","\u002Freference\u002Fcli\u002Fitem","5.reference\u002F01.cli\u002F2.item",{"title":278,"path":279,"stem":280},"View verbs","\u002Freference\u002Fcli\u002Fview","5.reference\u002F01.cli\u002F3.view",{"title":282,"path":283,"stem":284},"Repo verbs","\u002Freference\u002Fcli\u002Frepo","5.reference\u002F01.cli\u002F4.repo",{"title":286,"path":287,"stem":288},"Admin verbs","\u002Freference\u002Fcli\u002Fadmin","5.reference\u002F01.cli\u002F5.admin",{"title":290,"path":291,"stem":292},"Work item statuses","\u002Freference\u002Fstatuses","5.reference\u002F02.statuses",{"title":294,"path":295,"stem":296,"children":297,"page":-1},"Configuration","\u002Freference\u002Fconfiguration","5.reference\u002F03.configuration\u002Findex",[298,299,317,321,325,329,333,337,341,345,379,383,387],{"title":10,"path":295,"stem":296},{"title":300,"path":301,"stem":302,"children":303,"page":-1},"repos.yaml","\u002Freference\u002Fconfiguration\u002Frepos","5.reference\u002F03.configuration\u002F02.repos\u002Findex",[304,305,309,313],{"title":10,"path":301,"stem":302},{"title":306,"path":307,"stem":308},"How connect proposes commands","\u002Freference\u002Fconfiguration\u002Frepos\u002Fconnect-proposals","5.reference\u002F03.configuration\u002F02.repos\u002F1.connect-proposals",{"title":310,"path":311,"stem":312},"detectors.yaml","\u002Freference\u002Fconfiguration\u002Frepos\u002Fdetectors","5.reference\u002F03.configuration\u002F02.repos\u002F2.detectors",{"title":314,"path":315,"stem":316},"Workspaces","\u002Freference\u002Fconfiguration\u002Frepos\u002Fworkspaces","5.reference\u002F03.configuration\u002F02.repos\u002F3.workspaces",{"title":318,"path":319,"stem":320},"policy.yaml","\u002Freference\u002Fconfiguration\u002Fpolicy","5.reference\u002F03.configuration\u002F03.policy",{"title":322,"path":323,"stem":324},"Library and chains","\u002Freference\u002Fconfiguration\u002Flibrary-and-chains","5.reference\u002F03.configuration\u002F04.library-and-chains",{"title":326,"path":327,"stem":328},"harnesses.yaml","\u002Freference\u002Fconfiguration\u002Fharnesses-file","5.reference\u002F03.configuration\u002F05.harnesses-file",{"title":330,"path":331,"stem":332},"access.yaml","\u002Freference\u002Fconfiguration\u002Faccess","5.reference\u002F03.configuration\u002F06.access",{"title":334,"path":335,"stem":336},"intake.yaml","\u002Freference\u002Fconfiguration\u002Fintake","5.reference\u002F03.configuration\u002F07.intake",{"title":338,"path":339,"stem":340},"notify.yaml","\u002Freference\u002Fconfiguration\u002Fnotify","5.reference\u002F03.configuration\u002F08.notify",{"title":342,"path":343,"stem":344},"theme.yaml","\u002Freference\u002Fconfiguration\u002Ftheme","5.reference\u002F03.configuration\u002F09.theme",{"title":346,"path":347,"stem":348,"children":349,"page":-1},"Sandboxed workers","\u002Freference\u002Fconfiguration\u002Fsandbox","5.reference\u002F03.configuration\u002F10.sandbox\u002Findex",[350,351,355,359,363,367,371,375],{"title":10,"path":347,"stem":348},{"title":352,"path":353,"stem":354},"Resource limits","\u002Freference\u002Fconfiguration\u002Fsandbox\u002Fresource-limits","5.reference\u002F03.configuration\u002F10.sandbox\u002F1.resource-limits",{"title":356,"path":357,"stem":358},"Callbacks from a sandbox","\u002Freference\u002Fconfiguration\u002Fsandbox\u002Fcallbacks","5.reference\u002F03.configuration\u002F10.sandbox\u002F2.callbacks",{"title":360,"path":361,"stem":362},"Network policy","\u002Freference\u002Fconfiguration\u002Fsandbox\u002Fnetwork-policy","5.reference\u002F03.configuration\u002F10.sandbox\u002F3.network-policy",{"title":364,"path":365,"stem":366},"Credentials","\u002Freference\u002Fconfiguration\u002Fsandbox\u002Fcredentials","5.reference\u002F03.configuration\u002F10.sandbox\u002F4.credentials",{"title":368,"path":369,"stem":370},"Kits","\u002Freference\u002Fconfiguration\u002Fsandbox\u002Fkits","5.reference\u002F03.configuration\u002F10.sandbox\u002F5.kits",{"title":372,"path":373,"stem":374},"sandbox.yaml","\u002Freference\u002Fconfiguration\u002Fsandbox\u002Fsandbox-yaml","5.reference\u002F03.configuration\u002F10.sandbox\u002F6.sandbox-yaml",{"title":376,"path":377,"stem":378},"Git in a sandbox","\u002Freference\u002Fconfiguration\u002Fsandbox\u002Fgit-in-a-sandbox","5.reference\u002F03.configuration\u002F10.sandbox\u002F7.git-in-a-sandbox",{"title":380,"path":381,"stem":382},"Environment variables","\u002Freference\u002Fconfiguration\u002Fenvironment-variables","5.reference\u002F03.configuration\u002F11.environment-variables",{"title":384,"path":385,"stem":386},"Add-ons and collections","\u002Freference\u002Fconfiguration\u002Faddons","5.reference\u002F03.configuration\u002F12.addons",{"title":388,"path":389,"stem":390},"Repo libraries","\u002Freference\u002Fconfiguration\u002Frepo-libraries","5.reference\u002F03.configuration\u002F13.repo-libraries",{"title":392,"path":393,"stem":394,"children":395,"page":-1},"Chain file keys","\u002Freference\u002Fchain-nodes","5.reference\u002F04.chain-nodes\u002Findex",[396,397,401,405],{"title":10,"path":393,"stem":394},{"title":398,"path":399,"stem":400},"Subprocess tasks","\u002Freference\u002Fchain-nodes\u002Fsubprocess-tasks","5.reference\u002F04.chain-nodes\u002F2.subprocess-tasks",{"title":402,"path":403,"stem":404},"Fix loop and judge","\u002Freference\u002Fchain-nodes\u002Ffix-loop","5.reference\u002F04.chain-nodes\u002F3.fix-loop",{"title":406,"path":407,"stem":408},"Result file","\u002Freference\u002Fchain-nodes\u002Fresult-file","5.reference\u002F04.chain-nodes\u002F4.result-file",{"title":410,"path":411,"stem":412,"children":413,"page":-1},"Agent harnesses","\u002Freference\u002Fharnesses","5.reference\u002F05.harnesses\u002Findex",[414,415,419,423,427,431],{"title":10,"path":411,"stem":412},{"title":416,"path":417,"stem":418},"Unattended runs","\u002Freference\u002Fharnesses\u002Funattended-runs","5.reference\u002F05.harnesses\u002F2.unattended-runs",{"title":420,"path":421,"stem":422},"Agent profiles","\u002Freference\u002Fharnesses\u002Fagent-profiles","5.reference\u002F05.harnesses\u002F3.agent-profiles",{"title":424,"path":425,"stem":426},"Harness definition files","\u002Freference\u002Fharnesses\u002Fharness-files","5.reference\u002F05.harnesses\u002F4.harness-files",{"title":428,"path":429,"stem":430},"Fallback and escalation","\u002Freference\u002Fharnesses\u002Ffallback-and-escalation","5.reference\u002F05.harnesses\u002F5.fallback-and-escalation",{"title":432,"path":433,"stem":434},"Cost reporting","\u002Freference\u002Fharnesses\u002Fcost-reporting","5.reference\u002F05.harnesses\u002F6.cost-reporting",{"title":436,"path":437,"stem":438},"Permission gate","\u002Freference\u002Fpermissions","5.reference\u002F06.permissions",{"title":440,"path":441,"stem":442},"Inbound triggers","\u002Freference\u002Ftriggers","5.reference\u002F07.triggers",{"title":444,"path":445,"stem":446,"children":447,"page":-1},"HTTP API","\u002Freference\u002Fhttp-api","5.reference\u002F08.http-api\u002Findex",[448,449,453,457,461,465,469,473],{"title":10,"path":445,"stem":446},{"title":450,"path":451,"stem":452},"Filing, reading and changing work items","\u002Freference\u002Fhttp-api\u002Fwork-items","5.reference\u002F08.http-api\u002F2.work-items",{"title":454,"path":455,"stem":456},"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":458,"path":459,"stem":460},"The work item object","\u002Freference\u002Fhttp-api\u002Fwork-item-object","5.reference\u002F08.http-api\u002F4.work-item-object",{"title":462,"path":463,"stem":464},"Budget, events, diff and documents","\u002Freference\u002Fhttp-api\u002Fbudget-and-events","5.reference\u002F08.http-api\u002F5.budget-and-events",{"title":466,"path":467,"stem":468},"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":470,"path":471,"stem":472},"Drafts","\u002Freference\u002Fhttp-api\u002Fdrafts","5.reference\u002F08.http-api\u002F7.drafts",{"title":474,"path":475,"stem":476},"Ops for each draft area","\u002Freference\u002Fhttp-api\u002Fdraft-ops","5.reference\u002F08.http-api\u002F8.draft-ops",{"title":478,"path":479,"stem":480},"MCP tools","\u002Freference\u002Fmcp-tools","5.reference\u002F09.mcp-tools",{"title":482,"path":483,"stem":484},"Events","\u002Freference\u002Fevents","5.reference\u002F10.events",{"title":486,"path":487,"stem":488,"children":489,"page":-1},"Security and project","\u002Fproject","6.project",[490,492,496,500,504,508,512,516],{"title":10,"path":487,"stem":491},"6.project\u002Findex",{"title":493,"path":494,"stem":495},"Security","\u002Fproject\u002Fsecurity","6.project\u002F1.security",{"title":497,"path":498,"stem":499},"Data and privacy","\u002Fproject\u002Fdata-and-privacy","6.project\u002F2.data-and-privacy",{"title":501,"path":502,"stem":503},"What's new in 2.0","\u002Fproject\u002Fwhats-new","6.project\u002F3.whats-new",{"title":505,"path":506,"stem":507},"Status and support","\u002Fproject\u002Fstatus-and-support","6.project\u002F4.status-and-support",{"title":509,"path":510,"stem":511},"Architecture","\u002Fproject\u002Farchitecture","6.project\u002F5.architecture",{"title":513,"path":514,"stem":515},"Source map","\u002Fproject\u002Fsource-map","6.project\u002F6.source-map",{"title":517,"path":518,"stem":519},"Contributing","\u002Fproject\u002Fcontributing","6.project\u002F7.contributing",{"id":521,"title":127,"body":522,"description":1091,"extension":1092,"links":1093,"meta":1094,"navigation":1095,"path":128,"seo":1096,"stem":129,"__hash__":1097},"docs\u002F3.guides\u002F3.harnesses\u002F2.adding-a-harness.md",{"type":523,"value":524,"toc":1084},"minimark",[525,535,540,563,567,943,947,972,991,995,1009,1016,1027,1059,1063,1080],[526,527,528,529,534],"p",{},"Add a new agent CLI to Kraft, or change how a shipped one is launched, by dropping a YAML file into a directory. No Python change and no Kraft release are involved. At the end, a chain task runs on your ",[530,531,533],"a",{"href":532},"\u002Fconcepts\u002Fvocabulary#harness","harness",".",[536,537,539],"h2",{"id":538},"before-you-start","Before you start",[541,542,543,552,555],"ul",{},[544,545,546,547,551],"li",{},"The CLI is installed, on the ",[548,549,550],"code",{},"PATH"," of the shell that starts Kraft, and you can run it headless by hand.",[544,553,554],{},"You know its flags for a prompt, and for each option you want Kraft to set (a model, an effort, a permission mode).",[544,556,557,558,562],{},"You know how it reports tokens: in a log one of ",[530,559,561],{"href":560},"\u002Freference\u002Fharnesses\u002Fharness-files#log-readers","Kraft's readers"," parses, or in a file the agent writes.",[536,564,566],{"id":565},"add-a-harness","Add a harness",[568,569,570,588,749,828,902,913],"ol",{},[544,571,572,573,576,577,580,581,584,585,534],{},"Create ",[548,574,575],{},"$KRAFT_HOME\u002Fconfig\u002Fharnesses\u002Fmytool.yaml"," (",[548,578,579],{},"~\u002F.kraft\u002Fconfig\u002Fharnesses\u002F"," by default). Make the directory if it does not exist. The file name without ",[548,582,583],{},".yaml"," must equal the ",[548,586,587],{},"id",[544,589,590,591,732,735,739,740,679,742,744,745,748],{},"Start with the three required capabilities:",[592,593,599],"pre",{"className":594,"code":595,"filename":596,"language":597,"meta":598,"style":598},"language-yaml shiki shiki-themes github-light-high-contrast github-light-high-contrast github-dark-high-contrast","id: mytool          # must match the file name without .yaml\nkind: cli           # the only kind implemented\ncommand: [mytool]   # the command and its fixed arguments\ncapabilities:\n  prompt:  { cli: [\"-p\", \"{value}\"] }\n  context: { channel: prompt }       # or: { channel: system_prompt, cli: [...] }\n  usage:   { source: result_file }   # or: { source: envelope, reader: \u003Cparser name> }\n","config\u002Fharnesses\u002Fmytool.yaml","yaml","",[548,600,601,621,635,652,661,686,709],{"__ignoreMap":598},[602,603,606,609,613,617],"span",{"class":604,"line":605},"line",1,[602,607,587],{"class":608},"sb7M8",[602,610,612],{"class":611},"s7iLA",": ",[602,614,616],{"class":615},"semJd","mytool",[602,618,620],{"class":619},"sq92B","          # must match the file name without .yaml\n",[602,622,624,627,629,632],{"class":604,"line":623},2,[602,625,626],{"class":608},"kind",[602,628,612],{"class":611},[602,630,631],{"class":615},"cli",[602,633,634],{"class":619},"           # the only kind implemented\n",[602,636,638,641,644,646,649],{"class":604,"line":637},3,[602,639,640],{"class":608},"command",[602,642,643],{"class":611},": [",[602,645,616],{"class":615},[602,647,648],{"class":611},"]   ",[602,650,651],{"class":619},"# the command and its fixed arguments\n",[602,653,655,658],{"class":604,"line":654},4,[602,656,657],{"class":608},"capabilities",[602,659,660],{"class":611},":\n",[602,662,664,667,670,672,674,677,680,683],{"class":604,"line":663},5,[602,665,666],{"class":608},"  prompt",[602,668,669],{"class":611},":  { ",[602,671,631],{"class":608},[602,673,643],{"class":611},[602,675,676],{"class":615},"\"-p\"",[602,678,679],{"class":611},", ",[602,681,682],{"class":615},"\"{value}\"",[602,684,685],{"class":611},"] }\n",[602,687,689,692,695,698,700,703,706],{"class":604,"line":688},6,[602,690,691],{"class":608},"  context",[602,693,694],{"class":611},": { ",[602,696,697],{"class":608},"channel",[602,699,612],{"class":611},[602,701,702],{"class":615},"prompt",[602,704,705],{"class":611}," }       ",[602,707,708],{"class":619},"# or: { channel: system_prompt, cli: [...] }\n",[602,710,712,715,718,721,723,726,729],{"class":604,"line":711},7,[602,713,714],{"class":608},"  usage",[602,716,717],{"class":611},":   { ",[602,719,720],{"class":608},"source",[602,722,612],{"class":611},[602,724,725],{"class":615},"result_file",[602,727,728],{"class":611}," }   ",[602,730,731],{"class":619},"# or: { source: envelope, reader: \u003Cparser name> }\n",[733,734],"br",{},[530,736,738],{"href":737},"\u002Freference\u002Fharnesses\u002Fharness-files#capabilities","Capabilities"," defines each one and the ",[548,741,697],{},[548,743,720],{}," and ",[548,746,747],{},"reader"," keys.",[544,750,751,752,755,756,744,759,762,763,766,767],{},"Add each optional capability the CLI supports, with the ",[548,753,754],{},"cli:"," fragment that sets it. Leave out what the CLI cannot do. A task that asks for a capability you left out is rejected at load, pointing at this file. For a CLI with ",[548,757,758],{},"--model",[548,760,761],{},"--effort"," flags, add these two lines under ",[548,764,765],{},"capabilities:",":",[592,768,770],{"className":594,"code":769,"filename":596,"language":597,"meta":598,"style":598},"  model:   { cli: [\"--model\", \"{value}\"] }\n  effort:  { cli: [\"--effort\", \"{value}\"], values: [low, high] }\n",[548,771,772,792],{"__ignoreMap":598},[602,773,774,777,779,781,783,786,788,790],{"class":604,"line":605},[602,775,776],{"class":608},"  model",[602,778,717],{"class":611},[602,780,631],{"class":608},[602,782,643],{"class":611},[602,784,785],{"class":615},"\"--model\"",[602,787,679],{"class":611},[602,789,682],{"class":615},[602,791,685],{"class":611},[602,793,794,797,799,801,803,806,808,810,813,816,818,821,823,826],{"class":604,"line":623},[602,795,796],{"class":608},"  effort",[602,798,669],{"class":611},[602,800,631],{"class":608},[602,802,643],{"class":611},[602,804,805],{"class":615},"\"--effort\"",[602,807,679],{"class":611},[602,809,682],{"class":615},[602,811,812],{"class":611},"], ",[602,814,815],{"class":608},"values",[602,817,643],{"class":611},[602,819,820],{"class":615},"low",[602,822,679],{"class":611},[602,824,825],{"class":615},"high",[602,827,685],{"class":611},[544,829,830,831,835,836,839,840,843,844,846,847,851,852],{},"Add a ",[530,832,834],{"href":833},"\u002Fconcepts\u002Fvocabulary#harness-profile","harness profile"," for the harness in ",[548,837,838],{},"~\u002F.kraft\u002Fconfig\u002Fharnesses.yaml",". The profile's ",[548,841,842],{},"provider"," is your harness ",[548,845,587],{},". See ",[530,848,849],{"href":327},[548,850,326],{}," for every profile field.",[592,853,856],{"className":594,"code":854,"filename":855,"language":597,"meta":598,"style":598},"harnesses:\n  mytool:\n    provider: mytool\n    enabled: true\n    executable: mytool\n","config\u002Fharnesses.yaml",[548,857,858,865,872,882,893],{"__ignoreMap":598},[602,859,860,863],{"class":604,"line":605},[602,861,862],{"class":608},"harnesses",[602,864,660],{"class":611},[602,866,867,870],{"class":604,"line":623},[602,868,869],{"class":608},"  mytool",[602,871,660],{"class":611},[602,873,874,877,879],{"class":604,"line":637},[602,875,876],{"class":608},"    provider",[602,878,612],{"class":611},[602,880,881],{"class":615},"mytool\n",[602,883,884,887,889],{"class":604,"line":654},[602,885,886],{"class":608},"    enabled",[602,888,612],{"class":611},[602,890,892],{"class":891},"ssYy9","true\n",[602,894,895,898,900],{"class":604,"line":663},[602,896,897],{"class":608},"    executable",[602,899,612],{"class":611},[602,901,881],{"class":615},[544,903,904,905,908,909,912],{},"In ",[548,906,907],{},"library.yaml",", set ",[548,910,911],{},"harness: mytool"," on a task that should run on it.",[544,914,915,916,766,918,937,939,940,942],{},"Reload so a running server rereads ",[548,917,907],{},[592,919,923],{"className":920,"code":921,"language":922,"meta":598,"style":598},"language-bash shiki shiki-themes github-light-high-contrast github-light-high-contrast github-dark-high-contrast","kraft admin reload\n","bash",[548,924,925],{"__ignoreMap":598},[602,926,927,931,934],{"class":604,"line":605},[602,928,930],{"class":929},"szw1H","kraft",[602,932,933],{"class":615}," admin",[602,935,936],{"class":615}," reload\n",[733,938],{},"Kraft reads ",[548,941,326],{}," and the harness file again at every agent launch, so those two need no reload.",[536,944,946],{"id":945},"override-a-shipped-harness","Override a shipped harness",[526,948,949,950,679,953,679,956,679,959,679,962,679,965,968,969,534],{},"Use the same steps, with a file named after a shipped harness: ",[548,951,952],{},"claude.yaml",[548,954,955],{},"codex.yaml",[548,957,958],{},"cursor.yaml",[548,960,961],{},"opencode.yaml",[548,963,964],{},"gemini.yaml",[548,966,967],{},"antigravity.yaml",", or ",[548,970,971],{},"amp.yaml",[526,973,974,975,983,984,986,987,990],{},"Your file replaces the shipped one entirely. Copy the shipped definition from ",[530,976,980],{"href":977,"rel":978},"https:\u002F\u002Fgithub.com\u002FitsOmidKarami\u002Fkraft\u002Ftree\u002Fmain\u002Fsrc\u002Fkraft\u002Fharnesses",[979],"nofollow",[548,981,982],{},"src\u002Fkraft\u002Fharnesses\u002F"," (one file per harness) and change only what you need. For example, edit ",[548,985,952],{}," to change which ",[548,988,989],{},"effort"," values it allows.",[536,992,994],{"id":993},"check-it-worked","Check it worked",[592,996,998],{"className":920,"code":997,"language":922,"meta":598,"style":598},"kraft admin doctor\n",[548,999,1000],{"__ignoreMap":598},[602,1001,1002,1004,1006],{"class":604,"line":605},[602,1003,930],{"class":929},[602,1005,933],{"class":615},[602,1007,1008],{"class":615}," doctor\n",[526,1010,1011,1012,1015],{},"Once a chain selects your harness profile, the output has an ",[548,1013,1014],{},"agent: mytool"," row that gives the path where Kraft found the executable. Kraft pads the name column to the widest check name:",[592,1017,1022],{"className":1018,"code":1020,"language":1021,"meta":598},[1019],"language-text","ok    agent: mytool  \u002Fusr\u002Flocal\u002Fbin\u002Fmytool\n","text",[548,1023,1024],{"__ignoreMap":598},[602,1025,1020],{"className":1026},[604],[541,1028,1029,1035,1041,1044],{},[544,1030,1031,1032,1034],{},"A failing ",[548,1033,911],{}," row means your file did not load. Its detail names the file and the field to fix.",[544,1036,1037,1040],{},[548,1038,1039],{},"kraft admin harnesses"," lists the library tasks that select each harness profile.",[544,1042,1043],{},"File a small work item on a chain that selects the harness profile, and confirm the task runs on it.",[544,1045,1046,1047,1051,1052,1054,1055,534],{},"If the task cannot log in, give the CLI credentials a ",[530,1048,1050],{"href":1049},"\u002Fconcepts\u002Fvocabulary#worker","worker"," can use. ",[530,1053,135],{"href":136}," has each harness's login, and ",[530,1056,1058],{"href":1057},"\u002Fguides\u002Fharnesses\u002Fgive-a-worker-its-login#check-it-worked","how to check a worker can log in",[536,1060,1062],{"id":1061},"next-steps","Next steps",[541,1064,1065,1070,1075],{},[544,1066,1067,1069],{},[530,1068,424],{"href":425},": every field of the file you wrote.",[544,1071,1072,1074],{},[530,1073,123],{"href":124},": move tasks to a harness, including the model tiers each needs.",[544,1076,1077,1079],{},[530,1078,410],{"href":411},": the seven shipped harnesses, to copy a definition from.",[1081,1082,1083],"style",{},"html pre.shiki code .sb7M8, html code.shiki .sb7M8{--shiki-light:#024C1A;--shiki-default:#024C1A;--shiki-dark:#72F088}html pre.shiki code .s7iLA, html code.shiki .s7iLA{--shiki-light:#0E1116;--shiki-default:#0E1116;--shiki-dark:#F0F3F6}html pre.shiki code .semJd, html code.shiki .semJd{--shiki-light:#032563;--shiki-default:#032563;--shiki-dark:#ADDCFF}html pre.shiki code .sq92B, html code.shiki .sq92B{--shiki-light:#66707B;--shiki-default:#66707B;--shiki-dark:#BDC4CC}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 .ssYy9, html code.shiki .ssYy9{--shiki-light:#023B95;--shiki-default:#023B95;--shiki-dark:#91CBFF}html pre.shiki code .szw1H, html code.shiki .szw1H{--shiki-light:#702C00;--shiki-default:#702C00;--shiki-dark:#FFB757}",{"title":598,"searchDepth":623,"depth":623,"links":1085},[1086,1087,1088,1089,1090],{"id":538,"depth":623,"text":539},{"id":565,"depth":623,"text":566},{"id":945,"depth":623,"text":946},{"id":993,"depth":623,"text":994},{"id":1061,"depth":623,"text":1062},"Add an agent CLI to Kraft with a YAML file, and override a shipped one.","md",null,{},true,{"title":127,"description":1091},"DKseWGitZXAcNmCseSitZ5AlKOWuV5jt5Ba9H1Ljz1M",[1099,1101],{"title":123,"path":124,"stem":125,"description":1100,"children":-1},"Run some or all of a chain's agent tasks on Codex, Cursor, OpenCode, Gemini, Antigravity or Amp instead of Claude Code, and what changes when you do.",{"title":131,"path":132,"stem":133,"description":1102,"children":-1},"Build a Docker Sandbox Kit for Kraft's Claude workers, push it to your registry, and run a repository's sandbox from it, pinned by digest.",1791801162150]