Skip to content

docs: document GRAPHIFY_CLAUDE_CLI_MODEL (#2861) - #4718

Closed
nothariharan wants to merge 1 commit into
Graphify-Labs:v8from
nothariharan:docs/2861-claude-cli-model
Closed

nothariharan wants to merge 1 commit into
Graphify-Labs:v8from
nothariharan:docs/2861-claude-cli-model

Conversation

@nothariharan

Copy link
Copy Markdown
Contributor

Fixes #2861.

Base

Based on upstream/v8 at c588b72d (0.9.94), the latest release at the time of writing.

Problem

GRAPHIFY_CLAUDE_CLI_MODEL is read by the claude-cli backend (graphify/llm.py) but was absent from the README and from the label / cluster-only help. Because claude-cli defaults to Opus, a user could silently spend Opus quota on community naming.

Change

  • README Environment variables: document GRAPHIFY_CLAUDE_CLI_MODEL, its default (Opus), and that haiku / sonnet are usually enough for naming.
  • CLI help for label and cluster-only: note that --model is overridden by GRAPHIFY_CLAUDE_CLI_MODEL for claude-cli.

Docs and help strings only; no behavior change.

Verification

  • python -m pytest tests/test_cli_help.py -q -> 2 passed.
  • Diff: 2 files, +4/-2.

The claude-cli backend defaults to Opus, so community naming can burn
Opus quota silently. Document the env var in the README environment
section and mention it in the label/cluster-only --model help.
@github-actions

Copy link
Copy Markdown

Thanks for the pull request, @nothariharan. A maintainer will review it soon.

Want to talk it through while it is in review? Come join us on our Discord server. For longer-form discussion there is also GitHub Discussions.

A couple of things that speed up review: make sure the test suite passes on Python 3.10 and 3.13, and that the change keeps extraction deterministic.

@github-actions github-actions Bot added the contributor Pull request from a returning community contributor label Oct 23, 2026

@graphify-labs graphify-labs Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Graphify reviewed this change.

No issues found by static checks — no coupling regressions or blocking issues in the code graph. That is not the same as safe to merge: see what was not checked.

Not checked: tests were not run; formal verification proved 0 of 1 changed function(s) (1 sampled, not proven).

Formal verification. PR-changed functions: 1/1 verified (0 proven, 1 may-equivalent, 0 distinguished) · 0 not verified.


Graphify review — findings

Documents the GRAPHIFY_CLAUDE_CLI_MODEL environment variable, which overrides the model used by the claude-cli backend (default is Opus). The README gets a new configuration entry saying haiku or sonnet is usually enough for community naming, while semantic extraction does better with a larger model. The --model help text for the cluster and label commands now mentions that claude-cli also reads this variable.

No blocking issues surfaced.

Analysis details — impact, health, verification

Impact & health

Graphify review

Impact — 338 functions depend on the 56 functions this change touches.

Health — grade B; 7 existing hotspot(s) in the area this change touches (pre-existing, not introduced here):

  • dispatch_command() — 5 callers, 134 callees (high)
  • main() — 110 callers, 3 callees (high)
  • _refresh_v1_opencode_plugins() — 18 callers, 7 callees (high)
  • _refresh_stale_skills() — 25 callers, 4 callees (high)
  • _run_cli() — 11 callers, 8 callees (high)
  • _check_skill_version() — 9 callers, 3 callees (medium)
  • test_poisoned_manifest_is_healed() — 0 callers, 6 callees (medium)

Verification — 338 functions in the blast radius were not formally verified this run (proofs are advisory here).

Gate & verification

graphify gate

PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.

Advisory (not blocking):

  • verification_scope: 337 function(s) in the blast radius were not formally verified this run

Test selection

Test selection

443 of 443 test file(s) selected (100%) via static blast radius.

Escalated to a full run for safety — the selection is not trustworthy on its own (see below). CI should run the whole suite.

  • tests/pi.test.ts — full-run-safety
  • tests/test_affected_cli.py — impact, full-run-safety
  • tests/test_affected_defines.py — full-run-safety
  • tests/test_affected_member_seed.py — full-run-safety
  • tests/test_affected_overrides.py — full-run-safety
  • tests/test_agents_platform.py — impact, full-run-safety
  • tests/test_alias_folding.py — full-run-safety
  • tests/test_analyze.py — full-run-safety
  • tests/test_anthropic_custom_endpoint.py — full-run-safety
  • tests/test_antigravity_install.py — full-run-safety
  • tests/test_apm_fallback_version.py — full-run-safety
  • tests/test_architecture_doc.py — full-run-safety
  • tests/test_astro_extraction.py — full-run-safety
  • tests/test_astro_import_ids.py — full-run-safety
  • tests/test_atomic_canvas_export.py — full-run-safety
  • tests/test_atomic_version_stamp.py — full-run-safety
  • tests/test_atomic_writes.py — full-run-safety
  • tests/test_backend_env_isolation.py — full-run-safety
  • tests/test_backend_extras.py — full-run-safety
  • tests/test_backend_opt_in.py — full-run-safety
  • tests/test_benchmark.py — full-run-safety
  • tests/test_benchmark_raw_graph.py — full-run-safety
  • tests/test_benchmark_real_query.py — full-run-safety
  • tests/test_blade_extractor.py — full-run-safety
  • tests/test_build.py — full-run-safety
  • tests/test_build_located_semantic_identity.py — full-run-safety
  • tests/test_build_merge_dedup_scope.py — full-run-safety
  • tests/test_build_merge_hyperedges_and_prune.py — full-run-safety
  • tests/test_build_merge_shrink_guard.py — full-run-safety
  • tests/test_builtin_global_type_refs.py — full-run-safety
  • tests/test_c_include_resolution.py — full-run-safety
  • tests/test_cache.py — full-run-safety
  • tests/test_cache_stale_import_target.py — full-run-safety
  • tests/test_callflow_html.py — full-run-safety
  • tests/test_cargo_introspect.py — full-run-safety
  • tests/test_cargo_missing_manifest.py — full-run-safety
  • tests/test_carried_hyperedge_remap.py — full-run-safety
  • tests/test_case_sensitive_resolution.py — full-run-safety
  • tests/test_charmap_encoding.py — full-run-safety
  • tests/test_chunking.py — full-run-safety
  • tests/test_cjs_module_extension.py — full-run-safety
  • tests/test_claude_cli_backend.py — full-run-safety
  • tests/test_claude_md.py — full-run-safety
  • tests/test_cli_broken_pipe.py — full-run-safety
  • tests/test_cli_export.py — full-run-safety
  • tests/test_cli_help.py — full-run-safety
  • tests/test_cloud_cta.py — full-run-safety
  • tests/test_cluster.py — full-run-safety
  • tests/test_cluster_ambiguous_scale.py — full-run-safety
  • tests/test_cluster_exclude_hubs.py — full-run-safety
  • … and 393 more

non-code file(s) changed (README.md) → running the full suite for safety (a code graph can't see config/fixture/data deps)

changed code file(s) with no mapped test (README.md) — a coverage gap or a missing link — running the full suite rather than only the selected tests

Selection is safe under the controlled-regression assumption; always-run tests + a periodic full run are the backstops. Advisory — it never changes the check verdict.

Formal verification

No difference found (not proven): No behavior difference found in \_run\_cli (not a proof).

The verifier ran both versions of \_run\_cli on many inputs and saw identical behavior every time. Strong evidence the change is safe, but evidence, not a proof.

Guarantee: Empirical: differential testing (both versions run on many generated inputs). A divergence on an untested input remains possible, so this is 'no counterexample found', not 'proven equivalent'.

Note: An input the sampler did not try could still differ.

@safishamsi

Copy link
Copy Markdown
Member

Landed in 0.9.95: document GRAPHIFY_CLAUDE_CLI_MODEL. Thanks @nothariharan. Live on PyPI: https://pypi.org/project/graphifyy/0.9.95/

@safishamsi safishamsi closed this Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor Pull request from a returning community contributor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants