You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
--code-only is missing from --help and the README #2071
--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:
Add --code-only to graphify --help, alongside --no-label and --no-viz.
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.
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.
Activity
HerenderKumar commentedon Jul 21, 2026
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.
HerenderKumar commentedon Jul 21, 2026
PR up: #2075
docs(cli): surface --code-only in the extract usage and README (#2071)
safishamsi commentedon Jul 22, 2026
Fixed in v0.9.24 (#2075).
--code-onlyis now surfaced in theextractusage text and the README. Thanks for the report. https://github.com/Graphify-Labs/graphify/releases/tag/v0.9.24Squashed commit of the following:
docs(cli): surface --code-only in the extract usage and README (Graph…