Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/agentctx/src/cli/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ Commands:
mcp MCP stdio server exposing the ctx_* tools (started by Claude Code)
hook <event> 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 <command> --help\` for command-specific options.
Docs: https://github.com/agentctxhq/agentctx`;

export async function main(argv: string[], env: CliEnv = defaultEnv()): Promise<number> {
const [command, ...args] = argv;
Expand Down
1 change: 1 addition & 0 deletions packages/agentctx/test/cli/commands.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 <command> --help` for command-specific options.");
expect(existsSync(t.env.agentctxHome)).toBe(false);
});

Expand Down
Loading