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
From zero: the installer and agent pages say what to run next and who does each step; only the person turns a setting on (#1355)
lingrd15d1e2d557b2
diff --git a/cli/packages/harness-mcp/README.md b/cli/packages/harness-mcp/README.mdindex 74cf49608..4e5003cfd 100644--- a/cli/packages/harness-mcp/README.md+++ b/cli/packages/harness-mcp/README.md@@ -8,6 +8,7 @@ harnesses, wait for them, read their answers and close them:| Tool | What it does ||---|---|+| `harness_whoami` | who you are to Harness, and whether you may start harnesses now: call it first || `harness_list` | the harnesses here: state, who started each, what each is about || `harness_start` | start an agent on a task in a folder or a new project, by name || `harness_wait` | wait until harnesses stop working |diff --git a/cli/packages/harness-mcp/index.mjs b/cli/packages/harness-mcp/index.mjsindex a87ad45c6..ba689fd94 100644--- a/cli/packages/harness-mcp/index.mjs+++ b/cli/packages/harness-mcp/index.mjs@@ -38,7 +38,9 @@ const SETUP_TEXT = (platform) => platform === 'win32'` ${INSTALL}`,' harness start','',- 'No account is needed for harnesses on this computer. Then restart this MCP server (or your client) to get the Harness tools.',+ 'Then restart this MCP server (or your client) to get the Harness tools, and call harness_whoami: it says whether you may start harnesses.',+ 'Only the person can let you: they sign in (harness login, in a browser) and turn on "Agents can start other agents"',+ '(Settings ▸ Experimental, or harness settings agents-start-agents on in their own terminal). Ask them; until then, do the work yourself.','More: https://harness.autonomous.ai/agents',].join('\n')diff --git a/cli/scripts/install.sh b/cli/scripts/install.shindex 73f238ae9..db1722ab8 100755--- a/cli/scripts/install.sh+++ b/cli/scripts/install.sh@@ -841,6 +841,24 @@ print_logo() {# One line of it: `harness version` prints the version alone today, and a notice it might add# tomorrow must not land inside this sentence.installed_version="$("$LAUNCHER" version 2>/dev/null | head -n 1 || true)"++# An agent that installed Harness (Claude Code, Codex, any that sets AI_AGENT) reads what to run next and what only+# the person can do, in the shape every agent command ends with (docs/design/2026-10-15-agent-experience.md). Its+# shell says it is one, as the agent commands tell it (agentClient/model.ts `outsideCaller`).+ran_by_agent() {+ [ -n "${CODEX_THREAD_ID:-}" ] || [ -n "${AI_AGENT:-}" ] || [ -n "${HARNESS_AGENT_SESSION:-}" ] || [ "${CLAUDECODE:-}" = 1 ]+}+print_for_agents() {+ echo " For an agent (Claude Code, Codex) that installed this:"+ echo ""+ echo " Next: harness start (starts Harness here; no account is needed)"+ echo " Then: harness whoami (whether you may start harnesses, and if not, what to ask the person)"+ echo ""+ echo " Only the person can let an agent start harnesses: they sign in (harness login, in a browser)"+ echo " and turn on agents starting agents (harness settings agents-start-agents on, in their own"+ echo " terminal; an agent is refused). Ask them. How: https://harness.autonomous.ai/agents"+}+if [ "$INSTALL_MODE" = "desktop" ]; thenecho ""echo " harness${installed_version:+ $installed_version} installed."@@ -850,6 +868,8 @@ elsehn_version="$("$TUI_BIN" --version 2>/dev/null | head -n 1 | cut -d' ' -f1-2 || true)"if [ -n "$hn_version" ]; then echo " ✓ ${hn_version} installed."; fiecho ""+ # An agent reads from the top: what is for it comes first, then the person's guide.+ if ran_by_agent; then print_for_agents; echo ""; fiecho " Start here — every harness on every machine, in this terminal:"echo ""# A command that works in THIS terminal: ~/.local/bin is only on new terminals' PATH (step 6).@@ -873,9 +893,7 @@ elseecho " harness machines # this account's machines and their ids"echo " harness status # is the daemon running, and which machine this is"echo " harness --help # everything else"- echo ""- echo " For agents (Claude Code, Codex): harness new, wait, show and close, or harness mcp."- echo " How: https://harness.autonomous.ai/agents"+ if ! ran_by_agent; then echo ""; print_for_agents; fifi# 6. Make `harness` usable by NAME. We already added ~/.local/bin to your rc for NEW terminals (step 4);diff --git a/cli/src/agentClient/commands.spec.ts b/cli/src/agentClient/commands.spec.tsindex 2ca4e1599..d7338f2d6 100644--- a/cli/src/agentClient/commands.spec.ts+++ b/cli/src/agentClient/commands.spec.ts@@ -152,7 +152,8 @@ describe('harness ps', () => {const rows = lines.filter((l) => /^(h\d+|old\d|lead) /.test(l))expect(rows).toHaveLength(15)expect(rows.slice(0, 2).map((l) => l.split(' ')[0])).toEqual(['old1', 'old2'])- expect(lines).toContain('and 6 more: harness ps --all')+ // What is left out, and that the command for it lists the stopped ones too.+ expect(lines).toContain('and 6 more, none of them yours: harness ps --all (lists every one, and those stopped this week)')// Programs get every row.const json = harness(d)expect(await psCommand(['--json'], json.deps)).toBe(EXIT.ok)diff --git a/cli/src/agentClient/commands.ts b/cli/src/agentClient/commands.tsindex 9b8df9dba..3b5c8bb2d 100644--- a/cli/src/agentClient/commands.ts+++ b/cli/src/agentClient/commands.ts@@ -545,7 +545,9 @@ export function psCommand(argv: readonly string[], deps: ClientDeps = {}): Promiconst next = o.caller ? psNext(s.env, rows, !!context.canStart?.ok) : []// An agent reads its own first and at most AGENT_ROWS, unless it asked for all; programs and the person get every row.const { shown, more } = agent && !all ? forAgent(rows) : { shown: rows, more: 0 }- const rest = more ? `and ${more} more: ${step(s.env, 'ps', away ? machineOption(away.word) : '', { flag: '--all', arg: 'all: true' })}` : null+ // `--all` lists the stopped ones too: said, so the agent knows what it asks for.+ const hiddenYours = more > 0 && shown.filter((r) => r.yours).length < rows.filter((r) => r.yours).length+ const rest = more ? `and ${more} more${hiddenYours ? '' : ', none of them yours'}: ${step(s.env, 'ps', away ? machineOption(away.word) : '', { flag: '--all', arg: 'all: true' })} (lists every one, and those stopped this week)` : nulls.out(flags.has('--json') ? JSON.stringify({ you: o.caller ? o.caller.name : null, machine: on.machine, context, harnesses: rows, next }, null, 1): [agent ? formatContext(context) : null, formatRows(shown, s.now(), away ? away.label : undefined), rest, formatNext(next)].filter(Boolean).join('\n'))return EXIT.okdiff --git a/cli/src/agentClient/context.spec.ts b/cli/src/agentClient/context.spec.tsindex 2118e9ba4..606bcf61a 100644--- a/cli/src/agentClient/context.spec.ts+++ b/cli/src/agentClient/context.spec.ts@@ -26,12 +26,12 @@ describe('the context block', () => {it('the switch off: the person turns it on, and how; checked before the limits', () => {const c = buildContext(input({ switchOn: false, check: { reason: 'DEPTH', message: 'x' } }))- expect(formatContext(c).split('\n')[1]).toBe('Can start harnesses: no. The person has not turned on "Agents can start other agents". Ask them to run: harness settings agents-start-agents on')+ expect(formatContext(c).split('\n')[1]).toBe('Can start harnesses: no. The person has not turned on "Agents can start other agents". Ask them to run, in their own terminal: harness settings agents-start-agents on')expect(c.canStart).toMatchObject({ ok: false, reason: 'SWITCH_OFF', fixBy: 'person' })})it('signed out: sign in first', () => {- expect(lines({ signedIn: false, switchOn: false })[1]).toBe('Can start harnesses: no. This computer is signed out of Harness, and starting is the account\'s choice. Ask the person to run: harness login, then harness settings agents-start-agents on')+ expect(lines({ signedIn: false, switchOn: false })[1]).toBe('Can start harnesses: no. This computer is signed out of Harness, and starting is the account\'s choice. Ask the person to run, in their own terminal: harness login, then harness settings agents-start-agents on')})it('each limit, in its own words', () => {diff --git a/cli/src/agentClient/context.ts b/cli/src/agentClient/context.tsindex 18b265893..a60b0eeae 100644--- a/cli/src/agentClient/context.ts+++ b/cli/src/agentClient/context.ts@@ -91,7 +91,8 @@ export function formatContext(c: Context): string {: `You: ${c.caller.agent}, outside Harness, on ${c.caller.machine}. Nothing can message you here.`if (!c.canStart) return whoconst s = c.canStart- const asking = s.fixBy === 'you' ? 'To free a place' : s.reason === 'SWITCH_OFF' ? 'Ask them to run' : 'Ask the person to run'+ // The person's own terminal: an agent asked to run it itself is refused (settings.ts `settingsOnlyThePerson`).+ const asking = s.fixBy === 'you' ? 'To free a place' : s.reason === 'SWITCH_OFF' ? 'Ask them to run, in their own terminal' : 'Ask the person to run, in their own terminal'const can = s.ok ? 'Can start harnesses: yes.': s.reason === 'START_RATE' && c.quota?.nextStartAt ? `Can start harnesses: not until ${hhmm(c.quota.nextStartAt)} (${s.message.replace(/\.$/, '')}).`: `Can start harnesses: no. ${s.message}${s.fix ? ` ${asking}: ${s.fix}` : ''}`diff --git a/cli/src/agentClient/help.spec.ts b/cli/src/agentClient/help.spec.tsindex ed95e97c5..b411daa17 100644--- a/cli/src/agentClient/help.spec.ts+++ b/cli/src/agentClient/help.spec.ts@@ -25,9 +25,13 @@ describe('harness --help', () => {it('points an agent to its help on the first line, and leaves the rest as it was', () => {expect(helpFor({}, full)).toBe(`An agent? Run: harness help agents\n${full}`)})- it('puts the agents\' help first when an agent asks', () => {- expect(helpFor({ CODEX_THREAD_ID: 't' }, full).startsWith(agentsHelp())).toBe(true)- expect(helpFor({ AI_AGENT: 'cursor' }, full).startsWith(agentsHelp())).toBe(true)- expect(helpFor({ CLAUDECODE: '1', CLAUDE_CODE_SESSION_ID: 's' }, full).endsWith(full)).toBe(true)+ it('puts the agents\' help first when an agent asks, and does not point it to what it just read', () => {+ for (const env of [{ CODEX_THREAD_ID: 't' }, { AI_AGENT: 'cursor' }, { CLAUDECODE: '1', CLAUDE_CODE_SESSION_ID: 's' }]) {+ expect(helpFor(env, full)).toBe(`${agentsHelp()}\n\n${full}`)+ }+ })+ it('does not claim every command ends with Next: whoami and a refusal do not', () => {+ expect(agentsHelp()).not.toContain('Every command ends with Next')+ expect(agentsHelp()).toContain('Most commands end with Next:')})})diff --git a/cli/src/agentClient/help.ts b/cli/src/agentClient/help.tsindex a53832d6c..39a36050e 100644--- a/cli/src/agentClient/help.ts+++ b/cli/src/agentClient/help.ts@@ -30,7 +30,7 @@ export function agentsHelp(): string {' harness wait <name>',' harness show <name>',' harness close <name>',- 'Every command ends with Next: the command to run next. --json gives it as "next".',+ 'Most commands end with Next: the command to run next. --json gives it as "next".','','States: working, idle, needs the person, installing, starting, stopped, gone, closed, failed.',`Exit codes: ${EXIT.ok} done · ${EXIT.failed} failed · ${EXIT.usage} wrong command · ${EXIT.needsInput} needs the person · `@@ -48,6 +48,5 @@ export function agentsHelp(): string {/** `harness --help`: a line for agents first; an agent asking (by what its shell sets) gets its own help before the rest. */export function helpFor(env: NodeJS.ProcessEnv, full: string): string {- const text = `An agent? Run: harness help agents\n${full}`- return outsideCaller(env, '') ? `${agentsHelp()}\n\n${text}` : text+ return outsideCaller(env, '') ? `${agentsHelp()}\n\n${full}` : `An agent? Run: harness help agents\n${full}`}diff --git a/cli/src/agentClient/mcpPackage.spec.ts b/cli/src/agentClient/mcpPackage.spec.tsindex 85d36b388..e227962a6 100644--- a/cli/src/agentClient/mcpPackage.spec.ts+++ b/cli/src/agentClient/mcpPackage.spec.ts@@ -49,6 +49,12 @@ describe('npx @autonomous-ai/harness-mcp', () => {const told = pkg.setupAnswer({ jsonrpc: '2.0', id: 4, method: 'tools/call', params: { name: 'harness_setup' } })!expect(told.result.content[0].text).toContain(` ${pkg.INSTALL}\n harness start`)expect(told.result.content[0].text).toContain('ask the person')+ // Installed is not yet allowed: the agent is told what only the person does, and how it will know.+ const text: string = told.result.content[0].text+ expect(text).not.toContain('No account is needed for harnesses on this computer')+ expect(text).toContain('harness login')+ expect(text).toContain('harness settings agents-start-agents on')+ expect(text).toContain('harness_whoami')expect(pkg.setupAnswer({ jsonrpc: '2.0', id: 5, method: 'tools/call', params: { name: 'harness_setup' } }, 'win32')!.result.content[0].text).toContain('WSL')expect(pkg.setupAnswer({ jsonrpc: '2.0', id: 6, method: 'tools/call', params: { name: 'harness_list' } })).toMatchObject({ error: { code: -32602 } })expect(pkg.setupAnswer({ jsonrpc: '2.0', id: 7, method: 'ping' })).toEqual({ jsonrpc: '2.0', id: 7, result: {} })diff --git a/cli/src/agentClient/settings.spec.ts b/cli/src/agentClient/settings.spec.tsindex 8989674b7..5ebe1a4c6 100644--- a/cli/src/agentClient/settings.spec.ts+++ b/cli/src/agentClient/settings.spec.ts@@ -2,7 +2,7 @@ import { describe, expect, it } from 'vitest'import { settingsCommand, SETTINGS_SIGNED_OUT, SETTINGS_USAGE } from './settings.js'/** This computer's daemon as `harness settings` meets it: its answers to `/api/agent-settings`, and what was asked. */-function daemon(answer: (method: string, body: unknown) => { status: number; body: unknown } | Error) {+function daemon(answer: (method: string, body: unknown) => { status: number; body: unknown } | Error, env: NodeJS.ProcessEnv = {}) {const asked: Array<{ url: string; method: string; headers: Record<string, string>; body: unknown }> = []const fetch = (async (url: string, init: RequestInit) => {const body = init.body ? JSON.parse(String(init.body)) : undefined@@ -12,7 +12,7 @@ function daemon(answer: (method: string, body: unknown) => { status: number; bodreturn new Response(typeof reply.body === 'string' ? reply.body : JSON.stringify(reply.body), { status: reply.status })}) as unknown as typeof globalThis.fetchconst out: string[] = [], err: string[] = []- const run = (...argv: string[]) => settingsCommand(argv, { port: 4321, fetch, out: (l) => out.push(l), err: (l) => err.push(l) })+ const run = (...argv: string[]) => settingsCommand(argv, { port: 4321, fetch, env, out: (l) => out.push(l), err: (l) => err.push(l) })return { run, asked, out, err }}@@ -65,6 +65,19 @@ describe('harness settings', () => {expect(down.out).toEqual([])})+ it('lets only the person turn one on: an agent is refused, and may still turn one off or read them', async () => {+ for (const agent of [{ CLAUDECODE: '1', CLAUDE_CODE_SESSION_ID: 's' }, { CODEX_THREAD_ID: 't' }, { AI_AGENT: 'cursor' }]) {+ const d = daemon((method, body) => ({ status: 200, body: { ...OFF, ...(body as object), signedIn: true } }), agent)+ expect(await d.run('agents-start-agents', 'on')).toBe(5)+ expect(d.err).toEqual(['Only the person turns this on: it is their consent to what agents may do. Ask them to run '+ + '`harness settings agents-start-agents on` in their own terminal, or to turn it on in Harness Settings ▸ Experimental.'])+ // Nothing was asked of the daemon.+ expect(d.asked).toEqual([])+ expect(await d.run('agent-messages', 'off')).toBe(0)+ expect(await d.run()).toBe(0)+ }+ })+it('refuses what it does not know with the usage, and prints it for --help', async () => {const d = daemon(() => ({ status: 200, body: OFF }))expect(await d.run('nope', 'on')).toBe(2)diff --git a/cli/src/agentClient/settings.ts b/cli/src/agentClient/settings.tsindex 55b2c2c80..3d92f9a6c 100644--- a/cli/src/agentClient/settings.ts+++ b/cli/src/agentClient/settings.ts@@ -10,6 +10,15 @@*/import { AGENT_SETTING_NAMES, type AgentSettings } from '../lib/agentSettings.js'import { daemonUnreachableText } from '../lib/daemonState.js'+import { outsideCaller } from './model.js'++/** A refusal, as the agent verbs exit (commands.ts `EXIT.refused`): not a failure to retry. */+const REFUSED = 5++/** Said to an agent that tries to turn a setting on: the person's consent is theirs to give. */+export const settingsOnlyThePerson = (name: string): string =>+ `Only the person turns this on: it is their consent to what agents may do. Ask them to run \`harness settings ${name} on\` `+ + 'in their own terminal, or to turn it on in Harness Settings ▸ Experimental.'export const SETTINGS_USAGE = `Usage: harness settings [<name> on|off]@@ -31,6 +40,8 @@ export const SETTINGS_SIGNED_OUT = 'Signed out: these are experiments of your acexport interface SettingsDeps {/** This computer's daemon's port (lib/daemonState.ts `daemonPort`). */port: number+ /** Who runs it, by what its shell says (model.ts `outsideCaller`): an agent may not turn a setting on. */+ env?: NodeJS.ProcessEnvfetch?: typeof fetchout?: (line: string) => voiderr?: (line: string) => void@@ -48,6 +59,9 @@ export async function settingsCommand(argv: readonly string[], deps: SettingsDepconst key = AGENT_SETTING_NAMES[name]if (!key || (value !== 'on' && value !== 'off') || rest.length) { err(SETTINGS_USAGE); return 2 }change = { [key]: value === 'on' }+ // An agent refused a start would otherwise turn on the setting that refused it, and the person's say would be its+ // own. Its shell says it is one (Claude Code, Codex, AI_AGENT), in a Harness pane or not. Turning one off is safe.+ if (value === 'on' && outsideCaller(deps.env ?? process.env, '')) { err(settingsOnlyThePerson(name)); return REFUSED }}let answer: Answertry {diff --git a/cli/src/scripts/install.spec.ts b/cli/src/scripts/install.spec.tsindex 90eea922f..f020d6b83 100644--- a/cli/src/scripts/install.spec.ts+++ b/cli/src/scripts/install.spec.ts@@ -142,7 +142,10 @@ const installedFixture = (scratch: string) => {return { home, node: join(scratch, "node") };};-const runFinale = (mode: "standalone" | "desktop", pathHasBin: boolean, script = finaleOf) => {+/** What tells the installer an agent ran it: removed from this test's own environment, which may be an agent's. */+const AGENT_KEYS = ["CLAUDECODE", "CLAUDE_CODE_SESSION_ID", "CODEX_THREAD_ID", "AI_AGENT", "HARNESS_AGENT_SESSION"];++const runFinale = (mode: "standalone" | "desktop", pathHasBin: boolean, script = finaleOf, agent: Record<string, string> = {}) => {const source = readFileSync(installer, "utf8");const scratch = mkdtempSync(join(tmpdir(), "harness-finale-"));try {@@ -151,7 +154,8 @@ const runFinale = (mode: "standalone" | "desktop", pathHasBin: boolean, script =return spawnSync("/bin/sh", ["-c", script(source)], {encoding: "utf8",env: {- ...process.env,+ ...Object.fromEntries(Object.entries(process.env).filter(([key]) => !AGENT_KEYS.includes(key))),+ ...agent,HOME: home,INSTALL_MODE: mode,NODE_BIN: node,@@ -211,11 +215,33 @@ describe("scripts/install.sh: what it says once it is done", () => {expect(onPath).not.toContain("'harness' is installed in ~/.local/bin");}, 20_000);+ it("tells an agent what to run next and what only the person can do, after the person's guide", () => {+ const out = runFinale("standalone", true).stdout;+ expect(out).toMatch(/^ {6}Next: harness start +\(starts Harness here; no account is needed\)$/m);+ expect(out).toMatch(/^ {6}Then: harness whoami +\(whether you may start harnesses, and if not, what to ask the person\)$/m);+ expect(out).toContain("harness login");+ expect(out).toContain("harness settings agents-start-agents on");+ expect(out).toContain("https://harness.autonomous.ai/agents");+ // The person reads their guide first.+ expect(out.indexOf("harness --help")).toBeLessThan(out.indexOf("Next: harness start"));+ }, 20_000);++ it("puts that first when an agent ran it, before the person's guide", () => {+ for (const agent of [{ CLAUDECODE: "1" }, { CODEX_THREAD_ID: "t" }, { AI_AGENT: "cursor" }] as Array<Record<string, string>>) {+ const out = runFinale("standalone", true, finaleOf, agent).stdout;+ expect(out.indexOf("Next: harness start")).toBeGreaterThan(0);+ expect(out.indexOf("Next: harness start")).toBeLessThan(out.indexOf("harness login "));+ // Said once.+ expect(out.split("Next: harness start")).toHaveLength(2);+ }+ }, 20_000);+it("desktop mode gets the one line and no guide: the app takes the person through sign-in", () => {const out = runFinale("desktop", true).stdout;expect(out).toContain("harness 0.2.60 installed.");expect(out).not.toContain("Get started");expect(out).not.toContain(LOGO[1]);+ expect(out).not.toContain("Next: harness start");}, 20_000);});diff --git a/docs/design/2026-10-15-agent-experience.md b/docs/design/2026-10-15-agent-experience.mdindex 3e4bc3e2a..c8813ff26 100644--- a/docs/design/2026-10-15-agent-experience.md+++ b/docs/design/2026-10-15-agent-experience.md@@ -71,8 +71,8 @@ Line 2, by case, in the order `spawnRefusal()` checks them:| Case | Line 2 ||---|---|| allowed | `Can start harnesses: yes.` |-| switch off | `Can start harnesses: no. The person has not turned on "Agents can start other agents". Ask them to run: harness settings agents-start-agents on` |-| this computer signed out | `Can start harnesses: no. This computer is signed out of Harness, and starting is the account's choice. Ask the person to run: harness login, then harness settings agents-start-agents on` |+| switch off | `Can start harnesses: no. The person has not turned on "Agents can start other agents". Ask them to run, in their own terminal: harness settings agents-start-agents on` |+| this computer signed out | `Can start harnesses: no. This computer is signed out of Harness, and starting is the account's choice. Ask the person to run, in their own terminal: harness login, then harness settings agents-start-agents on` || started by an agent (depth) | `Can start harnesses: no. An agent started you, and only one level is allowed. Do the work yourself, or say in your answer what else is needed.` || the most open (4) | `Can start harnesses: no. You have <open> open, the most. To free a place: harness close <name>` || the most starts (20 in 10 minutes) | `Can start harnesses: not until <time> (<max starts> starts in <minutes> minutes).` |@@ -277,5 +277,16 @@ CLI end to end once for phases 4, 5 and 9.1. `harness whoami`: the word agents already try (`gh`, `vercel`, `wrangler`); `status` stays the daemon's.2. Refusals exit 5, with the JSON `code`.3. `ps` for agents: up to 15 rows, ordered as in part 4.+4. Agents start harnesses only on a signed-in account, as today. The switch is the account's: the same on every+ machine and shown in Settings in every app. A second, local-only switch for a signed-out computer would split one+ consent into two places, and signing in is one browser step the person also needs for their other machines and+ the phone.+5. Only the person turns a setting on. `harness settings <name> on` run by an agent (its shell says so: Claude Code,+ Codex, `AI_AGENT`) is refused with exit 5 and told to ask the person; turning one off stays open to agents. An+ agent refused a start would otherwise turn on the very setting that refused it. This is a guard against a+ helpful agent, not a security boundary: an agent that hides what its shell says is not stopped by it.+6. From zero: the installer ends with what an agent runs next (`harness start`, then `harness whoami`) and what only+ the person does, first when an agent ran it; `/agents` and `llms.txt` say when to use Harness rather than running+ `codex` yourself, and who does each install step.Open: phase 10's npm and registry steps need the owner's accounts (who and when).diff --git a/docs/research/2026-10-11-listing-submissions.md b/docs/research/2026-10-11-listing-submissions.mdindex fd5e62a28..959f9362c 100644--- a/docs/research/2026-10-11-listing-submissions.md+++ b/docs/research/2026-10-11-listing-submissions.md@@ -273,7 +273,7 @@ One top-level folder with `.claude-plugin/plugin.json` (the portal converts it t| Short description | 30 | Run coding agents in parallel || Long description | 4,000 | the long text above || Category | list | Developer Tools |-| Capabilities | 20, 120 each | Start Claude Code or Codex on a task in a folder of its own · Wait for one or several agents and read their answers · Send a follow-up to an agent it started · Close agents once done; the person can resume them |+| Capabilities | 20, 120 each | Start Claude Code or Codex on a task in a folder of its own · Wait for one or several agents and read their answers · Run an agent on another of your machines · Close agents once done; the person can resume them || Starter prompts | 3, 128 each | Have Codex review this branch and give me the findings · Fix the api and ui tests in parallel, one agent each · Start an agent on the docs and tell me when it is done || Logo | square, 48 px or more | `desktop/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png` |diff --git a/website/public/agents/index.html b/website/public/agents/index.htmlindex fa91d8167..6cb73ab78 100644--- a/website/public/agents/index.html+++ b/website/public/agents/index.html@@ -75,22 +75,63 @@work yourself, and a quick parallel search or edit inside one task with your own sub-agents (Claude Code's Agenttool, Codex sub-agents): they are cheaper and faster. Close each harness once you have its answer.</p>+ <h2 id="when">Harness, or running <code>codex</code> yourself</h2>+ <p>If Codex or Claude Code is installed, you can run it yourself for a one-off answer+ (<code>codex exec "<task>"</code>, <code>claude -p "<task>"</code>). Use Harness instead when:</p>+ <div class="table">+ <table>+ <thead><tr><th>The task</th><th>Why Harness</th></tr></thead>+ <tbody>+ <tr><td>The person should see the work, or may need to answer it</td><td>Every harness is in their Harness+ app, where they can watch it, answer its questions or stop it. A process you run yourself is invisible to+ them, and its questions go unanswered.</td></tr>+ <tr><td>Several tasks at once</td><td><code>harness wait <name>,<name></code> waits for all of+ them, or the first with <code>--any</code>.</td></tr>+ <tr><td>Work that takes longer than your turn</td><td>A harness keeps running after your turn ends, and its+ answer stays there to read.</td></tr>+ <tr><td>Another of the person's machines</td><td><code>harness new --machine <machine></code>: no SSH,+ once that machine runs Harness signed in to the person's account.</td></tr>+ <tr><td>Cleaning up after yourself</td><td>Limits on how many you start, and Harness closes what you leave+ behind.</td></tr>+ </tbody>+ </table>+ </div>+<h2 id="install">Install</h2><pre><code>curl -fsSL https://harness.autonomous.ai/cli/install.sh | bashharness start</code></pre>+ <h3 id="install-steps">Install, step by step, for an agent</h3>+ <div class="table">+ <table>+ <thead><tr><th>Step</th><th>Who</th><th>How</th></tr></thead>+ <tbody>+ <tr><td>1. Is it there already?</td><td>You</td><td><code>harness version</code>. Found: skip to step 4.</td></tr>+ <tr><td>2. Ask before installing</td><td>The person</td><td>It installs software on their computer: ask+ them first.</td></tr>+ <tr><td>3. Install</td><td>You, once they agree</td><td><code>curl -fsSL+ https://harness.autonomous.ai/cli/install.sh | bash</code>. On Linux it may need their password for+ <code>apt-get</code>; without one, ask them to run <code>sudo apt-get install -y tmux curl</code> first. It+ ends by saying what to run next.</td></tr>+ <tr><td>4. Start Harness here</td><td>You</td><td><code>harness start</code>. No account is needed.</td></tr>+ <tr><td>5. See what you may do</td><td>You</td><td><code>harness whoami</code>. It says whether you may start+ harnesses, and if not, what to ask the person.</td></tr>+ <tr><td>6. Sign in</td><td>The person</td><td><code>harness login</code>, in a browser. Needed for agents to+ start harnesses, and for other machines.</td></tr>+ <tr><td>7. Let agents start agents</td><td>The person</td><td>Settings ▸ Experimental ▸ Agents can start+ other agents, or <code>harness settings agents-start-agents on</code> in their own terminal. It is their+ consent: run by an agent, it is refused (exit 5).</td></tr>+ <tr><td>8. Check</td><td>You</td><td><code>harness whoami</code> says <code>Can start harnesses: yes.</code></td></tr>+ </tbody>+ </table>+ </div><p>macOS and Linux. <code>harness start</code> starts Harness on this computer. No account is needed for theharnesses the person starts on this computer; <code>harness login</code> signs in, which the person needs fortheir other machines, the phone app, and what they let agents do. The agents you start must be installed andsigned in to their own providers: <code>claude</code> for Claude Code, <code>codex</code> for Codex.</p><p>An agent starts harnesses only once the person turns on <strong>Agents can start other agents</strong>, an- experiment of their Harness account (Settings ▸ Experimental, or <code>harness settings agents-start-agents- on</code>), off by default. Until then <code>harness new</code> refuses and says how: tell the person, and do the- work yourself.</p>- <p>On Linux the installer installs tmux and curl with <code>apt-get</code>, which asks for the person's password.- Without one, ask the person to run <code>sudo apt-get install -y tmux curl</code> first.</p>- <p>Ask the person before you install software on their computer. To check whether Harness is already there:- <code>harness version</code>. The agent commands below are new: if <code>harness ps</code> is an unknown command,- run <code>harness update</code>.</p>+ experiment of their Harness account, off by default. Until then <code>harness new</code> refuses (exit 5) and+ says how: tell the person, and do the work yourself. The agent commands are new: if <code>harness whoami</code>+ is an unknown command, run <code>harness update</code>.</p><h2 id="skill">Add the skill</h2><p>The <code>harness</code> skill tells an agent when to use Harness and how. It comes as a plugin for Claude Codediff --git a/website/public/llms.txt b/website/public/llms.txtindex 5d281770c..11791f934 100644--- a/website/public/llms.txt+++ b/website/public/llms.txt@@ -2,6 +2,8 @@> Harness runs coding agents (Claude Code, Codex and others) in terminal sessions called harnesses, on the person's own computers, and shows every one in its desktop, web and phone apps. An agent can start harnesses from its shell, wait for them, read their answers and close them, while the person watches.+When to use Harness rather than running `codex exec` or `claude -p` yourself: the person should see the work or may need to answer it (every harness is in their Harness app; a process you run yourself is invisible to them), several tasks run at once, the work outlasts your turn, it runs on another of the person's machines (`--machine`), or you want the limits and cleanup Harness gives. For a one-off answer nobody needs to watch, running the agent yourself is fine.+Install on macOS or Linux, then start it. No account is needed for the harnesses the person starts on this computer:```@@ -9,9 +11,16 @@ curl -fsSL https://harness.autonomous.ai/cli/install.sh | bashharness start```-On Linux the installer installs tmux and curl with apt-get, which asks for the person's password. Without one, ask the person to run `sudo apt-get install -y tmux curl` first.+Step by step, for an agent (who does each):-An agent starts harnesses only once the person turns on "Agents can start other agents", an experiment of their Harness account (Settings ▸ Experimental, or `harness settings agents-start-agents on`), off by default. Until then `harness new` refuses and says how: tell the person, and do the work yourself.+1. You: `harness version`. Found: go to 4.+2. The person: ask before installing software on their computer.+3. You, once they agree: the install line above. On Linux it may need their password for apt-get; without one, ask them to run `sudo apt-get install -y tmux curl` first. It ends by saying what to run next.+4. You: `harness start`. No account is needed.+5. You: `harness whoami`. It says whether you may start harnesses, and if not, what to ask the person.+6. The person: `harness login`, in a browser.+7. The person: turns on "Agents can start other agents", an experiment of their Harness account (Settings ▸ Experimental, or `harness settings agents-start-agents on`), off by default. It is their consent: run by an agent, `harness settings … on` is refused (exit 5). Until then `harness new` refuses (exit 5) and says how: tell the person, and do the work yourself.+8. You: `harness whoami` says `Can start harnesses: yes.`The commands an agent uses:diff --git a/website/public/robots.txt b/website/public/robots.txtnew file mode 100644index 000000000..2076489f9--- /dev/null+++ b/website/public/robots.txt@@ -0,0 +1,4 @@+User-agent: *+Allow: /++Sitemap: https://harness.autonomous.ai/sitemap.xmldiff --git a/website/public/sitemap.xml b/website/public/sitemap.xmlnew file mode 100644index 000000000..acf148236--- /dev/null+++ b/website/public/sitemap.xml@@ -0,0 +1,9 @@+<?xml version="1.0" encoding="UTF-8"?>+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">+ <url><loc>https://harness.autonomous.ai/agents</loc></url>+ <url><loc>https://harness.autonomous.ai/llms.txt</loc></url>+ <url><loc>https://harness.autonomous.ai/desktop</loc></url>+ <url><loc>https://harness.autonomous.ai/download</loc></url>+ <url><loc>https://harness.autonomous.ai/os</loc></url>+ <url><loc>https://harness.autonomous.ai/hub</loc></url>+</urlset>diff --git a/website/scripts/agents-site.spec.ts b/website/scripts/agents-site.spec.tsindex b653283fc..7a3a8ac74 100644--- a/website/scripts/agents-site.spec.ts+++ b/website/scripts/agents-site.spec.ts@@ -247,4 +247,17 @@ describe("the pages and skill agents read", () => {expect(redirects.find((entry) => entry.source === "/cli/install.sh")?.destination).toMatch(/^https:\/\/cdn\.autonomous\.ai\//);for (const text of [page, llms, skill]) expect(text).toContain("curl -fsSL https://harness.autonomous.ai/cli/install.sh | bash");});++ // Nothing else on the site links to /agents or /llms.txt (/ is the web app): a search engine, or an agent searching+ // the web, finds them through the sitemap robots.txt names.+ it("can be found: robots.txt names a sitemap that lists /agents and /llms.txt", () => {+ const robots = readFileSync(join(site, "public", "robots.txt"), "utf8");+ expect(robots).toMatch(/^User-agent: \*$/m);+ expect(robots).not.toMatch(/^Disallow: \/\s*$/m);+ expect(robots).toMatch(/^Sitemap: https:\/\/harness\.autonomous\.ai\/sitemap\.xml$/m);+ const sitemap = readFileSync(join(site, "public", "sitemap.xml"), "utf8");+ for (const url of ["https://harness.autonomous.ai/agents", "https://harness.autonomous.ai/llms.txt"]) {+ expect(sitemap).toContain(`<loc>${url}</loc>`);+ }+ });});