diff --git a/packages/agentctx/src/cli/main.ts b/packages/agentctx/src/cli/main.ts index 85b55ef..d330aba 100644 --- a/packages/agentctx/src/cli/main.ts +++ b/packages/agentctx/src/cli/main.ts @@ -35,8 +35,8 @@ Commands: mcp MCP stdio server exposing the ctx_* tools (started by Claude Code) hook hook dispatcher invoked by Claude Code (not for direct use) -Run any command with --help semantics via the docs: - https://github.com/agentctxhq/agentctx`; +Run \`agentctx --help\` for command-specific options. +Docs: https://github.com/agentctxhq/agentctx`; export async function main(argv: string[], env: CliEnv = defaultEnv()): Promise { const [command, ...args] = argv; diff --git a/packages/agentctx/test/cli/commands.test.ts b/packages/agentctx/test/cli/commands.test.ts index 81f58e4..0b0ed25 100644 --- a/packages/agentctx/test/cli/commands.test.ts +++ b/packages/agentctx/test/cli/commands.test.ts @@ -230,6 +230,7 @@ describe("dispatch", () => { it("prints help and version without touching the filesystem", async () => { expect(await main([], t.env)).toBe(0); expect(await main(["--version"], t.env)).toBe(0); + expect(t.stdout[0]).toContain("Run `agentctx --help` for command-specific options."); expect(existsSync(t.env.agentctxHome)).toBe(false); });