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
Claude Code is told the pull request line, not only given it as a setting (#1200)
Dee9b586ef1915d
diff --git a/cli/src/engines/__fixtures__/launch-argv.golden.json b/cli/src/engines/__fixtures__/launch-argv.golden.jsonindex 9be27b35f..599e67b55 100644--- a/cli/src/engines/__fixtures__/launch-argv.golden.json+++ b/cli/src/engines/__fixtures__/launch-argv.golden.json@@ -1141,13 +1141,13 @@"codex · own login · the daemon home's file": {"result":{"ok":true,"overrides":{"env":{},"extraArgs":["-c","model_provider=\"from-file\"","-c","developer_instructions=\"You are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started.\""],"clearEnv":["HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"]}},"calls":[]},"codex · profile · the profile's file": {"result":{"ok":true,"overrides":{"env":{"CODEX_HOME":"<root>/profile-home"},"extraArgs":["-c","model_provider=\"profile-file\"","-c","developer_instructions=\"You are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started.\""],"clearEnv":["HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"]}},"calls":["installCodexHooks <root>/profile-home"]},"codex · profile without a file": {"result":{"ok":true,"overrides":{"env":{"CODEX_HOME":"<root>/no-such-profile"},"extraArgs":["-c","model_provider=\"openai\"","-c","developer_instructions=\"You are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started.\""],"clearEnv":["HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"]}},"calls":["installCodexHooks <root>/no-such-profile"]},- "claude · started by an agent": {"result":{"ok":true,"overrides":{"env":{},"extraArgs":["--settings","{\"attribution\":{\"pr\":\"🤖 Generated with [Claude Code](https://claude.com/claude-code)\\n🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.\"}}","--append-system-prompt","You are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started."],"clearEnv":["HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"]}},"calls":[]},- "claude · started by an agent, a harness on a grid as a named agent": {"result":{"ok":true,"overrides":{"env":{"ANTHROPIC_BASE_URL":"https://grid.example/grid-abc/relay","ANTHROPIC_AUTH_TOKEN":"gridkey-abc123","ANTHROPIC_MODEL":"gpt-5","HARNESS_DSH":"acme/studio","HARNESS_WORKSPACE":"/work/studio","HARNESS_CONTEXT_FILE":"/work/studio/.harness/runtime/agent-0001/CONTEXT.md","STUDIO_MODE":"pro \"x\""},"extraArgs":["--disallowedTools=WebSearch,WebFetch","--system-prompt-snapshot","off","--studio","--settings","{\"attribution\":{\"pr\":\"🤖 Generated with [Claude Code](https://claude.com/claude-code)\\n🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.\"}}","--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.\n\nRead the harness context at \"/work/studio/.harness/runtime/agent-0001/CONTEXT.md\" before working.\n\nYou are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started."],"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_DIR","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"grid-abc","networkName":"Team grid","baseUrl":"https://grid.example/grid-abc/relay/v1","apiKey":"gridkey-abc123","model":"gpt-5"},"webSearch":"unavailable"}}},"calls":["dshLaunch acme/studio /work/studio claude agent-0001"]},+ "claude · started by an agent": {"result":{"ok":true,"overrides":{"env":{},"extraArgs":["--settings","{\"attribution\":{\"pr\":\"🤖 Generated with [Claude Code](https://claude.com/claude-code)\\n🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.\"}}","--append-system-prompt","You are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started.\n\nWhen you create or update a pull request, its body must include this exact line once, near the end and after any other attribution line: `🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.` It says another agent started this session in Harness. Do not add it to commit messages."],"clearEnv":["HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"]}},"calls":[]},+ "claude · started by an agent, a harness on a grid as a named agent": {"result":{"ok":true,"overrides":{"env":{"ANTHROPIC_BASE_URL":"https://grid.example/grid-abc/relay","ANTHROPIC_AUTH_TOKEN":"gridkey-abc123","ANTHROPIC_MODEL":"gpt-5","HARNESS_DSH":"acme/studio","HARNESS_WORKSPACE":"/work/studio","HARNESS_CONTEXT_FILE":"/work/studio/.harness/runtime/agent-0001/CONTEXT.md","STUDIO_MODE":"pro \"x\""},"extraArgs":["--disallowedTools=WebSearch,WebFetch","--system-prompt-snapshot","off","--studio","--settings","{\"attribution\":{\"pr\":\"🤖 Generated with [Claude Code](https://claude.com/claude-code)\\n🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.\"}}","--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.\n\nRead the harness context at \"/work/studio/.harness/runtime/agent-0001/CONTEXT.md\" before working.\n\nYou are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started.\n\nWhen you create or update a pull request, its body must include this exact line once, near the end and after any other attribution line: `🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.` It says another agent started this session in Harness. Do not add it to commit messages."],"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_DIR","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"grid-abc","networkName":"Team grid","baseUrl":"https://grid.example/grid-abc/relay/v1","apiKey":"gridkey-abc123","model":"gpt-5"},"webSearch":"unavailable"}}},"calls":["dshLaunch acme/studio /work/studio claude agent-0001"]},"codex · started by an agent": {"result":{"ok":true,"overrides":{"env":{},"extraArgs":["-c","model_provider=\"openai\"","-c","developer_instructions=\"You are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started.\\n\\nWhen you create or update a pull request, its body must include this exact line once, near the end and after any other attribution line: `🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.` It says another agent started this session in Harness. Do not add it to commit messages.\""],"clearEnv":["HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"]}},"calls":["readCodexConfig <home>/.codex/config.toml"]},"codex · started by an agent, a harness on a grid as a named agent": {"result":{"ok":true,"overrides":{"env":{"GRID_API_KEY":"gridkey-abc123","HARNESS_DSH":"acme/studio","HARNESS_WORKSPACE":"/work/studio","HARNESS_CONTEXT_FILE":"/work/studio/.harness/runtime/agent-0001/CONTEXT.md","STUDIO_MODE":"pro \"x\""},"extraArgs":["-c","model_provider=\"grid\"","-c","model_providers.grid.name=\"Autonomous Grid\"","-c","model_providers.grid.base_url=\"https://grid.example/grid-abc/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\"","-m","gpt-5","--studio","-c","shell_environment_policy.set.HARNESS_DSH=\"acme/studio\"","-c","shell_environment_policy.set.HARNESS_WORKSPACE=\"/work/studio\"","-c","shell_environment_policy.set.HARNESS_CONTEXT_FILE=\"/work/studio/.harness/runtime/agent-0001/CONTEXT.md\"","-c","shell_environment_policy.set.STUDIO_MODE=\"pro \\\"x\\\"\"","-c","developer_instructions=\"You are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started.\\n\\nWhen you create or update a pull request, its body must include this exact line once, near the end and after any other attribution line: `🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.` It says another agent started this session in Harness. Do not add it to commit messages.\""],"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_DIR","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"grid-abc","networkName":"Team grid","baseUrl":"https://grid.example/grid-abc/relay/v1","apiKey":"gridkey-abc123","model":"gpt-5"},"webSearch":"unavailable"}}},"calls":["dshLaunch acme/studio /work/studio codex agent-0001"]},"opencode · started by an agent": {"result":{"ok":true,"overrides":{"env":{},"extraArgs":[],"clearEnv":["HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"]}},"calls":[]},"opencode · started by an agent, a harness on a grid as a named agent": {"result":{"ok":true,"overrides":{"env":{"GRID_API_KEY":"gridkey-abc123","OPENCODE_CONFIG":"/state/grid-engine-config/agent-0001/opencode.json","HARNESS_DSH":"acme/studio","HARNESS_WORKSPACE":"/work/studio","HARNESS_CONTEXT_FILE":"/work/studio/.harness/runtime/agent-0001/CONTEXT.md","STUDIO_MODE":"pro \"x\""},"extraArgs":["-m","team-grid/gpt-5","--studio","--agent","harness-compute"],"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_DIR","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"],"gridLaunchRecord":{"override":{"networkId":"grid-abc","networkName":"Team grid","baseUrl":"https://grid.example/grid-abc/relay/v1","apiKey":"gridkey-abc123","model":"gpt-5"},"webSearch":"unavailable"},"sessionModel":"team-grid/gpt-5"}},"calls":["dshLaunch acme/studio /work/studio opencode agent-0001","writeGridConfigDir agent-0001 opencode.json"]},- "claude · started by an agent, the folder's own pull request text": {"result":{"ok":true,"overrides":{"env":{},"extraArgs":["--settings","{\"attribution\":{\"pr\":\"Made in the app\\n🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.\"}}","--append-system-prompt","You are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started."],"clearEnv":["HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"]}},"calls":[]},+ "claude · started by an agent, the folder's own pull request text": {"result":{"ok":true,"overrides":{"env":{},"extraArgs":["--settings","{\"attribution\":{\"pr\":\"Made in the app\\n🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.\"}}","--append-system-prompt","You are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started.\n\nWhen you create or update a pull request, its body must include this exact line once, near the end and after any other attribution line: `🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.` It says another agent started this session in Harness. Do not add it to commit messages."],"clearEnv":["HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"]}},"calls":[]},"claude · started by an agent, attribution hidden": {"result":{"ok":true,"overrides":{"env":{},"extraArgs":["--append-system-prompt","You are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started."],"clearEnv":["HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"]}},"calls":[]},"codex · started by an agent, the person's own instructions": {"result":{"ok":true,"overrides":{"env":{},"extraArgs":["-c","model_provider=\"openai\"","-c","developer_instructions=\"Be terse.\\n\\nYou are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started.\\n\\nWhen you create or update a pull request, its body must include this exact line once, near the end and after any other attribution line: `🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.` It says another agent started this session in Harness. Do not add it to commit messages.\""],"clearEnv":["HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"]}},"calls":["readCodexConfig <home>/.codex/config.toml"]},"codex · profile, started by an agent, instructions it cannot keep exactly": {"result":{"ok":true,"overrides":{"env":{"CODEX_HOME":"/profiles/work"},"extraArgs":["-c","model_provider=\"openai\""],"clearEnv":["HARNESS_DSH","HARNESS_DSH_DIR","HARNESS_WORKSPACE","HARNESS_CONTEXT_FILE","HARNESS_SKILLS_DIR","HARNESS_PRIVATE_GRID"]}},"calls":["readCodexConfig /profiles/work/config.toml","installCodexHooks /profiles/work"]},diff --git a/cli/src/engines/__fixtures__/launch-shapes.golden.json b/cli/src/engines/__fixtures__/launch-shapes.golden.jsonindex 6c4d6c9da..1bc251d7a 100644--- a/cli/src/engines/__fixtures__/launch-shapes.golden.json+++ b/cli/src/engines/__fixtures__/launch-shapes.golden.json@@ -39,10 +39,10 @@"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/w38","claude","--append-system-prompt","You are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started."],"script":"d3f8b8a35d872741","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/w39","codex","-c","developer_instructions=\"You are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started.\""],"script":"51edaf2d9021f9c1","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/w40","claude","--settings","{\"attribution\":{\"pr\":\"🤖 Generated with [Claude Code](https://claude.com/claude-code)\\n🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.\"}}","--append-system-prompt","You are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started."],"script":"d3f8b8a35d872741","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":[]},+ "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/w40","claude","--settings","{\"attribution\":{\"pr\":\"🤖 Generated with [Claude Code](https://claude.com/claude-code)\\n🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.\"}}","--append-system-prompt","You are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started.\n\nWhen you create or update a pull request, its body must include this exact line once, near the end and after any other attribution line: `🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.` It says another agent started this session in Harness. Do not add it to commit messages."],"script":"d3f8b8a35d872741","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/w41","codex","-c","developer_instructions=\"You are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started.\\n\\nWhen you create or update a pull request, its body must include this exact line once, near the end and after any other attribution line: `🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.` It says another agent started this session in Harness. Do not add it to commit messages.\""],"script":"51edaf2d9021f9c1","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/w42","opencode"],"script":"7ff052bd4280633e","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/w43","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","{\"attribution\":{\"pr\":\"🤖 Generated with [Claude Code](https://claude.com/claude-code)\\n🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.\"}}","--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.\n\nYou are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started."],"script":"0fd89f463aa4e0e9","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"]}+ "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/w43","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","{\"attribution\":{\"pr\":\"🤖 Generated with [Claude Code](https://claude.com/claude-code)\\n🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.\"}}","--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.\n\nYou are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started.\n\nWhen you create or update a pull request, its body must include this exact line once, near the end and after any other attribution line: `🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.` It says another agent started this session in Harness. Do not add it to commit messages."],"script":"0fd89f463aa4e0e9","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","--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.\n\nYou are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started."],"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":[]},@@ -106,8 +106,8 @@"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","{\"attribution\":{\"pr\":\"🤖 Generated with [Claude Code](https://claude.com/claude-code)\\n🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.\"}}","--append-system-prompt","You are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started."],"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","{\"attribution\":{\"pr\":\"🤖 Generated with [Claude Code](https://claude.com/claude-code)\\n🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.\"}}","--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.\n\nYou are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started."],"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, started by an agent": {"result":{"ok":true,"overrides":{"env":{},"extraArgs":["--settings","{\"attribution\":{\"pr\":\"🤖 Generated with [Claude Code](https://claude.com/claude-code)\\n🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.\"}}","--append-system-prompt","You are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started.\n\nWhen you create or update a pull request, its body must include this exact line once, near the end and after any other attribution line: `🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.` It says another agent started this session in Harness. Do not add it to commit messages."],"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","{\"attribution\":{\"pr\":\"🤖 Generated with [Claude Code](https://claude.com/claude-code)\\n🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.\"}}","--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.\n\nYou are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started.\n\nWhen you create or update a pull request, its body must include this exact line once, near the end and after any other attribution line: `🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.` It says another agent started this session in Harness. Do not add it to commit messages."],"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":["--append-system-prompt","You are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started."],"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\"","-c","developer_instructions=\"You are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started.\\n\\nWhen you create or update a pull request, its body must include this exact line once, near the end and after any other attribution line: `🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.` It says another agent started this session in Harness. Do not add it to commit messages.\""],"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","-c","developer_instructions=\"You are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started.\\n\\nWhen you create or update a pull request, its body must include this exact line once, near the end and after any other attribution line: `🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.` It says another agent started this session in Harness. Do not add it to commit messages.\""],"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":[]},@@ -208,10 +208,10 @@"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/w36","copilot"],"script":"bdbea8aa1d3e4b33","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/w38","claude","--append-system-prompt","You are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started."],"script":"6dc5fd2b979b6e45","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/w39","codex","-c","developer_instructions=\"You are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started.\""],"script":"1ff40fd30d1478c3","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/w40","claude","--settings","{\"attribution\":{\"pr\":\"🤖 Generated with [Claude Code](https://claude.com/claude-code)\\n🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.\"}}","--append-system-prompt","You are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started."],"script":"6dc5fd2b979b6e45","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":[]},+ "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/w40","claude","--settings","{\"attribution\":{\"pr\":\"🤖 Generated with [Claude Code](https://claude.com/claude-code)\\n🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.\"}}","--append-system-prompt","You are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started.\n\nWhen you create or update a pull request, its body must include this exact line once, near the end and after any other attribution line: `🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.` It says another agent started this session in Harness. Do not add it to commit messages."],"script":"6dc5fd2b979b6e45","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/w41","codex","-c","developer_instructions=\"You are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started.\\n\\nWhen you create or update a pull request, its body must include this exact line once, near the end and after any other attribution line: `🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.` It says another agent started this session in Harness. Do not add it to commit messages.\""],"script":"1ff40fd30d1478c3","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/w42","opencode"],"script":"ba08f0832f2d5eeb","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/w43","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","{\"attribution\":{\"pr\":\"🤖 Generated with [Claude Code](https://claude.com/claude-code)\\n🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.\"}}","--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.\n\nYou are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started."],"script":"72fe6c9b6937e258","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"]}+ "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/w43","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","{\"attribution\":{\"pr\":\"🤖 Generated with [Claude Code](https://claude.com/claude-code)\\n🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.\"}}","--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.\n\nYou are running in Harness, and the person can watch you. You can hand work to other agents (Claude Code, Codex) that run in their own harnesses: `harness new`, `harness wait`, `harness show`, `harness close` (see `harness --help`). Only use or close harnesses you started.\n\nWhen you create or update a pull request, its body must include this exact line once, near the end and after any other attribution line: `🤝 Started by another agent in [Harness](https://harness.autonomous.ai) — agents that run agents.` It says another agent started this session in Harness. Do not add it to commit messages."],"script":"72fe6c9b6937e258","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": {diff --git a/cli/src/engines/claude/launch.ts b/cli/src/engines/claude/launch.tsindex 24d0f38b6..4ea312d1b 100644--- a/cli/src/engines/claude/launch.ts+++ b/cli/src/engines/claude/launch.ts@@ -39,6 +39,12 @@ export const launch: EngineLaunch = {key: 'attribution', field: 'pr', legacy: { key: 'includeCoAuthoredBy', until: ['commit', 'pr'] },own: '🤖 Generated with [Claude Code](https://claude.com/claude-code)',args: ['--settings', '{settings}'],+ // Told as well: Claude Code 2.1.296, started by another agent and asked for "a short body saying it fixes a typo",+ // opened the pull request with that body and neither line (2026-10-11, in a clean VM). Codex, told in these words,+ // kept ours.+ instruction: 'When you create or update a pull request, its body must include this exact line once, near the end and '+ + 'after any other attribution line: `{line}` It says another agent started this session in Harness. Do not add it '+ + 'to commit messages.',},// Recorded with the rest of the system prompt on the conversation's first request and kept on every resume// (`--system-prompt-snapshot`, on by default), so it is given at each launch and read once.diff --git a/cli/src/engines/facets/launch.ts b/cli/src/engines/facets/launch.tsindex 83910a7f5..e548bc566 100644--- a/cli/src/engines/facets/launch.ts+++ b/cli/src/engines/facets/launch.ts@@ -172,6 +172,12 @@ export interface SettingAttribution {own: string/** The argv; `{settings}` is the settings object, as JSON. */args: readonly string[]+ /**+ * The same line as an instruction (`{line}`), told with Harness's instructions (`harnessInstructions` `append`)+ * whenever the setting is given: a setting is only a default, which the agent drops once its task spells out the+ * pull request's body.+ */+ instruction?: string}/**diff --git a/cli/src/engines/kit/attribution.ts b/cli/src/engines/kit/attribution.tsindex 09b339ed3..acb055677 100644--- a/cli/src/engines/kit/attribution.ts+++ b/cli/src/engines/kit/attribution.ts@@ -30,7 +30,7 @@ export function attributionArgsIn(contract: AttributionContract, line: string, fexport interface Instruction { text: string; mark: string }/** The pull request line as an instruction engine is told it. */-export const attributionInstruction = (contract: InstructionAttribution, line: string): Instruction => ({ text: fill(contract.instruction, 'line', line), mark: line })+export const attributionInstruction = (contract: { instruction: string }, line: string): Instruction => ({ text: fill(contract.instruction, 'line', line), mark: line })/** The argv that gives an instruction engine [instructions] after the person's own value, in one config value. */export function instructionsArgsIn(contract: InstructionAttribution, instructions: readonly Instruction[], files: AttributionFiles): string[] {diff --git a/cli/src/engines/launches.ts b/cli/src/engines/launches.tsindex 7125421de..af906119a 100644--- a/cli/src/engines/launches.ts+++ b/cli/src/engines/launches.ts@@ -99,8 +99,9 @@ export function agentInstructionArgs(engine: AgentEngine | string, said: { instr]return instructionsArgsIn(attribution, instructions, attributionFiles(attribution, place))}- return [- ...(said.prLine && attribution ? attributionArgsIn(attribution, said.prLine, attributionFiles(attribution, place)) : []),- ...(said.instructions && told?.kind === 'append' ? told.args.map((arg) => fill(arg, 'text', said.instructions!)) : []),- ]+ const setting = said.prLine && attribution ? attributionArgsIn(attribution, said.prLine, attributionFiles(attribution, place)) : []+ // Only beside the setting it backs: where the person's settings hide the engine's attribution, neither is given.+ const reminder = setting.length && attribution?.instruction ? attributionInstruction({ instruction: attribution.instruction }, said.prLine!).text : null+ const texts = told?.kind === 'append' ? [said.instructions, reminder].filter((text): text is string => !!text) : []+ return [...setting, ...(texts.length && told?.kind === 'append' ? told.args.map((arg) => fill(arg, 'text', texts.join('\n\n'))) : [])]}diff --git a/cli/src/lib/agentAttribution.spec.ts b/cli/src/lib/agentAttribution.spec.tsindex a09aecd41..d604e8c76 100644--- a/cli/src/lib/agentAttribution.spec.ts+++ b/cli/src/lib/agentAttribution.spec.ts@@ -13,6 +13,8 @@ afterEach(() => rmSync(dataDir, { recursive: true, force: true }))const place = { cwd: null, read: () => null }const claudeLine = ['--settings', JSON.stringify({ attribution: { pr: `🤖 Generated with [Claude Code](https://claude.com/claude-code)\n${AGENT_ATTRIBUTION_LINE}` } })]const claudeTold = ['--append-system-prompt', HARNESS_INSTRUCTIONS]+/** The pull request line told as an instruction too: a setting alone was dropped once a task spelled out the body. */+const claudePrTold = expect.stringContaining(`its body must include this exact line once, near the end and after any other attribution line: \`${AGENT_ATTRIBUTION_LINE}\``)const codexValue = (...texts: string[]) => ['-c', `developer_instructions=${JSON.stringify(texts.join('\n\n'))}`]describe('what Harness tells an agent as it starts', () => {@@ -22,7 +24,9 @@ describe('what Harness tells an agent as it starts', () => {})it('tells every harness how to use Harness, and adds the pull request line only to one another agent started', () => {- expect(agentLaunchArgs('claude', 'agent', place, dataDir)).toEqual([...claudeLine, ...claudeTold])+ const told = agentLaunchArgs('claude', 'agent', place, dataDir)+ expect(told).toEqual([...claudeLine, '--append-system-prompt', claudePrTold])+ expect(told[3].startsWith(`${HARNESS_INSTRUCTIONS}\n\nWhen you create or update a pull request`)).toBe(true)expect(agentLaunchArgs('claude', null, place, dataDir)).toEqual(claudeTold)expect(agentLaunchArgs('claude', undefined, place, dataDir)).toEqual(claudeTold)// Codex keeps both in one config value: a second -c of the same key would replace the first.@@ -39,7 +43,9 @@ describe('what Harness tells an agent as it starts', () => {it('follows the person\'s switches: no instructions once agents may not start agents, no line once that is off', () => {writeAgentSettings(dataDir, { agentsStartAgents: false })expect(agentLaunchArgs('claude', null, place, dataDir)).toEqual([])- expect(agentLaunchArgs('claude', 'agent', place, dataDir)).toEqual(claudeLine)+ // The pull request line, and its instruction, without Harness's own instructions.+ expect(agentLaunchArgs('claude', 'agent', place, dataDir)).toEqual([...claudeLine, '--append-system-prompt', claudePrTold])+ expect(agentLaunchArgs('claude', 'agent', place, dataDir)[3].startsWith('When you create or update a pull request')).toBe(true)expect(agentLaunchArgs('codex', null, place, dataDir)).toEqual([])writeAgentSettings(dataDir, { agentsStartAgents: true, pullRequestLine: false })expect(agentLaunchArgs('claude', 'agent', { cwd: '/w', read: () => null }, dataDir)).toEqual(claudeTold)@@ -47,6 +53,11 @@ describe('what Harness tells an agent as it starts', () => {expect(agentLaunchArgs('claude', 'agent', { cwd: '/w', read: () => { throw new Error('read nothing') } }, dataDir)).toEqual([])})+ it('tells Claude Code nothing of the line where the person hid its attribution', () => {+ const hidden = { cwd: null, read: (path: string) => path.endsWith('settings.json') ? JSON.stringify({ attribution: false }) : null }+ expect(agentLaunchArgs('claude', 'agent', hidden, dataDir)).toEqual(claudeTold)+ })+it('keeps the person\'s own Codex instructions first, and says nothing they already say', () => {const theirs = { cwd: null, read: (path: string) => path.endsWith('config.toml') ? 'developer_instructions = "Be brief."\n' : null }expect(agentLaunchArgs('codex', null, theirs, dataDir)).toEqual(codexValue('Be brief.', HARNESS_INSTRUCTIONS))