The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.
TypeScript 3d-modelingagent-frameworkagent-harnessai-agentscadclaude-codecodexcoding-agentsdeveloper-toolsesp32game-developmentmcp-servermulti-agentopen-hardwareopencodeopenharnesspcbroboticsterminaltmux
{
"create": {
"claude · grid": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w1","claude","--disallowedTools=WebSearch,WebFetch","--mcp-config","{\"mcpServers\":{\"harness\":{\"type\":\"http\",\"url\":\"https://control.example/v1/grid/web-mcp/\",\"headers\":{\"Authorization\":\"Bearer ${GRID_API_KEY}\"}}}}","--allowedTools=mcp__harness__web_search,mcp__harness__web_read","--system-prompt-snapshot","off","--settings","{\"statusLine\":{\"type\":\"command\",\"command\":\"'<daemon-node>' '<root>/data/statusline/statusline.mjs' --data '<root>/data'\"}}","--append-system-prompt","Web tools in this session come from the `harness` MCP server only: `mcp__harness__web_search` searches the web and `mcp__harness__web_read` reads pages. The built-in `WebSearch` and `WebFetch` tools are not available in this session, even where earlier turns of this conversation used them — do not call them; call the `harness` tools instead."],"script":"d71ebf5ddb77943c","env":{"ANTHROPIC_BASE_URL":"https://grid.example/g/home/relay","ANTHROPIC_AUTH_TOKEN":"grid-key-1","ANTHROPIC_MODEL":"qwen3-coder","CLAUDE_CODE_MAX_CONTEXT_TOKENS":"131072","GRID_API_KEY":"grid-key-1"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":"qwen3-coder"},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}},"config":null,"folder":{"CLAUDE.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] claude -> Home (net-home) · qwen3-coder · web search on"]},
"codex · grid": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w2","codex","-c","tui.fullscreen_transcript=false","-c","model_provider=\"grid\"","-c","model_providers.grid.name=\"Autonomous Grid\"","-c","model_providers.grid.base_url=\"https://grid.example/g/home/relay/v1\"","-c","model_providers.grid.env_key=\"GRID_API_KEY\"","-c","model_providers.grid.wire_api=\"responses\"","-c","model_providers.grid.supports_websockets=false","-c","web_search=\"disabled\"","-c","mcp_servers.harness.url=\"https://control.example/v1/grid/web-mcp/\"","-c","mcp_servers.harness.env_http_headers.Authorization=\"GRID_MCP_AUTHORIZATION\"","-m","qwen3-coder","-c","model_context_window=131072","-c","model_auto_compact_token_limit=117964"],"script":"6ab77b8b7f29b922","env":{"GRID_API_KEY":"grid-key-1","GRID_MCP_AUTHORIZATION":"Bearer grid-key-1"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":"qwen3-coder"},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}},"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] codex -> Home (net-home) · qwen3-coder · web search on"]},
"cursor · grid": {"result":{"ok":false,"error":"GRID_ENGINE_UNSUPPORTED","detail":"cursor cannot run on grid Home: Cursor Agent can only be re-pointed at another Cursor API (CURSOR_API_ENDPOINT), not at an OpenAI-compatible relay. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."},"pane":null,"config":null,"folder":{},"logged":["[agent] create cursor refused · cursor cannot run on grid Home: Cursor Agent can only be re-pointed at another Cursor API (CURSOR_API_ENDPOINT), not at an OpenAI-compatible relay. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."]},
"opencode · grid": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w4","opencode","--standalone"],"script":"bdaa225516c166f5","env":{"GRID_API_KEY":"grid-key-1","OPENCODE_CONFIG":"<root>/data/grid-engine-config/<label>/opencode.json"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":"qwen3-coder"},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}},"config":{"<label>":{"dir":{"opencode.json":{"mode":"600","text":"{\n \"$schema\": \"https://opencode.ai/config.json\",\n \"model\": \"home/qwen3-coder\",\n \"provider\": {\n \"home\": {\n \"npm\": \"@ai-sdk/openai-compatible\",\n \"name\": \"Home\",\n \"options\": {\n \"baseURL\": \"https://grid.example/g/home/relay/v1\",\n \"apiKey\": \"{env:GRID_API_KEY}\"\n },\n \"models\": {\n \"qwen3-coder\": {\n \"name\": \"qwen3-coder\",\n \"limit\": {\n \"context\": 131072,\n \"output\": 32000\n }\n }\n }\n }\n },\n \"mcp\": {\n \"harness\": {\n \"type\": \"remote\",\n \"url\": \"https://control.example/v1/grid/web-mcp/\",\n \"enabled\": true,\n \"headers\": {\n \"Authorization\": \"Bearer {env:GRID_API_KEY}\"\n }\n }\n }\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] opencode -> Home (net-home) · qwen3-coder · web search on"]},
"pi · grid": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w5","pi","--model","grid/qwen3-coder","-e","<root>/data/grid-engine-config/<label>/grid-provider.ts"],"script":"f29d3fd335553d90","env":{"GRID_API_KEY":"grid-key-1"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":"qwen3-coder"},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"unsupported"}},"config":{"<label>":{"dir":{"grid-provider.ts":{"mode":"600","text":"// Written by the machine adapter for this agent's grid launch. Adds the grid as a provider.\nexport default function (pi) {\n pi.registerProvider(\"grid\", {\n \"name\": \"Autonomous Grid\",\n \"baseUrl\": \"https://grid.example/g/home/relay/v1\",\n \"api\": \"openai-completions\",\n \"apiKey\": \"$GRID_API_KEY\",\n \"models\": [\n {\n \"id\": \"qwen3-coder\",\n \"name\": \"qwen3-coder\",\n \"reasoning\": false,\n \"input\": [\n \"text\"\n ],\n \"contextWindow\": 131072,\n \"maxTokens\": 8192,\n \"cost\": {\n \"input\": 0,\n \"output\": 0,\n \"cacheRead\": 0,\n \"cacheWrite\": 0\n }\n }\n ]\n })\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] pi -> Home (net-home) · qwen3-coder · web search unsupported (Pi has no MCP client)"]},
"omp · grid": {"result":{"ok":false,"error":"GRID_ENGINE_UNSUPPORTED","detail":"omp cannot run on grid Home: Harness has not yet verified how omp is pointed at another endpoint. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."},"pane":null,"config":null,"folder":{},"logged":["[agent] create omp refused · omp cannot run on grid Home: Harness has not yet verified how omp is pointed at another endpoint. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."]},
"hermes · grid": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w7","hermes","-m","qwen3-coder"],"script":"740e05707feea22c","env":{"OPENAI_BASE_URL":"https://grid.example/g/home/relay/v1","OPENAI_API_KEY":"grid-key-1","HERMES_INFERENCE_MODEL":"qwen3-coder","GRID_API_KEY":"grid-key-1","HERMES_MANAGED_DIR":"<root>/data/grid-engine-config/<label>"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":"qwen3-coder"},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}},"config":{"<label>":{"dir":{"config.yaml":{"mode":"600","text":"{\n \"mcp_servers\": {\n \"harness\": {\n \"url\": \"https://control.example/v1/grid/web-mcp/\",\n \"headers\": {\n \"Authorization\": \"Bearer ${GRID_API_KEY}\"\n }\n }\n }\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] hermes -> Home (net-home) · qwen3-coder · web search on"]},
"commandcode · grid": {"result":{"ok":false,"error":"GRID_ENGINE_UNSUPPORTED","detail":"commandcode cannot run on grid Home: Command Code documents no way to change its endpoint. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."},"pane":null,"config":null,"folder":{},"logged":["[agent] create commandcode refused · commandcode cannot run on grid Home: Command Code documents no way to change its endpoint. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."]},
"devin · grid": {"result":{"ok":false,"error":"GRID_ENGINE_UNSUPPORTED","detail":"devin cannot run on grid Home: Devin runs on its own hosted service and documents no endpoint override. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."},"pane":null,"config":null,"folder":{},"logged":["[agent] create devin refused · devin cannot run on grid Home: Devin runs on its own hosted service and documents no endpoint override. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."]},
"muse · grid": {"result":{"ok":false,"error":"GRID_ENGINE_UNSUPPORTED","detail":"muse cannot run on grid Home: Muse Code documents no way to change its endpoint. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."},"pane":null,"config":null,"folder":{},"logged":["[agent] create muse refused · muse cannot run on grid Home: Muse Code documents no way to change its endpoint. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."]},
"amp · grid": {"result":{"ok":false,"error":"GRID_ENGINE_UNSUPPORTED","detail":"amp cannot run on grid Home: Amp documents no way to change where it sends inference. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."},"pane":null,"config":null,"folder":{},"logged":["[agent] create amp refused · amp cannot run on grid Home: Amp documents no way to change where it sends inference. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."]},
"kilo · grid": {"result":{"ok":false,"error":"GRID_ENGINE_UNSUPPORTED","detail":"kilo cannot run on grid Home: the Kilo CLI has no OpenAI-compatible provider option yet (its own issues #5840, #6315). It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."},"pane":null,"config":null,"folder":{},"logged":["[agent] create kilo refused · kilo cannot run on grid Home: the Kilo CLI has no OpenAI-compatible provider option yet (its own issues #5840, #6315). It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."]},
"grok · grid": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w13","grok","-m","qwen3-coder"],"script":"5659f7573b76a1f8","env":{"GROK_MODELS_BASE_URL":"https://grid.example/g/home/relay/v1","XAI_API_KEY":"grid-key-1","GRID_API_KEY":"grid-key-1","GROK_HOME":"<root>/data/grid-engine-config/<label>"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":"qwen3-coder"},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}},"config":{"<label>":{"dir":{"config.toml":{"mode":"600","text":"[model.\"qwen3-coder\"]\nmodel = \"qwen3-coder\"\nbase_url = \"https://grid.example/g/home/relay/v1\"\nenv_key = \"GRID_API_KEY\"\n\n[mcp_servers.harness]\nurl = \"https://control.example/v1/grid/web-mcp/\"\nheaders = { Authorization = \"Bearer ${GRID_API_KEY}\" }\n"},"sessions":{"link":"<root>/home/.grok/sessions"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] grok -> Home (net-home) · qwen3-coder · web search on"]},
"agy · grid": {"result":{"ok":false,"error":"GRID_ENGINE_UNSUPPORTED","detail":"agy cannot run on grid Home: Antigravity speaks the Gemini API, which this relay does not serve. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."},"pane":null,"config":null,"folder":{},"logged":["[agent] create agy refused · agy cannot run on grid Home: Antigravity speaks the Gemini API, which this relay does not serve. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."]},
"copilot · grid": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w15","copilot","--additional-mcp-config","{\"mcpServers\":{\"harness\":{\"type\":\"http\",\"url\":\"https://control.example/v1/grid/web-mcp/\",\"headers\":{\"Authorization\":\"Bearer ${GRID_API_KEY}\"}}}}"],"script":"a6e719a98d2700c3","env":{"COPILOT_PROVIDER_BASE_URL":"https://grid.example/g/home/relay/v1","COPILOT_PROVIDER_API_KEY":"grid-key-1","COPILOT_MODEL":"qwen3-coder","GRID_API_KEY":"grid-key-1"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":"qwen3-coder"},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}},"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] copilot -> Home (net-home) · qwen3-coder · web search on"]},
"terminal · grid": {"result":{"ok":false,"error":"GRID_ENGINE_UNSUPPORTED","detail":"terminal cannot run on grid Home: a terminal runs no engine to point at a grid — start one inside it and it will use its own login. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."},"pane":null,"config":null,"folder":{},"logged":["[agent] create terminal refused · terminal cannot run on grid Home: a terminal runs no engine to point at a grid — start one inside it and it will use its own login. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."]},
"claude · grid without a model, web tools or window": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w17","claude","--disallowedTools=WebSearch,WebFetch","--system-prompt-snapshot","off","--settings","{\"statusLine\":{\"type\":\"command\",\"command\":\"'<daemon-node>' '<root>/data/statusline/statusline.mjs' --data '<root>/data'\"}}","--append-system-prompt","This session has no web tools. The built-in `WebSearch` and `WebFetch` tools are not available in this session, even where earlier turns of this conversation used them — do not call them; tell the user the web cannot be searched or read from here instead."],"script":"720625c8ef5801b7","env":{"ANTHROPIC_BASE_URL":"https://grid.example/g/home/relay","ANTHROPIC_AUTH_TOKEN":"grid-key-2"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":null},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-2"},"webSearch":"unavailable"}},"config":null,"folder":{"CLAUDE.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] claude -> Home (net-home) · model chosen by the engine · web search unavailable"]},
"claude · grid · another machine": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w18","claude","--disallowedTools=WebSearch,WebFetch","--mcp-config","{\"mcpServers\":{\"harness\":{\"type\":\"http\",\"url\":\"https://control.example/v1/grid/web-mcp/\",\"headers\":{\"Authorization\":\"Bearer ${GRID_API_KEY}\"}}}}","--allowedTools=mcp__harness__web_search,mcp__harness__web_read","--system-prompt-snapshot","off","--settings","{\"statusLine\":{\"type\":\"command\",\"command\":\"'<daemon-node>' '<root>/data/statusline/statusline.mjs' --data '<root>/data'\"}}","--append-system-prompt","Web tools in this session come from the `harness` MCP server only: `mcp__harness__web_search` searches the web and `mcp__harness__web_read` reads pages. The built-in `WebSearch` and `WebFetch` tools are not available in this session, even where earlier turns of this conversation used them — do not call them; call the `harness` tools instead."],"script":"d71ebf5ddb77943c","env":{"ANTHROPIC_BASE_URL":"https://grid.example/g/home/relay","ANTHROPIC_AUTH_TOKEN":"grid-key-1","ANTHROPIC_MODEL":"qwen3-coder","CLAUDE_CODE_MAX_CONTEXT_TOKENS":"131072","GRID_API_KEY":"grid-key-1"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":"qwen3-coder"},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}},"config":null,"folder":{"CLAUDE.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] claude -> Home (net-home) · qwen3-coder · web search on"]},
"claude · saved API": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w19","claude","--disallowedTools=WebSearch,WebFetch","--system-prompt-snapshot","off","--settings","{\"statusLine\":{\"type\":\"command\",\"command\":\"'<daemon-node>' '<root>/data/statusline/statusline.mjs' --data '<root>/data'\"}}","--append-system-prompt","This session has no web tools. The built-in `WebSearch` and `WebFetch` tools are not available in this session, even where earlier turns of this conversation used them — do not call them; tell the user the web cannot be searched or read from here instead."],"script":"3476ee67c5f7d70d","env":{"ANTHROPIC_BASE_URL":"http://127.0.0.1:<port>","ANTHROPIC_AUTH_TOKEN":"stale-key","ANTHROPIC_MODEL":"vendor/model-a","CLAUDE_CODE_MAX_CONTEXT_TOKENS":"200000"},"grid":{"baseUrl":"http://127.0.0.1:<port>/v1","model":"vendor/model-a"},"gridLaunchRecord":{"override":{"networkId":"api:router","networkName":"Router","baseUrl":"http://127.0.0.1:<port>/v1","apiKey":"stale-key","model":"vendor/model-a","contextWindow":200000},"webSearch":"unavailable"}},"config":null,"folder":{"CLAUDE.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] claude -> Router (api:router) · vendor/model-a · web search unavailable"]},
"codex · grid without a model, web tools or window": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w20","codex","-c","tui.fullscreen_transcript=false","-c","model_provider=\"grid\"","-c","model_providers.grid.name=\"Autonomous Grid\"","-c","model_providers.grid.base_url=\"https://grid.example/g/home/relay/v1\"","-c","model_providers.grid.env_key=\"GRID_API_KEY\"","-c","model_providers.grid.wire_api=\"responses\"","-c","model_providers.grid.supports_websockets=false","-c","web_search=\"disabled\""],"script":"5a6e02754f480f92","env":{"GRID_API_KEY":"grid-key-2"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":null},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-2"},"webSearch":"unavailable"}},"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] codex -> Home (net-home) · model chosen by the engine · web search unavailable"]},
"codex · grid · another machine": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w21","codex","-c","tui.fullscreen_transcript=false","-c","model_provider=\"grid\"","-c","model_providers.grid.name=\"Autonomous Grid\"","-c","model_providers.grid.base_url=\"https://grid.example/g/home/relay/v1\"","-c","model_providers.grid.env_key=\"GRID_API_KEY\"","-c","model_providers.grid.wire_api=\"responses\"","-c","model_providers.grid.supports_websockets=false","-c","web_search=\"disabled\"","-c","mcp_servers.harness.url=\"https://control.example/v1/grid/web-mcp/\"","-c","mcp_servers.harness.env_http_headers.Authorization=\"GRID_MCP_AUTHORIZATION\"","-m","qwen3-coder","-c","model_context_window=131072","-c","model_auto_compact_token_limit=117964"],"script":"6ab77b8b7f29b922","env":{"GRID_API_KEY":"grid-key-1","GRID_MCP_AUTHORIZATION":"Bearer grid-key-1"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":"qwen3-coder"},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}},"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] codex -> Home (net-home) · qwen3-coder · web search on"]},
"codex · saved API": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w22","codex","-c","tui.fullscreen_transcript=false","-c","model_provider=\"grid\"","-c","model_providers.grid.name=\"Autonomous Grid\"","-c","model_providers.grid.base_url=\"http://127.0.0.1:<port>/v1\"","-c","model_providers.grid.env_key=\"GRID_API_KEY\"","-c","model_providers.grid.wire_api=\"responses\"","-c","model_providers.grid.supports_websockets=false","-c","web_search=\"disabled\"","-m","vendor/model-a","-c","model_context_window=200000","-c","model_auto_compact_token_limit=180000"],"script":"5a6e02754f480f92","env":{"GRID_API_KEY":"stale-key"},"grid":{"baseUrl":"http://127.0.0.1:<port>/v1","model":"vendor/model-a"},"gridLaunchRecord":{"override":{"networkId":"api:router","networkName":"Router","baseUrl":"http://127.0.0.1:<port>/v1","apiKey":"stale-key","model":"vendor/model-a","contextWindow":200000},"webSearch":"unavailable"}},"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] codex -> Router (api:router) · vendor/model-a · web search unavailable"]},
"opencode · grid without a model, web tools or window": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w23","opencode","--standalone"],"script":"bdaa225516c166f5","env":{"GRID_API_KEY":"grid-key-2","OPENCODE_CONFIG":"<root>/data/grid-engine-config/<label>/opencode.json"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":null},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-2"},"webSearch":"unavailable"}},"config":{"<label>":{"dir":{"opencode.json":{"mode":"600","text":"{\n \"$schema\": \"https://opencode.ai/config.json\",\n \"model\": \"home/Auto\",\n \"provider\": {\n \"home\": {\n \"npm\": \"@ai-sdk/openai-compatible\",\n \"name\": \"Home\",\n \"options\": {\n \"baseURL\": \"https://grid.example/g/home/relay/v1\",\n \"apiKey\": \"{env:GRID_API_KEY}\"\n },\n \"models\": {\n \"Auto\": {\n \"name\": \"Auto\"\n }\n }\n }\n }\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] opencode -> Home (net-home) · model chosen by the engine · web search unavailable"]},
"opencode · grid · another machine": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w24","opencode","-m","home/qwen3-coder"],"script":"bdaa225516c166f5","env":{"GRID_API_KEY":"grid-key-1","OPENCODE_CONFIG":"<root>/data/grid-engine-config/<label>/opencode.json"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":"qwen3-coder"},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}},"config":{"<label>":{"dir":{"opencode.json":{"mode":"600","text":"{\n \"$schema\": \"https://opencode.ai/config.json\",\n \"provider\": {\n \"home\": {\n \"npm\": \"@ai-sdk/openai-compatible\",\n \"name\": \"Home\",\n \"options\": {\n \"baseURL\": \"https://grid.example/g/home/relay/v1\",\n \"apiKey\": \"{env:GRID_API_KEY}\"\n },\n \"models\": {\n \"qwen3-coder\": {\n \"name\": \"qwen3-coder\",\n \"limit\": {\n \"context\": 131072,\n \"output\": 32000\n }\n }\n }\n }\n },\n \"mcp\": {\n \"harness\": {\n \"type\": \"remote\",\n \"url\": \"https://control.example/v1/grid/web-mcp/\",\n \"enabled\": true,\n \"headers\": {\n \"Authorization\": \"Bearer {env:GRID_API_KEY}\"\n }\n }\n }\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] opencode -> Home (net-home) · qwen3-coder · web search on"]},
"opencode · saved API": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w25","opencode","--standalone"],"script":"bdaa225516c166f5","env":{"GRID_API_KEY":"stale-key","OPENCODE_CONFIG":"<root>/data/grid-engine-config/<label>/opencode.json"},"grid":{"baseUrl":"http://127.0.0.1:<port>/v1","model":"vendor/model-a"},"gridLaunchRecord":{"override":{"networkId":"api:router","networkName":"Router","baseUrl":"http://127.0.0.1:<port>/v1","apiKey":"stale-key","model":"vendor/model-a","contextWindow":200000},"webSearch":"unavailable"}},"config":{"<label>":{"dir":{"opencode.json":{"mode":"600","text":"{\n \"$schema\": \"https://opencode.ai/config.json\",\n \"model\": \"api-router/vendor/model-a\",\n \"provider\": {\n \"api-router\": {\n \"npm\": \"@ai-sdk/openai-compatible\",\n \"name\": \"Router\",\n \"options\": {\n \"baseURL\": \"http://127.0.0.1:<port>/v1\",\n \"apiKey\": \"{env:GRID_API_KEY}\"\n },\n \"models\": {\n \"vendor/model-a\": {\n \"name\": \"vendor/model-a\",\n \"limit\": {\n \"context\": 200000,\n \"output\": 32000\n }\n }\n }\n }\n }\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] opencode -> Router (api:router) · vendor/model-a · web search unavailable"]},
"pi · grid without a model, web tools or window": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w26","pi","--model","grid/Auto","-e","<root>/data/grid-engine-config/<label>/grid-provider.ts"],"script":"f29d3fd335553d90","env":{"GRID_API_KEY":"grid-key-2"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":null},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-2"},"webSearch":"unsupported"}},"config":{"<label>":{"dir":{"grid-provider.ts":{"mode":"600","text":"// Written by the machine adapter for this agent's grid launch. Adds the grid as a provider.\nexport default function (pi) {\n pi.registerProvider(\"grid\", {\n \"name\": \"Autonomous Grid\",\n \"baseUrl\": \"https://grid.example/g/home/relay/v1\",\n \"api\": \"openai-completions\",\n \"apiKey\": \"$GRID_API_KEY\",\n \"models\": [\n {\n \"id\": \"Auto\",\n \"name\": \"Auto\",\n \"reasoning\": false,\n \"input\": [\n \"text\"\n ],\n \"contextWindow\": 200000,\n \"maxTokens\": 8192,\n \"cost\": {\n \"input\": 0,\n \"output\": 0,\n \"cacheRead\": 0,\n \"cacheWrite\": 0\n }\n }\n ]\n })\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] pi -> Home (net-home) · model chosen by the engine · web search unsupported (Pi has no MCP client)"]},
"pi · grid · another machine": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w27","pi","--model","grid/qwen3-coder","-e","<root>/data/grid-engine-config/<label>/grid-provider.ts"],"script":"f29d3fd335553d90","env":{"GRID_API_KEY":"grid-key-1"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":"qwen3-coder"},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"unsupported"}},"config":{"<label>":{"dir":{"grid-provider.ts":{"mode":"600","text":"// Written by the machine adapter for this agent's grid launch. Adds the grid as a provider.\nexport default function (pi) {\n pi.registerProvider(\"grid\", {\n \"name\": \"Autonomous Grid\",\n \"baseUrl\": \"https://grid.example/g/home/relay/v1\",\n \"api\": \"openai-completions\",\n \"apiKey\": \"$GRID_API_KEY\",\n \"models\": [\n {\n \"id\": \"qwen3-coder\",\n \"name\": \"qwen3-coder\",\n \"reasoning\": false,\n \"input\": [\n \"text\"\n ],\n \"contextWindow\": 131072,\n \"maxTokens\": 8192,\n \"cost\": {\n \"input\": 0,\n \"output\": 0,\n \"cacheRead\": 0,\n \"cacheWrite\": 0\n }\n }\n ]\n })\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] pi -> Home (net-home) · qwen3-coder · web search unsupported (Pi has no MCP client)"]},
"pi · saved API": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w28","pi","--model","grid/vendor/model-a","-e","<root>/data/grid-engine-config/<label>/grid-provider.ts"],"script":"f29d3fd335553d90","env":{"GRID_API_KEY":"stale-key"},"grid":{"baseUrl":"http://127.0.0.1:<port>/v1","model":"vendor/model-a"},"gridLaunchRecord":{"override":{"networkId":"api:router","networkName":"Router","baseUrl":"http://127.0.0.1:<port>/v1","apiKey":"stale-key","model":"vendor/model-a","contextWindow":200000},"webSearch":"unsupported"}},"config":{"<label>":{"dir":{"grid-provider.ts":{"mode":"600","text":"// Written by the machine adapter for this agent's grid launch. Adds the grid as a provider.\nexport default function (pi) {\n pi.registerProvider(\"grid\", {\n \"name\": \"Autonomous Grid\",\n \"baseUrl\": \"http://127.0.0.1:<port>/v1\",\n \"api\": \"openai-completions\",\n \"apiKey\": \"$GRID_API_KEY\",\n \"models\": [\n {\n \"id\": \"vendor/model-a\",\n \"name\": \"vendor/model-a\",\n \"reasoning\": false,\n \"input\": [\n \"text\"\n ],\n \"contextWindow\": 200000,\n \"maxTokens\": 8192,\n \"cost\": {\n \"input\": 0,\n \"output\": 0,\n \"cacheRead\": 0,\n \"cacheWrite\": 0\n }\n }\n ]\n })\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] pi -> Router (api:router) · vendor/model-a · web search unsupported (Pi has no MCP client)"]},
"hermes · grid without a model, web tools or window": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w29","hermes"],"script":"0e91c2ae7b92a265","env":{"OPENAI_BASE_URL":"https://grid.example/g/home/relay/v1","OPENAI_API_KEY":"grid-key-2"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":null},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-2"},"webSearch":"unavailable"}},"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] hermes -> Home (net-home) · model chosen by the engine · web search unavailable"]},
"hermes · grid · another machine": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w30","hermes","-m","qwen3-coder"],"script":"2b297e5899feaf9a","env":{"OPENAI_BASE_URL":"https://grid.example/g/home/relay/v1","OPENAI_API_KEY":"grid-key-1","HERMES_INFERENCE_MODEL":"qwen3-coder"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":"qwen3-coder"},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"unsupported"}},"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] hermes -> Home (net-home) · qwen3-coder · web search unsupported (/etc/hermes pins this machine's Hermes settings, and the overlay carrying the web tools would replace it)"]},
"hermes · saved API": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w31","hermes","-m","vendor/model-a"],"script":"2b297e5899feaf9a","env":{"OPENAI_BASE_URL":"http://127.0.0.1:<port>/v1","OPENAI_API_KEY":"stale-key","HERMES_INFERENCE_MODEL":"vendor/model-a"},"grid":{"baseUrl":"http://127.0.0.1:<port>/v1","model":"vendor/model-a"},"gridLaunchRecord":{"override":{"networkId":"api:router","networkName":"Router","baseUrl":"http://127.0.0.1:<port>/v1","apiKey":"stale-key","model":"vendor/model-a","contextWindow":200000},"webSearch":"unavailable"}},"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] hermes -> Router (api:router) · vendor/model-a · web search unavailable"]},
"grok · grid without a model, web tools or window": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w32","grok","-m","Auto"],"script":"5659f7573b76a1f8","env":{"GROK_MODELS_BASE_URL":"https://grid.example/g/home/relay/v1","XAI_API_KEY":"grid-key-2","GRID_API_KEY":"grid-key-2","GROK_HOME":"<root>/data/grid-engine-config/<label>"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":null},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-2"},"webSearch":"unavailable"}},"config":{"<label>":{"dir":{"config.toml":{"mode":"600","text":"[model.\"Auto\"]\nmodel = \"Auto\"\nbase_url = \"https://grid.example/g/home/relay/v1\"\nenv_key = \"GRID_API_KEY\"\n"},"sessions":{"link":"<root>/home/.grok/sessions"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] grok -> Home (net-home) · model chosen by the engine · web search unavailable"]},
"grok · grid · another machine": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w33","grok","-m","qwen3-coder"],"script":"5659f7573b76a1f8","env":{"GROK_MODELS_BASE_URL":"https://grid.example/g/home/relay/v1","XAI_API_KEY":"grid-key-1","GRID_API_KEY":"grid-key-1","GROK_HOME":"<root>/data/grid-engine-config/<label>"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":"qwen3-coder"},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}},"config":{"<label>":{"dir":{"config.toml":{"mode":"600","text":"[model.\"qwen3-coder\"]\nmodel = \"qwen3-coder\"\nbase_url = \"https://grid.example/g/home/relay/v1\"\nenv_key = \"GRID_API_KEY\"\n\n[mcp_servers.harness]\nurl = \"https://control.example/v1/grid/web-mcp/\"\nheaders = { Authorization = \"Bearer ${GRID_API_KEY}\" }\n"},"sessions":{"link":"<root>/home/.grok/sessions"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] grok -> Home (net-home) · qwen3-coder · web search on"]},
"grok · saved API": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w34","grok","-m","vendor/model-a"],"script":"5659f7573b76a1f8","env":{"GROK_MODELS_BASE_URL":"http://127.0.0.1:<port>/v1","XAI_API_KEY":"stale-key","GRID_API_KEY":"stale-key","GROK_HOME":"<root>/data/grid-engine-config/<label>"},"grid":{"baseUrl":"http://127.0.0.1:<port>/v1","model":"vendor/model-a"},"gridLaunchRecord":{"override":{"networkId":"api:router","networkName":"Router","baseUrl":"http://127.0.0.1:<port>/v1","apiKey":"stale-key","model":"vendor/model-a","contextWindow":200000},"webSearch":"unavailable"}},"config":{"<label>":{"dir":{"config.toml":{"mode":"600","text":"[model.\"vendor/model-a\"]\nmodel = \"vendor/model-a\"\nbase_url = \"http://127.0.0.1:<port>/v1\"\nenv_key = \"GRID_API_KEY\"\n"},"sessions":{"link":"<root>/home/.grok/sessions"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] grok -> Router (api:router) · vendor/model-a · web search unavailable"]},
"copilot · grid without a model, web tools or window": {"result":{"ok":false,"error":"GRID_MODEL_REQUIRED","detail":"copilot will not start against a grid without a model. Pick one for Home and try again."},"pane":null,"config":null,"folder":{},"logged":["[agent] create copilot refused · copilot will not start against a grid without a model. Pick one for Home and try again."]},
"copilot · grid · another machine": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w36","copilot","--additional-mcp-config","{\"mcpServers\":{\"harness\":{\"type\":\"http\",\"url\":\"https://control.example/v1/grid/web-mcp/\",\"headers\":{\"Authorization\":\"Bearer ${GRID_API_KEY}\"}}}}"],"script":"a6e719a98d2700c3","env":{"COPILOT_PROVIDER_BASE_URL":"https://grid.example/g/home/relay/v1","COPILOT_PROVIDER_API_KEY":"grid-key-1","COPILOT_MODEL":"qwen3-coder","GRID_API_KEY":"grid-key-1"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":"qwen3-coder"},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}},"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] copilot -> Home (net-home) · qwen3-coder · web search on"]},
"copilot · saved API": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w37","copilot"],"script":"c3f4853a7110e4ec","env":{"COPILOT_PROVIDER_BASE_URL":"http://127.0.0.1:<port>/v1","COPILOT_PROVIDER_API_KEY":"stale-key","COPILOT_MODEL":"vendor/model-a"},"grid":{"baseUrl":"http://127.0.0.1:<port>/v1","model":"vendor/model-a"},"gridLaunchRecord":{"override":{"networkId":"api:router","networkName":"Router","baseUrl":"http://127.0.0.1:<port>/v1","apiKey":"stale-key","model":"vendor/model-a","contextWindow":200000},"webSearch":"unavailable"}},"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] copilot -> Router (api:router) · vendor/model-a · web search unavailable"]},
"claude · grid · an old tmux": {"result":{"ok":false,"error":"TMUX_TOO_OLD_FOR_GRID","detail":"this machine's tmux is older than 3.2, which is the first version that can give a new session its own environment — so claude could not have been pointed at grid Home. Upgrade tmux, or create this agent without a grid selected."},"pane":null,"config":null,"folder":{},"logged":["[agent] create claude refused · this machine's tmux is older than 3.2, which is the first version that can give a new session its own environment — so claude could not have been pointed at grid Home. Upgrade tmux, or create this agent without a grid selected."]},
"claude · own login": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w39","claude","--settings","{\"statusLine\":{\"type\":\"command\",\"command\":\"'<daemon-node>' '<root>/data/statusline/statusline.mjs' --data '<root>/data'\"}}"],"script":"d08628542e8295f9","env":{},"grid":null,"gridLaunchRecord":null},"config":null,"folder":{"CLAUDE.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"codex · own login": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w40","codex","-c","tui.fullscreen_transcript=false"],"script":"6ab9a629ee313d71","env":{},"grid":null,"gridLaunchRecord":null},"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"claude · own login · started by an agent": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w41","claude","--settings","{\"statusLine\":{\"type\":\"command\",\"command\":\"'<daemon-node>' '<root>/data/statusline/statusline.mjs' --data '<root>/data'\"}}"],"script":"d08628542e8295f9","env":{},"grid":null,"gridLaunchRecord":null,"startedBy":"agent"},"config":null,"folder":{"CLAUDE.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"codex · own login · started by an agent": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w42","codex","-c","tui.fullscreen_transcript=false"],"script":"6ab9a629ee313d71","env":{},"grid":null,"gridLaunchRecord":null,"startedBy":"agent"},"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"opencode · own login · started by an agent": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w43","opencode"],"script":"b974a8a06a289a16","env":{"OPENCODE_CONFIG_CONTENT":"{\"permission\":\"ask\",\"model\":\"opencode/muse-spark-1.3-contributor-free\",\"small_model\":\"opencode/muse-spark-1.3-contributor-free\",\"provider\":{\"opencode\":{\"models\":{\"muse-spark-1.3-contributor-free\":{\"options\":{\"reasoningEffort\":\"xhigh\"}}}}},\"agent\":{\"build\":{\"model\":\"opencode/muse-spark-1.3-contributor-free\",\"variant\":\"xhigh\"},\"plan\":{\"model\":\"opencode/muse-spark-1.3-contributor-free\",\"variant\":\"xhigh\"}}}"},"grid":null,"gridLaunchRecord":null,"startedBy":"agent"},"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"claude · grid · started by an agent": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w44","claude","--disallowedTools=WebSearch,WebFetch","--mcp-config","{\"mcpServers\":{\"harness\":{\"type\":\"http\",\"url\":\"https://control.example/v1/grid/web-mcp/\",\"headers\":{\"Authorization\":\"Bearer ${GRID_API_KEY}\"}}}}","--allowedTools=mcp__harness__web_search,mcp__harness__web_read","--system-prompt-snapshot","off","--settings","{\"statusLine\":{\"type\":\"command\",\"command\":\"'<daemon-node>' '<root>/data/statusline/statusline.mjs' --data '<root>/data'\"}}","--append-system-prompt","Web tools in this session come from the `harness` MCP server only: `mcp__harness__web_search` searches the web and `mcp__harness__web_read` reads pages. The built-in `WebSearch` and `WebFetch` tools are not available in this session, even where earlier turns of this conversation used them — do not call them; call the `harness` tools instead."],"script":"d71ebf5ddb77943c","env":{"ANTHROPIC_BASE_URL":"https://grid.example/g/home/relay","ANTHROPIC_AUTH_TOKEN":"grid-key-1","ANTHROPIC_MODEL":"qwen3-coder","CLAUDE_CODE_MAX_CONTEXT_TOKENS":"131072","GRID_API_KEY":"grid-key-1"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":"qwen3-coder"},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"},"startedBy":"agent"},"config":null,"folder":{"CLAUDE.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] claude -> Home (net-home) · qwen3-coder · web search on"]}
},
"relaunch": {
"claude · restart on a grid": {"result":{"ok":true,"overrides":{"env":{"ANTHROPIC_BASE_URL":"https://grid.example/g/home/relay","ANTHROPIC_AUTH_TOKEN":"grid-key-1","ANTHROPIC_MODEL":"qwen3-coder","CLAUDE_CODE_MAX_CONTEXT_TOKENS":"131072","GRID_API_KEY":"grid-key-1"},"extraArgs":["--disallowedTools=WebSearch,WebFetch","--mcp-config","{\"mcpServers\":{\"harness\":{\"type\":\"http\",\"url\":\"https://control.example/v1/grid/web-mcp/\",\"headers\":{\"Authorization\":\"Bearer ${GRID_API_KEY}\"}}}}","--allowedTools=mcp__harness__web_search,mcp__harness__web_read","--system-prompt-snapshot","off","--settings","{\"statusLine\":{\"type\":\"command\",\"command\":\"'<daemon-node>' '<root>/data/statusline/statusline.mjs' --data '<root>/data'\"}}","--append-system-prompt","Web tools in this session come from the `harness` MCP server only: `mcp__harness__web_search` searches the web and `mcp__harness__web_read` reads pages. The built-in `WebSearch` and `WebFetch` tools are not available in this session, even where earlier turns of this conversation used them — do not call them; call the `harness` tools instead."],"clearEnv":["ANTHROPIC_API_KEY","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}}},"retargetLine":"[grid] claude -> Home (net-home) · qwen3-coder · web search on","config":null,"folder":{"CLAUDE.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"codex · restart on a grid": {"result":{"ok":true,"overrides":{"env":{"GRID_API_KEY":"grid-key-1","GRID_MCP_AUTHORIZATION":"Bearer grid-key-1"},"extraArgs":["-c","model_provider=\"grid\"","-c","model_providers.grid.name=\"Autonomous Grid\"","-c","model_providers.grid.base_url=\"https://grid.example/g/home/relay/v1\"","-c","model_providers.grid.env_key=\"GRID_API_KEY\"","-c","model_providers.grid.wire_api=\"responses\"","-c","model_providers.grid.supports_websockets=false","-c","web_search=\"disabled\"","-c","mcp_servers.harness.url=\"https://control.example/v1/grid/web-mcp/\"","-c","mcp_servers.harness.env_http_headers.Authorization=\"GRID_MCP_AUTHORIZATION\"","-m","qwen3-coder","-c","model_context_window=131072","-c","model_auto_compact_token_limit=117964"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}}},"retargetLine":"[grid] codex -> Home (net-home) · qwen3-coder · web search on","config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"cursor · restart on a grid": {"result":{"ok":false,"error":"GRID_ENGINE_UNSUPPORTED","detail":"cursor cannot run on grid Home: Cursor Agent can only be re-pointed at another Cursor API (CURSOR_API_ENDPOINT), not at an OpenAI-compatible relay. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."},"retargetLine":null,"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"opencode · restart on a grid": {"result":{"ok":true,"overrides":{"env":{"GRID_API_KEY":"grid-key-1","OPENCODE_CONFIG":"<root>/data/grid-engine-config/agent-opencode/opencode.json"},"extraArgs":["--standalone"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"},"sessionModel":"home/qwen3-coder"}},"retargetLine":"[grid] opencode -> Home (net-home) · qwen3-coder · web search on","config":{"agent-opencode":{"dir":{"opencode.json":{"mode":"600","text":"{\n \"$schema\": \"https://opencode.ai/config.json\",\n \"model\": \"home/qwen3-coder\",\n \"provider\": {\n \"home\": {\n \"npm\": \"@ai-sdk/openai-compatible\",\n \"name\": \"Home\",\n \"options\": {\n \"baseURL\": \"https://grid.example/g/home/relay/v1\",\n \"apiKey\": \"{env:GRID_API_KEY}\"\n },\n \"models\": {\n \"qwen3-coder\": {\n \"name\": \"qwen3-coder\",\n \"limit\": {\n \"context\": 131072,\n \"output\": 32000\n }\n }\n }\n }\n },\n \"mcp\": {\n \"harness\": {\n \"type\": \"remote\",\n \"url\": \"https://control.example/v1/grid/web-mcp/\",\n \"enabled\": true,\n \"headers\": {\n \"Authorization\": \"Bearer {env:GRID_API_KEY}\"\n }\n }\n }\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"pi · restart on a grid": {"result":{"ok":true,"overrides":{"env":{"GRID_API_KEY":"grid-key-1"},"extraArgs":["--model","grid/qwen3-coder","-e","<root>/data/grid-engine-config/agent-pi/grid-provider.ts"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"unsupported"}}},"retargetLine":"[grid] pi -> Home (net-home) · qwen3-coder · web search unsupported (Pi has no MCP client)","config":{"agent-pi":{"dir":{"grid-provider.ts":{"mode":"600","text":"// Written by the machine adapter for this agent's grid launch. Adds the grid as a provider.\nexport default function (pi) {\n pi.registerProvider(\"grid\", {\n \"name\": \"Autonomous Grid\",\n \"baseUrl\": \"https://grid.example/g/home/relay/v1\",\n \"api\": \"openai-completions\",\n \"apiKey\": \"$GRID_API_KEY\",\n \"models\": [\n {\n \"id\": \"qwen3-coder\",\n \"name\": \"qwen3-coder\",\n \"reasoning\": false,\n \"input\": [\n \"text\"\n ],\n \"contextWindow\": 131072,\n \"maxTokens\": 8192,\n \"cost\": {\n \"input\": 0,\n \"output\": 0,\n \"cacheRead\": 0,\n \"cacheWrite\": 0\n }\n }\n ]\n })\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"omp · restart on a grid": {"result":{"ok":false,"error":"GRID_ENGINE_UNSUPPORTED","detail":"omp cannot run on grid Home: Harness has not yet verified how omp is pointed at another endpoint. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."},"retargetLine":null,"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"hermes · restart on a grid": {"result":{"ok":true,"overrides":{"env":{"OPENAI_BASE_URL":"https://grid.example/g/home/relay/v1","OPENAI_API_KEY":"grid-key-1","HERMES_INFERENCE_MODEL":"qwen3-coder","GRID_API_KEY":"grid-key-1","HERMES_MANAGED_DIR":"<root>/data/grid-engine-config/agent-hermes"},"extraArgs":["-m","qwen3-coder"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","GRID_MCP_AUTHORIZATION","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}}},"retargetLine":"[grid] hermes -> Home (net-home) · qwen3-coder · web search on","config":{"agent-hermes":{"dir":{"config.yaml":{"mode":"600","text":"{\n \"mcp_servers\": {\n \"harness\": {\n \"url\": \"https://control.example/v1/grid/web-mcp/\",\n \"headers\": {\n \"Authorization\": \"Bearer ${GRID_API_KEY}\"\n }\n }\n }\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"commandcode · restart on a grid": {"result":{"ok":false,"error":"GRID_ENGINE_UNSUPPORTED","detail":"commandcode cannot run on grid Home: Command Code documents no way to change its endpoint. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."},"retargetLine":null,"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"devin · restart on a grid": {"result":{"ok":false,"error":"GRID_ENGINE_UNSUPPORTED","detail":"devin cannot run on grid Home: Devin runs on its own hosted service and documents no endpoint override. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."},"retargetLine":null,"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"muse · restart on a grid": {"result":{"ok":false,"error":"GRID_ENGINE_UNSUPPORTED","detail":"muse cannot run on grid Home: Muse Code documents no way to change its endpoint. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."},"retargetLine":null,"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"amp · restart on a grid": {"result":{"ok":false,"error":"GRID_ENGINE_UNSUPPORTED","detail":"amp cannot run on grid Home: Amp documents no way to change where it sends inference. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."},"retargetLine":null,"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"kilo · restart on a grid": {"result":{"ok":false,"error":"GRID_ENGINE_UNSUPPORTED","detail":"kilo cannot run on grid Home: the Kilo CLI has no OpenAI-compatible provider option yet (its own issues #5840, #6315). It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."},"retargetLine":null,"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"grok · restart on a grid": {"result":{"ok":true,"overrides":{"env":{"GROK_MODELS_BASE_URL":"https://grid.example/g/home/relay/v1","XAI_API_KEY":"grid-key-1","GRID_API_KEY":"grid-key-1","GROK_HOME":"<root>/data/grid-engine-config/agent-grok"},"extraArgs":["-m","qwen3-coder"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}}},"retargetLine":"[grid] grok -> Home (net-home) · qwen3-coder · web search on","config":{"agent-grok":{"dir":{"config.toml":{"mode":"600","text":"[model.\"qwen3-coder\"]\nmodel = \"qwen3-coder\"\nbase_url = \"https://grid.example/g/home/relay/v1\"\nenv_key = \"GRID_API_KEY\"\n\n[mcp_servers.harness]\nurl = \"https://control.example/v1/grid/web-mcp/\"\nheaders = { Authorization = \"Bearer ${GRID_API_KEY}\" }\n"},"sessions":{"link":"<root>/home/.grok/sessions"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"agy · restart on a grid": {"result":{"ok":false,"error":"GRID_ENGINE_UNSUPPORTED","detail":"agy cannot run on grid Home: Antigravity speaks the Gemini API, which this relay does not serve. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."},"retargetLine":null,"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"copilot · restart on a grid": {"result":{"ok":true,"overrides":{"env":{"COPILOT_PROVIDER_BASE_URL":"https://grid.example/g/home/relay/v1","COPILOT_PROVIDER_API_KEY":"grid-key-1","COPILOT_MODEL":"qwen3-coder","GRID_API_KEY":"grid-key-1"},"extraArgs":["--additional-mcp-config","{\"mcpServers\":{\"harness\":{\"type\":\"http\",\"url\":\"https://control.example/v1/grid/web-mcp/\",\"headers\":{\"Authorization\":\"Bearer ${GRID_API_KEY}\"}}}}"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","HERMES_INFERENCE_MODEL","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}}},"retargetLine":"[grid] copilot -> Home (net-home) · qwen3-coder · web search on","config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"terminal · restart on a grid": {"result":{"ok":false,"error":"GRID_ENGINE_UNSUPPORTED","detail":"terminal cannot run on grid Home: a terminal runs no engine to point at a grid — start one inside it and it will use its own login. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."},"retargetLine":null,"config":null,"folder":{},"logged":[]},
"claude · restart on a grid without a model": {"result":{"ok":true,"overrides":{"env":{"ANTHROPIC_BASE_URL":"https://grid.example/g/home/relay","ANTHROPIC_AUTH_TOKEN":"grid-key-2"},"extraArgs":["--disallowedTools=WebSearch,WebFetch","--system-prompt-snapshot","off","--settings","{\"statusLine\":{\"type\":\"command\",\"command\":\"'<daemon-node>' '<root>/data/statusline/statusline.mjs' --data '<root>/data'\"}}","--append-system-prompt","This session has no web tools. The built-in `WebSearch` and `WebFetch` tools are not available in this session, even where earlier turns of this conversation used them — do not call them; tell the user the web cannot be searched or read from here instead."],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","GRID_API_KEY","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-2"},"webSearch":"unavailable"}}},"retargetLine":"[grid] claude -> Home (net-home) · model chosen by the engine · web search unavailable","config":null,"folder":{"CLAUDE.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"claude · restart on a grid · another machine": {"result":{"ok":true,"overrides":{"env":{"ANTHROPIC_BASE_URL":"https://grid.example/g/home/relay","ANTHROPIC_AUTH_TOKEN":"grid-key-1","ANTHROPIC_MODEL":"qwen3-coder","CLAUDE_CODE_MAX_CONTEXT_TOKENS":"131072","GRID_API_KEY":"grid-key-1"},"extraArgs":["--disallowedTools=WebSearch,WebFetch","--mcp-config","{\"mcpServers\":{\"harness\":{\"type\":\"http\",\"url\":\"https://control.example/v1/grid/web-mcp/\",\"headers\":{\"Authorization\":\"Bearer ${GRID_API_KEY}\"}}}}","--allowedTools=mcp__harness__web_search,mcp__harness__web_read","--system-prompt-snapshot","off","--settings","{\"statusLine\":{\"type\":\"command\",\"command\":\"'<daemon-node>' '<root>/data/statusline/statusline.mjs' --data '<root>/data'\"}}","--append-system-prompt","Web tools in this session come from the `harness` MCP server only: `mcp__harness__web_search` searches the web and `mcp__harness__web_read` reads pages. The built-in `WebSearch` and `WebFetch` tools are not available in this session, even where earlier turns of this conversation used them — do not call them; call the `harness` tools instead."],"clearEnv":["ANTHROPIC_API_KEY","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}}},"retargetLine":"[grid] claude -> Home (net-home) · qwen3-coder · web search on","config":null,"folder":{"CLAUDE.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"claude · restart on a saved API, its key as saved now": {"result":{"ok":true,"overrides":{"env":{"ANTHROPIC_BASE_URL":"http://127.0.0.1:<port>","ANTHROPIC_AUTH_TOKEN":"fresh-key","ANTHROPIC_MODEL":"vendor/model-a","CLAUDE_CODE_MAX_CONTEXT_TOKENS":"200000"},"extraArgs":["--disallowedTools=WebSearch,WebFetch","--system-prompt-snapshot","off","--settings","{\"statusLine\":{\"type\":\"command\",\"command\":\"'<daemon-node>' '<root>/data/statusline/statusline.mjs' --data '<root>/data'\"}}","--append-system-prompt","This session has no web tools. The built-in `WebSearch` and `WebFetch` tools are not available in this session, even where earlier turns of this conversation used them — do not call them; tell the user the web cannot be searched or read from here instead."],"clearEnv":["ANTHROPIC_API_KEY","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","GRID_API_KEY","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"api:router","networkName":"Router","baseUrl":"http://127.0.0.1:<port>/v1","apiKey":"fresh-key","model":"vendor/model-a","contextWindow":200000},"webSearch":"unavailable"}}},"retargetLine":"[grid] claude -> Router (api:router) · vendor/model-a · web search unavailable","config":null,"folder":{"CLAUDE.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"claude · retarget onto a grid": {"result":{"ok":true,"overrides":{"env":{"ANTHROPIC_BASE_URL":"https://grid.example/g/home/relay","ANTHROPIC_AUTH_TOKEN":"grid-key-1","ANTHROPIC_MODEL":"qwen3-coder","CLAUDE_CODE_MAX_CONTEXT_TOKENS":"131072","GRID_API_KEY":"grid-key-1"},"extraArgs":["--disallowedTools=WebSearch,WebFetch","--mcp-config","{\"mcpServers\":{\"harness\":{\"type\":\"http\",\"url\":\"https://control.example/v1/grid/web-mcp/\",\"headers\":{\"Authorization\":\"Bearer ${GRID_API_KEY}\"}}}}","--allowedTools=mcp__harness__web_search,mcp__harness__web_read","--system-prompt-snapshot","off","--settings","{\"statusLine\":{\"type\":\"command\",\"command\":\"'<daemon-node>' '<root>/data/statusline/statusline.mjs' --data '<root>/data'\"}}","--append-system-prompt","Web tools in this session come from the `harness` MCP server only: `mcp__harness__web_search` searches the web and `mcp__harness__web_read` reads pages. The built-in `WebSearch` and `WebFetch` tools are not available in this session, even where earlier turns of this conversation used them — do not call them; call the `harness` tools instead."],"clearEnv":["ANTHROPIC_API_KEY","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}}},"retargetLine":"[grid] claude -> Home (net-home) · qwen3-coder · web search on","config":null,"folder":{"CLAUDE.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"claude · retarget back to the own login": {"result":{"ok":true,"overrides":{"env":{"ANTHROPIC_MODEL":"own-model"},"extraArgs":["--settings","{\"statusLine\":{\"type\":\"command\",\"command\":\"'<daemon-node>' '<root>/data/statusline/statusline.mjs' --data '<root>/data'\"}}"],"clearEnv":["HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"]}},"retargetLine":null,"config":null,"folder":{"CLAUDE.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"claude · fork on a grid": {"result":{"ok":true,"overrides":{"env":{"ANTHROPIC_BASE_URL":"https://grid.example/g/home/relay","ANTHROPIC_AUTH_TOKEN":"grid-key-1","ANTHROPIC_MODEL":"qwen3-coder","CLAUDE_CODE_MAX_CONTEXT_TOKENS":"131072","GRID_API_KEY":"grid-key-1"},"extraArgs":["--disallowedTools=WebSearch,WebFetch","--mcp-config","{\"mcpServers\":{\"harness\":{\"type\":\"http\",\"url\":\"https://control.example/v1/grid/web-mcp/\",\"headers\":{\"Authorization\":\"Bearer ${GRID_API_KEY}\"}}}}","--allowedTools=mcp__harness__web_search,mcp__harness__web_read","--system-prompt-snapshot","off","--settings","{\"statusLine\":{\"type\":\"command\",\"command\":\"'<daemon-node>' '<root>/data/statusline/statusline.mjs' --data '<root>/data'\"}}","--append-system-prompt","Web tools in this session come from the `harness` MCP server only: `mcp__harness__web_search` searches the web and `mcp__harness__web_read` reads pages. The built-in `WebSearch` and `WebFetch` tools are not available in this session, even where earlier turns of this conversation used them — do not call them; call the `harness` tools instead."],"clearEnv":["ANTHROPIC_API_KEY","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}}},"retargetLine":"[grid] claude -> Home (net-home) · qwen3-coder · web search on","config":null,"folder":{"CLAUDE.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"codex · restart on a grid without a model": {"result":{"ok":true,"overrides":{"env":{"GRID_API_KEY":"grid-key-2"},"extraArgs":["-c","model_provider=\"grid\"","-c","model_providers.grid.name=\"Autonomous Grid\"","-c","model_providers.grid.base_url=\"https://grid.example/g/home/relay/v1\"","-c","model_providers.grid.env_key=\"GRID_API_KEY\"","-c","model_providers.grid.wire_api=\"responses\"","-c","model_providers.grid.supports_websockets=false","-c","web_search=\"disabled\""],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-2"},"webSearch":"unavailable"}}},"retargetLine":"[grid] codex -> Home (net-home) · model chosen by the engine · web search unavailable","config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"codex · restart on a grid · another machine": {"result":{"ok":true,"overrides":{"env":{"GRID_API_KEY":"grid-key-1","GRID_MCP_AUTHORIZATION":"Bearer grid-key-1"},"extraArgs":["-c","model_provider=\"grid\"","-c","model_providers.grid.name=\"Autonomous Grid\"","-c","model_providers.grid.base_url=\"https://grid.example/g/home/relay/v1\"","-c","model_providers.grid.env_key=\"GRID_API_KEY\"","-c","model_providers.grid.wire_api=\"responses\"","-c","model_providers.grid.supports_websockets=false","-c","web_search=\"disabled\"","-c","mcp_servers.harness.url=\"https://control.example/v1/grid/web-mcp/\"","-c","mcp_servers.harness.env_http_headers.Authorization=\"GRID_MCP_AUTHORIZATION\"","-m","qwen3-coder","-c","model_context_window=131072","-c","model_auto_compact_token_limit=117964"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}}},"retargetLine":"[grid] codex -> Home (net-home) · qwen3-coder · web search on","config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"codex · restart on a saved API, its key as saved now": {"result":{"ok":true,"overrides":{"env":{"GRID_API_KEY":"fresh-key"},"extraArgs":["-c","model_provider=\"grid\"","-c","model_providers.grid.name=\"Autonomous Grid\"","-c","model_providers.grid.base_url=\"http://127.0.0.1:<port>/v1\"","-c","model_providers.grid.env_key=\"GRID_API_KEY\"","-c","model_providers.grid.wire_api=\"responses\"","-c","model_providers.grid.supports_websockets=false","-c","web_search=\"disabled\"","-m","vendor/model-a","-c","model_context_window=200000","-c","model_auto_compact_token_limit=180000"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"api:router","networkName":"Router","baseUrl":"http://127.0.0.1:<port>/v1","apiKey":"fresh-key","model":"vendor/model-a","contextWindow":200000},"webSearch":"unavailable"}}},"retargetLine":"[grid] codex -> Router (api:router) · vendor/model-a · web search unavailable","config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"codex · retarget onto a grid": {"result":{"ok":true,"overrides":{"env":{"GRID_API_KEY":"grid-key-1","GRID_MCP_AUTHORIZATION":"Bearer grid-key-1"},"extraArgs":["-c","model_provider=\"grid\"","-c","model_providers.grid.name=\"Autonomous Grid\"","-c","model_providers.grid.base_url=\"https://grid.example/g/home/relay/v1\"","-c","model_providers.grid.env_key=\"GRID_API_KEY\"","-c","model_providers.grid.wire_api=\"responses\"","-c","model_providers.grid.supports_websockets=false","-c","web_search=\"disabled\"","-c","mcp_servers.harness.url=\"https://control.example/v1/grid/web-mcp/\"","-c","mcp_servers.harness.env_http_headers.Authorization=\"GRID_MCP_AUTHORIZATION\"","-m","qwen3-coder","-c","model_context_window=131072","-c","model_auto_compact_token_limit=117964"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}}},"retargetLine":"[grid] codex -> Home (net-home) · qwen3-coder · web search on","config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"codex · retarget back to the own login": {"result":{"ok":true,"overrides":{"env":{},"extraArgs":["-c","model_provider=\"openai\"","-m","own-model"],"clearEnv":["HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"]}},"retargetLine":null,"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"codex · fork on a grid": {"result":{"ok":true,"overrides":{"env":{"GRID_API_KEY":"grid-key-1","GRID_MCP_AUTHORIZATION":"Bearer grid-key-1"},"extraArgs":["-c","model_provider=\"grid\"","-c","model_providers.grid.name=\"Autonomous Grid\"","-c","model_providers.grid.base_url=\"https://grid.example/g/home/relay/v1\"","-c","model_providers.grid.env_key=\"GRID_API_KEY\"","-c","model_providers.grid.wire_api=\"responses\"","-c","model_providers.grid.supports_websockets=false","-c","web_search=\"disabled\"","-c","mcp_servers.harness.url=\"https://control.example/v1/grid/web-mcp/\"","-c","mcp_servers.harness.env_http_headers.Authorization=\"GRID_MCP_AUTHORIZATION\"","-m","qwen3-coder","-c","model_context_window=131072","-c","model_auto_compact_token_limit=117964"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}}},"retargetLine":"[grid] codex -> Home (net-home) · qwen3-coder · web search on","config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"opencode · restart on a grid without a model": {"result":{"ok":true,"overrides":{"env":{"GRID_API_KEY":"grid-key-2","OPENCODE_CONFIG":"<root>/data/grid-engine-config/agent-opencode/opencode.json"},"extraArgs":["--standalone"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-2"},"webSearch":"unavailable"},"sessionModel":"home/Auto"}},"retargetLine":"[grid] opencode -> Home (net-home) · model chosen by the engine · web search unavailable","config":{"agent-opencode":{"dir":{"opencode.json":{"mode":"600","text":"{\n \"$schema\": \"https://opencode.ai/config.json\",\n \"model\": \"home/Auto\",\n \"provider\": {\n \"home\": {\n \"npm\": \"@ai-sdk/openai-compatible\",\n \"name\": \"Home\",\n \"options\": {\n \"baseURL\": \"https://grid.example/g/home/relay/v1\",\n \"apiKey\": \"{env:GRID_API_KEY}\"\n },\n \"models\": {\n \"Auto\": {\n \"name\": \"Auto\"\n }\n }\n }\n }\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"opencode · restart on a grid · another machine": {"result":{"ok":true,"overrides":{"env":{"GRID_API_KEY":"grid-key-1","OPENCODE_CONFIG":"<root>/data/grid-engine-config/agent-opencode/opencode.json"},"extraArgs":["-m","home/qwen3-coder"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"},"sessionModel":"home/qwen3-coder"}},"retargetLine":"[grid] opencode -> Home (net-home) · qwen3-coder · web search on","config":{"agent-opencode":{"dir":{"opencode.json":{"mode":"600","text":"{\n \"$schema\": \"https://opencode.ai/config.json\",\n \"provider\": {\n \"home\": {\n \"npm\": \"@ai-sdk/openai-compatible\",\n \"name\": \"Home\",\n \"options\": {\n \"baseURL\": \"https://grid.example/g/home/relay/v1\",\n \"apiKey\": \"{env:GRID_API_KEY}\"\n },\n \"models\": {\n \"qwen3-coder\": {\n \"name\": \"qwen3-coder\",\n \"limit\": {\n \"context\": 131072,\n \"output\": 32000\n }\n }\n }\n }\n },\n \"mcp\": {\n \"harness\": {\n \"type\": \"remote\",\n \"url\": \"https://control.example/v1/grid/web-mcp/\",\n \"enabled\": true,\n \"headers\": {\n \"Authorization\": \"Bearer {env:GRID_API_KEY}\"\n }\n }\n }\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"opencode · restart on a saved API, its key as saved now": {"result":{"ok":true,"overrides":{"env":{"GRID_API_KEY":"fresh-key","OPENCODE_CONFIG":"<root>/data/grid-engine-config/agent-opencode/opencode.json"},"extraArgs":["--standalone"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"api:router","networkName":"Router","baseUrl":"http://127.0.0.1:<port>/v1","apiKey":"fresh-key","model":"vendor/model-a","contextWindow":200000},"webSearch":"unavailable"},"sessionModel":"api-router/vendor/model-a"}},"retargetLine":"[grid] opencode -> Router (api:router) · vendor/model-a · web search unavailable","config":{"agent-opencode":{"dir":{"opencode.json":{"mode":"600","text":"{\n \"$schema\": \"https://opencode.ai/config.json\",\n \"model\": \"api-router/vendor/model-a\",\n \"provider\": {\n \"api-router\": {\n \"npm\": \"@ai-sdk/openai-compatible\",\n \"name\": \"Router\",\n \"options\": {\n \"baseURL\": \"http://127.0.0.1:<port>/v1\",\n \"apiKey\": \"{env:GRID_API_KEY}\"\n },\n \"models\": {\n \"vendor/model-a\": {\n \"name\": \"vendor/model-a\",\n \"limit\": {\n \"context\": 200000,\n \"output\": 32000\n }\n }\n }\n }\n }\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"opencode · retarget onto a grid": {"result":{"ok":true,"overrides":{"env":{"GRID_API_KEY":"grid-key-1","OPENCODE_CONFIG":"<root>/data/grid-engine-config/agent-opencode/opencode.json"},"extraArgs":["--standalone"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"},"sessionModel":"home/qwen3-coder"}},"retargetLine":"[grid] opencode -> Home (net-home) · qwen3-coder · web search on","config":{"agent-opencode":{"dir":{"opencode.json":{"mode":"600","text":"{\n \"$schema\": \"https://opencode.ai/config.json\",\n \"model\": \"home/qwen3-coder\",\n \"provider\": {\n \"home\": {\n \"npm\": \"@ai-sdk/openai-compatible\",\n \"name\": \"Home\",\n \"options\": {\n \"baseURL\": \"https://grid.example/g/home/relay/v1\",\n \"apiKey\": \"{env:GRID_API_KEY}\"\n },\n \"models\": {\n \"qwen3-coder\": {\n \"name\": \"qwen3-coder\",\n \"limit\": {\n \"context\": 131072,\n \"output\": 32000\n }\n }\n }\n }\n },\n \"mcp\": {\n \"harness\": {\n \"type\": \"remote\",\n \"url\": \"https://control.example/v1/grid/web-mcp/\",\n \"enabled\": true,\n \"headers\": {\n \"Authorization\": \"Bearer {env:GRID_API_KEY}\"\n }\n }\n }\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"opencode · retarget back to the own login": {"result":{"ok":true,"overrides":{"env":{},"extraArgs":[],"clearEnv":["HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"]}},"retargetLine":null,"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"opencode · fork on a grid": {"result":{"ok":true,"overrides":{"env":{"GRID_API_KEY":"grid-key-1","OPENCODE_CONFIG":"<root>/data/grid-engine-config/agent-opencode/opencode.json"},"extraArgs":["--standalone"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"},"sessionModel":"home/qwen3-coder"}},"retargetLine":"[grid] opencode -> Home (net-home) · qwen3-coder · web search on","config":{"agent-opencode":{"dir":{"opencode.json":{"mode":"600","text":"{\n \"$schema\": \"https://opencode.ai/config.json\",\n \"model\": \"home/qwen3-coder\",\n \"provider\": {\n \"home\": {\n \"npm\": \"@ai-sdk/openai-compatible\",\n \"name\": \"Home\",\n \"options\": {\n \"baseURL\": \"https://grid.example/g/home/relay/v1\",\n \"apiKey\": \"{env:GRID_API_KEY}\"\n },\n \"models\": {\n \"qwen3-coder\": {\n \"name\": \"qwen3-coder\",\n \"limit\": {\n \"context\": 131072,\n \"output\": 32000\n }\n }\n }\n }\n },\n \"mcp\": {\n \"harness\": {\n \"type\": \"remote\",\n \"url\": \"https://control.example/v1/grid/web-mcp/\",\n \"enabled\": true,\n \"headers\": {\n \"Authorization\": \"Bearer {env:GRID_API_KEY}\"\n }\n }\n }\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"pi · restart on a grid without a model": {"result":{"ok":true,"overrides":{"env":{"GRID_API_KEY":"grid-key-2"},"extraArgs":["--model","grid/Auto","-e","<root>/data/grid-engine-config/agent-pi/grid-provider.ts"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-2"},"webSearch":"unsupported"}}},"retargetLine":"[grid] pi -> Home (net-home) · model chosen by the engine · web search unsupported (Pi has no MCP client)","config":{"agent-pi":{"dir":{"grid-provider.ts":{"mode":"600","text":"// Written by the machine adapter for this agent's grid launch. Adds the grid as a provider.\nexport default function (pi) {\n pi.registerProvider(\"grid\", {\n \"name\": \"Autonomous Grid\",\n \"baseUrl\": \"https://grid.example/g/home/relay/v1\",\n \"api\": \"openai-completions\",\n \"apiKey\": \"$GRID_API_KEY\",\n \"models\": [\n {\n \"id\": \"Auto\",\n \"name\": \"Auto\",\n \"reasoning\": false,\n \"input\": [\n \"text\"\n ],\n \"contextWindow\": 200000,\n \"maxTokens\": 8192,\n \"cost\": {\n \"input\": 0,\n \"output\": 0,\n \"cacheRead\": 0,\n \"cacheWrite\": 0\n }\n }\n ]\n })\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"pi · restart on a grid · another machine": {"result":{"ok":true,"overrides":{"env":{"GRID_API_KEY":"grid-key-1"},"extraArgs":["--model","grid/qwen3-coder","-e","<root>/data/grid-engine-config/agent-pi/grid-provider.ts"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"unsupported"}}},"retargetLine":"[grid] pi -> Home (net-home) · qwen3-coder · web search unsupported (Pi has no MCP client)","config":{"agent-pi":{"dir":{"grid-provider.ts":{"mode":"600","text":"// Written by the machine adapter for this agent's grid launch. Adds the grid as a provider.\nexport default function (pi) {\n pi.registerProvider(\"grid\", {\n \"name\": \"Autonomous Grid\",\n \"baseUrl\": \"https://grid.example/g/home/relay/v1\",\n \"api\": \"openai-completions\",\n \"apiKey\": \"$GRID_API_KEY\",\n \"models\": [\n {\n \"id\": \"qwen3-coder\",\n \"name\": \"qwen3-coder\",\n \"reasoning\": false,\n \"input\": [\n \"text\"\n ],\n \"contextWindow\": 131072,\n \"maxTokens\": 8192,\n \"cost\": {\n \"input\": 0,\n \"output\": 0,\n \"cacheRead\": 0,\n \"cacheWrite\": 0\n }\n }\n ]\n })\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"pi · restart on a saved API, its key as saved now": {"result":{"ok":true,"overrides":{"env":{"GRID_API_KEY":"fresh-key"},"extraArgs":["--model","grid/vendor/model-a","-e","<root>/data/grid-engine-config/agent-pi/grid-provider.ts"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"api:router","networkName":"Router","baseUrl":"http://127.0.0.1:<port>/v1","apiKey":"fresh-key","model":"vendor/model-a","contextWindow":200000},"webSearch":"unsupported"}}},"retargetLine":"[grid] pi -> Router (api:router) · vendor/model-a · web search unsupported (Pi has no MCP client)","config":{"agent-pi":{"dir":{"grid-provider.ts":{"mode":"600","text":"// Written by the machine adapter for this agent's grid launch. Adds the grid as a provider.\nexport default function (pi) {\n pi.registerProvider(\"grid\", {\n \"name\": \"Autonomous Grid\",\n \"baseUrl\": \"http://127.0.0.1:<port>/v1\",\n \"api\": \"openai-completions\",\n \"apiKey\": \"$GRID_API_KEY\",\n \"models\": [\n {\n \"id\": \"vendor/model-a\",\n \"name\": \"vendor/model-a\",\n \"reasoning\": false,\n \"input\": [\n \"text\"\n ],\n \"contextWindow\": 200000,\n \"maxTokens\": 8192,\n \"cost\": {\n \"input\": 0,\n \"output\": 0,\n \"cacheRead\": 0,\n \"cacheWrite\": 0\n }\n }\n ]\n })\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"pi · retarget onto a grid": {"result":{"ok":true,"overrides":{"env":{"GRID_API_KEY":"grid-key-1"},"extraArgs":["--model","grid/qwen3-coder","-e","<root>/data/grid-engine-config/agent-pi/grid-provider.ts"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"unsupported"}}},"retargetLine":"[grid] pi -> Home (net-home) · qwen3-coder · web search unsupported (Pi has no MCP client)","config":{"agent-pi":{"dir":{"grid-provider.ts":{"mode":"600","text":"// Written by the machine adapter for this agent's grid launch. Adds the grid as a provider.\nexport default function (pi) {\n pi.registerProvider(\"grid\", {\n \"name\": \"Autonomous Grid\",\n \"baseUrl\": \"https://grid.example/g/home/relay/v1\",\n \"api\": \"openai-completions\",\n \"apiKey\": \"$GRID_API_KEY\",\n \"models\": [\n {\n \"id\": \"qwen3-coder\",\n \"name\": \"qwen3-coder\",\n \"reasoning\": false,\n \"input\": [\n \"text\"\n ],\n \"contextWindow\": 131072,\n \"maxTokens\": 8192,\n \"cost\": {\n \"input\": 0,\n \"output\": 0,\n \"cacheRead\": 0,\n \"cacheWrite\": 0\n }\n }\n ]\n })\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"pi · retarget back to the own login": {"result":{"ok":true,"overrides":{"env":{},"extraArgs":[],"clearEnv":["HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"]}},"retargetLine":null,"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"pi · fork on a grid": {"result":{"ok":true,"overrides":{"env":{"GRID_API_KEY":"grid-key-1"},"extraArgs":["--model","grid/qwen3-coder","-e","<root>/data/grid-engine-config/agent-pi/grid-provider.ts"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"unsupported"}}},"retargetLine":"[grid] pi -> Home (net-home) · qwen3-coder · web search unsupported (Pi has no MCP client)","config":{"agent-pi":{"dir":{"grid-provider.ts":{"mode":"600","text":"// Written by the machine adapter for this agent's grid launch. Adds the grid as a provider.\nexport default function (pi) {\n pi.registerProvider(\"grid\", {\n \"name\": \"Autonomous Grid\",\n \"baseUrl\": \"https://grid.example/g/home/relay/v1\",\n \"api\": \"openai-completions\",\n \"apiKey\": \"$GRID_API_KEY\",\n \"models\": [\n {\n \"id\": \"qwen3-coder\",\n \"name\": \"qwen3-coder\",\n \"reasoning\": false,\n \"input\": [\n \"text\"\n ],\n \"contextWindow\": 131072,\n \"maxTokens\": 8192,\n \"cost\": {\n \"input\": 0,\n \"output\": 0,\n \"cacheRead\": 0,\n \"cacheWrite\": 0\n }\n }\n ]\n })\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"hermes · restart on a grid without a model": {"result":{"ok":true,"overrides":{"env":{"OPENAI_BASE_URL":"https://grid.example/g/home/relay/v1","OPENAI_API_KEY":"grid-key-2"},"extraArgs":[],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","GRID_API_KEY","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-2"},"webSearch":"unavailable"}}},"retargetLine":"[grid] hermes -> Home (net-home) · model chosen by the engine · web search unavailable","config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"hermes · restart on a grid · another machine": {"result":{"ok":true,"overrides":{"env":{"OPENAI_BASE_URL":"https://grid.example/g/home/relay/v1","OPENAI_API_KEY":"grid-key-1","HERMES_INFERENCE_MODEL":"qwen3-coder"},"extraArgs":["-m","qwen3-coder"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","GRID_API_KEY","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"unsupported"}}},"retargetLine":"[grid] hermes -> Home (net-home) · qwen3-coder · web search unsupported (/etc/hermes pins this machine's Hermes settings, and the overlay carrying the web tools would replace it)","config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"hermes · restart on a saved API, its key as saved now": {"result":{"ok":true,"overrides":{"env":{"OPENAI_BASE_URL":"http://127.0.0.1:<port>/v1","OPENAI_API_KEY":"fresh-key","HERMES_INFERENCE_MODEL":"vendor/model-a"},"extraArgs":["-m","vendor/model-a"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","GRID_API_KEY","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"api:router","networkName":"Router","baseUrl":"http://127.0.0.1:<port>/v1","apiKey":"fresh-key","model":"vendor/model-a","contextWindow":200000},"webSearch":"unavailable"}}},"retargetLine":"[grid] hermes -> Router (api:router) · vendor/model-a · web search unavailable","config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"hermes · retarget onto a grid": {"result":{"ok":true,"overrides":{"env":{"OPENAI_BASE_URL":"https://grid.example/g/home/relay/v1","OPENAI_API_KEY":"grid-key-1","HERMES_INFERENCE_MODEL":"qwen3-coder","GRID_API_KEY":"grid-key-1","HERMES_MANAGED_DIR":"<root>/data/grid-engine-config/agent-hermes"},"extraArgs":["-m","qwen3-coder"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","GRID_MCP_AUTHORIZATION","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}}},"retargetLine":"[grid] hermes -> Home (net-home) · qwen3-coder · web search on","config":{"agent-hermes":{"dir":{"config.yaml":{"mode":"600","text":"{\n \"mcp_servers\": {\n \"harness\": {\n \"url\": \"https://control.example/v1/grid/web-mcp/\",\n \"headers\": {\n \"Authorization\": \"Bearer ${GRID_API_KEY}\"\n }\n }\n }\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"hermes · retarget back to the own login": {"result":{"ok":true,"overrides":{"env":{},"extraArgs":["-m","own-model"],"clearEnv":["HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"]}},"retargetLine":null,"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"hermes · fork on a grid": {"result":{"ok":true,"overrides":{"env":{"OPENAI_BASE_URL":"https://grid.example/g/home/relay/v1","OPENAI_API_KEY":"grid-key-1","HERMES_INFERENCE_MODEL":"qwen3-coder","GRID_API_KEY":"grid-key-1","HERMES_MANAGED_DIR":"<root>/data/grid-engine-config/agent-hermes"},"extraArgs":["-m","qwen3-coder"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","GRID_MCP_AUTHORIZATION","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}}},"retargetLine":"[grid] hermes -> Home (net-home) · qwen3-coder · web search on","config":{"agent-hermes":{"dir":{"config.yaml":{"mode":"600","text":"{\n \"mcp_servers\": {\n \"harness\": {\n \"url\": \"https://control.example/v1/grid/web-mcp/\",\n \"headers\": {\n \"Authorization\": \"Bearer ${GRID_API_KEY}\"\n }\n }\n }\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"grok · restart on a grid without a model": {"result":{"ok":true,"overrides":{"env":{"GROK_MODELS_BASE_URL":"https://grid.example/g/home/relay/v1","XAI_API_KEY":"grid-key-2","GRID_API_KEY":"grid-key-2","GROK_HOME":"<root>/data/grid-engine-config/agent-grok"},"extraArgs":["-m","Auto"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-2"},"webSearch":"unavailable"}}},"retargetLine":"[grid] grok -> Home (net-home) · model chosen by the engine · web search unavailable","config":{"agent-grok":{"dir":{"config.toml":{"mode":"600","text":"[model.\"Auto\"]\nmodel = \"Auto\"\nbase_url = \"https://grid.example/g/home/relay/v1\"\nenv_key = \"GRID_API_KEY\"\n"},"sessions":{"link":"<root>/home/.grok/sessions"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"grok · restart on a grid · another machine": {"result":{"ok":true,"overrides":{"env":{"GROK_MODELS_BASE_URL":"https://grid.example/g/home/relay/v1","XAI_API_KEY":"grid-key-1","GRID_API_KEY":"grid-key-1","GROK_HOME":"<root>/data/grid-engine-config/agent-grok"},"extraArgs":["-m","qwen3-coder"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}}},"retargetLine":"[grid] grok -> Home (net-home) · qwen3-coder · web search on","config":{"agent-grok":{"dir":{"config.toml":{"mode":"600","text":"[model.\"qwen3-coder\"]\nmodel = \"qwen3-coder\"\nbase_url = \"https://grid.example/g/home/relay/v1\"\nenv_key = \"GRID_API_KEY\"\n\n[mcp_servers.harness]\nurl = \"https://control.example/v1/grid/web-mcp/\"\nheaders = { Authorization = \"Bearer ${GRID_API_KEY}\" }\n"},"sessions":{"link":"<root>/home/.grok/sessions"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"grok · restart on a saved API, its key as saved now": {"result":{"ok":true,"overrides":{"env":{"GROK_MODELS_BASE_URL":"http://127.0.0.1:<port>/v1","XAI_API_KEY":"fresh-key","GRID_API_KEY":"fresh-key","GROK_HOME":"<root>/data/grid-engine-config/agent-grok"},"extraArgs":["-m","vendor/model-a"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"api:router","networkName":"Router","baseUrl":"http://127.0.0.1:<port>/v1","apiKey":"fresh-key","model":"vendor/model-a","contextWindow":200000},"webSearch":"unavailable"}}},"retargetLine":"[grid] grok -> Router (api:router) · vendor/model-a · web search unavailable","config":{"agent-grok":{"dir":{"config.toml":{"mode":"600","text":"[model.\"vendor/model-a\"]\nmodel = \"vendor/model-a\"\nbase_url = \"http://127.0.0.1:<port>/v1\"\nenv_key = \"GRID_API_KEY\"\n"},"sessions":{"link":"<root>/home/.grok/sessions"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"grok · retarget onto a grid": {"result":{"ok":true,"overrides":{"env":{"GROK_MODELS_BASE_URL":"https://grid.example/g/home/relay/v1","XAI_API_KEY":"grid-key-1","GRID_API_KEY":"grid-key-1","GROK_HOME":"<root>/data/grid-engine-config/agent-grok"},"extraArgs":["-m","qwen3-coder"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}}},"retargetLine":"[grid] grok -> Home (net-home) · qwen3-coder · web search on","config":{"agent-grok":{"dir":{"config.toml":{"mode":"600","text":"[model.\"qwen3-coder\"]\nmodel = \"qwen3-coder\"\nbase_url = \"https://grid.example/g/home/relay/v1\"\nenv_key = \"GRID_API_KEY\"\n\n[mcp_servers.harness]\nurl = \"https://control.example/v1/grid/web-mcp/\"\nheaders = { Authorization = \"Bearer ${GRID_API_KEY}\" }\n"},"sessions":{"link":"<root>/home/.grok/sessions"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"grok · retarget back to the own login": {"result":{"ok":true,"overrides":{"env":{},"extraArgs":[],"clearEnv":["HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"]}},"retargetLine":null,"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"grok · fork on a grid": {"result":{"ok":true,"overrides":{"env":{"GROK_MODELS_BASE_URL":"https://grid.example/g/home/relay/v1","XAI_API_KEY":"grid-key-1","GRID_API_KEY":"grid-key-1","GROK_HOME":"<root>/data/grid-engine-config/agent-grok"},"extraArgs":["-m","qwen3-coder"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}}},"retargetLine":"[grid] grok -> Home (net-home) · qwen3-coder · web search on","config":{"agent-grok":{"dir":{"config.toml":{"mode":"600","text":"[model.\"qwen3-coder\"]\nmodel = \"qwen3-coder\"\nbase_url = \"https://grid.example/g/home/relay/v1\"\nenv_key = \"GRID_API_KEY\"\n\n[mcp_servers.harness]\nurl = \"https://control.example/v1/grid/web-mcp/\"\nheaders = { Authorization = \"Bearer ${GRID_API_KEY}\" }\n"},"sessions":{"link":"<root>/home/.grok/sessions"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"copilot · restart on a grid without a model": {"result":{"ok":false,"error":"GRID_MODEL_REQUIRED","detail":"copilot will not start against a grid without a model. Pick one for Home and try again."},"retargetLine":null,"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"copilot · restart on a grid · another machine": {"result":{"ok":true,"overrides":{"env":{"COPILOT_PROVIDER_BASE_URL":"https://grid.example/g/home/relay/v1","COPILOT_PROVIDER_API_KEY":"grid-key-1","COPILOT_MODEL":"qwen3-coder","GRID_API_KEY":"grid-key-1"},"extraArgs":["--additional-mcp-config","{\"mcpServers\":{\"harness\":{\"type\":\"http\",\"url\":\"https://control.example/v1/grid/web-mcp/\",\"headers\":{\"Authorization\":\"Bearer ${GRID_API_KEY}\"}}}}"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","HERMES_INFERENCE_MODEL","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}}},"retargetLine":"[grid] copilot -> Home (net-home) · qwen3-coder · web search on","config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"copilot · restart on a saved API, its key as saved now": {"result":{"ok":true,"overrides":{"env":{"COPILOT_PROVIDER_BASE_URL":"http://127.0.0.1:<port>/v1","COPILOT_PROVIDER_API_KEY":"fresh-key","COPILOT_MODEL":"vendor/model-a"},"extraArgs":[],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","HERMES_INFERENCE_MODEL","GRID_API_KEY","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"api:router","networkName":"Router","baseUrl":"http://127.0.0.1:<port>/v1","apiKey":"fresh-key","model":"vendor/model-a","contextWindow":200000},"webSearch":"unavailable"}}},"retargetLine":"[grid] copilot -> Router (api:router) · vendor/model-a · web search unavailable","config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"copilot · retarget onto a grid": {"result":{"ok":true,"overrides":{"env":{"COPILOT_PROVIDER_BASE_URL":"https://grid.example/g/home/relay/v1","COPILOT_PROVIDER_API_KEY":"grid-key-1","COPILOT_MODEL":"qwen3-coder","GRID_API_KEY":"grid-key-1"},"extraArgs":["--additional-mcp-config","{\"mcpServers\":{\"harness\":{\"type\":\"http\",\"url\":\"https://control.example/v1/grid/web-mcp/\",\"headers\":{\"Authorization\":\"Bearer ${GRID_API_KEY}\"}}}}"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","HERMES_INFERENCE_MODEL","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}}},"retargetLine":"[grid] copilot -> Home (net-home) · qwen3-coder · web search on","config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"copilot · retarget back to the own login": {"result":{"ok":true,"overrides":{"env":{},"extraArgs":[],"clearEnv":["HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"]}},"retargetLine":null,"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"copilot · fork on a grid": {"result":{"ok":true,"overrides":{"env":{"COPILOT_PROVIDER_BASE_URL":"https://grid.example/g/home/relay/v1","COPILOT_PROVIDER_API_KEY":"grid-key-1","COPILOT_MODEL":"qwen3-coder","GRID_API_KEY":"grid-key-1"},"extraArgs":["--additional-mcp-config","{\"mcpServers\":{\"harness\":{\"type\":\"http\",\"url\":\"https://control.example/v1/grid/web-mcp/\",\"headers\":{\"Authorization\":\"Bearer ${GRID_API_KEY}\"}}}}"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","HERMES_INFERENCE_MODEL","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}}},"retargetLine":"[grid] copilot -> Home (net-home) · qwen3-coder · web search on","config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"claude · restart on a removed API": {"result":{"ok":false,"error":"API_UNAVAILABLE","detail":"This API is not saved. Add it in Models → APIs."},"retargetLine":null,"config":null,"folder":{"CLAUDE.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"codex · restart on an API with no Bearer key": {"result":{"ok":false,"error":"API_UNAVAILABLE","detail":"Keyed does not take a Bearer key, so coding agents cannot run on it."},"retargetLine":null,"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"codex · restart on a grid · an old tmux": {"result":{"ok":false,"error":"TMUX_TOO_OLD_FOR_GRID","detail":"this machine's tmux is older than 3.2, which is the first version that can give a pane its own environment — so codex could not be pointed at grid Home."},"retargetLine":null,"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"opencode · restart as a named agent on a grid": {"result":{"ok":true,"overrides":{"env":{"GRID_API_KEY":"grid-key-1","OPENCODE_CONFIG":"<root>/data/grid-engine-config/agent-opencode/opencode.json"},"extraArgs":["--standalone"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"},"sessionModel":"home/qwen3-coder"}},"retargetLine":"[grid] opencode -> Home (net-home) · qwen3-coder · web search on","config":{"agent-opencode":{"dir":{"opencode.json":{"mode":"600","text":"{\n \"$schema\": \"https://opencode.ai/config.json\",\n \"model\": \"home/qwen3-coder\",\n \"provider\": {\n \"home\": {\n \"npm\": \"@ai-sdk/openai-compatible\",\n \"name\": \"Home\",\n \"options\": {\n \"baseURL\": \"https://grid.example/g/home/relay/v1\",\n \"apiKey\": \"{env:GRID_API_KEY}\"\n },\n \"models\": {\n \"qwen3-coder\": {\n \"name\": \"qwen3-coder\",\n \"limit\": {\n \"context\": 131072,\n \"output\": 32000\n }\n }\n }\n }\n },\n \"mcp\": {\n \"harness\": {\n \"type\": \"remote\",\n \"url\": \"https://control.example/v1/grid/web-mcp/\",\n \"enabled\": true,\n \"headers\": {\n \"Authorization\": \"Bearer {env:GRID_API_KEY}\"\n }\n }\n }\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"claude · restart, started by an agent": {"result":{"ok":true,"overrides":{"env":{},"extraArgs":["--settings","{\"statusLine\":{\"type\":\"command\",\"command\":\"'<daemon-node>' '<root>/data/statusline/statusline.mjs' --data '<root>/data'\"}}"],"clearEnv":["HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"]}},"retargetLine":null,"config":null,"folder":{"CLAUDE.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"claude · retarget onto a grid, started by an agent": {"result":{"ok":true,"overrides":{"env":{"ANTHROPIC_BASE_URL":"https://grid.example/g/home/relay","ANTHROPIC_AUTH_TOKEN":"grid-key-1","ANTHROPIC_MODEL":"qwen3-coder","CLAUDE_CODE_MAX_CONTEXT_TOKENS":"131072","GRID_API_KEY":"grid-key-1"},"extraArgs":["--disallowedTools=WebSearch,WebFetch","--mcp-config","{\"mcpServers\":{\"harness\":{\"type\":\"http\",\"url\":\"https://control.example/v1/grid/web-mcp/\",\"headers\":{\"Authorization\":\"Bearer ${GRID_API_KEY}\"}}}}","--allowedTools=mcp__harness__web_search,mcp__harness__web_read","--system-prompt-snapshot","off","--settings","{\"statusLine\":{\"type\":\"command\",\"command\":\"'<daemon-node>' '<root>/data/statusline/statusline.mjs' --data '<root>/data'\"}}","--append-system-prompt","Web tools in this session come from the `harness` MCP server only: `mcp__harness__web_search` searches the web and `mcp__harness__web_read` reads pages. The built-in `WebSearch` and `WebFetch` tools are not available in this session, even where earlier turns of this conversation used them — do not call them; call the `harness` tools instead."],"clearEnv":["ANTHROPIC_API_KEY","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","GRID_MCP_AUTHORIZATION","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}}},"retargetLine":"[grid] claude -> Home (net-home) · qwen3-coder · web search on","config":null,"folder":{"CLAUDE.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"claude · fork of one an agent started": {"result":{"ok":true,"overrides":{"env":{},"extraArgs":["--settings","{\"statusLine\":{\"type\":\"command\",\"command\":\"'<daemon-node>' '<root>/data/statusline/statusline.mjs' --data '<root>/data'\"}}"],"clearEnv":["HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"]}},"retargetLine":null,"config":null,"folder":{"CLAUDE.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"codex · restart, started by an agent": {"result":{"ok":true,"overrides":{"env":{},"extraArgs":["-c","model_provider=\"openai\""],"clearEnv":["HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"]}},"retargetLine":null,"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"codex · retarget onto a grid, started by an agent": {"result":{"ok":true,"overrides":{"env":{"GRID_API_KEY":"grid-key-1","GRID_MCP_AUTHORIZATION":"Bearer grid-key-1"},"extraArgs":["-c","model_provider=\"grid\"","-c","model_providers.grid.name=\"Autonomous Grid\"","-c","model_providers.grid.base_url=\"https://grid.example/g/home/relay/v1\"","-c","model_providers.grid.env_key=\"GRID_API_KEY\"","-c","model_providers.grid.wire_api=\"responses\"","-c","model_providers.grid.supports_websockets=false","-c","web_search=\"disabled\"","-c","mcp_servers.harness.url=\"https://control.example/v1/grid/web-mcp/\"","-c","mcp_servers.harness.env_http_headers.Authorization=\"GRID_MCP_AUTHORIZATION\"","-m","qwen3-coder","-c","model_context_window=131072","-c","model_auto_compact_token_limit=117964"],"clearEnv":["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_BASE_URL","ANTHROPIC_MODEL","OPENAI_API_KEY","OPENAI_BASE_URL","XAI_API_KEY","GROK_MODELS_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_PROVIDER_BASE_URL","COPILOT_MODEL","HERMES_INFERENCE_MODEL","HERMES_MANAGED_DIR","GROK_HOME","HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}}},"retargetLine":"[grid] codex -> Home (net-home) · qwen3-coder · web search on","config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"codex · fork of one an agent started": {"result":{"ok":true,"overrides":{"env":{},"extraArgs":["-c","model_provider=\"openai\""],"clearEnv":["HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"]}},"retargetLine":null,"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]}
},
"other": {
"validate · claude · grid": {"ok":true},
"validate · claude · own login": {"ok":true},
"leaving a grid · claude": ["ANTHROPIC_BASE_URL","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_MODEL","CLAUDE_CODE_MAX_CONTEXT_TOKENS","GRID_API_KEY"],
"validate · codex · grid": {"ok":true},
"validate · codex · own login": {"ok":true},
"leaving a grid · codex": ["GRID_API_KEY","GRID_MCP_AUTHORIZATION"],
"validate · cursor · grid": {"ok":false,"error":"GRID_ENGINE_UNSUPPORTED","detail":"cursor cannot run on grid Home: Cursor Agent can only be re-pointed at another Cursor API (CURSOR_API_ENDPOINT), not at an OpenAI-compatible relay. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."},
"validate · cursor · own login": {"ok":true},
"leaving a grid · cursor": [],
"validate · opencode · grid": {"ok":true},
"validate · opencode · own login": {"ok":true},
"leaving a grid · opencode": ["GRID_API_KEY","OPENCODE_CONFIG"],
"validate · pi · grid": {"ok":true},
"validate · pi · own login": {"ok":true},
"leaving a grid · pi": ["GRID_API_KEY"],
"validate · omp · grid": {"ok":false,"error":"GRID_ENGINE_UNSUPPORTED","detail":"omp cannot run on grid Home: Harness has not yet verified how omp is pointed at another endpoint. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."},
"validate · omp · own login": {"ok":true},
"leaving a grid · omp": [],
"validate · hermes · grid": {"ok":true},
"validate · hermes · own login": {"ok":true},
"leaving a grid · hermes": ["OPENAI_BASE_URL","OPENAI_API_KEY","HERMES_INFERENCE_MODEL","GRID_API_KEY","HERMES_MANAGED_DIR"],
"validate · commandcode · grid": {"ok":false,"error":"GRID_ENGINE_UNSUPPORTED","detail":"commandcode cannot run on grid Home: Command Code documents no way to change its endpoint. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."},
"validate · commandcode · own login": {"ok":true},
"leaving a grid · commandcode": [],
"validate · devin · grid": {"ok":false,"error":"GRID_ENGINE_UNSUPPORTED","detail":"devin cannot run on grid Home: Devin runs on its own hosted service and documents no endpoint override. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."},
"validate · devin · own login": {"ok":true},
"leaving a grid · devin": [],
"validate · muse · grid": {"ok":false,"error":"GRID_ENGINE_UNSUPPORTED","detail":"muse cannot run on grid Home: Muse Code documents no way to change its endpoint. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."},
"validate · muse · own login": {"ok":true},
"leaving a grid · muse": [],
"validate · amp · grid": {"ok":false,"error":"GRID_ENGINE_UNSUPPORTED","detail":"amp cannot run on grid Home: Amp documents no way to change where it sends inference. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."},
"validate · amp · own login": {"ok":true},
"leaving a grid · amp": [],
"validate · kilo · grid": {"ok":false,"error":"GRID_ENGINE_UNSUPPORTED","detail":"kilo cannot run on grid Home: the Kilo CLI has no OpenAI-compatible provider option yet (its own issues #5840, #6315). It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."},
"validate · kilo · own login": {"ok":true},
"leaving a grid · kilo": [],
"validate · grok · grid": {"ok":true},
"validate · grok · own login": {"ok":true},
"leaving a grid · grok": ["GROK_MODELS_BASE_URL","XAI_API_KEY","GRID_API_KEY","GROK_HOME"],
"validate · agy · grid": {"ok":false,"error":"GRID_ENGINE_UNSUPPORTED","detail":"agy cannot run on grid Home: Antigravity speaks the Gemini API, which this relay does not serve. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."},
"validate · agy · own login": {"ok":true},
"leaving a grid · agy": [],
"validate · copilot · grid": {"ok":true},
"validate · copilot · own login": {"ok":true},
"leaving a grid · copilot": ["COPILOT_PROVIDER_BASE_URL","COPILOT_PROVIDER_API_KEY","COPILOT_MODEL","GRID_API_KEY"],
"validate · terminal · grid": {"ok":false,"error":"GRID_ENGINE_UNSUPPORTED","detail":"terminal cannot run on grid Home: a terminal runs no engine to point at a grid — start one inside it and it will use its own login. It would have run on its own login instead. Engines that can: claude, codex, opencode, hermes, grok, pi, copilot."},
"validate · terminal · own login": {"ok":true},
"leaving a grid · terminal": [],
"validate · claude · grid · an old tmux": {"ok":false,"error":"TMUX_TOO_OLD_FOR_GRID","detail":"this machine's tmux is older than 3.2, which is the first version that can give a pane its own environment — so claude could not be pointed at grid Home."},
"validate · opencode · grid · another machine": {"ok":true},
"grid-capable engines": ["claude","codex","opencode","hermes","grok","pi","copilot"],
"API target · a listed model": {"networkId":"api:router","networkName":"Router","baseUrl":"http://127.0.0.1:<port>/v1","apiKey":"fresh-key","model":"vendor/model-a","contextWindow":200000},
"API target · a model without details": {"networkId":"api:router","networkName":"Router","baseUrl":"http://127.0.0.1:<port>/v1","apiKey":"fresh-key","model":"vendor/model-b"},
"API target · a window too small": {"threw":"Router does not list tiny for coding agents."},
"API target · a model without tools": {"threw":"Router does not list no-tools for coding agents."},
"API target · an unlisted model": {"threw":"Router does not list missing for coding agents."},
"API target · no model": {"threw":"Choose a model."},
"API target · an API with no Bearer key": {"threw":"Keyed does not take a Bearer key, so coding agents cannot run on it."},
"API target · a removed API": {"threw":"This API is not saved. Add it in Models → APIs."},
"API tools · claude": {"CLAUDE.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},
"API tools · codex": {"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},
"API tools · opencode": {"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},
"API tools · gemini": {"GEMINI.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},
"API tools · terminal": {},
"API tools · an existing file, twice": {"AGENTS.md":{"mode":"644","text":"# Ours\n\n<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}}
},
"linux": {
"create": {
"claude · grid": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w1","claude","--disallowedTools=WebSearch,WebFetch","--mcp-config","{\"mcpServers\":{\"harness\":{\"type\":\"http\",\"url\":\"https://control.example/v1/grid/web-mcp/\",\"headers\":{\"Authorization\":\"Bearer ${GRID_API_KEY}\"}}}}","--allowedTools=mcp__harness__web_search,mcp__harness__web_read","--system-prompt-snapshot","off","--settings","{\"statusLine\":{\"type\":\"command\",\"command\":\"'<daemon-node>' '<root>/data/statusline/statusline.mjs' --data '<root>/data'\"}}","--append-system-prompt","Web tools in this session come from the `harness` MCP server only: `mcp__harness__web_search` searches the web and `mcp__harness__web_read` reads pages. The built-in `WebSearch` and `WebFetch` tools are not available in this session, even where earlier turns of this conversation used them — do not call them; call the `harness` tools instead."],"script":"0a63f835ea505d44","env":{"ANTHROPIC_BASE_URL":"https://grid.example/g/home/relay","ANTHROPIC_AUTH_TOKEN":"grid-key-1","ANTHROPIC_MODEL":"qwen3-coder","CLAUDE_CODE_MAX_CONTEXT_TOKENS":"131072","GRID_API_KEY":"grid-key-1"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":"qwen3-coder"},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}},"config":null,"folder":{"CLAUDE.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] claude -> Home (net-home) · qwen3-coder · web search on"]},
"codex · grid": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w2","codex","-c","tui.fullscreen_transcript=false","-c","model_provider=\"grid\"","-c","model_providers.grid.name=\"Autonomous Grid\"","-c","model_providers.grid.base_url=\"https://grid.example/g/home/relay/v1\"","-c","model_providers.grid.env_key=\"GRID_API_KEY\"","-c","model_providers.grid.wire_api=\"responses\"","-c","model_providers.grid.supports_websockets=false","-c","web_search=\"disabled\"","-c","mcp_servers.harness.url=\"https://control.example/v1/grid/web-mcp/\"","-c","mcp_servers.harness.env_http_headers.Authorization=\"GRID_MCP_AUTHORIZATION\"","-m","qwen3-coder","-c","model_context_window=131072","-c","model_auto_compact_token_limit=117964"],"script":"e164792ba440fbaa","env":{"GRID_API_KEY":"grid-key-1","GRID_MCP_AUTHORIZATION":"Bearer grid-key-1"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":"qwen3-coder"},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}},"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] codex -> Home (net-home) · qwen3-coder · web search on"]},
"opencode · grid": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w4","opencode","--standalone"],"script":"0e61f976b4864c3a","env":{"GRID_API_KEY":"grid-key-1","OPENCODE_CONFIG":"<root>/data/grid-engine-config/<label>/opencode.json"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":"qwen3-coder"},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}},"config":{"<label>":{"dir":{"opencode.json":{"mode":"600","text":"{\n \"$schema\": \"https://opencode.ai/config.json\",\n \"model\": \"home/qwen3-coder\",\n \"provider\": {\n \"home\": {\n \"npm\": \"@ai-sdk/openai-compatible\",\n \"name\": \"Home\",\n \"options\": {\n \"baseURL\": \"https://grid.example/g/home/relay/v1\",\n \"apiKey\": \"{env:GRID_API_KEY}\"\n },\n \"models\": {\n \"qwen3-coder\": {\n \"name\": \"qwen3-coder\",\n \"limit\": {\n \"context\": 131072,\n \"output\": 32000\n }\n }\n }\n }\n },\n \"mcp\": {\n \"harness\": {\n \"type\": \"remote\",\n \"url\": \"https://control.example/v1/grid/web-mcp/\",\n \"enabled\": true,\n \"headers\": {\n \"Authorization\": \"Bearer {env:GRID_API_KEY}\"\n }\n }\n }\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] opencode -> Home (net-home) · qwen3-coder · web search on"]},
"pi · grid": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w5","pi","--model","grid/qwen3-coder","-e","<root>/data/grid-engine-config/<label>/grid-provider.ts"],"script":"877330e91fe6a1d3","env":{"GRID_API_KEY":"grid-key-1"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":"qwen3-coder"},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"unsupported"}},"config":{"<label>":{"dir":{"grid-provider.ts":{"mode":"600","text":"// Written by the machine adapter for this agent's grid launch. Adds the grid as a provider.\nexport default function (pi) {\n pi.registerProvider(\"grid\", {\n \"name\": \"Autonomous Grid\",\n \"baseUrl\": \"https://grid.example/g/home/relay/v1\",\n \"api\": \"openai-completions\",\n \"apiKey\": \"$GRID_API_KEY\",\n \"models\": [\n {\n \"id\": \"qwen3-coder\",\n \"name\": \"qwen3-coder\",\n \"reasoning\": false,\n \"input\": [\n \"text\"\n ],\n \"contextWindow\": 131072,\n \"maxTokens\": 8192,\n \"cost\": {\n \"input\": 0,\n \"output\": 0,\n \"cacheRead\": 0,\n \"cacheWrite\": 0\n }\n }\n ]\n })\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] pi -> Home (net-home) · qwen3-coder · web search unsupported (Pi has no MCP client)"]},
"hermes · grid": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w7","hermes","-m","qwen3-coder"],"script":"29aff01c2e7af91b","env":{"OPENAI_BASE_URL":"https://grid.example/g/home/relay/v1","OPENAI_API_KEY":"grid-key-1","HERMES_INFERENCE_MODEL":"qwen3-coder","GRID_API_KEY":"grid-key-1","HERMES_MANAGED_DIR":"<root>/data/grid-engine-config/<label>"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":"qwen3-coder"},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}},"config":{"<label>":{"dir":{"config.yaml":{"mode":"600","text":"{\n \"mcp_servers\": {\n \"harness\": {\n \"url\": \"https://control.example/v1/grid/web-mcp/\",\n \"headers\": {\n \"Authorization\": \"Bearer ${GRID_API_KEY}\"\n }\n }\n }\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] hermes -> Home (net-home) · qwen3-coder · web search on"]},
"grok · grid": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w13","grok","-m","qwen3-coder"],"script":"130c1753c9d0827e","env":{"GROK_MODELS_BASE_URL":"https://grid.example/g/home/relay/v1","XAI_API_KEY":"grid-key-1","GRID_API_KEY":"grid-key-1","GROK_HOME":"<root>/data/grid-engine-config/<label>"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":"qwen3-coder"},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}},"config":{"<label>":{"dir":{"config.toml":{"mode":"600","text":"[model.\"qwen3-coder\"]\nmodel = \"qwen3-coder\"\nbase_url = \"https://grid.example/g/home/relay/v1\"\nenv_key = \"GRID_API_KEY\"\n\n[mcp_servers.harness]\nurl = \"https://control.example/v1/grid/web-mcp/\"\nheaders = { Authorization = \"Bearer ${GRID_API_KEY}\" }\n"},"sessions":{"link":"<root>/home/.grok/sessions"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] grok -> Home (net-home) · qwen3-coder · web search on"]},
"copilot · grid": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w15","copilot","--additional-mcp-config","{\"mcpServers\":{\"harness\":{\"type\":\"http\",\"url\":\"https://control.example/v1/grid/web-mcp/\",\"headers\":{\"Authorization\":\"Bearer ${GRID_API_KEY}\"}}}}"],"script":"c8861a6bd8c5794e","env":{"COPILOT_PROVIDER_BASE_URL":"https://grid.example/g/home/relay/v1","COPILOT_PROVIDER_API_KEY":"grid-key-1","COPILOT_MODEL":"qwen3-coder","GRID_API_KEY":"grid-key-1"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":"qwen3-coder"},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}},"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] copilot -> Home (net-home) · qwen3-coder · web search on"]},
"claude · grid without a model, web tools or window": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w17","claude","--disallowedTools=WebSearch,WebFetch","--system-prompt-snapshot","off","--settings","{\"statusLine\":{\"type\":\"command\",\"command\":\"'<daemon-node>' '<root>/data/statusline/statusline.mjs' --data '<root>/data'\"}}","--append-system-prompt","This session has no web tools. The built-in `WebSearch` and `WebFetch` tools are not available in this session, even where earlier turns of this conversation used them — do not call them; tell the user the web cannot be searched or read from here instead."],"script":"3b6bb958bd68f90f","env":{"ANTHROPIC_BASE_URL":"https://grid.example/g/home/relay","ANTHROPIC_AUTH_TOKEN":"grid-key-2"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":null},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-2"},"webSearch":"unavailable"}},"config":null,"folder":{"CLAUDE.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] claude -> Home (net-home) · model chosen by the engine · web search unavailable"]},
"claude · grid · another machine": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w18","claude","--disallowedTools=WebSearch,WebFetch","--mcp-config","{\"mcpServers\":{\"harness\":{\"type\":\"http\",\"url\":\"https://control.example/v1/grid/web-mcp/\",\"headers\":{\"Authorization\":\"Bearer ${GRID_API_KEY}\"}}}}","--allowedTools=mcp__harness__web_search,mcp__harness__web_read","--system-prompt-snapshot","off","--settings","{\"statusLine\":{\"type\":\"command\",\"command\":\"'<daemon-node>' '<root>/data/statusline/statusline.mjs' --data '<root>/data'\"}}","--append-system-prompt","Web tools in this session come from the `harness` MCP server only: `mcp__harness__web_search` searches the web and `mcp__harness__web_read` reads pages. The built-in `WebSearch` and `WebFetch` tools are not available in this session, even where earlier turns of this conversation used them — do not call them; call the `harness` tools instead."],"script":"0a63f835ea505d44","env":{"ANTHROPIC_BASE_URL":"https://grid.example/g/home/relay","ANTHROPIC_AUTH_TOKEN":"grid-key-1","ANTHROPIC_MODEL":"qwen3-coder","CLAUDE_CODE_MAX_CONTEXT_TOKENS":"131072","GRID_API_KEY":"grid-key-1"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":"qwen3-coder"},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}},"config":null,"folder":{"CLAUDE.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] claude -> Home (net-home) · qwen3-coder · web search on"]},
"claude · saved API": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w19","claude","--disallowedTools=WebSearch,WebFetch","--system-prompt-snapshot","off","--settings","{\"statusLine\":{\"type\":\"command\",\"command\":\"'<daemon-node>' '<root>/data/statusline/statusline.mjs' --data '<root>/data'\"}}","--append-system-prompt","This session has no web tools. The built-in `WebSearch` and `WebFetch` tools are not available in this session, even where earlier turns of this conversation used them — do not call them; tell the user the web cannot be searched or read from here instead."],"script":"d91e8779a55df4f5","env":{"ANTHROPIC_BASE_URL":"http://127.0.0.1:<port>","ANTHROPIC_AUTH_TOKEN":"stale-key","ANTHROPIC_MODEL":"vendor/model-a","CLAUDE_CODE_MAX_CONTEXT_TOKENS":"200000"},"grid":{"baseUrl":"http://127.0.0.1:<port>/v1","model":"vendor/model-a"},"gridLaunchRecord":{"override":{"networkId":"api:router","networkName":"Router","baseUrl":"http://127.0.0.1:<port>/v1","apiKey":"stale-key","model":"vendor/model-a","contextWindow":200000},"webSearch":"unavailable"}},"config":null,"folder":{"CLAUDE.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] claude -> Router (api:router) · vendor/model-a · web search unavailable"]},
"codex · grid without a model, web tools or window": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w20","codex","-c","tui.fullscreen_transcript=false","-c","model_provider=\"grid\"","-c","model_providers.grid.name=\"Autonomous Grid\"","-c","model_providers.grid.base_url=\"https://grid.example/g/home/relay/v1\"","-c","model_providers.grid.env_key=\"GRID_API_KEY\"","-c","model_providers.grid.wire_api=\"responses\"","-c","model_providers.grid.supports_websockets=false","-c","web_search=\"disabled\""],"script":"9998bfb79d9b8728","env":{"GRID_API_KEY":"grid-key-2"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":null},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-2"},"webSearch":"unavailable"}},"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] codex -> Home (net-home) · model chosen by the engine · web search unavailable"]},
"codex · grid · another machine": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w21","codex","-c","tui.fullscreen_transcript=false","-c","model_provider=\"grid\"","-c","model_providers.grid.name=\"Autonomous Grid\"","-c","model_providers.grid.base_url=\"https://grid.example/g/home/relay/v1\"","-c","model_providers.grid.env_key=\"GRID_API_KEY\"","-c","model_providers.grid.wire_api=\"responses\"","-c","model_providers.grid.supports_websockets=false","-c","web_search=\"disabled\"","-c","mcp_servers.harness.url=\"https://control.example/v1/grid/web-mcp/\"","-c","mcp_servers.harness.env_http_headers.Authorization=\"GRID_MCP_AUTHORIZATION\"","-m","qwen3-coder","-c","model_context_window=131072","-c","model_auto_compact_token_limit=117964"],"script":"e164792ba440fbaa","env":{"GRID_API_KEY":"grid-key-1","GRID_MCP_AUTHORIZATION":"Bearer grid-key-1"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":"qwen3-coder"},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}},"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] codex -> Home (net-home) · qwen3-coder · web search on"]},
"codex · saved API": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w22","codex","-c","tui.fullscreen_transcript=false","-c","model_provider=\"grid\"","-c","model_providers.grid.name=\"Autonomous Grid\"","-c","model_providers.grid.base_url=\"http://127.0.0.1:<port>/v1\"","-c","model_providers.grid.env_key=\"GRID_API_KEY\"","-c","model_providers.grid.wire_api=\"responses\"","-c","model_providers.grid.supports_websockets=false","-c","web_search=\"disabled\"","-m","vendor/model-a","-c","model_context_window=200000","-c","model_auto_compact_token_limit=180000"],"script":"9998bfb79d9b8728","env":{"GRID_API_KEY":"stale-key"},"grid":{"baseUrl":"http://127.0.0.1:<port>/v1","model":"vendor/model-a"},"gridLaunchRecord":{"override":{"networkId":"api:router","networkName":"Router","baseUrl":"http://127.0.0.1:<port>/v1","apiKey":"stale-key","model":"vendor/model-a","contextWindow":200000},"webSearch":"unavailable"}},"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] codex -> Router (api:router) · vendor/model-a · web search unavailable"]},
"opencode · grid without a model, web tools or window": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w23","opencode","--standalone"],"script":"0e61f976b4864c3a","env":{"GRID_API_KEY":"grid-key-2","OPENCODE_CONFIG":"<root>/data/grid-engine-config/<label>/opencode.json"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":null},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-2"},"webSearch":"unavailable"}},"config":{"<label>":{"dir":{"opencode.json":{"mode":"600","text":"{\n \"$schema\": \"https://opencode.ai/config.json\",\n \"model\": \"home/Auto\",\n \"provider\": {\n \"home\": {\n \"npm\": \"@ai-sdk/openai-compatible\",\n \"name\": \"Home\",\n \"options\": {\n \"baseURL\": \"https://grid.example/g/home/relay/v1\",\n \"apiKey\": \"{env:GRID_API_KEY}\"\n },\n \"models\": {\n \"Auto\": {\n \"name\": \"Auto\"\n }\n }\n }\n }\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] opencode -> Home (net-home) · model chosen by the engine · web search unavailable"]},
"opencode · grid · another machine": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w24","opencode","-m","home/qwen3-coder"],"script":"0e61f976b4864c3a","env":{"GRID_API_KEY":"grid-key-1","OPENCODE_CONFIG":"<root>/data/grid-engine-config/<label>/opencode.json"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":"qwen3-coder"},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}},"config":{"<label>":{"dir":{"opencode.json":{"mode":"600","text":"{\n \"$schema\": \"https://opencode.ai/config.json\",\n \"provider\": {\n \"home\": {\n \"npm\": \"@ai-sdk/openai-compatible\",\n \"name\": \"Home\",\n \"options\": {\n \"baseURL\": \"https://grid.example/g/home/relay/v1\",\n \"apiKey\": \"{env:GRID_API_KEY}\"\n },\n \"models\": {\n \"qwen3-coder\": {\n \"name\": \"qwen3-coder\",\n \"limit\": {\n \"context\": 131072,\n \"output\": 32000\n }\n }\n }\n }\n },\n \"mcp\": {\n \"harness\": {\n \"type\": \"remote\",\n \"url\": \"https://control.example/v1/grid/web-mcp/\",\n \"enabled\": true,\n \"headers\": {\n \"Authorization\": \"Bearer {env:GRID_API_KEY}\"\n }\n }\n }\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] opencode -> Home (net-home) · qwen3-coder · web search on"]},
"opencode · saved API": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w25","opencode","--standalone"],"script":"0e61f976b4864c3a","env":{"GRID_API_KEY":"stale-key","OPENCODE_CONFIG":"<root>/data/grid-engine-config/<label>/opencode.json"},"grid":{"baseUrl":"http://127.0.0.1:<port>/v1","model":"vendor/model-a"},"gridLaunchRecord":{"override":{"networkId":"api:router","networkName":"Router","baseUrl":"http://127.0.0.1:<port>/v1","apiKey":"stale-key","model":"vendor/model-a","contextWindow":200000},"webSearch":"unavailable"}},"config":{"<label>":{"dir":{"opencode.json":{"mode":"600","text":"{\n \"$schema\": \"https://opencode.ai/config.json\",\n \"model\": \"api-router/vendor/model-a\",\n \"provider\": {\n \"api-router\": {\n \"npm\": \"@ai-sdk/openai-compatible\",\n \"name\": \"Router\",\n \"options\": {\n \"baseURL\": \"http://127.0.0.1:<port>/v1\",\n \"apiKey\": \"{env:GRID_API_KEY}\"\n },\n \"models\": {\n \"vendor/model-a\": {\n \"name\": \"vendor/model-a\",\n \"limit\": {\n \"context\": 200000,\n \"output\": 32000\n }\n }\n }\n }\n }\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] opencode -> Router (api:router) · vendor/model-a · web search unavailable"]},
"pi · grid without a model, web tools or window": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w26","pi","--model","grid/Auto","-e","<root>/data/grid-engine-config/<label>/grid-provider.ts"],"script":"877330e91fe6a1d3","env":{"GRID_API_KEY":"grid-key-2"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":null},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-2"},"webSearch":"unsupported"}},"config":{"<label>":{"dir":{"grid-provider.ts":{"mode":"600","text":"// Written by the machine adapter for this agent's grid launch. Adds the grid as a provider.\nexport default function (pi) {\n pi.registerProvider(\"grid\", {\n \"name\": \"Autonomous Grid\",\n \"baseUrl\": \"https://grid.example/g/home/relay/v1\",\n \"api\": \"openai-completions\",\n \"apiKey\": \"$GRID_API_KEY\",\n \"models\": [\n {\n \"id\": \"Auto\",\n \"name\": \"Auto\",\n \"reasoning\": false,\n \"input\": [\n \"text\"\n ],\n \"contextWindow\": 200000,\n \"maxTokens\": 8192,\n \"cost\": {\n \"input\": 0,\n \"output\": 0,\n \"cacheRead\": 0,\n \"cacheWrite\": 0\n }\n }\n ]\n })\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] pi -> Home (net-home) · model chosen by the engine · web search unsupported (Pi has no MCP client)"]},
"pi · grid · another machine": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w27","pi","--model","grid/qwen3-coder","-e","<root>/data/grid-engine-config/<label>/grid-provider.ts"],"script":"877330e91fe6a1d3","env":{"GRID_API_KEY":"grid-key-1"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":"qwen3-coder"},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"unsupported"}},"config":{"<label>":{"dir":{"grid-provider.ts":{"mode":"600","text":"// Written by the machine adapter for this agent's grid launch. Adds the grid as a provider.\nexport default function (pi) {\n pi.registerProvider(\"grid\", {\n \"name\": \"Autonomous Grid\",\n \"baseUrl\": \"https://grid.example/g/home/relay/v1\",\n \"api\": \"openai-completions\",\n \"apiKey\": \"$GRID_API_KEY\",\n \"models\": [\n {\n \"id\": \"qwen3-coder\",\n \"name\": \"qwen3-coder\",\n \"reasoning\": false,\n \"input\": [\n \"text\"\n ],\n \"contextWindow\": 131072,\n \"maxTokens\": 8192,\n \"cost\": {\n \"input\": 0,\n \"output\": 0,\n \"cacheRead\": 0,\n \"cacheWrite\": 0\n }\n }\n ]\n })\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] pi -> Home (net-home) · qwen3-coder · web search unsupported (Pi has no MCP client)"]},
"pi · saved API": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w28","pi","--model","grid/vendor/model-a","-e","<root>/data/grid-engine-config/<label>/grid-provider.ts"],"script":"877330e91fe6a1d3","env":{"GRID_API_KEY":"stale-key"},"grid":{"baseUrl":"http://127.0.0.1:<port>/v1","model":"vendor/model-a"},"gridLaunchRecord":{"override":{"networkId":"api:router","networkName":"Router","baseUrl":"http://127.0.0.1:<port>/v1","apiKey":"stale-key","model":"vendor/model-a","contextWindow":200000},"webSearch":"unsupported"}},"config":{"<label>":{"dir":{"grid-provider.ts":{"mode":"600","text":"// Written by the machine adapter for this agent's grid launch. Adds the grid as a provider.\nexport default function (pi) {\n pi.registerProvider(\"grid\", {\n \"name\": \"Autonomous Grid\",\n \"baseUrl\": \"http://127.0.0.1:<port>/v1\",\n \"api\": \"openai-completions\",\n \"apiKey\": \"$GRID_API_KEY\",\n \"models\": [\n {\n \"id\": \"vendor/model-a\",\n \"name\": \"vendor/model-a\",\n \"reasoning\": false,\n \"input\": [\n \"text\"\n ],\n \"contextWindow\": 200000,\n \"maxTokens\": 8192,\n \"cost\": {\n \"input\": 0,\n \"output\": 0,\n \"cacheRead\": 0,\n \"cacheWrite\": 0\n }\n }\n ]\n })\n}\n"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] pi -> Router (api:router) · vendor/model-a · web search unsupported (Pi has no MCP client)"]},
"hermes · grid without a model, web tools or window": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w29","hermes"],"script":"62954db3d9e3d96e","env":{"OPENAI_BASE_URL":"https://grid.example/g/home/relay/v1","OPENAI_API_KEY":"grid-key-2"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":null},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-2"},"webSearch":"unavailable"}},"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] hermes -> Home (net-home) · model chosen by the engine · web search unavailable"]},
"hermes · grid · another machine": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w30","hermes","-m","qwen3-coder"],"script":"8ec6e56fc3c51058","env":{"OPENAI_BASE_URL":"https://grid.example/g/home/relay/v1","OPENAI_API_KEY":"grid-key-1","HERMES_INFERENCE_MODEL":"qwen3-coder"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":"qwen3-coder"},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"unsupported"}},"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] hermes -> Home (net-home) · qwen3-coder · web search unsupported (/etc/hermes pins this machine's Hermes settings, and the overlay carrying the web tools would replace it)"]},
"hermes · saved API": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w31","hermes","-m","vendor/model-a"],"script":"8ec6e56fc3c51058","env":{"OPENAI_BASE_URL":"http://127.0.0.1:<port>/v1","OPENAI_API_KEY":"stale-key","HERMES_INFERENCE_MODEL":"vendor/model-a"},"grid":{"baseUrl":"http://127.0.0.1:<port>/v1","model":"vendor/model-a"},"gridLaunchRecord":{"override":{"networkId":"api:router","networkName":"Router","baseUrl":"http://127.0.0.1:<port>/v1","apiKey":"stale-key","model":"vendor/model-a","contextWindow":200000},"webSearch":"unavailable"}},"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] hermes -> Router (api:router) · vendor/model-a · web search unavailable"]},
"grok · grid without a model, web tools or window": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w32","grok","-m","Auto"],"script":"130c1753c9d0827e","env":{"GROK_MODELS_BASE_URL":"https://grid.example/g/home/relay/v1","XAI_API_KEY":"grid-key-2","GRID_API_KEY":"grid-key-2","GROK_HOME":"<root>/data/grid-engine-config/<label>"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":null},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-2"},"webSearch":"unavailable"}},"config":{"<label>":{"dir":{"config.toml":{"mode":"600","text":"[model.\"Auto\"]\nmodel = \"Auto\"\nbase_url = \"https://grid.example/g/home/relay/v1\"\nenv_key = \"GRID_API_KEY\"\n"},"sessions":{"link":"<root>/home/.grok/sessions"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] grok -> Home (net-home) · model chosen by the engine · web search unavailable"]},
"grok · grid · another machine": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w33","grok","-m","qwen3-coder"],"script":"130c1753c9d0827e","env":{"GROK_MODELS_BASE_URL":"https://grid.example/g/home/relay/v1","XAI_API_KEY":"grid-key-1","GRID_API_KEY":"grid-key-1","GROK_HOME":"<root>/data/grid-engine-config/<label>"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":"qwen3-coder"},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}},"config":{"<label>":{"dir":{"config.toml":{"mode":"600","text":"[model.\"qwen3-coder\"]\nmodel = \"qwen3-coder\"\nbase_url = \"https://grid.example/g/home/relay/v1\"\nenv_key = \"GRID_API_KEY\"\n\n[mcp_servers.harness]\nurl = \"https://control.example/v1/grid/web-mcp/\"\nheaders = { Authorization = \"Bearer ${GRID_API_KEY}\" }\n"},"sessions":{"link":"<root>/home/.grok/sessions"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] grok -> Home (net-home) · qwen3-coder · web search on"]},
"grok · saved API": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w34","grok","-m","vendor/model-a"],"script":"130c1753c9d0827e","env":{"GROK_MODELS_BASE_URL":"http://127.0.0.1:<port>/v1","XAI_API_KEY":"stale-key","GRID_API_KEY":"stale-key","GROK_HOME":"<root>/data/grid-engine-config/<label>"},"grid":{"baseUrl":"http://127.0.0.1:<port>/v1","model":"vendor/model-a"},"gridLaunchRecord":{"override":{"networkId":"api:router","networkName":"Router","baseUrl":"http://127.0.0.1:<port>/v1","apiKey":"stale-key","model":"vendor/model-a","contextWindow":200000},"webSearch":"unavailable"}},"config":{"<label>":{"dir":{"config.toml":{"mode":"600","text":"[model.\"vendor/model-a\"]\nmodel = \"vendor/model-a\"\nbase_url = \"http://127.0.0.1:<port>/v1\"\nenv_key = \"GRID_API_KEY\"\n"},"sessions":{"link":"<root>/home/.grok/sessions"}}}},"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] grok -> Router (api:router) · vendor/model-a · web search unavailable"]},
"copilot · grid · another machine": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w36","copilot","--additional-mcp-config","{\"mcpServers\":{\"harness\":{\"type\":\"http\",\"url\":\"https://control.example/v1/grid/web-mcp/\",\"headers\":{\"Authorization\":\"Bearer ${GRID_API_KEY}\"}}}}"],"script":"c8861a6bd8c5794e","env":{"COPILOT_PROVIDER_BASE_URL":"https://grid.example/g/home/relay/v1","COPILOT_PROVIDER_API_KEY":"grid-key-1","COPILOT_MODEL":"qwen3-coder","GRID_API_KEY":"grid-key-1"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":"qwen3-coder"},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"}},"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] copilot -> Home (net-home) · qwen3-coder · web search on"]},
"copilot · saved API": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w37","copilot"],"script":"fe439d26e384405c","env":{"COPILOT_PROVIDER_BASE_URL":"http://127.0.0.1:<port>/v1","COPILOT_PROVIDER_API_KEY":"stale-key","COPILOT_MODEL":"vendor/model-a"},"grid":{"baseUrl":"http://127.0.0.1:<port>/v1","model":"vendor/model-a"},"gridLaunchRecord":{"override":{"networkId":"api:router","networkName":"Router","baseUrl":"http://127.0.0.1:<port>/v1","apiKey":"stale-key","model":"vendor/model-a","contextWindow":200000},"webSearch":"unavailable"}},"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] copilot -> Router (api:router) · vendor/model-a · web search unavailable"]},
"claude · own login": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w39","claude","--settings","{\"statusLine\":{\"type\":\"command\",\"command\":\"'<daemon-node>' '<root>/data/statusline/statusline.mjs' --data '<root>/data'\"}}"],"script":"c262973055c652a3","env":{},"grid":null,"gridLaunchRecord":null},"config":null,"folder":{"CLAUDE.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"codex · own login": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w40","codex","-c","tui.fullscreen_transcript=false"],"script":"e0dc021c3a3e4bbc","env":{},"grid":null,"gridLaunchRecord":null},"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"claude · own login · started by an agent": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w41","claude","--settings","{\"statusLine\":{\"type\":\"command\",\"command\":\"'<daemon-node>' '<root>/data/statusline/statusline.mjs' --data '<root>/data'\"}}"],"script":"c262973055c652a3","env":{},"grid":null,"gridLaunchRecord":null,"startedBy":"agent"},"config":null,"folder":{"CLAUDE.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"codex · own login · started by an agent": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w42","codex","-c","tui.fullscreen_transcript=false"],"script":"e0dc021c3a3e4bbc","env":{},"grid":null,"gridLaunchRecord":null,"startedBy":"agent"},"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"opencode · own login · started by an agent": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w43","opencode"],"script":"78f26a634455c1a7","env":{"OPENCODE_CONFIG_CONTENT":"{\"permission\":\"ask\",\"model\":\"opencode/muse-spark-1.3-contributor-free\",\"small_model\":\"opencode/muse-spark-1.3-contributor-free\",\"provider\":{\"opencode\":{\"models\":{\"muse-spark-1.3-contributor-free\":{\"options\":{\"reasoningEffort\":\"xhigh\"}}}}},\"agent\":{\"build\":{\"model\":\"opencode/muse-spark-1.3-contributor-free\",\"variant\":\"xhigh\"},\"plan\":{\"model\":\"opencode/muse-spark-1.3-contributor-free\",\"variant\":\"xhigh\"}}}"},"grid":null,"gridLaunchRecord":null,"startedBy":"agent"},"config":null,"folder":{"AGENTS.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":[]},
"claude · grid · started by an agent": {"result":{"ok":false,"error":"RECORDED","detail":"the pane is not opened by this spec"},"pane":{"argv":["/usr/bin/env","DISABLE_AUTO_UPDATE=true","/bin/zsh","-lic",". '<root>/data/launch/<script>.sh'","harness-engine","<root>/work/w44","claude","--disallowedTools=WebSearch,WebFetch","--mcp-config","{\"mcpServers\":{\"harness\":{\"type\":\"http\",\"url\":\"https://control.example/v1/grid/web-mcp/\",\"headers\":{\"Authorization\":\"Bearer ${GRID_API_KEY}\"}}}}","--allowedTools=mcp__harness__web_search,mcp__harness__web_read","--system-prompt-snapshot","off","--settings","{\"statusLine\":{\"type\":\"command\",\"command\":\"'<daemon-node>' '<root>/data/statusline/statusline.mjs' --data '<root>/data'\"}}","--append-system-prompt","Web tools in this session come from the `harness` MCP server only: `mcp__harness__web_search` searches the web and `mcp__harness__web_read` reads pages. The built-in `WebSearch` and `WebFetch` tools are not available in this session, even where earlier turns of this conversation used them — do not call them; call the `harness` tools instead."],"script":"0a63f835ea505d44","env":{"ANTHROPIC_BASE_URL":"https://grid.example/g/home/relay","ANTHROPIC_AUTH_TOKEN":"grid-key-1","ANTHROPIC_MODEL":"qwen3-coder","CLAUDE_CODE_MAX_CONTEXT_TOKENS":"131072","GRID_API_KEY":"grid-key-1"},"grid":{"baseUrl":"https://grid.example/g/home/relay/v1","model":"qwen3-coder"},"gridLaunchRecord":{"override":{"networkId":"net-home","networkName":"Home","baseUrl":"https://grid.example/g/home/relay/v1","apiKey":"grid-key-1","model":"qwen3-coder","mcpUrl":"https://control.example/v1/grid/web-mcp/","contextWindow":131072},"webSearch":"on"},"startedBy":"agent"},"config":null,"folder":{"CLAUDE.md":{"mode":"644","text":"<!-- harness:apis -->\n## Saved APIs\n\nThe user can save API connections in Harness → Models → APIs on this computer.\nRun `harness api list --json` to discover the current connections; the list contains no keys.\nUse `harness api request <id> <path> --method POST --data @request.json` for JSON APIs,\nor `harness api run <id> -- <command> [args]` for a provider SDK/tool. The latter supplies\nthe connection's documented key variable and HARNESS_API_BASE_URL to that tool only.\nUse these APIs when needed for the user's task. Never print, paste, or save API keys in a project.\nAdding an API does not change this harness's model or subscription.\n"}},"logged":["[grid] claude -> Home (net-home) · qwen3-coder · web search on"]}
},
"relaunch": {
},
"other": {
}
},
"scripts": {
"0a63f835ea505d44": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: claude exited ('\"$harness_status\"'). This pane is a shell now — run claude again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nunset ANTHROPIC_API_KEY OPENAI_API_KEY OPENAI_BASE_URL XAI_API_KEY GROK_MODELS_BASE_URL COPILOT_PROVIDER_API_KEY COPILOT_PROVIDER_BASE_URL COPILOT_MODEL HERMES_INFERENCE_MODEL GRID_MCP_AUTHORIZATION HERMES_MANAGED_DIR GROK_HOME HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: check the folder'\"'\"'s permissions for this user.' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'claude' '<root>/home/.local/bin/claude'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n npm_prefix=\"$(npm prefix -g 2>/dev/null)\" || true\n if [ -n \"$npm_prefix\" ]; then\n for bin in 'claude'; do\n if resolve_engine \"$npm_prefix/bin/$bin\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n fi\n return 1\n}\nif ! command -v node >/dev/null 2>&1 || ! command -v npm >/dev/null 2>&1; then\n for harness_node_bin in '<daemon-node-dir>'; do\n if [ -x \"$harness_node_bin/node\" ] && [ -x \"$harness_node_bin/npm\" ]; then\n PATH=\"$harness_node_bin${PATH:+:$PATH}\"\n export PATH\n hash -r 2>/dev/null || true\n break\n fi\n done\nfi\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Claude Code' 12 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: Claude Code is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'Claude Code is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-claude.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-claude-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'claude'\nif ! harness_find_engine \"$1\"; then\n if ! command -v npm >/dev/null 2>&1; then\n printf '%s\\n' 'harness: npm is unavailable and the managed Node.js/npm runtime could not be used.'\n exit 1\n fi\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ npm install -g @anthropic-ai/claude-code' ''\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: installing for this user in <root>/home/.local'\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @anthropic-ai/claude-code') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @anthropic-ai/claude-code'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Claude Code' 12 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'Claude Code could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'Claude Code was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_status=0\n\"$harness_engine_bin\" \"$@\" || harness_status=$?\nharness_resume\nharness_after",
"0e61f976b4864c3a": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: opencode exited ('\"$harness_status\"'). This pane is a shell now — run opencode again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nunset ANTHROPIC_API_KEY ANTHROPIC_AUTH_TOKEN ANTHROPIC_BASE_URL ANTHROPIC_MODEL OPENAI_API_KEY OPENAI_BASE_URL XAI_API_KEY GROK_MODELS_BASE_URL COPILOT_PROVIDER_API_KEY COPILOT_PROVIDER_BASE_URL COPILOT_MODEL HERMES_INFERENCE_MODEL GRID_MCP_AUTHORIZATION HERMES_MANAGED_DIR GROK_HOME HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: check the folder'\"'\"'s permissions for this user.' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'opencode' '<root>/home/.opencode/bin/opencode' '<root>/home/.local/bin/opencode'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n npm_prefix=\"$(npm prefix -g 2>/dev/null)\" || true\n if [ -n \"$npm_prefix\" ]; then\n for bin in 'opencode'; do\n if resolve_engine \"$npm_prefix/bin/$bin\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n fi\n return 1\n}\nif ! command -v node >/dev/null 2>&1 || ! command -v npm >/dev/null 2>&1; then\n for harness_node_bin in '<daemon-node-dir>'; do\n if [ -x \"$harness_node_bin/node\" ] && [ -x \"$harness_node_bin/npm\" ]; then\n PATH=\"$harness_node_bin${PATH:+:$PATH}\"\n export PATH\n hash -r 2>/dev/null || true\n break\n fi\n done\nfi\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'OpenCode' 10 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: OpenCode is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'OpenCode is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-opencode.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-opencode-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'opencode'\nif ! harness_find_engine \"$1\"; then\n if ! command -v npm >/dev/null 2>&1; then\n printf '%s\\n' 'harness: npm is unavailable and the managed Node.js/npm runtime could not be used.'\n exit 1\n fi\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ curl -fsSL https://opencode.ai/install | bash' ''\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: installing for this user in <root>/home/.local'\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'curl -fsSL https://opencode.ai/install | bash') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'curl -fsSL https://opencode.ai/install | bash'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'OpenCode' 10 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nharness_try_fallback=0\nif [ -z \"$harness_engine_bin\" ] && [ \"$harness_status\" -ne 130 ]; then\n hash -r 2>/dev/null || true\n if ! harness_find_engine \"$1\"; then\n harness_try_fallback=1\n harness_status=0\n [ \"$harness_quiet\" -eq 1 ] || printf '\\n%s\\n' 'harness: that install did not finish; trying the npm package instead' 'harness: $ npm install -g opencode-ai' ''\n [ \"$harness_quiet\" -eq 0 ] || printf '%s\\n' 'harness: that install did not finish; trying the npm package instead' >>\"$harness_install_log\"\n fi\nfi\n[ \"$harness_try_fallback\" -eq 0 ] || [ \"$harness_quiet\" -eq 1 ] || (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g opencode-ai') || harness_status=$?\n[ \"$harness_try_fallback\" -eq 0 ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g opencode-ai'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'OpenCode' 10 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'OpenCode could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'OpenCode was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_status=0\n\"$harness_engine_bin\" \"$@\" || harness_status=$?\nharness_resume\nharness_after",
"0e91c2ae7b92a265": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: hermes exited ('\"$harness_status\"'). This pane is a shell now — run hermes again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nunset ANTHROPIC_API_KEY ANTHROPIC_AUTH_TOKEN ANTHROPIC_BASE_URL ANTHROPIC_MODEL XAI_API_KEY GROK_MODELS_BASE_URL COPILOT_PROVIDER_API_KEY COPILOT_PROVIDER_BASE_URL COPILOT_MODEL HERMES_INFERENCE_MODEL GRID_API_KEY GRID_MCP_AUTHORIZATION HERMES_MANAGED_DIR GROK_HOME HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: on macOS, grant Full Disk Access to the app that started tmux (and to Harness), then run: tmux kill-server' 'harness: or pick a folder outside Documents, Desktop and Downloads (System Settings › Privacy & Security).' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'hermes' '<root>/home/.local/bin/hermes' '/usr/local/bin/hermes'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n return 1\n}\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Hermes' 15 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: Hermes is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'Hermes is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-hermes.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-hermes-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'hermes'\nif ! harness_find_engine \"$1\"; then\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash' ''\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (eval 'curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (eval 'curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Hermes' 15 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'Hermes could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'Hermes was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_status=0\n\"$harness_engine_bin\" \"$@\" || harness_status=$?\nharness_resume\nharness_after",
"130c1753c9d0827e": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: grok exited ('\"$harness_status\"'). This pane is a shell now — run grok again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nunset ANTHROPIC_API_KEY ANTHROPIC_AUTH_TOKEN ANTHROPIC_BASE_URL ANTHROPIC_MODEL OPENAI_API_KEY OPENAI_BASE_URL COPILOT_PROVIDER_API_KEY COPILOT_PROVIDER_BASE_URL COPILOT_MODEL HERMES_INFERENCE_MODEL GRID_MCP_AUTHORIZATION HERMES_MANAGED_DIR HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: check the folder'\"'\"'s permissions for this user.' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'grok' '<root>/home/.grok/bin/grok' '<root>/home/.local/bin/grok'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n return 1\n}\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Grok' 15 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: Grok is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'Grok is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-grok.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-grok-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'grok'\nif ! harness_find_engine \"$1\"; then\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ curl -fsSL https://x.ai/cli/install.sh | bash' ''\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (eval 'curl -fsSL https://x.ai/cli/install.sh | bash') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (eval 'curl -fsSL https://x.ai/cli/install.sh | bash'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Grok' 15 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'Grok could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'Grok was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_status=0\n\"$harness_engine_bin\" \"$@\" || harness_status=$?\nharness_resume\nharness_after",
"29aff01c2e7af91b": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: hermes exited ('\"$harness_status\"'). This pane is a shell now — run hermes again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nunset ANTHROPIC_API_KEY ANTHROPIC_AUTH_TOKEN ANTHROPIC_BASE_URL ANTHROPIC_MODEL XAI_API_KEY GROK_MODELS_BASE_URL COPILOT_PROVIDER_API_KEY COPILOT_PROVIDER_BASE_URL COPILOT_MODEL GRID_MCP_AUTHORIZATION GROK_HOME HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: check the folder'\"'\"'s permissions for this user.' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'hermes' '<root>/home/.local/bin/hermes' '/usr/local/bin/hermes'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n return 1\n}\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Hermes' 15 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: Hermes is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'Hermes is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-hermes.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-hermes-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'hermes'\nif ! harness_find_engine \"$1\"; then\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash' ''\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (eval 'curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (eval 'curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Hermes' 15 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'Hermes could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'Hermes was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_status=0\n\"$harness_engine_bin\" \"$@\" || harness_status=$?\nharness_resume\nharness_after",
"2b297e5899feaf9a": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: hermes exited ('\"$harness_status\"'). This pane is a shell now — run hermes again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nunset ANTHROPIC_API_KEY ANTHROPIC_AUTH_TOKEN ANTHROPIC_BASE_URL ANTHROPIC_MODEL XAI_API_KEY GROK_MODELS_BASE_URL COPILOT_PROVIDER_API_KEY COPILOT_PROVIDER_BASE_URL COPILOT_MODEL GRID_API_KEY GRID_MCP_AUTHORIZATION HERMES_MANAGED_DIR GROK_HOME HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: on macOS, grant Full Disk Access to the app that started tmux (and to Harness), then run: tmux kill-server' 'harness: or pick a folder outside Documents, Desktop and Downloads (System Settings › Privacy & Security).' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'hermes' '<root>/home/.local/bin/hermes' '/usr/local/bin/hermes'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n return 1\n}\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Hermes' 15 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: Hermes is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'Hermes is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-hermes.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-hermes-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'hermes'\nif ! harness_find_engine \"$1\"; then\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash' ''\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (eval 'curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (eval 'curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Hermes' 15 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'Hermes could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'Hermes was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_status=0\n\"$harness_engine_bin\" \"$@\" || harness_status=$?\nharness_resume\nharness_after",
"3476ee67c5f7d70d": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: claude exited ('\"$harness_status\"'). This pane is a shell now — run claude again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nunset ANTHROPIC_API_KEY OPENAI_API_KEY OPENAI_BASE_URL XAI_API_KEY GROK_MODELS_BASE_URL COPILOT_PROVIDER_API_KEY COPILOT_PROVIDER_BASE_URL COPILOT_MODEL HERMES_INFERENCE_MODEL GRID_API_KEY GRID_MCP_AUTHORIZATION HERMES_MANAGED_DIR GROK_HOME HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: on macOS, grant Full Disk Access to the app that started tmux (and to Harness), then run: tmux kill-server' 'harness: or pick a folder outside Documents, Desktop and Downloads (System Settings › Privacy & Security).' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'claude' '<root>/home/.local/bin/claude'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n npm_prefix=\"$(npm prefix -g 2>/dev/null)\" || true\n if [ -n \"$npm_prefix\" ]; then\n for bin in 'claude'; do\n if resolve_engine \"$npm_prefix/bin/$bin\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n fi\n return 1\n}\nif ! command -v node >/dev/null 2>&1 || ! command -v npm >/dev/null 2>&1; then\n for harness_node_bin in '<daemon-node-dir>'; do\n if [ -x \"$harness_node_bin/node\" ] && [ -x \"$harness_node_bin/npm\" ]; then\n PATH=\"$harness_node_bin${PATH:+:$PATH}\"\n export PATH\n hash -r 2>/dev/null || true\n break\n fi\n done\nfi\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Claude Code' 12 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: Claude Code is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'Claude Code is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-claude.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-claude-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'claude'\nif ! harness_find_engine \"$1\"; then\n if ! command -v npm >/dev/null 2>&1; then\n printf '%s\\n' 'harness: npm is unavailable and the managed Node.js/npm runtime could not be used.'\n exit 1\n fi\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ npm install -g @anthropic-ai/claude-code' ''\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: installing for this user in <root>/home/.local'\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @anthropic-ai/claude-code') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @anthropic-ai/claude-code'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Claude Code' 12 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'Claude Code could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'Claude Code was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_status=0\n\"$harness_engine_bin\" \"$@\" || harness_status=$?\nharness_resume\nharness_after",
"3b6bb958bd68f90f": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: claude exited ('\"$harness_status\"'). This pane is a shell now — run claude again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nunset ANTHROPIC_API_KEY ANTHROPIC_MODEL OPENAI_API_KEY OPENAI_BASE_URL XAI_API_KEY GROK_MODELS_BASE_URL COPILOT_PROVIDER_API_KEY COPILOT_PROVIDER_BASE_URL COPILOT_MODEL HERMES_INFERENCE_MODEL GRID_API_KEY GRID_MCP_AUTHORIZATION HERMES_MANAGED_DIR GROK_HOME HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: check the folder'\"'\"'s permissions for this user.' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'claude' '<root>/home/.local/bin/claude'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n npm_prefix=\"$(npm prefix -g 2>/dev/null)\" || true\n if [ -n \"$npm_prefix\" ]; then\n for bin in 'claude'; do\n if resolve_engine \"$npm_prefix/bin/$bin\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n fi\n return 1\n}\nif ! command -v node >/dev/null 2>&1 || ! command -v npm >/dev/null 2>&1; then\n for harness_node_bin in '<daemon-node-dir>'; do\n if [ -x \"$harness_node_bin/node\" ] && [ -x \"$harness_node_bin/npm\" ]; then\n PATH=\"$harness_node_bin${PATH:+:$PATH}\"\n export PATH\n hash -r 2>/dev/null || true\n break\n fi\n done\nfi\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Claude Code' 12 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: Claude Code is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'Claude Code is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-claude.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-claude-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'claude'\nif ! harness_find_engine \"$1\"; then\n if ! command -v npm >/dev/null 2>&1; then\n printf '%s\\n' 'harness: npm is unavailable and the managed Node.js/npm runtime could not be used.'\n exit 1\n fi\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ npm install -g @anthropic-ai/claude-code' ''\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: installing for this user in <root>/home/.local'\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @anthropic-ai/claude-code') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @anthropic-ai/claude-code'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Claude Code' 12 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'Claude Code could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'Claude Code was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_status=0\n\"$harness_engine_bin\" \"$@\" || harness_status=$?\nharness_resume\nharness_after",
"5659f7573b76a1f8": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: grok exited ('\"$harness_status\"'). This pane is a shell now — run grok again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nunset ANTHROPIC_API_KEY ANTHROPIC_AUTH_TOKEN ANTHROPIC_BASE_URL ANTHROPIC_MODEL OPENAI_API_KEY OPENAI_BASE_URL COPILOT_PROVIDER_API_KEY COPILOT_PROVIDER_BASE_URL COPILOT_MODEL HERMES_INFERENCE_MODEL GRID_MCP_AUTHORIZATION HERMES_MANAGED_DIR HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: on macOS, grant Full Disk Access to the app that started tmux (and to Harness), then run: tmux kill-server' 'harness: or pick a folder outside Documents, Desktop and Downloads (System Settings › Privacy & Security).' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'grok' '<root>/home/.grok/bin/grok' '<root>/home/.local/bin/grok'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n return 1\n}\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Grok' 15 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: Grok is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'Grok is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-grok.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-grok-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'grok'\nif ! harness_find_engine \"$1\"; then\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ curl -fsSL https://x.ai/cli/install.sh | bash' ''\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (eval 'curl -fsSL https://x.ai/cli/install.sh | bash') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (eval 'curl -fsSL https://x.ai/cli/install.sh | bash'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Grok' 15 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'Grok could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'Grok was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_status=0\n\"$harness_engine_bin\" \"$@\" || harness_status=$?\nharness_resume\nharness_after",
"5a6e02754f480f92": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: codex exited ('\"$harness_status\"'). This pane is a shell now — run codex again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nharness_codex_probe() {\n harness_codex_mode=0\n harness_codex_seen=$('<daemon-node>' -e 'const {execFileSync}=require('\"'\"'node:child_process'\"'\"');try { const h=execFileSync(process.argv[1],['\"'\"'--help'\"'\"'],{timeout:30000,maxBuffer:1048576,encoding:'\"'\"'utf8'\"'\"',stdio:['\"'\"'ignore'\"'\"','\"'\"'pipe'\"'\"','\"'\"'pipe'\"'\"']});process.exit(/--no-daemon(?:[^A-Za-z0-9-]|$)/.test(h)?0:64); } catch { process.exit(2); }' \"$1\") || harness_codex_mode=$?\n case \"$harness_codex_mode\" in\n 0) harness_codex_no_daemon=1 ;;\n 64) harness_codex_no_daemon= ;;\n *) printf '%s\\n' 'harness: could not verify Codex startup options. Please try opening this session again.' >&2; exit 1 ;;\n esac\n}\nharness_codex_check() {\n '<daemon-node>' -e 'const { execFileSync } = require('\"'\"'node:child_process'\"'\"');\nconst { createHash } = require('\"'\"'node:crypto'\"'\"');\nconst [mode, tmux, pane, baseline] = process.argv.slice(1);\ntry {\n if (!/^%\\d+$/.test(pane)) process.exit(1);\n const screen = execFileSync(tmux, ['\"'\"'capture-pane'\"'\"', '\"'\"'-p'\"'\"', '\"'\"'-J'\"'\"', '\"'\"'-S'\"'\"', '\"'\"'-10'\"'\"', '\"'\"'-t'\"'\"', pane], {\n timeout: 2000, maxBuffer: 1024 * 1024, encoding: '\"'\"'utf8'\"'\"', stdio: ['\"'\"'ignore'\"'\"', '\"'\"'pipe'\"'\"', '\"'\"'ignore'\"'\"'],\n });\n const last = screen.trimEnd().split('\"'\"'\\n'\"'\"').at(-1)?.trim() ?? '\"'\"''\"'\"';\n const hash = createHash('\"'\"'sha256'\"'\"').update(last).digest('\"'\"'hex'\"'\"');\n if (mode === '\"'\"'before'\"'\"') {\n process.stdout.write(JSON.stringify({ at: Date.now(), hash }));\n } else {\n const before = JSON.parse(baseline);\n const elapsed = Date.now() - before.at;\n const error = '\"'\"'Error: account/read failed during TUI bootstrap: account/read failed: workspace routing discovery timed out (code -32603)'\"'\"';\n const fresh = Number.isFinite(elapsed) && elapsed >= 0 && /^[a-f0-9]{64}$/.test(before.hash) && before.hash !== hash;\n const matches = mode === '\"'\"'after-update'\"'\"'\n ? /^(?:🎉\\s*)?Update ran successfully! Please restart Codex\\.$/.test(last)\n : mode === '\"'\"'after'\"'\"' && elapsed <= 30000 && last === error;\n process.exit(fresh && matches ? 0 : 1);\n }\n} catch { process.exit(1); }' \"$@\"\n}\nharness_codex_start() {\n [ \"$harness_codex_go\" = 1 ] || return 0\n harness_codex_before=\n if [ -n \"${TMUX_PANE:-}\" ]; then harness_codex_before=$(harness_codex_check before '<tmux>' \"$TMUX_PANE\") || harness_codex_before=; fi\n harness_codex_probe \"$1\"\n harness_status=0\n}\nharness_codex_next() {\n [ \"$harness_codex_go\" = 1 ] || return 0\n harness_codex_go=0\n if [ \"$harness_status\" -eq 0 ] && [ \"$harness_codex_updated\" -eq 0 ] && [ -n \"$harness_codex_before\" ] &&\n harness_codex_seen=$(harness_codex_check after-update '<tmux>' \"$TMUX_PANE\" \"$harness_codex_before\"); then\n harness_codex_updated=1\n printf '\\n%s\\n' 'harness: Codex updated. Continuing startup…'\n harness_codex_go=1\n return 0\n fi\n [ \"$harness_status\" -eq 1 ] && [ \"$harness_codex_attempt\" -lt 3 ] && [ -n \"$harness_codex_before\" ] || return 0\n harness_codex_seen=$(harness_codex_check after '<tmux>' \"$TMUX_PANE\" \"$harness_codex_before\") || return 0\n harness_codex_delay=$((harness_codex_attempt * 2))\n harness_codex_attempt=$((harness_codex_attempt + 1))\n harness_codex_cancelled=0\n trap 'harness_codex_cancelled=1' INT\n printf '\\n%s\\n' \"harness: Codex account lookup timed out. Retrying startup ($harness_codex_attempt/3) in ${harness_codex_delay}s; Ctrl-C cancels.\"\n harness_codex_seen=$(sleep \"$harness_codex_delay\") || harness_codex_cancelled=1\n trap : INT\n if [ \"$harness_codex_cancelled\" -eq 1 ]; then harness_status=130; return 0; fi\n harness_codex_go=1\n}\nunset ANTHROPIC_API_KEY ANTHROPIC_AUTH_TOKEN ANTHROPIC_BASE_URL ANTHROPIC_MODEL OPENAI_API_KEY OPENAI_BASE_URL XAI_API_KEY GROK_MODELS_BASE_URL COPILOT_PROVIDER_API_KEY COPILOT_PROVIDER_BASE_URL COPILOT_MODEL HERMES_INFERENCE_MODEL GRID_MCP_AUTHORIZATION HERMES_MANAGED_DIR GROK_HOME HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: on macOS, grant Full Disk Access to the app that started tmux (and to Harness), then run: tmux kill-server' 'harness: or pick a folder outside Documents, Desktop and Downloads (System Settings › Privacy & Security).' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'codex' '<root>/home/.local/bin/codex'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n npm_prefix=\"$(npm prefix -g 2>/dev/null)\" || true\n if [ -n \"$npm_prefix\" ]; then\n for bin in 'codex'; do\n if resolve_engine \"$npm_prefix/bin/$bin\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n fi\n return 1\n}\nif ! command -v node >/dev/null 2>&1 || ! command -v npm >/dev/null 2>&1; then\n for harness_node_bin in '<daemon-node-dir>'; do\n if [ -x \"$harness_node_bin/node\" ] && [ -x \"$harness_node_bin/npm\" ]; then\n PATH=\"$harness_node_bin${PATH:+:$PATH}\"\n export PATH\n hash -r 2>/dev/null || true\n break\n fi\n done\nfi\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Codex' 20 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: Codex is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'Codex is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-codex.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-codex-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'codex'\nif ! harness_find_engine \"$1\"; then\n if ! command -v npm >/dev/null 2>&1; then\n printf '%s\\n' 'harness: npm is unavailable and the managed Node.js/npm runtime could not be used.'\n exit 1\n fi\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ npm install -g @openai/codex' ''\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: installing for this user in <root>/home/.local'\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @openai/codex') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @openai/codex'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Codex' 20 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'Codex could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'Codex was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_codex_attempt=1\nharness_codex_updated=0\nharness_codex_go=1\nharness_codex_start \"$harness_engine_bin\"\n[ \"$harness_codex_go\" != 1 ] || \"$harness_engine_bin\" ${harness_codex_no_daemon:+--no-daemon} \"$@\" || harness_status=$?\nharness_resume\nharness_codex_next\nharness_codex_start \"$harness_engine_bin\"\n[ \"$harness_codex_go\" != 1 ] || \"$harness_engine_bin\" ${harness_codex_no_daemon:+--no-daemon} \"$@\" || harness_status=$?\nharness_resume\nharness_codex_next\nharness_codex_start \"$harness_engine_bin\"\n[ \"$harness_codex_go\" != 1 ] || \"$harness_engine_bin\" ${harness_codex_no_daemon:+--no-daemon} \"$@\" || harness_status=$?\nharness_resume\nharness_codex_next\nharness_codex_start \"$harness_engine_bin\"\n[ \"$harness_codex_go\" != 1 ] || \"$harness_engine_bin\" ${harness_codex_no_daemon:+--no-daemon} \"$@\" || harness_status=$?\nharness_resume\nharness_codex_next\nharness_after",
"62954db3d9e3d96e": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: hermes exited ('\"$harness_status\"'). This pane is a shell now — run hermes again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nunset ANTHROPIC_API_KEY ANTHROPIC_AUTH_TOKEN ANTHROPIC_BASE_URL ANTHROPIC_MODEL XAI_API_KEY GROK_MODELS_BASE_URL COPILOT_PROVIDER_API_KEY COPILOT_PROVIDER_BASE_URL COPILOT_MODEL HERMES_INFERENCE_MODEL GRID_API_KEY GRID_MCP_AUTHORIZATION HERMES_MANAGED_DIR GROK_HOME HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: check the folder'\"'\"'s permissions for this user.' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'hermes' '<root>/home/.local/bin/hermes' '/usr/local/bin/hermes'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n return 1\n}\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Hermes' 15 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: Hermes is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'Hermes is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-hermes.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-hermes-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'hermes'\nif ! harness_find_engine \"$1\"; then\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash' ''\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (eval 'curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (eval 'curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Hermes' 15 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'Hermes could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'Hermes was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_status=0\n\"$harness_engine_bin\" \"$@\" || harness_status=$?\nharness_resume\nharness_after",
"6ab77b8b7f29b922": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: codex exited ('\"$harness_status\"'). This pane is a shell now — run codex again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nharness_codex_probe() {\n harness_codex_mode=0\n harness_codex_seen=$('<daemon-node>' -e 'const {execFileSync}=require('\"'\"'node:child_process'\"'\"');try { const h=execFileSync(process.argv[1],['\"'\"'--help'\"'\"'],{timeout:30000,maxBuffer:1048576,encoding:'\"'\"'utf8'\"'\"',stdio:['\"'\"'ignore'\"'\"','\"'\"'pipe'\"'\"','\"'\"'pipe'\"'\"']});process.exit(/--no-daemon(?:[^A-Za-z0-9-]|$)/.test(h)?0:64); } catch { process.exit(2); }' \"$1\") || harness_codex_mode=$?\n case \"$harness_codex_mode\" in\n 0) harness_codex_no_daemon=1 ;;\n 64) harness_codex_no_daemon= ;;\n *) printf '%s\\n' 'harness: could not verify Codex startup options. Please try opening this session again.' >&2; exit 1 ;;\n esac\n}\nharness_codex_check() {\n '<daemon-node>' -e 'const { execFileSync } = require('\"'\"'node:child_process'\"'\"');\nconst { createHash } = require('\"'\"'node:crypto'\"'\"');\nconst [mode, tmux, pane, baseline] = process.argv.slice(1);\ntry {\n if (!/^%\\d+$/.test(pane)) process.exit(1);\n const screen = execFileSync(tmux, ['\"'\"'capture-pane'\"'\"', '\"'\"'-p'\"'\"', '\"'\"'-J'\"'\"', '\"'\"'-S'\"'\"', '\"'\"'-10'\"'\"', '\"'\"'-t'\"'\"', pane], {\n timeout: 2000, maxBuffer: 1024 * 1024, encoding: '\"'\"'utf8'\"'\"', stdio: ['\"'\"'ignore'\"'\"', '\"'\"'pipe'\"'\"', '\"'\"'ignore'\"'\"'],\n });\n const last = screen.trimEnd().split('\"'\"'\\n'\"'\"').at(-1)?.trim() ?? '\"'\"''\"'\"';\n const hash = createHash('\"'\"'sha256'\"'\"').update(last).digest('\"'\"'hex'\"'\"');\n if (mode === '\"'\"'before'\"'\"') {\n process.stdout.write(JSON.stringify({ at: Date.now(), hash }));\n } else {\n const before = JSON.parse(baseline);\n const elapsed = Date.now() - before.at;\n const error = '\"'\"'Error: account/read failed during TUI bootstrap: account/read failed: workspace routing discovery timed out (code -32603)'\"'\"';\n const fresh = Number.isFinite(elapsed) && elapsed >= 0 && /^[a-f0-9]{64}$/.test(before.hash) && before.hash !== hash;\n const matches = mode === '\"'\"'after-update'\"'\"'\n ? /^(?:🎉\\s*)?Update ran successfully! Please restart Codex\\.$/.test(last)\n : mode === '\"'\"'after'\"'\"' && elapsed <= 30000 && last === error;\n process.exit(fresh && matches ? 0 : 1);\n }\n} catch { process.exit(1); }' \"$@\"\n}\nharness_codex_start() {\n [ \"$harness_codex_go\" = 1 ] || return 0\n harness_codex_before=\n if [ -n \"${TMUX_PANE:-}\" ]; then harness_codex_before=$(harness_codex_check before '<tmux>' \"$TMUX_PANE\") || harness_codex_before=; fi\n harness_codex_probe \"$1\"\n harness_status=0\n}\nharness_codex_next() {\n [ \"$harness_codex_go\" = 1 ] || return 0\n harness_codex_go=0\n if [ \"$harness_status\" -eq 0 ] && [ \"$harness_codex_updated\" -eq 0 ] && [ -n \"$harness_codex_before\" ] &&\n harness_codex_seen=$(harness_codex_check after-update '<tmux>' \"$TMUX_PANE\" \"$harness_codex_before\"); then\n harness_codex_updated=1\n printf '\\n%s\\n' 'harness: Codex updated. Continuing startup…'\n harness_codex_go=1\n return 0\n fi\n [ \"$harness_status\" -eq 1 ] && [ \"$harness_codex_attempt\" -lt 3 ] && [ -n \"$harness_codex_before\" ] || return 0\n harness_codex_seen=$(harness_codex_check after '<tmux>' \"$TMUX_PANE\" \"$harness_codex_before\") || return 0\n harness_codex_delay=$((harness_codex_attempt * 2))\n harness_codex_attempt=$((harness_codex_attempt + 1))\n harness_codex_cancelled=0\n trap 'harness_codex_cancelled=1' INT\n printf '\\n%s\\n' \"harness: Codex account lookup timed out. Retrying startup ($harness_codex_attempt/3) in ${harness_codex_delay}s; Ctrl-C cancels.\"\n harness_codex_seen=$(sleep \"$harness_codex_delay\") || harness_codex_cancelled=1\n trap : INT\n if [ \"$harness_codex_cancelled\" -eq 1 ]; then harness_status=130; return 0; fi\n harness_codex_go=1\n}\nunset ANTHROPIC_API_KEY ANTHROPIC_AUTH_TOKEN ANTHROPIC_BASE_URL ANTHROPIC_MODEL OPENAI_API_KEY OPENAI_BASE_URL XAI_API_KEY GROK_MODELS_BASE_URL COPILOT_PROVIDER_API_KEY COPILOT_PROVIDER_BASE_URL COPILOT_MODEL HERMES_INFERENCE_MODEL HERMES_MANAGED_DIR GROK_HOME HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: on macOS, grant Full Disk Access to the app that started tmux (and to Harness), then run: tmux kill-server' 'harness: or pick a folder outside Documents, Desktop and Downloads (System Settings › Privacy & Security).' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'codex' '<root>/home/.local/bin/codex'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n npm_prefix=\"$(npm prefix -g 2>/dev/null)\" || true\n if [ -n \"$npm_prefix\" ]; then\n for bin in 'codex'; do\n if resolve_engine \"$npm_prefix/bin/$bin\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n fi\n return 1\n}\nif ! command -v node >/dev/null 2>&1 || ! command -v npm >/dev/null 2>&1; then\n for harness_node_bin in '<daemon-node-dir>'; do\n if [ -x \"$harness_node_bin/node\" ] && [ -x \"$harness_node_bin/npm\" ]; then\n PATH=\"$harness_node_bin${PATH:+:$PATH}\"\n export PATH\n hash -r 2>/dev/null || true\n break\n fi\n done\nfi\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Codex' 20 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: Codex is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'Codex is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-codex.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-codex-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'codex'\nif ! harness_find_engine \"$1\"; then\n if ! command -v npm >/dev/null 2>&1; then\n printf '%s\\n' 'harness: npm is unavailable and the managed Node.js/npm runtime could not be used.'\n exit 1\n fi\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ npm install -g @openai/codex' ''\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: installing for this user in <root>/home/.local'\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @openai/codex') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @openai/codex'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Codex' 20 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'Codex could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'Codex was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_codex_attempt=1\nharness_codex_updated=0\nharness_codex_go=1\nharness_codex_start \"$harness_engine_bin\"\n[ \"$harness_codex_go\" != 1 ] || \"$harness_engine_bin\" ${harness_codex_no_daemon:+--no-daemon} \"$@\" || harness_status=$?\nharness_resume\nharness_codex_next\nharness_codex_start \"$harness_engine_bin\"\n[ \"$harness_codex_go\" != 1 ] || \"$harness_engine_bin\" ${harness_codex_no_daemon:+--no-daemon} \"$@\" || harness_status=$?\nharness_resume\nharness_codex_next\nharness_codex_start \"$harness_engine_bin\"\n[ \"$harness_codex_go\" != 1 ] || \"$harness_engine_bin\" ${harness_codex_no_daemon:+--no-daemon} \"$@\" || harness_status=$?\nharness_resume\nharness_codex_next\nharness_codex_start \"$harness_engine_bin\"\n[ \"$harness_codex_go\" != 1 ] || \"$harness_engine_bin\" ${harness_codex_no_daemon:+--no-daemon} \"$@\" || harness_status=$?\nharness_resume\nharness_codex_next\nharness_after",
"6ab9a629ee313d71": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: codex exited ('\"$harness_status\"'). This pane is a shell now — run codex again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nharness_codex_probe() {\n harness_codex_mode=0\n harness_codex_seen=$('<daemon-node>' -e 'const {execFileSync}=require('\"'\"'node:child_process'\"'\"');try { const h=execFileSync(process.argv[1],['\"'\"'--help'\"'\"'],{timeout:30000,maxBuffer:1048576,encoding:'\"'\"'utf8'\"'\"',stdio:['\"'\"'ignore'\"'\"','\"'\"'pipe'\"'\"','\"'\"'pipe'\"'\"']});process.exit(/--no-daemon(?:[^A-Za-z0-9-]|$)/.test(h)?0:64); } catch { process.exit(2); }' \"$1\") || harness_codex_mode=$?\n case \"$harness_codex_mode\" in\n 0) harness_codex_no_daemon=1 ;;\n 64) harness_codex_no_daemon= ;;\n *) printf '%s\\n' 'harness: could not verify Codex startup options. Please try opening this session again.' >&2; exit 1 ;;\n esac\n}\nharness_codex_check() {\n '<daemon-node>' -e 'const { execFileSync } = require('\"'\"'node:child_process'\"'\"');\nconst { createHash } = require('\"'\"'node:crypto'\"'\"');\nconst [mode, tmux, pane, baseline] = process.argv.slice(1);\ntry {\n if (!/^%\\d+$/.test(pane)) process.exit(1);\n const screen = execFileSync(tmux, ['\"'\"'capture-pane'\"'\"', '\"'\"'-p'\"'\"', '\"'\"'-J'\"'\"', '\"'\"'-S'\"'\"', '\"'\"'-10'\"'\"', '\"'\"'-t'\"'\"', pane], {\n timeout: 2000, maxBuffer: 1024 * 1024, encoding: '\"'\"'utf8'\"'\"', stdio: ['\"'\"'ignore'\"'\"', '\"'\"'pipe'\"'\"', '\"'\"'ignore'\"'\"'],\n });\n const last = screen.trimEnd().split('\"'\"'\\n'\"'\"').at(-1)?.trim() ?? '\"'\"''\"'\"';\n const hash = createHash('\"'\"'sha256'\"'\"').update(last).digest('\"'\"'hex'\"'\"');\n if (mode === '\"'\"'before'\"'\"') {\n process.stdout.write(JSON.stringify({ at: Date.now(), hash }));\n } else {\n const before = JSON.parse(baseline);\n const elapsed = Date.now() - before.at;\n const error = '\"'\"'Error: account/read failed during TUI bootstrap: account/read failed: workspace routing discovery timed out (code -32603)'\"'\"';\n const fresh = Number.isFinite(elapsed) && elapsed >= 0 && /^[a-f0-9]{64}$/.test(before.hash) && before.hash !== hash;\n const matches = mode === '\"'\"'after-update'\"'\"'\n ? /^(?:🎉\\s*)?Update ran successfully! Please restart Codex\\.$/.test(last)\n : mode === '\"'\"'after'\"'\"' && elapsed <= 30000 && last === error;\n process.exit(fresh && matches ? 0 : 1);\n }\n} catch { process.exit(1); }' \"$@\"\n}\nharness_codex_start() {\n [ \"$harness_codex_go\" = 1 ] || return 0\n harness_codex_before=\n if [ -n \"${TMUX_PANE:-}\" ]; then harness_codex_before=$(harness_codex_check before '<tmux>' \"$TMUX_PANE\") || harness_codex_before=; fi\n harness_codex_probe \"$1\"\n harness_status=0\n}\nharness_codex_next() {\n [ \"$harness_codex_go\" = 1 ] || return 0\n harness_codex_go=0\n if [ \"$harness_status\" -eq 0 ] && [ \"$harness_codex_updated\" -eq 0 ] && [ -n \"$harness_codex_before\" ] &&\n harness_codex_seen=$(harness_codex_check after-update '<tmux>' \"$TMUX_PANE\" \"$harness_codex_before\"); then\n harness_codex_updated=1\n printf '\\n%s\\n' 'harness: Codex updated. Continuing startup…'\n harness_codex_go=1\n return 0\n fi\n [ \"$harness_status\" -eq 1 ] && [ \"$harness_codex_attempt\" -lt 3 ] && [ -n \"$harness_codex_before\" ] || return 0\n harness_codex_seen=$(harness_codex_check after '<tmux>' \"$TMUX_PANE\" \"$harness_codex_before\") || return 0\n harness_codex_delay=$((harness_codex_attempt * 2))\n harness_codex_attempt=$((harness_codex_attempt + 1))\n harness_codex_cancelled=0\n trap 'harness_codex_cancelled=1' INT\n printf '\\n%s\\n' \"harness: Codex account lookup timed out. Retrying startup ($harness_codex_attempt/3) in ${harness_codex_delay}s; Ctrl-C cancels.\"\n harness_codex_seen=$(sleep \"$harness_codex_delay\") || harness_codex_cancelled=1\n trap : INT\n if [ \"$harness_codex_cancelled\" -eq 1 ]; then harness_status=130; return 0; fi\n harness_codex_go=1\n}\nunset HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: on macOS, grant Full Disk Access to the app that started tmux (and to Harness), then run: tmux kill-server' 'harness: or pick a folder outside Documents, Desktop and Downloads (System Settings › Privacy & Security).' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'codex' '<root>/home/.local/bin/codex'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n npm_prefix=\"$(npm prefix -g 2>/dev/null)\" || true\n if [ -n \"$npm_prefix\" ]; then\n for bin in 'codex'; do\n if resolve_engine \"$npm_prefix/bin/$bin\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n fi\n return 1\n}\nif ! command -v node >/dev/null 2>&1 || ! command -v npm >/dev/null 2>&1; then\n for harness_node_bin in '<daemon-node-dir>'; do\n if [ -x \"$harness_node_bin/node\" ] && [ -x \"$harness_node_bin/npm\" ]; then\n PATH=\"$harness_node_bin${PATH:+:$PATH}\"\n export PATH\n hash -r 2>/dev/null || true\n break\n fi\n done\nfi\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Codex' 20 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: Codex is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'Codex is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-codex.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-codex-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'codex'\nif ! harness_find_engine \"$1\"; then\n if ! command -v npm >/dev/null 2>&1; then\n printf '%s\\n' 'harness: npm is unavailable and the managed Node.js/npm runtime could not be used.'\n exit 1\n fi\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ npm install -g @openai/codex' ''\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: installing for this user in <root>/home/.local'\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @openai/codex') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @openai/codex'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Codex' 20 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'Codex could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'Codex was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_codex_attempt=1\nharness_codex_updated=0\nharness_codex_go=1\nharness_codex_start \"$harness_engine_bin\"\n[ \"$harness_codex_go\" != 1 ] || \"$harness_engine_bin\" ${harness_codex_no_daemon:+--no-daemon} \"$@\" || harness_status=$?\nharness_resume\nharness_codex_next\nharness_codex_start \"$harness_engine_bin\"\n[ \"$harness_codex_go\" != 1 ] || \"$harness_engine_bin\" ${harness_codex_no_daemon:+--no-daemon} \"$@\" || harness_status=$?\nharness_resume\nharness_codex_next\nharness_codex_start \"$harness_engine_bin\"\n[ \"$harness_codex_go\" != 1 ] || \"$harness_engine_bin\" ${harness_codex_no_daemon:+--no-daemon} \"$@\" || harness_status=$?\nharness_resume\nharness_codex_next\nharness_codex_start \"$harness_engine_bin\"\n[ \"$harness_codex_go\" != 1 ] || \"$harness_engine_bin\" ${harness_codex_no_daemon:+--no-daemon} \"$@\" || harness_status=$?\nharness_resume\nharness_codex_next\nharness_after",
"720625c8ef5801b7": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: claude exited ('\"$harness_status\"'). This pane is a shell now — run claude again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nunset ANTHROPIC_API_KEY ANTHROPIC_MODEL OPENAI_API_KEY OPENAI_BASE_URL XAI_API_KEY GROK_MODELS_BASE_URL COPILOT_PROVIDER_API_KEY COPILOT_PROVIDER_BASE_URL COPILOT_MODEL HERMES_INFERENCE_MODEL GRID_API_KEY GRID_MCP_AUTHORIZATION HERMES_MANAGED_DIR GROK_HOME HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: on macOS, grant Full Disk Access to the app that started tmux (and to Harness), then run: tmux kill-server' 'harness: or pick a folder outside Documents, Desktop and Downloads (System Settings › Privacy & Security).' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'claude' '<root>/home/.local/bin/claude'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n npm_prefix=\"$(npm prefix -g 2>/dev/null)\" || true\n if [ -n \"$npm_prefix\" ]; then\n for bin in 'claude'; do\n if resolve_engine \"$npm_prefix/bin/$bin\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n fi\n return 1\n}\nif ! command -v node >/dev/null 2>&1 || ! command -v npm >/dev/null 2>&1; then\n for harness_node_bin in '<daemon-node-dir>'; do\n if [ -x \"$harness_node_bin/node\" ] && [ -x \"$harness_node_bin/npm\" ]; then\n PATH=\"$harness_node_bin${PATH:+:$PATH}\"\n export PATH\n hash -r 2>/dev/null || true\n break\n fi\n done\nfi\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Claude Code' 12 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: Claude Code is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'Claude Code is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-claude.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-claude-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'claude'\nif ! harness_find_engine \"$1\"; then\n if ! command -v npm >/dev/null 2>&1; then\n printf '%s\\n' 'harness: npm is unavailable and the managed Node.js/npm runtime could not be used.'\n exit 1\n fi\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ npm install -g @anthropic-ai/claude-code' ''\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: installing for this user in <root>/home/.local'\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @anthropic-ai/claude-code') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @anthropic-ai/claude-code'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Claude Code' 12 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'Claude Code could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'Claude Code was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_status=0\n\"$harness_engine_bin\" \"$@\" || harness_status=$?\nharness_resume\nharness_after",
"740e05707feea22c": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: hermes exited ('\"$harness_status\"'). This pane is a shell now — run hermes again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nunset ANTHROPIC_API_KEY ANTHROPIC_AUTH_TOKEN ANTHROPIC_BASE_URL ANTHROPIC_MODEL XAI_API_KEY GROK_MODELS_BASE_URL COPILOT_PROVIDER_API_KEY COPILOT_PROVIDER_BASE_URL COPILOT_MODEL GRID_MCP_AUTHORIZATION GROK_HOME HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: on macOS, grant Full Disk Access to the app that started tmux (and to Harness), then run: tmux kill-server' 'harness: or pick a folder outside Documents, Desktop and Downloads (System Settings › Privacy & Security).' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'hermes' '<root>/home/.local/bin/hermes' '/usr/local/bin/hermes'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n return 1\n}\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Hermes' 15 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: Hermes is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'Hermes is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-hermes.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-hermes-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'hermes'\nif ! harness_find_engine \"$1\"; then\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash' ''\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (eval 'curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (eval 'curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Hermes' 15 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'Hermes could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'Hermes was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_status=0\n\"$harness_engine_bin\" \"$@\" || harness_status=$?\nharness_resume\nharness_after",
"78f26a634455c1a7": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: opencode exited ('\"$harness_status\"'). This pane is a shell now — run opencode again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nunset HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: check the folder'\"'\"'s permissions for this user.' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'opencode' '<root>/home/.opencode/bin/opencode' '<root>/home/.local/bin/opencode'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n npm_prefix=\"$(npm prefix -g 2>/dev/null)\" || true\n if [ -n \"$npm_prefix\" ]; then\n for bin in 'opencode'; do\n if resolve_engine \"$npm_prefix/bin/$bin\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n fi\n return 1\n}\nif ! command -v node >/dev/null 2>&1 || ! command -v npm >/dev/null 2>&1; then\n for harness_node_bin in '<daemon-node-dir>'; do\n if [ -x \"$harness_node_bin/node\" ] && [ -x \"$harness_node_bin/npm\" ]; then\n PATH=\"$harness_node_bin${PATH:+:$PATH}\"\n export PATH\n hash -r 2>/dev/null || true\n break\n fi\n done\nfi\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'OpenCode' 10 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: OpenCode is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'OpenCode is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-opencode.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-opencode-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'opencode'\nif ! harness_find_engine \"$1\"; then\n if ! command -v npm >/dev/null 2>&1; then\n printf '%s\\n' 'harness: npm is unavailable and the managed Node.js/npm runtime could not be used.'\n exit 1\n fi\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ curl -fsSL https://opencode.ai/install | bash' ''\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: installing for this user in <root>/home/.local'\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'curl -fsSL https://opencode.ai/install | bash') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'curl -fsSL https://opencode.ai/install | bash'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'OpenCode' 10 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nharness_try_fallback=0\nif [ -z \"$harness_engine_bin\" ] && [ \"$harness_status\" -ne 130 ]; then\n hash -r 2>/dev/null || true\n if ! harness_find_engine \"$1\"; then\n harness_try_fallback=1\n harness_status=0\n [ \"$harness_quiet\" -eq 1 ] || printf '\\n%s\\n' 'harness: that install did not finish; trying the npm package instead' 'harness: $ npm install -g opencode-ai' ''\n [ \"$harness_quiet\" -eq 0 ] || printf '%s\\n' 'harness: that install did not finish; trying the npm package instead' >>\"$harness_install_log\"\n fi\nfi\n[ \"$harness_try_fallback\" -eq 0 ] || [ \"$harness_quiet\" -eq 1 ] || (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g opencode-ai') || harness_status=$?\n[ \"$harness_try_fallback\" -eq 0 ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g opencode-ai'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'OpenCode' 10 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'OpenCode could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'OpenCode was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_status=0\n\"$harness_engine_bin\" \"$@\" || harness_status=$?\nharness_resume\nharness_after",
"877330e91fe6a1d3": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: pi exited ('\"$harness_status\"'). This pane is a shell now — run pi again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nunset ANTHROPIC_API_KEY ANTHROPIC_AUTH_TOKEN ANTHROPIC_BASE_URL ANTHROPIC_MODEL OPENAI_API_KEY OPENAI_BASE_URL XAI_API_KEY GROK_MODELS_BASE_URL COPILOT_PROVIDER_API_KEY COPILOT_PROVIDER_BASE_URL COPILOT_MODEL HERMES_INFERENCE_MODEL GRID_MCP_AUTHORIZATION HERMES_MANAGED_DIR GROK_HOME HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: check the folder'\"'\"'s permissions for this user.' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'pi' '<root>/home/.local/bin/pi'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n npm_prefix=\"$(npm prefix -g 2>/dev/null)\" || true\n if [ -n \"$npm_prefix\" ]; then\n for bin in 'pi'; do\n if resolve_engine \"$npm_prefix/bin/$bin\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n fi\n return 1\n}\nif ! command -v node >/dev/null 2>&1 || ! command -v npm >/dev/null 2>&1; then\n for harness_node_bin in '<daemon-node-dir>'; do\n if [ -x \"$harness_node_bin/node\" ] && [ -x \"$harness_node_bin/npm\" ]; then\n PATH=\"$harness_node_bin${PATH:+:$PATH}\"\n export PATH\n hash -r 2>/dev/null || true\n break\n fi\n done\nfi\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Pi' 12 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: Pi is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'Pi is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-pi.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-pi-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'pi'\nif ! harness_find_engine \"$1\"; then\n if ! command -v npm >/dev/null 2>&1; then\n printf '%s\\n' 'harness: npm is unavailable and the managed Node.js/npm runtime could not be used.'\n exit 1\n fi\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ npm install -g --ignore-scripts @earendil-works/pi-coding-agent' ''\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: installing for this user in <root>/home/.local'\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g --ignore-scripts @earendil-works/pi-coding-agent') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g --ignore-scripts @earendil-works/pi-coding-agent'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Pi' 12 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'Pi could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'Pi was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_status=0\n\"$harness_engine_bin\" \"$@\" || harness_status=$?\nharness_resume\nharness_after",
"8ec6e56fc3c51058": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: hermes exited ('\"$harness_status\"'). This pane is a shell now — run hermes again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nunset ANTHROPIC_API_KEY ANTHROPIC_AUTH_TOKEN ANTHROPIC_BASE_URL ANTHROPIC_MODEL XAI_API_KEY GROK_MODELS_BASE_URL COPILOT_PROVIDER_API_KEY COPILOT_PROVIDER_BASE_URL COPILOT_MODEL GRID_API_KEY GRID_MCP_AUTHORIZATION HERMES_MANAGED_DIR GROK_HOME HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: check the folder'\"'\"'s permissions for this user.' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'hermes' '<root>/home/.local/bin/hermes' '/usr/local/bin/hermes'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n return 1\n}\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Hermes' 15 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: Hermes is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'Hermes is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-hermes.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-hermes-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'hermes'\nif ! harness_find_engine \"$1\"; then\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash' ''\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (eval 'curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (eval 'curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Hermes' 15 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'Hermes could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'Hermes was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_status=0\n\"$harness_engine_bin\" \"$@\" || harness_status=$?\nharness_resume\nharness_after",
"9998bfb79d9b8728": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: codex exited ('\"$harness_status\"'). This pane is a shell now — run codex again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nharness_codex_probe() {\n harness_codex_mode=0\n harness_codex_seen=$('<daemon-node>' -e 'const {execFileSync}=require('\"'\"'node:child_process'\"'\"');try { const h=execFileSync(process.argv[1],['\"'\"'--help'\"'\"'],{timeout:30000,maxBuffer:1048576,encoding:'\"'\"'utf8'\"'\"',stdio:['\"'\"'ignore'\"'\"','\"'\"'pipe'\"'\"','\"'\"'pipe'\"'\"']});process.exit(/--no-daemon(?:[^A-Za-z0-9-]|$)/.test(h)?0:64); } catch { process.exit(2); }' \"$1\") || harness_codex_mode=$?\n case \"$harness_codex_mode\" in\n 0) harness_codex_no_daemon=1 ;;\n 64) harness_codex_no_daemon= ;;\n *) printf '%s\\n' 'harness: could not verify Codex startup options. Please try opening this session again.' >&2; exit 1 ;;\n esac\n}\nharness_codex_check() {\n '<daemon-node>' -e 'const { execFileSync } = require('\"'\"'node:child_process'\"'\"');\nconst { createHash } = require('\"'\"'node:crypto'\"'\"');\nconst [mode, tmux, pane, baseline] = process.argv.slice(1);\ntry {\n if (!/^%\\d+$/.test(pane)) process.exit(1);\n const screen = execFileSync(tmux, ['\"'\"'capture-pane'\"'\"', '\"'\"'-p'\"'\"', '\"'\"'-J'\"'\"', '\"'\"'-S'\"'\"', '\"'\"'-10'\"'\"', '\"'\"'-t'\"'\"', pane], {\n timeout: 2000, maxBuffer: 1024 * 1024, encoding: '\"'\"'utf8'\"'\"', stdio: ['\"'\"'ignore'\"'\"', '\"'\"'pipe'\"'\"', '\"'\"'ignore'\"'\"'],\n });\n const last = screen.trimEnd().split('\"'\"'\\n'\"'\"').at(-1)?.trim() ?? '\"'\"''\"'\"';\n const hash = createHash('\"'\"'sha256'\"'\"').update(last).digest('\"'\"'hex'\"'\"');\n if (mode === '\"'\"'before'\"'\"') {\n process.stdout.write(JSON.stringify({ at: Date.now(), hash }));\n } else {\n const before = JSON.parse(baseline);\n const elapsed = Date.now() - before.at;\n const error = '\"'\"'Error: account/read failed during TUI bootstrap: account/read failed: workspace routing discovery timed out (code -32603)'\"'\"';\n const fresh = Number.isFinite(elapsed) && elapsed >= 0 && /^[a-f0-9]{64}$/.test(before.hash) && before.hash !== hash;\n const matches = mode === '\"'\"'after-update'\"'\"'\n ? /^(?:🎉\\s*)?Update ran successfully! Please restart Codex\\.$/.test(last)\n : mode === '\"'\"'after'\"'\"' && elapsed <= 30000 && last === error;\n process.exit(fresh && matches ? 0 : 1);\n }\n} catch { process.exit(1); }' \"$@\"\n}\nharness_codex_start() {\n [ \"$harness_codex_go\" = 1 ] || return 0\n harness_codex_before=\n if [ -n \"${TMUX_PANE:-}\" ]; then harness_codex_before=$(harness_codex_check before '<tmux>' \"$TMUX_PANE\") || harness_codex_before=; fi\n harness_codex_probe \"$1\"\n harness_status=0\n}\nharness_codex_next() {\n [ \"$harness_codex_go\" = 1 ] || return 0\n harness_codex_go=0\n if [ \"$harness_status\" -eq 0 ] && [ \"$harness_codex_updated\" -eq 0 ] && [ -n \"$harness_codex_before\" ] &&\n harness_codex_seen=$(harness_codex_check after-update '<tmux>' \"$TMUX_PANE\" \"$harness_codex_before\"); then\n harness_codex_updated=1\n printf '\\n%s\\n' 'harness: Codex updated. Continuing startup…'\n harness_codex_go=1\n return 0\n fi\n [ \"$harness_status\" -eq 1 ] && [ \"$harness_codex_attempt\" -lt 3 ] && [ -n \"$harness_codex_before\" ] || return 0\n harness_codex_seen=$(harness_codex_check after '<tmux>' \"$TMUX_PANE\" \"$harness_codex_before\") || return 0\n harness_codex_delay=$((harness_codex_attempt * 2))\n harness_codex_attempt=$((harness_codex_attempt + 1))\n harness_codex_cancelled=0\n trap 'harness_codex_cancelled=1' INT\n printf '\\n%s\\n' \"harness: Codex account lookup timed out. Retrying startup ($harness_codex_attempt/3) in ${harness_codex_delay}s; Ctrl-C cancels.\"\n harness_codex_seen=$(sleep \"$harness_codex_delay\") || harness_codex_cancelled=1\n trap : INT\n if [ \"$harness_codex_cancelled\" -eq 1 ]; then harness_status=130; return 0; fi\n harness_codex_go=1\n}\nunset ANTHROPIC_API_KEY ANTHROPIC_AUTH_TOKEN ANTHROPIC_BASE_URL ANTHROPIC_MODEL OPENAI_API_KEY OPENAI_BASE_URL XAI_API_KEY GROK_MODELS_BASE_URL COPILOT_PROVIDER_API_KEY COPILOT_PROVIDER_BASE_URL COPILOT_MODEL HERMES_INFERENCE_MODEL GRID_MCP_AUTHORIZATION HERMES_MANAGED_DIR GROK_HOME HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: check the folder'\"'\"'s permissions for this user.' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'codex' '<root>/home/.local/bin/codex'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n npm_prefix=\"$(npm prefix -g 2>/dev/null)\" || true\n if [ -n \"$npm_prefix\" ]; then\n for bin in 'codex'; do\n if resolve_engine \"$npm_prefix/bin/$bin\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n fi\n return 1\n}\nif ! command -v node >/dev/null 2>&1 || ! command -v npm >/dev/null 2>&1; then\n for harness_node_bin in '<daemon-node-dir>'; do\n if [ -x \"$harness_node_bin/node\" ] && [ -x \"$harness_node_bin/npm\" ]; then\n PATH=\"$harness_node_bin${PATH:+:$PATH}\"\n export PATH\n hash -r 2>/dev/null || true\n break\n fi\n done\nfi\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Codex' 20 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: Codex is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'Codex is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-codex.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-codex-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'codex'\nif ! harness_find_engine \"$1\"; then\n if ! command -v npm >/dev/null 2>&1; then\n printf '%s\\n' 'harness: npm is unavailable and the managed Node.js/npm runtime could not be used.'\n exit 1\n fi\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ npm install -g @openai/codex' ''\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: installing for this user in <root>/home/.local'\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @openai/codex') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @openai/codex'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Codex' 20 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'Codex could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'Codex was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_codex_attempt=1\nharness_codex_updated=0\nharness_codex_go=1\nharness_codex_start \"$harness_engine_bin\"\n[ \"$harness_codex_go\" != 1 ] || \"$harness_engine_bin\" ${harness_codex_no_daemon:+--no-daemon} \"$@\" || harness_status=$?\nharness_resume\nharness_codex_next\nharness_codex_start \"$harness_engine_bin\"\n[ \"$harness_codex_go\" != 1 ] || \"$harness_engine_bin\" ${harness_codex_no_daemon:+--no-daemon} \"$@\" || harness_status=$?\nharness_resume\nharness_codex_next\nharness_codex_start \"$harness_engine_bin\"\n[ \"$harness_codex_go\" != 1 ] || \"$harness_engine_bin\" ${harness_codex_no_daemon:+--no-daemon} \"$@\" || harness_status=$?\nharness_resume\nharness_codex_next\nharness_codex_start \"$harness_engine_bin\"\n[ \"$harness_codex_go\" != 1 ] || \"$harness_engine_bin\" ${harness_codex_no_daemon:+--no-daemon} \"$@\" || harness_status=$?\nharness_resume\nharness_codex_next\nharness_after",
"a6e719a98d2700c3": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: copilot exited ('\"$harness_status\"'). This pane is a shell now — run copilot again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nunset ANTHROPIC_API_KEY ANTHROPIC_AUTH_TOKEN ANTHROPIC_BASE_URL ANTHROPIC_MODEL OPENAI_API_KEY OPENAI_BASE_URL XAI_API_KEY GROK_MODELS_BASE_URL HERMES_INFERENCE_MODEL GRID_MCP_AUTHORIZATION HERMES_MANAGED_DIR GROK_HOME HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: on macOS, grant Full Disk Access to the app that started tmux (and to Harness), then run: tmux kill-server' 'harness: or pick a folder outside Documents, Desktop and Downloads (System Settings › Privacy & Security).' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'copilot' '<root>/home/.local/bin/copilot'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n npm_prefix=\"$(npm prefix -g 2>/dev/null)\" || true\n if [ -n \"$npm_prefix\" ]; then\n for bin in 'copilot'; do\n if resolve_engine \"$npm_prefix/bin/$bin\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n fi\n return 1\n}\nif ! command -v node >/dev/null 2>&1 || ! command -v npm >/dev/null 2>&1; then\n for harness_node_bin in '<daemon-node-dir>'; do\n if [ -x \"$harness_node_bin/node\" ] && [ -x \"$harness_node_bin/npm\" ]; then\n PATH=\"$harness_node_bin${PATH:+:$PATH}\"\n export PATH\n hash -r 2>/dev/null || true\n break\n fi\n done\nfi\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Copilot' 15 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: Copilot is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'Copilot is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-copilot.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-copilot-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'copilot'\nif ! harness_find_engine \"$1\"; then\n if ! command -v npm >/dev/null 2>&1; then\n printf '%s\\n' 'harness: npm is unavailable and the managed Node.js/npm runtime could not be used.'\n exit 1\n fi\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ npm install -g @github/copilot' ''\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: installing for this user in <root>/home/.local'\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @github/copilot') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @github/copilot'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Copilot' 15 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'Copilot could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'Copilot was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_status=0\n\"$harness_engine_bin\" \"$@\" || harness_status=$?\nharness_resume\nharness_after",
"b974a8a06a289a16": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: opencode exited ('\"$harness_status\"'). This pane is a shell now — run opencode again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nunset HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: on macOS, grant Full Disk Access to the app that started tmux (and to Harness), then run: tmux kill-server' 'harness: or pick a folder outside Documents, Desktop and Downloads (System Settings › Privacy & Security).' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'opencode' '<root>/home/.opencode/bin/opencode' '<root>/home/.local/bin/opencode'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n npm_prefix=\"$(npm prefix -g 2>/dev/null)\" || true\n if [ -n \"$npm_prefix\" ]; then\n for bin in 'opencode'; do\n if resolve_engine \"$npm_prefix/bin/$bin\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n fi\n return 1\n}\nif ! command -v node >/dev/null 2>&1 || ! command -v npm >/dev/null 2>&1; then\n for harness_node_bin in '<daemon-node-dir>'; do\n if [ -x \"$harness_node_bin/node\" ] && [ -x \"$harness_node_bin/npm\" ]; then\n PATH=\"$harness_node_bin${PATH:+:$PATH}\"\n export PATH\n hash -r 2>/dev/null || true\n break\n fi\n done\nfi\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'OpenCode' 10 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: OpenCode is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'OpenCode is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-opencode.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-opencode-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'opencode'\nif ! harness_find_engine \"$1\"; then\n if ! command -v npm >/dev/null 2>&1; then\n printf '%s\\n' 'harness: npm is unavailable and the managed Node.js/npm runtime could not be used.'\n exit 1\n fi\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ curl -fsSL https://opencode.ai/install | bash' ''\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: installing for this user in <root>/home/.local'\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'curl -fsSL https://opencode.ai/install | bash') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'curl -fsSL https://opencode.ai/install | bash'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'OpenCode' 10 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nharness_try_fallback=0\nif [ -z \"$harness_engine_bin\" ] && [ \"$harness_status\" -ne 130 ]; then\n hash -r 2>/dev/null || true\n if ! harness_find_engine \"$1\"; then\n harness_try_fallback=1\n harness_status=0\n [ \"$harness_quiet\" -eq 1 ] || printf '\\n%s\\n' 'harness: that install did not finish; trying the npm package instead' 'harness: $ npm install -g opencode-ai' ''\n [ \"$harness_quiet\" -eq 0 ] || printf '%s\\n' 'harness: that install did not finish; trying the npm package instead' >>\"$harness_install_log\"\n fi\nfi\n[ \"$harness_try_fallback\" -eq 0 ] || [ \"$harness_quiet\" -eq 1 ] || (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g opencode-ai') || harness_status=$?\n[ \"$harness_try_fallback\" -eq 0 ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g opencode-ai'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'OpenCode' 10 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'OpenCode could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'OpenCode was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_status=0\n\"$harness_engine_bin\" \"$@\" || harness_status=$?\nharness_resume\nharness_after",
"bdaa225516c166f5": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: opencode exited ('\"$harness_status\"'). This pane is a shell now — run opencode again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nunset ANTHROPIC_API_KEY ANTHROPIC_AUTH_TOKEN ANTHROPIC_BASE_URL ANTHROPIC_MODEL OPENAI_API_KEY OPENAI_BASE_URL XAI_API_KEY GROK_MODELS_BASE_URL COPILOT_PROVIDER_API_KEY COPILOT_PROVIDER_BASE_URL COPILOT_MODEL HERMES_INFERENCE_MODEL GRID_MCP_AUTHORIZATION HERMES_MANAGED_DIR GROK_HOME HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: on macOS, grant Full Disk Access to the app that started tmux (and to Harness), then run: tmux kill-server' 'harness: or pick a folder outside Documents, Desktop and Downloads (System Settings › Privacy & Security).' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'opencode' '<root>/home/.opencode/bin/opencode' '<root>/home/.local/bin/opencode'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n npm_prefix=\"$(npm prefix -g 2>/dev/null)\" || true\n if [ -n \"$npm_prefix\" ]; then\n for bin in 'opencode'; do\n if resolve_engine \"$npm_prefix/bin/$bin\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n fi\n return 1\n}\nif ! command -v node >/dev/null 2>&1 || ! command -v npm >/dev/null 2>&1; then\n for harness_node_bin in '<daemon-node-dir>'; do\n if [ -x \"$harness_node_bin/node\" ] && [ -x \"$harness_node_bin/npm\" ]; then\n PATH=\"$harness_node_bin${PATH:+:$PATH}\"\n export PATH\n hash -r 2>/dev/null || true\n break\n fi\n done\nfi\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'OpenCode' 10 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: OpenCode is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'OpenCode is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-opencode.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-opencode-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'opencode'\nif ! harness_find_engine \"$1\"; then\n if ! command -v npm >/dev/null 2>&1; then\n printf '%s\\n' 'harness: npm is unavailable and the managed Node.js/npm runtime could not be used.'\n exit 1\n fi\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ curl -fsSL https://opencode.ai/install | bash' ''\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: installing for this user in <root>/home/.local'\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'curl -fsSL https://opencode.ai/install | bash') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'curl -fsSL https://opencode.ai/install | bash'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'OpenCode' 10 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nharness_try_fallback=0\nif [ -z \"$harness_engine_bin\" ] && [ \"$harness_status\" -ne 130 ]; then\n hash -r 2>/dev/null || true\n if ! harness_find_engine \"$1\"; then\n harness_try_fallback=1\n harness_status=0\n [ \"$harness_quiet\" -eq 1 ] || printf '\\n%s\\n' 'harness: that install did not finish; trying the npm package instead' 'harness: $ npm install -g opencode-ai' ''\n [ \"$harness_quiet\" -eq 0 ] || printf '%s\\n' 'harness: that install did not finish; trying the npm package instead' >>\"$harness_install_log\"\n fi\nfi\n[ \"$harness_try_fallback\" -eq 0 ] || [ \"$harness_quiet\" -eq 1 ] || (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g opencode-ai') || harness_status=$?\n[ \"$harness_try_fallback\" -eq 0 ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g opencode-ai'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'OpenCode' 10 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'OpenCode could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'OpenCode was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_status=0\n\"$harness_engine_bin\" \"$@\" || harness_status=$?\nharness_resume\nharness_after",
"c262973055c652a3": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: claude exited ('\"$harness_status\"'). This pane is a shell now — run claude again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nunset HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: check the folder'\"'\"'s permissions for this user.' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'claude' '<root>/home/.local/bin/claude'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n npm_prefix=\"$(npm prefix -g 2>/dev/null)\" || true\n if [ -n \"$npm_prefix\" ]; then\n for bin in 'claude'; do\n if resolve_engine \"$npm_prefix/bin/$bin\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n fi\n return 1\n}\nif ! command -v node >/dev/null 2>&1 || ! command -v npm >/dev/null 2>&1; then\n for harness_node_bin in '<daemon-node-dir>'; do\n if [ -x \"$harness_node_bin/node\" ] && [ -x \"$harness_node_bin/npm\" ]; then\n PATH=\"$harness_node_bin${PATH:+:$PATH}\"\n export PATH\n hash -r 2>/dev/null || true\n break\n fi\n done\nfi\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Claude Code' 12 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: Claude Code is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'Claude Code is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-claude.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-claude-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'claude'\nif ! harness_find_engine \"$1\"; then\n if ! command -v npm >/dev/null 2>&1; then\n printf '%s\\n' 'harness: npm is unavailable and the managed Node.js/npm runtime could not be used.'\n exit 1\n fi\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ npm install -g @anthropic-ai/claude-code' ''\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: installing for this user in <root>/home/.local'\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @anthropic-ai/claude-code') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @anthropic-ai/claude-code'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Claude Code' 12 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'Claude Code could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'Claude Code was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_status=0\n\"$harness_engine_bin\" \"$@\" || harness_status=$?\nharness_resume\nharness_after",
"c3f4853a7110e4ec": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: copilot exited ('\"$harness_status\"'). This pane is a shell now — run copilot again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nunset ANTHROPIC_API_KEY ANTHROPIC_AUTH_TOKEN ANTHROPIC_BASE_URL ANTHROPIC_MODEL OPENAI_API_KEY OPENAI_BASE_URL XAI_API_KEY GROK_MODELS_BASE_URL HERMES_INFERENCE_MODEL GRID_API_KEY GRID_MCP_AUTHORIZATION HERMES_MANAGED_DIR GROK_HOME HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: on macOS, grant Full Disk Access to the app that started tmux (and to Harness), then run: tmux kill-server' 'harness: or pick a folder outside Documents, Desktop and Downloads (System Settings › Privacy & Security).' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'copilot' '<root>/home/.local/bin/copilot'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n npm_prefix=\"$(npm prefix -g 2>/dev/null)\" || true\n if [ -n \"$npm_prefix\" ]; then\n for bin in 'copilot'; do\n if resolve_engine \"$npm_prefix/bin/$bin\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n fi\n return 1\n}\nif ! command -v node >/dev/null 2>&1 || ! command -v npm >/dev/null 2>&1; then\n for harness_node_bin in '<daemon-node-dir>'; do\n if [ -x \"$harness_node_bin/node\" ] && [ -x \"$harness_node_bin/npm\" ]; then\n PATH=\"$harness_node_bin${PATH:+:$PATH}\"\n export PATH\n hash -r 2>/dev/null || true\n break\n fi\n done\nfi\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Copilot' 15 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: Copilot is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'Copilot is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-copilot.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-copilot-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'copilot'\nif ! harness_find_engine \"$1\"; then\n if ! command -v npm >/dev/null 2>&1; then\n printf '%s\\n' 'harness: npm is unavailable and the managed Node.js/npm runtime could not be used.'\n exit 1\n fi\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ npm install -g @github/copilot' ''\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: installing for this user in <root>/home/.local'\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @github/copilot') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @github/copilot'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Copilot' 15 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'Copilot could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'Copilot was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_status=0\n\"$harness_engine_bin\" \"$@\" || harness_status=$?\nharness_resume\nharness_after",
"c8861a6bd8c5794e": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: copilot exited ('\"$harness_status\"'). This pane is a shell now — run copilot again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nunset ANTHROPIC_API_KEY ANTHROPIC_AUTH_TOKEN ANTHROPIC_BASE_URL ANTHROPIC_MODEL OPENAI_API_KEY OPENAI_BASE_URL XAI_API_KEY GROK_MODELS_BASE_URL HERMES_INFERENCE_MODEL GRID_MCP_AUTHORIZATION HERMES_MANAGED_DIR GROK_HOME HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: check the folder'\"'\"'s permissions for this user.' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'copilot' '<root>/home/.local/bin/copilot'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n npm_prefix=\"$(npm prefix -g 2>/dev/null)\" || true\n if [ -n \"$npm_prefix\" ]; then\n for bin in 'copilot'; do\n if resolve_engine \"$npm_prefix/bin/$bin\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n fi\n return 1\n}\nif ! command -v node >/dev/null 2>&1 || ! command -v npm >/dev/null 2>&1; then\n for harness_node_bin in '<daemon-node-dir>'; do\n if [ -x \"$harness_node_bin/node\" ] && [ -x \"$harness_node_bin/npm\" ]; then\n PATH=\"$harness_node_bin${PATH:+:$PATH}\"\n export PATH\n hash -r 2>/dev/null || true\n break\n fi\n done\nfi\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Copilot' 15 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: Copilot is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'Copilot is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-copilot.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-copilot-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'copilot'\nif ! harness_find_engine \"$1\"; then\n if ! command -v npm >/dev/null 2>&1; then\n printf '%s\\n' 'harness: npm is unavailable and the managed Node.js/npm runtime could not be used.'\n exit 1\n fi\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ npm install -g @github/copilot' ''\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: installing for this user in <root>/home/.local'\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @github/copilot') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @github/copilot'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Copilot' 15 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'Copilot could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'Copilot was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_status=0\n\"$harness_engine_bin\" \"$@\" || harness_status=$?\nharness_resume\nharness_after",
"d08628542e8295f9": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: claude exited ('\"$harness_status\"'). This pane is a shell now — run claude again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nunset HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: on macOS, grant Full Disk Access to the app that started tmux (and to Harness), then run: tmux kill-server' 'harness: or pick a folder outside Documents, Desktop and Downloads (System Settings › Privacy & Security).' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'claude' '<root>/home/.local/bin/claude'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n npm_prefix=\"$(npm prefix -g 2>/dev/null)\" || true\n if [ -n \"$npm_prefix\" ]; then\n for bin in 'claude'; do\n if resolve_engine \"$npm_prefix/bin/$bin\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n fi\n return 1\n}\nif ! command -v node >/dev/null 2>&1 || ! command -v npm >/dev/null 2>&1; then\n for harness_node_bin in '<daemon-node-dir>'; do\n if [ -x \"$harness_node_bin/node\" ] && [ -x \"$harness_node_bin/npm\" ]; then\n PATH=\"$harness_node_bin${PATH:+:$PATH}\"\n export PATH\n hash -r 2>/dev/null || true\n break\n fi\n done\nfi\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Claude Code' 12 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: Claude Code is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'Claude Code is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-claude.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-claude-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'claude'\nif ! harness_find_engine \"$1\"; then\n if ! command -v npm >/dev/null 2>&1; then\n printf '%s\\n' 'harness: npm is unavailable and the managed Node.js/npm runtime could not be used.'\n exit 1\n fi\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ npm install -g @anthropic-ai/claude-code' ''\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: installing for this user in <root>/home/.local'\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @anthropic-ai/claude-code') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @anthropic-ai/claude-code'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Claude Code' 12 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'Claude Code could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'Claude Code was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_status=0\n\"$harness_engine_bin\" \"$@\" || harness_status=$?\nharness_resume\nharness_after",
"d71ebf5ddb77943c": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: claude exited ('\"$harness_status\"'). This pane is a shell now — run claude again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nunset ANTHROPIC_API_KEY OPENAI_API_KEY OPENAI_BASE_URL XAI_API_KEY GROK_MODELS_BASE_URL COPILOT_PROVIDER_API_KEY COPILOT_PROVIDER_BASE_URL COPILOT_MODEL HERMES_INFERENCE_MODEL GRID_MCP_AUTHORIZATION HERMES_MANAGED_DIR GROK_HOME HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: on macOS, grant Full Disk Access to the app that started tmux (and to Harness), then run: tmux kill-server' 'harness: or pick a folder outside Documents, Desktop and Downloads (System Settings › Privacy & Security).' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'claude' '<root>/home/.local/bin/claude'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n npm_prefix=\"$(npm prefix -g 2>/dev/null)\" || true\n if [ -n \"$npm_prefix\" ]; then\n for bin in 'claude'; do\n if resolve_engine \"$npm_prefix/bin/$bin\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n fi\n return 1\n}\nif ! command -v node >/dev/null 2>&1 || ! command -v npm >/dev/null 2>&1; then\n for harness_node_bin in '<daemon-node-dir>'; do\n if [ -x \"$harness_node_bin/node\" ] && [ -x \"$harness_node_bin/npm\" ]; then\n PATH=\"$harness_node_bin${PATH:+:$PATH}\"\n export PATH\n hash -r 2>/dev/null || true\n break\n fi\n done\nfi\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Claude Code' 12 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: Claude Code is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'Claude Code is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-claude.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-claude-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'claude'\nif ! harness_find_engine \"$1\"; then\n if ! command -v npm >/dev/null 2>&1; then\n printf '%s\\n' 'harness: npm is unavailable and the managed Node.js/npm runtime could not be used.'\n exit 1\n fi\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ npm install -g @anthropic-ai/claude-code' ''\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: installing for this user in <root>/home/.local'\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @anthropic-ai/claude-code') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @anthropic-ai/claude-code'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Claude Code' 12 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'Claude Code could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'Claude Code was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_status=0\n\"$harness_engine_bin\" \"$@\" || harness_status=$?\nharness_resume\nharness_after",
"d91e8779a55df4f5": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: claude exited ('\"$harness_status\"'). This pane is a shell now — run claude again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nunset ANTHROPIC_API_KEY OPENAI_API_KEY OPENAI_BASE_URL XAI_API_KEY GROK_MODELS_BASE_URL COPILOT_PROVIDER_API_KEY COPILOT_PROVIDER_BASE_URL COPILOT_MODEL HERMES_INFERENCE_MODEL GRID_API_KEY GRID_MCP_AUTHORIZATION HERMES_MANAGED_DIR GROK_HOME HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: check the folder'\"'\"'s permissions for this user.' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'claude' '<root>/home/.local/bin/claude'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n npm_prefix=\"$(npm prefix -g 2>/dev/null)\" || true\n if [ -n \"$npm_prefix\" ]; then\n for bin in 'claude'; do\n if resolve_engine \"$npm_prefix/bin/$bin\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n fi\n return 1\n}\nif ! command -v node >/dev/null 2>&1 || ! command -v npm >/dev/null 2>&1; then\n for harness_node_bin in '<daemon-node-dir>'; do\n if [ -x \"$harness_node_bin/node\" ] && [ -x \"$harness_node_bin/npm\" ]; then\n PATH=\"$harness_node_bin${PATH:+:$PATH}\"\n export PATH\n hash -r 2>/dev/null || true\n break\n fi\n done\nfi\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Claude Code' 12 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: Claude Code is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'Claude Code is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-claude.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-claude-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'claude'\nif ! harness_find_engine \"$1\"; then\n if ! command -v npm >/dev/null 2>&1; then\n printf '%s\\n' 'harness: npm is unavailable and the managed Node.js/npm runtime could not be used.'\n exit 1\n fi\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ npm install -g @anthropic-ai/claude-code' ''\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: installing for this user in <root>/home/.local'\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @anthropic-ai/claude-code') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @anthropic-ai/claude-code'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Claude Code' 12 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'Claude Code could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'Claude Code was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_status=0\n\"$harness_engine_bin\" \"$@\" || harness_status=$?\nharness_resume\nharness_after",
"e0dc021c3a3e4bbc": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: codex exited ('\"$harness_status\"'). This pane is a shell now — run codex again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nharness_codex_probe() {\n harness_codex_mode=0\n harness_codex_seen=$('<daemon-node>' -e 'const {execFileSync}=require('\"'\"'node:child_process'\"'\"');try { const h=execFileSync(process.argv[1],['\"'\"'--help'\"'\"'],{timeout:30000,maxBuffer:1048576,encoding:'\"'\"'utf8'\"'\"',stdio:['\"'\"'ignore'\"'\"','\"'\"'pipe'\"'\"','\"'\"'pipe'\"'\"']});process.exit(/--no-daemon(?:[^A-Za-z0-9-]|$)/.test(h)?0:64); } catch { process.exit(2); }' \"$1\") || harness_codex_mode=$?\n case \"$harness_codex_mode\" in\n 0) harness_codex_no_daemon=1 ;;\n 64) harness_codex_no_daemon= ;;\n *) printf '%s\\n' 'harness: could not verify Codex startup options. Please try opening this session again.' >&2; exit 1 ;;\n esac\n}\nharness_codex_check() {\n '<daemon-node>' -e 'const { execFileSync } = require('\"'\"'node:child_process'\"'\"');\nconst { createHash } = require('\"'\"'node:crypto'\"'\"');\nconst [mode, tmux, pane, baseline] = process.argv.slice(1);\ntry {\n if (!/^%\\d+$/.test(pane)) process.exit(1);\n const screen = execFileSync(tmux, ['\"'\"'capture-pane'\"'\"', '\"'\"'-p'\"'\"', '\"'\"'-J'\"'\"', '\"'\"'-S'\"'\"', '\"'\"'-10'\"'\"', '\"'\"'-t'\"'\"', pane], {\n timeout: 2000, maxBuffer: 1024 * 1024, encoding: '\"'\"'utf8'\"'\"', stdio: ['\"'\"'ignore'\"'\"', '\"'\"'pipe'\"'\"', '\"'\"'ignore'\"'\"'],\n });\n const last = screen.trimEnd().split('\"'\"'\\n'\"'\"').at(-1)?.trim() ?? '\"'\"''\"'\"';\n const hash = createHash('\"'\"'sha256'\"'\"').update(last).digest('\"'\"'hex'\"'\"');\n if (mode === '\"'\"'before'\"'\"') {\n process.stdout.write(JSON.stringify({ at: Date.now(), hash }));\n } else {\n const before = JSON.parse(baseline);\n const elapsed = Date.now() - before.at;\n const error = '\"'\"'Error: account/read failed during TUI bootstrap: account/read failed: workspace routing discovery timed out (code -32603)'\"'\"';\n const fresh = Number.isFinite(elapsed) && elapsed >= 0 && /^[a-f0-9]{64}$/.test(before.hash) && before.hash !== hash;\n const matches = mode === '\"'\"'after-update'\"'\"'\n ? /^(?:🎉\\s*)?Update ran successfully! Please restart Codex\\.$/.test(last)\n : mode === '\"'\"'after'\"'\"' && elapsed <= 30000 && last === error;\n process.exit(fresh && matches ? 0 : 1);\n }\n} catch { process.exit(1); }' \"$@\"\n}\nharness_codex_start() {\n [ \"$harness_codex_go\" = 1 ] || return 0\n harness_codex_before=\n if [ -n \"${TMUX_PANE:-}\" ]; then harness_codex_before=$(harness_codex_check before '<tmux>' \"$TMUX_PANE\") || harness_codex_before=; fi\n harness_codex_probe \"$1\"\n harness_status=0\n}\nharness_codex_next() {\n [ \"$harness_codex_go\" = 1 ] || return 0\n harness_codex_go=0\n if [ \"$harness_status\" -eq 0 ] && [ \"$harness_codex_updated\" -eq 0 ] && [ -n \"$harness_codex_before\" ] &&\n harness_codex_seen=$(harness_codex_check after-update '<tmux>' \"$TMUX_PANE\" \"$harness_codex_before\"); then\n harness_codex_updated=1\n printf '\\n%s\\n' 'harness: Codex updated. Continuing startup…'\n harness_codex_go=1\n return 0\n fi\n [ \"$harness_status\" -eq 1 ] && [ \"$harness_codex_attempt\" -lt 3 ] && [ -n \"$harness_codex_before\" ] || return 0\n harness_codex_seen=$(harness_codex_check after '<tmux>' \"$TMUX_PANE\" \"$harness_codex_before\") || return 0\n harness_codex_delay=$((harness_codex_attempt * 2))\n harness_codex_attempt=$((harness_codex_attempt + 1))\n harness_codex_cancelled=0\n trap 'harness_codex_cancelled=1' INT\n printf '\\n%s\\n' \"harness: Codex account lookup timed out. Retrying startup ($harness_codex_attempt/3) in ${harness_codex_delay}s; Ctrl-C cancels.\"\n harness_codex_seen=$(sleep \"$harness_codex_delay\") || harness_codex_cancelled=1\n trap : INT\n if [ \"$harness_codex_cancelled\" -eq 1 ]; then harness_status=130; return 0; fi\n harness_codex_go=1\n}\nunset HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: check the folder'\"'\"'s permissions for this user.' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'codex' '<root>/home/.local/bin/codex'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n npm_prefix=\"$(npm prefix -g 2>/dev/null)\" || true\n if [ -n \"$npm_prefix\" ]; then\n for bin in 'codex'; do\n if resolve_engine \"$npm_prefix/bin/$bin\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n fi\n return 1\n}\nif ! command -v node >/dev/null 2>&1 || ! command -v npm >/dev/null 2>&1; then\n for harness_node_bin in '<daemon-node-dir>'; do\n if [ -x \"$harness_node_bin/node\" ] && [ -x \"$harness_node_bin/npm\" ]; then\n PATH=\"$harness_node_bin${PATH:+:$PATH}\"\n export PATH\n hash -r 2>/dev/null || true\n break\n fi\n done\nfi\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Codex' 20 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: Codex is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'Codex is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-codex.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-codex-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'codex'\nif ! harness_find_engine \"$1\"; then\n if ! command -v npm >/dev/null 2>&1; then\n printf '%s\\n' 'harness: npm is unavailable and the managed Node.js/npm runtime could not be used.'\n exit 1\n fi\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ npm install -g @openai/codex' ''\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: installing for this user in <root>/home/.local'\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @openai/codex') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @openai/codex'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Codex' 20 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'Codex could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'Codex was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_codex_attempt=1\nharness_codex_updated=0\nharness_codex_go=1\nharness_codex_start \"$harness_engine_bin\"\n[ \"$harness_codex_go\" != 1 ] || \"$harness_engine_bin\" ${harness_codex_no_daemon:+--no-daemon} \"$@\" || harness_status=$?\nharness_resume\nharness_codex_next\nharness_codex_start \"$harness_engine_bin\"\n[ \"$harness_codex_go\" != 1 ] || \"$harness_engine_bin\" ${harness_codex_no_daemon:+--no-daemon} \"$@\" || harness_status=$?\nharness_resume\nharness_codex_next\nharness_codex_start \"$harness_engine_bin\"\n[ \"$harness_codex_go\" != 1 ] || \"$harness_engine_bin\" ${harness_codex_no_daemon:+--no-daemon} \"$@\" || harness_status=$?\nharness_resume\nharness_codex_next\nharness_codex_start \"$harness_engine_bin\"\n[ \"$harness_codex_go\" != 1 ] || \"$harness_engine_bin\" ${harness_codex_no_daemon:+--no-daemon} \"$@\" || harness_status=$?\nharness_resume\nharness_codex_next\nharness_after",
"e164792ba440fbaa": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: codex exited ('\"$harness_status\"'). This pane is a shell now — run codex again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nharness_codex_probe() {\n harness_codex_mode=0\n harness_codex_seen=$('<daemon-node>' -e 'const {execFileSync}=require('\"'\"'node:child_process'\"'\"');try { const h=execFileSync(process.argv[1],['\"'\"'--help'\"'\"'],{timeout:30000,maxBuffer:1048576,encoding:'\"'\"'utf8'\"'\"',stdio:['\"'\"'ignore'\"'\"','\"'\"'pipe'\"'\"','\"'\"'pipe'\"'\"']});process.exit(/--no-daemon(?:[^A-Za-z0-9-]|$)/.test(h)?0:64); } catch { process.exit(2); }' \"$1\") || harness_codex_mode=$?\n case \"$harness_codex_mode\" in\n 0) harness_codex_no_daemon=1 ;;\n 64) harness_codex_no_daemon= ;;\n *) printf '%s\\n' 'harness: could not verify Codex startup options. Please try opening this session again.' >&2; exit 1 ;;\n esac\n}\nharness_codex_check() {\n '<daemon-node>' -e 'const { execFileSync } = require('\"'\"'node:child_process'\"'\"');\nconst { createHash } = require('\"'\"'node:crypto'\"'\"');\nconst [mode, tmux, pane, baseline] = process.argv.slice(1);\ntry {\n if (!/^%\\d+$/.test(pane)) process.exit(1);\n const screen = execFileSync(tmux, ['\"'\"'capture-pane'\"'\"', '\"'\"'-p'\"'\"', '\"'\"'-J'\"'\"', '\"'\"'-S'\"'\"', '\"'\"'-10'\"'\"', '\"'\"'-t'\"'\"', pane], {\n timeout: 2000, maxBuffer: 1024 * 1024, encoding: '\"'\"'utf8'\"'\"', stdio: ['\"'\"'ignore'\"'\"', '\"'\"'pipe'\"'\"', '\"'\"'ignore'\"'\"'],\n });\n const last = screen.trimEnd().split('\"'\"'\\n'\"'\"').at(-1)?.trim() ?? '\"'\"''\"'\"';\n const hash = createHash('\"'\"'sha256'\"'\"').update(last).digest('\"'\"'hex'\"'\"');\n if (mode === '\"'\"'before'\"'\"') {\n process.stdout.write(JSON.stringify({ at: Date.now(), hash }));\n } else {\n const before = JSON.parse(baseline);\n const elapsed = Date.now() - before.at;\n const error = '\"'\"'Error: account/read failed during TUI bootstrap: account/read failed: workspace routing discovery timed out (code -32603)'\"'\"';\n const fresh = Number.isFinite(elapsed) && elapsed >= 0 && /^[a-f0-9]{64}$/.test(before.hash) && before.hash !== hash;\n const matches = mode === '\"'\"'after-update'\"'\"'\n ? /^(?:🎉\\s*)?Update ran successfully! Please restart Codex\\.$/.test(last)\n : mode === '\"'\"'after'\"'\"' && elapsed <= 30000 && last === error;\n process.exit(fresh && matches ? 0 : 1);\n }\n} catch { process.exit(1); }' \"$@\"\n}\nharness_codex_start() {\n [ \"$harness_codex_go\" = 1 ] || return 0\n harness_codex_before=\n if [ -n \"${TMUX_PANE:-}\" ]; then harness_codex_before=$(harness_codex_check before '<tmux>' \"$TMUX_PANE\") || harness_codex_before=; fi\n harness_codex_probe \"$1\"\n harness_status=0\n}\nharness_codex_next() {\n [ \"$harness_codex_go\" = 1 ] || return 0\n harness_codex_go=0\n if [ \"$harness_status\" -eq 0 ] && [ \"$harness_codex_updated\" -eq 0 ] && [ -n \"$harness_codex_before\" ] &&\n harness_codex_seen=$(harness_codex_check after-update '<tmux>' \"$TMUX_PANE\" \"$harness_codex_before\"); then\n harness_codex_updated=1\n printf '\\n%s\\n' 'harness: Codex updated. Continuing startup…'\n harness_codex_go=1\n return 0\n fi\n [ \"$harness_status\" -eq 1 ] && [ \"$harness_codex_attempt\" -lt 3 ] && [ -n \"$harness_codex_before\" ] || return 0\n harness_codex_seen=$(harness_codex_check after '<tmux>' \"$TMUX_PANE\" \"$harness_codex_before\") || return 0\n harness_codex_delay=$((harness_codex_attempt * 2))\n harness_codex_attempt=$((harness_codex_attempt + 1))\n harness_codex_cancelled=0\n trap 'harness_codex_cancelled=1' INT\n printf '\\n%s\\n' \"harness: Codex account lookup timed out. Retrying startup ($harness_codex_attempt/3) in ${harness_codex_delay}s; Ctrl-C cancels.\"\n harness_codex_seen=$(sleep \"$harness_codex_delay\") || harness_codex_cancelled=1\n trap : INT\n if [ \"$harness_codex_cancelled\" -eq 1 ]; then harness_status=130; return 0; fi\n harness_codex_go=1\n}\nunset ANTHROPIC_API_KEY ANTHROPIC_AUTH_TOKEN ANTHROPIC_BASE_URL ANTHROPIC_MODEL OPENAI_API_KEY OPENAI_BASE_URL XAI_API_KEY GROK_MODELS_BASE_URL COPILOT_PROVIDER_API_KEY COPILOT_PROVIDER_BASE_URL COPILOT_MODEL HERMES_INFERENCE_MODEL HERMES_MANAGED_DIR GROK_HOME HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: check the folder'\"'\"'s permissions for this user.' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'codex' '<root>/home/.local/bin/codex'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n npm_prefix=\"$(npm prefix -g 2>/dev/null)\" || true\n if [ -n \"$npm_prefix\" ]; then\n for bin in 'codex'; do\n if resolve_engine \"$npm_prefix/bin/$bin\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n fi\n return 1\n}\nif ! command -v node >/dev/null 2>&1 || ! command -v npm >/dev/null 2>&1; then\n for harness_node_bin in '<daemon-node-dir>'; do\n if [ -x \"$harness_node_bin/node\" ] && [ -x \"$harness_node_bin/npm\" ]; then\n PATH=\"$harness_node_bin${PATH:+:$PATH}\"\n export PATH\n hash -r 2>/dev/null || true\n break\n fi\n done\nfi\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Codex' 20 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: Codex is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'Codex is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-codex.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-codex-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'codex'\nif ! harness_find_engine \"$1\"; then\n if ! command -v npm >/dev/null 2>&1; then\n printf '%s\\n' 'harness: npm is unavailable and the managed Node.js/npm runtime could not be used.'\n exit 1\n fi\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ npm install -g @openai/codex' ''\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: installing for this user in <root>/home/.local'\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @openai/codex') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @openai/codex'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Codex' 20 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'Codex could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'Codex was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_codex_attempt=1\nharness_codex_updated=0\nharness_codex_go=1\nharness_codex_start \"$harness_engine_bin\"\n[ \"$harness_codex_go\" != 1 ] || \"$harness_engine_bin\" ${harness_codex_no_daemon:+--no-daemon} \"$@\" || harness_status=$?\nharness_resume\nharness_codex_next\nharness_codex_start \"$harness_engine_bin\"\n[ \"$harness_codex_go\" != 1 ] || \"$harness_engine_bin\" ${harness_codex_no_daemon:+--no-daemon} \"$@\" || harness_status=$?\nharness_resume\nharness_codex_next\nharness_codex_start \"$harness_engine_bin\"\n[ \"$harness_codex_go\" != 1 ] || \"$harness_engine_bin\" ${harness_codex_no_daemon:+--no-daemon} \"$@\" || harness_status=$?\nharness_resume\nharness_codex_next\nharness_codex_start \"$harness_engine_bin\"\n[ \"$harness_codex_go\" != 1 ] || \"$harness_engine_bin\" ${harness_codex_no_daemon:+--no-daemon} \"$@\" || harness_status=$?\nharness_resume\nharness_codex_next\nharness_after",
"f29d3fd335553d90": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: pi exited ('\"$harness_status\"'). This pane is a shell now — run pi again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nunset ANTHROPIC_API_KEY ANTHROPIC_AUTH_TOKEN ANTHROPIC_BASE_URL ANTHROPIC_MODEL OPENAI_API_KEY OPENAI_BASE_URL XAI_API_KEY GROK_MODELS_BASE_URL COPILOT_PROVIDER_API_KEY COPILOT_PROVIDER_BASE_URL COPILOT_MODEL HERMES_INFERENCE_MODEL GRID_MCP_AUTHORIZATION HERMES_MANAGED_DIR GROK_HOME HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: on macOS, grant Full Disk Access to the app that started tmux (and to Harness), then run: tmux kill-server' 'harness: or pick a folder outside Documents, Desktop and Downloads (System Settings › Privacy & Security).' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'pi' '<root>/home/.local/bin/pi'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n npm_prefix=\"$(npm prefix -g 2>/dev/null)\" || true\n if [ -n \"$npm_prefix\" ]; then\n for bin in 'pi'; do\n if resolve_engine \"$npm_prefix/bin/$bin\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n fi\n return 1\n}\nif ! command -v node >/dev/null 2>&1 || ! command -v npm >/dev/null 2>&1; then\n for harness_node_bin in '<daemon-node-dir>'; do\n if [ -x \"$harness_node_bin/node\" ] && [ -x \"$harness_node_bin/npm\" ]; then\n PATH=\"$harness_node_bin${PATH:+:$PATH}\"\n export PATH\n hash -r 2>/dev/null || true\n break\n fi\n done\nfi\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Pi' 12 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: Pi is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'Pi is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-pi.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-pi-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'pi'\nif ! harness_find_engine \"$1\"; then\n if ! command -v npm >/dev/null 2>&1; then\n printf '%s\\n' 'harness: npm is unavailable and the managed Node.js/npm runtime could not be used.'\n exit 1\n fi\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ npm install -g --ignore-scripts @earendil-works/pi-coding-agent' ''\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: installing for this user in <root>/home/.local'\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g --ignore-scripts @earendil-works/pi-coding-agent') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g --ignore-scripts @earendil-works/pi-coding-agent'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Pi' 12 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'Pi could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'Pi was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_status=0\n\"$harness_engine_bin\" \"$@\" || harness_status=$?\nharness_resume\nharness_after",
"fe439d26e384405c": "rm -f -- '<root>/data/launch/<script>.sh'\nharness_nofile=$(ulimit -S -n 2>/dev/null) || harness_nofile=unlimited; if [ \"$harness_nofile\" != unlimited ] && [ \"$harness_nofile\" -lt 65536 ] 2>/dev/null; then ulimit -S -n 65536 2>/dev/null || ulimit -S -n \"$(ulimit -H -n)\" 2>/dev/null || true; fi; unset harness_nofile\nharness_stopped() {\n [ \"$harness_status\" -gt 128 ] 2>/dev/null || return 1\n harness_signal=$(kill -l \"$harness_status\" 2>/dev/null) || return 1\n case $harness_signal in\n STOP|TSTP|TTIN|TTOU|SIGSTOP|SIGTSTP|SIGTTIN|SIGTTOU) jobs %% >/dev/null 2>&1 ;;\n *) return 1 ;;\n esac\n}\nharness_fg() {\n harness_now=$(date +%s 2>/dev/null) || harness_now=0\n if [ $((harness_now - harness_resumed)) -le 1 ]; then harness_quick=$((harness_quick + 1)); else harness_quick=0; fi\n harness_resumes=$((harness_resumes + 1))\n case $harness_signal in *TTIN|*TTOU) harness_stuck=$harness_quick ;; *) harness_stuck=0 ;; esac\n if [ \"$harness_stuck\" -ge 5 ] || { [ -z \"${ZSH_VERSION:-}\" ] && [ \"$harness_resumes\" -ge 1000 ]; }; then\n kill -9 %% 2>/dev/null\n harness_status=137\n return 0\n fi\n if [ \"$harness_quick\" -ge 3 ]; then harness_waited=$(sleep 1) || :; fi\n harness_resumed=$(date +%s 2>/dev/null) || harness_resumed=0\n harness_status=0\n fg >/dev/null || harness_status=$?\n}\nharness_resume() {\n if [ -n \"${ZSH_VERSION:-}\" ]; then\n while harness_stopped; do harness_fg; done\n return 0\n fi\n harness_stopped || return 0\n harness_fg\n harness_resume\n}\nharness_resumed=0\nharness_quick=0\nharness_resumes=0\nharness_after() {\n if [ \"$harness_status\" -eq 127 ]; then exit 127; fi\n [ -n \"${TMUX_PANE:-}\" ] && { '<tmux>' set-option -p -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1 || '<tmux>' set-option -w -t \"$TMUX_PANE\" @harness_engine_exit \"$harness_status\" >/dev/null 2>&1; } || true\n if ! [ -t 0 ]; then exit \"$harness_status\"; fi\n if harness_tty=$(stty -g 2>/dev/null) && stty -icanon -echo min 0 time 3 2>/dev/null; then\n while harness_waiting=$(dd bs=65536 count=1 2>/dev/null | wc -c) && [ \"$((harness_waiting))\" -gt 0 ]; do :; done\n stty \"$harness_tty\" 2>/dev/null || true\n fi\n if [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\n printf '\\n%s\\n' 'harness: copilot exited ('\"$harness_status\"'). This pane is a shell now — run copilot again, or stop the pane.'\n exec '/bin/zsh' -l\n}\nunset ANTHROPIC_API_KEY ANTHROPIC_AUTH_TOKEN ANTHROPIC_BASE_URL ANTHROPIC_MODEL OPENAI_API_KEY OPENAI_BASE_URL XAI_API_KEY GROK_MODELS_BASE_URL HERMES_INFERENCE_MODEL GRID_API_KEY GRID_MCP_AUTHORIZATION HERMES_MANAGED_DIR GROK_HOME HARNESS_DSH HARNESS_DSH_DIR HARNESS_WORKSPACE HARNESS_CONTEXT_FILE HARNESS_SKILLS_DIR HARNESS_PRIVATE_GRID\nGRID_NO_UPDATE_CHECK=1\nexport GRID_NO_UPDATE_CHECK\nif [ -x '<root>/data/bin/harness-browser' ]; then if [ \"${BROWSER:-}\" != '<root>/data/bin/harness-browser' ]; then HARNESS_PREVIOUS_BROWSER=\"${BROWSER:-}\"; export HARNESS_PREVIOUS_BROWSER; fi; BROWSER='<root>/data/bin/harness-browser'; export BROWSER; fi\nif [ \"${HARNESS_DEVELOPER_DIR:-}\" = 1 ]; then unset DEVELOPER_DIR HARNESS_DEVELOPER_DIR; fi\nif [ -x '/usr/bin/xcode-select' ] && [ -z \"${DEVELOPER_DIR:-}\" ] && [ ! -d '/Library/Developer/CommandLineTools/usr/bin' ] && [ ! -e '/var/db/xcode_select_link' ] && ! harness_devtools=$('/usr/bin/xcode-select' -p 2>/dev/null); then\n DEVELOPER_DIR='/Library/Developer/CommandLineTools'\n HARNESS_DEVELOPER_DIR=1\n export DEVELOPER_DIR HARNESS_DEVELOPER_DIR\nfi\nif ! cd -- \"$1\"; then printf '%s\\n' 'harness: the selected working directory is unavailable.' >&2; exit 1; fi\nif ! [ -r . ]; then printf '%s\\n' \"harness: cannot read $PWD — the agent was not started.\" 'harness: check the folder'\"'\"'s permissions for this user.' >&2; exit 1; fi\nshift\nif [ -n \"${ZSH_VERSION:-}\" ]; then setopt monitor 2>/dev/null || :; else set -m 2>/dev/null || :; fi\ntrap : INT QUIT\nresolve_engine() {\n candidate=\"$1\"\n resolved=\"\"\n case \"$candidate\" in\n */*) resolved=\"$candidate\" ;;\n *) resolved=\"$(command -v \"$candidate\" 2>/dev/null)\" || true ;;\n esac\n [ -n \"$resolved\" ] && [ -f \"$resolved\" ] && [ -x \"$resolved\" ]\n}\nharness_find_engine() {\n harness_engine_bin=\n for candidate in \"$1\" 'copilot' '<root>/home/.local/bin/copilot'; do\n if resolve_engine \"$candidate\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n npm_prefix=\"$(npm prefix -g 2>/dev/null)\" || true\n if [ -n \"$npm_prefix\" ]; then\n for bin in 'copilot'; do\n if resolve_engine \"$npm_prefix/bin/$bin\"; then harness_engine_bin=\"$resolved\"; return 0; fi\n done\n fi\n return 1\n}\nif ! command -v node >/dev/null 2>&1 || ! command -v npm >/dev/null 2>&1; then\n for harness_node_bin in '<daemon-node-dir>'; do\n if [ -x \"$harness_node_bin/node\" ] && [ -x \"$harness_node_bin/npm\" ]; then\n PATH=\"$harness_node_bin${PATH:+:$PATH}\"\n export PATH\n hash -r 2>/dev/null || true\n break\n fi\n done\nfi\nharness_wait_download() {\n harness_dl_pid=$(cat \"$HOME/.harness/run/downloading-$1\" 2>/dev/null) || return 0\n case \"$harness_dl_pid\" in ''|*[!0-9]*) return 0 ;; esac\n kill -0 \"$harness_dl_pid\" 2>/dev/null || return 0\n ps -p \"$harness_dl_pid\" -o command= 2>/dev/null | grep -q harness-download || return 0\n if [ \"$harness_quiet\" -eq 1 ]; then\n harness_dl_w=$( ( harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do sleep 0.5; harness_dl_i=$((harness_dl_i + 1)); done ) | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Copilot' 15 \"$harness_install_log\" 0 >&2 ) || :\n else\n printf '%s\\n' 'harness: Copilot is downloading in the background; waiting for it'\n harness_dl_i=0; while kill -0 \"$harness_dl_pid\" 2>/dev/null && [ \"$harness_dl_i\" -lt 1200 ]; do harness_dl_w=$(sleep 0.5) || :; harness_dl_i=$((harness_dl_i + 1)); done\n fi\n if kill -0 \"$harness_dl_pid\" 2>/dev/null; then printf '\\n%s\\n' 'Copilot is still downloading. Try again in a minute.'; exit 1; fi\n hash -r 2>/dev/null || true\n}\nharness_quiet=0\nharness_install_log=\"$HOME/.harness/logs/install-copilot.log\"\nharness_install_rc=\"$HOME/.harness/logs/install-copilot-$$.rc\"\n[ -x '<daemon-node>' ] && mkdir -p \"$HOME/.harness/logs\" 2>/dev/null && harness_quiet=1\nharness_find_engine \"$1\" || harness_wait_download 'copilot'\nif ! harness_find_engine \"$1\"; then\n if ! command -v npm >/dev/null 2>&1; then\n printf '%s\\n' 'harness: npm is unavailable and the managed Node.js/npm runtime could not be used.'\n exit 1\n fi\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: engine is missing — installing it in this terminal' 'harness: $ npm install -g @github/copilot' ''\n [ \"$harness_quiet\" -eq 1 ] || printf '%s\\n' 'harness: installing for this user in <root>/home/.local'\nfi\nharness_status=0\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 1 ] || (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @github/copilot') || harness_status=$?\n[ -n \"$harness_engine_bin\" ] || [ \"$harness_quiet\" -eq 0 ] || ( ( (export npm_config_prefix='<root>/home/.local' NPM_CONFIG_PREFIX='<root>/home/.local'; eval 'npm install -g @github/copilot'); printf %s $? >\"$harness_install_rc\" ) 2>&1 | '<daemon-node>' -e 'const fs=require(\"fs\");const [label,sec,log,waiting]=process.argv.slice(1);const E=Number(sec)*1000;const t0=Date.now();const out=fs.openSync(log,\"a\");fs.writeSync(out,\"\\n--- \"+new Date().toISOString()+\" installing \"+label+\"\\n\");process.stdin.on(\"data\",(d)=>fs.writeSync(out,d));const rows=waiting===\"1\"?3:2;let drawn=false;const draw=()=>{const t=Date.now()-t0;const f=Math.min(0.97,Math.max(0.04,1-1/(1+2.4*t/E)));const n=Math.round(f*24);const left=Math.round((E-t)/1000);const when=t>3*E?\"still working, this can take a while\":left>3?\"about \"+left+\" s\":\"almost there\";const lines=[\"Installing \"+label+\"… \"+when,\"█\".repeat(n)+\"░\".repeat(24-n)].concat(waiting===\"1\"?[\"Your message goes as soon as it starts.\"]:[]);let text=drawn?\"\\x1b[\"+rows+\"F\":\"\";for(const l of lines)text+=\"\\r\\x1b[2K\"+l+\"\\n\";drawn=true;process.stdout.write(text);};draw();const tick=setInterval(draw,500);process.stdin.on(\"end\",()=>{clearInterval(tick);fs.closeSync(out);});' 'Copilot' 15 \"$harness_install_log\" 0; harness_rc=\"$(cat \"$harness_install_rc\" 2>/dev/null || echo 130)\"; rm -f \"$harness_install_rc\"; exit \"$harness_rc\" ) || harness_status=$?\nharness_resume\nif [ -z \"$harness_engine_bin\" ]; then\n if [ \"$harness_status\" -ne 0 ] && [ \"$harness_quiet\" -eq 1 ]; then printf '\\n%s\\n\\n' 'Copilot could not be installed.'; tail -n 12 \"$harness_install_log\"; printf '\\n%s\\n' \"Full details: $harness_install_log\"; exit 1; fi\n if [ \"$harness_status\" -ne 0 ]; then printf '\\n%s\\n' 'harness: the install failed, so the agent was not started. The command is above; fix it and create the agent again.'; exit 1; fi\n hash -r 2>/dev/null || true\n if [ \"$harness_quiet\" -eq 1 ] && ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'Copilot was installed but could not be started.' \"Full details: $harness_install_log\"; exit 1; fi\n if ! harness_find_engine \"$1\"; then printf '\\n%s\\n' 'harness: the install completed, but its executable could not be found. Check the installer output and PATH above.'; exit 1; fi\nfi\nshift\nharness_status=0\n\"$harness_engine_bin\" \"$@\" || harness_status=$?\nharness_resume\nharness_after"
}
}