From 598ff5b4030dceff0bdefcd7e9d7446ed460d322 Mon Sep 17 00:00:00 2001 From: Dashsoap <42135402+Dashsoap@users.noreply.github.com> Date: Sun, 14 Jun 2026 22:49:47 +0800 Subject: [PATCH] docs(claude): correct CLI subcommand list to match codegraph.ts The architecture guide listed a `context` subcommand that doesn't exist in src/bin/codegraph.ts, and omitted many that do. Replace the list with the actual commander registrations: install, uninstall, init, uninit, index, sync, status, unlock, query, explore, node, files, callers, callees, impact, affected, daemon, telemetry, upgrade, version, and the hidden serve --mcp. This matches the README's CLI Reference section. --- CLAUDE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CLAUDE.md b/CLAUDE.md index 6fe116de0..8a9441241 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -59,7 +59,7 @@ The public API surface is `src/index.ts` — the `CodeGraph` class wires all the - `src/sync/` — `FileWatcher` (native FSEvents/inotify/RDCW) with debounce + filter, and git-hook helpers. - `src/mcp/` — MCP server (`MCPServer`, `tools.ts`, `transport.ts`). `server-instructions.ts` is what the server returns in the MCP `initialize` response — keep it in sync with the user-facing tool guidance. - `src/installer/` — see below. -- `src/bin/codegraph.ts` — CLI (commander). Subcommands: `install`, `init`, `uninit`, `index`, `sync`, `status`, `query`, `files`, `context`, `affected`, `serve --mcp`. +- `src/bin/codegraph.ts` — CLI (commander). Subcommands: `install`, `uninstall`, `init`, `uninit`, `index`, `sync`, `status`, `unlock`, `query`, `explore`, `node`, `files`, `callers`, `callees`, `impact`, `affected`, `daemon`, `telemetry`, `upgrade`, `version`, `serve --mcp` (hidden). - `src/ui/` — terminal UI (shimmer progress, worker). ### NodeKind / EdgeKind