diff --git a/packages/cli/src/cli-surface.test.ts b/packages/cli/src/cli-surface.test.ts index 9011c23b3..c480fe824 100644 --- a/packages/cli/src/cli-surface.test.ts +++ b/packages/cli/src/cli-surface.test.ts @@ -35,6 +35,19 @@ describe("canonical CLI surface", () => { expect(run?.helpInformation()).not.toContain("--detach"); }); + it("offers thinking configuration when running, updating, and scheduling agents", () => { + const cli = createCli(); + const run = cli.commands.find((command) => command.name() === "run"); + const agent = cli.commands.find((command) => command.name() === "agent"); + const update = agent?.commands.find((command) => command.name() === "update"); + const schedule = cli.commands.find((command) => command.name() === "schedule"); + const scheduleCreate = schedule?.commands.find((command) => command.name() === "create"); + + expect(run?.helpInformation()).toContain("--thinking "); + expect(update?.helpInformation()).toContain("--thinking "); + expect(scheduleCreate?.helpInformation()).toContain("--thinking "); + }); + it("offers opening an existing agent in the desktop app", () => { const agent = createCli().commands.find((command) => command.name() === "agent"); const open = agent?.commands.find((command) => command.name() === "open"); diff --git a/packages/cli/src/commands/agent/index.ts b/packages/cli/src/commands/agent/index.ts index a0fd5d5de..85d34ef91 100644 --- a/packages/cli/src/commands/agent/index.ts +++ b/packages/cli/src/commands/agent/index.ts @@ -92,9 +92,10 @@ export function createAgentCommand(): Command { addJsonAndDaemonHostOptions( agent .command("update") - .description("Update an agent's metadata") + .description("Update an agent's settings or metadata") .argument("", "Agent ID (or prefix)") .option("--name ", "Update the agent's display name") + .option("--thinking ", "Update the agent's thinking option ID") .option( "--label