Skip to content

docs: GRAPHIFY_CLAUDE_CLI_MODEL is undocumented; claude-cli backend defaults to Opus for community naming #2861

Closed

Description

@sde-melo

Summary

GRAPHIFY_CLAUDE_CLI_MODEL is read by the claude-cli backend (graphify/llm.py, e.g.

# extraction graphify performs. GRAPHIFY_CLAUDE_CLI_MODEL=haiku (or
) but does not appear in the README's environment-variable list, nor in graphify --help for label / cluster-only. Since the backend defaults to Opus when the variable is unset, a user who follows the README and runs

graphify label . --backend=claude-cli

silently spends Opus quota on community naming — a job Haiku handles fine (I just named 97 communities of a 1.6k-node graph with haiku, results are good).

Suggestion

  1. Document GRAPHIFY_CLAUDE_CLI_MODEL next to the other backend variables (ANTHROPIC_MODEL, OPENAI_MODEL, …), with a note that the default is Opus and that haiku/sonnet are usually enough for naming.
  2. Mention it in the --help text of label / cluster-only (or make --model the documented way and print the effective model at the start of a labeling run so the cost surprise is visible).
  3. Optional: consider defaulting the CLI backend to a cheaper model for labeling specifically, keeping Opus for the semantic extraction where it matters.

Environment

graphifyy 0.9.46 (uv tool install "graphifyy[terraform]"), Windows 11, Claude Code CLI 2.1.229 on PATH.

Activity

  1. nothariharan commented on Oct 23, 2026

    @nothariharan
    Contributor

    Opened #4718: #4718

    Documents GRAPHIFY_CLAUDE_CLI_MODEL in the README environment section (default Opus; haiku / sonnet are enough for naming) and mentions it in the label / cluster-only --model help. Fresh branch from v8 @ c588b72d (0.9.94). Supersedes #2893.

  2. safishamsi commented on Oct 23, 2026

    @safishamsi
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions