Skip to content

Graphify vs Claude Code AI agent #985

Open

Description

@diwanmail

Hi Team,

I have been using Graphify within my organization and encouraging others to adopt it as well. However, one challenge I am observing is that, for many common queries, Claude Code alone seems to provide similar results with the same or even lower token consumption compared to using Graphify.

Because of this, it has been difficult to convince others about the additional value Graphify brings. The common feedback I hear is:
“Claude Code already works well enough — why do we need Graphify on top of it?”

Another observation is around token usage. When Claude Code invokes the Graphify Query CLI multiple times (for example, 3–4 invocations), each query can consume around ~2K tokens. This quickly adds up to 8K+ tokens for a single workflow. In comparison, similar queries using Claude Code with grep/find/ripgrep often complete with much lower token usage.

For context, my current corpus size is:

Corpus Check

  • Large corpus: 1484 files · ~789,872 words.

Summary

  • 10202 nodes · 17610 edges · 560 communities

I would really appreciate guidance on the ideal use cases where Graphify clearly differentiates itself from standard Claude Code workflows.

Activity

  1. diwanmail commented on May 26, 2026

    @diwanmail
    Author

    Any update ? @safishamsi

  2. theknut commented on Aug 18, 2026

    @theknut

    I can second this.

    I tried Graphify on a large .NET monorepo (Copilot CLI + Graphify MCP), hoping for cheaper/faster/better context than a normal coding agent.

    Setup

    1. Installed Graphify + MCP and built a graph.
    2. Full-repo indexing was already a hickup - corpus too large, so I had to shrink scope (~6 projects, no tests). That’s already a real limit vs an agent that can just read the live tree.
    3. Ran fair A/B sessions: same model, same task; one graphify-MCP-only, one code-only (view/grep/glob). Measured cost/tokens and answer quality.

    Result
    Even on a topology/impact-style question where Graphify should have the advantage, it was still more expensive, and the code agent produced the better, more complete answer from live code — with no graph build or update step.

    Graphify MCP Code agent
    Cost ~1.6–1.9× higher baseline
    Peak context higher lower
    Answer quality weaker / partial better
    Overhead index, shrink corpus, keep graph fresh none

    I’ve also seen the “Graphify is just a tool — not meant as the single source of truth” argument. That doesn’t really help: the coding agent already beat Graphify without using Graphify at all, so the hybrid story doesn’t fix the comparison. You still pay create/update/maintenance cost for something that didn’t improve quality or reduce tokens in practice.

    Net: for large codebases, I don’t see additional value over the coding agent alone right now — same place as the OP.

  3. SrijanSriv commented on Sep 29, 2026

    @SrijanSriv
    Contributor

    hi @diwanmail @theknut

    i was meaning to replicate these finding you are quoting. i understand that i can replicate on a repo similar to the ones you have.

    just in case, do you think its possible to share the same repo that you used it on, or maybe a repo thats open-source and close or similar to the ones you have brought these statistics from?

    im willing to make this my priority. thanks!

  4. lxbachit03 commented on Nov 23, 2026

    @lxbachit03

    Hi @SrijanSriv ,
    Same experience as @theknut, on a public .NET C# codebase this time, so it can be reproduced. @SrijanSriv you asked for a repo to replicate with — here is one.

    Repo: https://github.com/lxbachit03/YGZ-Microservices-Multitenancy (pinned at b144931)
    Microservices (Basket, Catalog, Discount, Identity, Ordering, BuildingBlocks, YARP gateway) plus Next.js admin/client apps: ~943 .cs files (~59k lines), ~502 .ts/.tsx (~77k lines), 23 .csproj.

    Setup

    • graphifyy 0.9.115, graphify extract . --code-only (no LLM), Windows, Python 3.14. Build: 23 s, 10,549 nodes, 26,760 edges, 445 communities. .graphifyignore: node_modules, bin, obj, dist, build, .next, docs, public, images/fonts, .docx, .plantuml.
    • For comparison, code-review-graph 2.4.0 (build: 82 s, 63,840 nodes, 100,733 edges).
    • Agent: Antigravity CLI (agy 1.5.14) print mode, model claude-sonnet-5-5-medium, a fresh session per run, identical prompt per arm, graph served by the local stdio MCP server (graphify-mcp graph.json). Tokens from the CLI's JSON usage.
    • 5 cross-file questions with expected files written before running: checkout flow Basket → Ordering consumer; every user of ITenantHttpContext (13 files); Basket classes calling the Discount gRPC service and which RPCs; where the tenant-header authorization requirement is defined/enforced/registered; which admin pages use the product service hook and where the API base URL comes from.

    Round 1 – graph available, not mentioned in the prompt (15 runs)
    The agent never called the graph (0 MCP calls in 10 graph-arm runs). It answered everything with 2–4 shell searches; all arms found 100% of the expected files. Token differences were noise (±5%).

    Round 2 – prompt tells the agent to query the code graph first
    The agent did use it (Graphify: 9 calls, query_graph/get_neighbors), but still read files and grepped afterwards, so the graph was added cost, not a replacement. On the 4 questions where every arm completed (all 4/4 correct):

    Arm Tokens in+out vs baseline Time
    Baseline (shell search only) 97,265 — 84 s
    Graphify MCP, prompted 195,676 +101% 134 s
    code-review-graph MCP, prompted 163,909 +69% 106 s
  5. SrijanSriv commented on Nov 23, 2026

    @SrijanSriv
    Contributor

    hi people in this thread.

    i actually ran a benchmark on this idea. i guess i missed posting it here.
    you can go through it here: https://srijansriv.com/graphify-benchmark

    bottom line: graphify calls don't replace grep for day to day use cases

  6. lxbachit03 commented on Nov 23, 2026

    @lxbachit03

    @SrijanSriv thanks for sharing, that matches what I saw.

    I ran a smaller test on a public .NET C# + TS repo (https://github.com/lxbachit03/YGZ-Microservices-Multitenancy, ~136k lines) with graphify 0.9.115 and Sonnet 5.5:

    • Graph available but not mentioned: the agent never called it (0 calls in 10 runs). Grep found everything.
    • Prompt told it to "query the graph first", a setup your page lists as untested: it did, but then grepped and read files anyway. Tokens went up +101% at the same accuracy.

    So on C# too, graphify calls are extra cost, not a grep replacement. The repo is public if you want a C# data point for the new hook.

  7. theknut commented on Nov 23, 2026

    @theknut
  8. SrijanSriv commented on Nov 23, 2026

    @SrijanSriv
    Contributor

    i think the idea behind graphify is amazing. thats kind of the reason why the following idea has taken over it:

    given a model, a few iterations down the line it will assimilate the harness (not sure if i should call it harness cuz it might always necessarily be one) thats build around it

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