Skip to content

extract requires an LLM API key even if I’m not interested in doc extraction #1734

Closed

Description

@ottens

Extract fails on a repo that contains non-code without access to an LLM. I’d like it to just index the code and ignore the rest. The workaround is to add a graphifyignore, but since it is not clear what is and what is not considered code, creating that list is a very onerous trial and error. Especially since the list of what is not code is much bigger than what is code and the ignore file is supposed to define what is not code. Adding a simple override or a partial failure like ‘x code files extracted, with y non code files failed due to no llm api key present’ might be a more friendly failure? Or happy to run it with a —code-only flag or something to that effect.

Activity

  1. safishamsi commented on Jul 8, 2026

    @safishamsi
    Member

    Fixed on v8 (next release) — added the --code-only flag you suggested.

    graphify extract . --code-only indexes the code via local AST (no API key needed) and skips the doc/paper/image files entirely, reporting what it skipped:

    [graphify extract] --code-only: skipping 12 non-code file(s) (9 docs, 2 papers, 1 images) — no LLM extraction
    [graphify extract] found 340 code, 0 docs, 0 papers, 0 images
    

    No more hand-crafting a .graphifyignore of everything non-code. And if you forget the flag on a mixed repo with no key, the error now points you straight at it ("Or pass --code-only to index just the code ..."). Regression tests cover both the flag succeeding keyless and the error hint. Thanks for the clear write-up — the trial-and-error-ignore pain was exactly the right thing to call out.

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