Skip to content

--code-only is missing from --help and the README #2071

Closed

Description

@Dao-LQ-AI

--code-only is a genuinely useful flag and it is currently discoverable only by triggering an error. It appears in neither the README nor graphify --help.

I evaluated graphify for a documentation-heavy repository where the docs contain infrastructure hostnames that must not leave the machine, so "can this run without any network call" was the deciding question. The README says code is parsed locally with tree-sitter and that docs go through an LLM, but it does not say whether the LLM path can be turned off. graphify --help lists --watch, --wiki, --no-label, --no-viz and others, and no code-only option. On that evidence I concluded no such flag existed and was about to drop the tool.

It exists. I found it by running with no API key set:

error: no LLM API key found (2 doc/paper/image file(s) need semantic extraction).
Set GEMINI_API_KEY or ... or pass --backend. A code-only corpus needs no key.
Or pass --code-only to index just the code (local AST, no key) and skip the non-code files.

That error message is excellent. It names the file count, lists the options, and gives the escape hatch. The problem is that you only see it if you run without a key, and someone evaluating the tool on a privacy constraint will often decide before that point.

--code-only worked exactly as described. 34 Python files, no key set, no network, 927 nodes and 2,016 edges.

Two suggestions, both small:

  1. Add --code-only to graphify --help, alongside --no-label and --no-viz.
  2. Add one line to the README's docs table, something like "pass --code-only to skip all non-code files and run with no API key and no network calls".

Worth saying that the underlying behaviour is already right. Refusing to run rather than silently falling back to a remote call is the correct default, and grepping the source turned up no telemetry endpoint. This is a documentation gap in front of a good design, not a design problem.

Activity

  1. HerenderKumar commented on Jul 21, 2026

    @HerenderKumar
    Contributor

    I would like to work on this. The flag is already there in the code, only it is not shown anywhere, so people are unable to find it. I will add --code-only line in graphify --help and also add a short note in the README, so anyone checking for a no-network/local-only option can see it directly. This is docs and help text only issue, no change in behaviour will be there.

  2. HerenderKumar commented on Jul 21, 2026

    @HerenderKumar
    Contributor

    PR up: #2075

  3. safishamsi commented on Jul 22, 2026

    @safishamsi
    Member

    Fixed in v0.9.24 (#2075). --code-only is now surfaced in the extract usage text and the README. Thanks for the report. https://github.com/Graphify-Labs/graphify/releases/tag/v0.9.24

  4. added a commit that references this issue on Jul 26, 2026
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