diff --git a/README.md b/README.md index 522b56bc4..1c753891d 100644 --- a/README.md +++ b/README.md @@ -421,6 +421,8 @@ Beyond your AI assistant, query `graph.json` straight from the CLI with `graphif Backends, API keys, hook behavior, and tuning are controlled by environment variables. Full table: **[Configuration](https://docs.graphify.com/reference/configuration)**. +- **Claude CLI model**: `GRAPHIFY_CLAUDE_CLI_MODEL` overrides the model for the `claude-cli` backend (default: Opus). `haiku` or `sonnet` are usually enough for community naming; the semantic extraction pass benefits from a larger model. + --- ## Privacy diff --git a/graphify/__main__.py b/graphify/__main__.py index 2c293ba9a..718ee4d63 100644 --- a/graphify/__main__.py +++ b/graphify/__main__.py @@ -909,13 +909,13 @@ def _run_cli() -> None: print(" --graph path to graph.json (default /graphify-out/graph.json)") print(" --no-label keep 'Community N' placeholders (skip LLM community naming)") print(" --backend= backend to use for community naming (default: auto-detect)") - print(" --model= model to use for community naming") + print(" --model= model to use for community naming (claude-cli also reads GRAPHIFY_CLAUDE_CLI_MODEL)") print(" --max-concurrency=N parallel community-labeling LLM calls (default 4; forced to 1 for ollama/claude-cli)") print(" --batch-size=N communities per labeling LLM call (default 100, sized for ~16k context; use 40 for 8k)") print(" label (re)name communities with the configured LLM backend, regenerate report") print(" --missing-only keep existing labels and only name missing/placeholder communities") print(" --backend= backend to use (default: auto-detect from API keys)") - print(" --model= model to use for community naming") + print(" --model= model to use for community naming (claude-cli also reads GRAPHIFY_CLAUDE_CLI_MODEL)") print(" --max-concurrency=N parallel labeling LLM calls (default 4; forced to 1 for ollama/claude-cli)") print(" --batch-size=N communities per labeling LLM call (default 100)") print(" query \"\" BFS traversal of graph.json for a question")