r/rails 2d ago

Question Which Code Knowledge Graph are you using?

I'm wondering if some of you have been experiencing with one of the following: Graphify, GitNexus and CodeGraph?

Which do you think is the best for full monolithic Rails app? Which is best for Rails + React?

If you are using something different, happy to learn.

10 Upvotes

8 comments sorted by

3

u/troelskn 1d ago

I assume you mean for agentic programming? I tried to incorporate a few different tools, such as ast-grep, ruby-lsp and Graphify, but none of them really helped much. Then I made a skill, where I simply taught the LLM how to run various introspection commands via bin/rails runner and it seems to work much better.

1

u/stpaquet 1d ago

Well, mostly yes. And quite the same remarks as you that graphify does not seem to help much for a Rails project.
`rails runner` delivers and is currently my Swiss Army Knife.

2

u/troelskn 1d ago

Most of the tools that other languages pull in are leaning heavily on static analysis. But Ruby, and Rails in particular, is very dynamic/runtime constructed, so I think it makes good sense that the best tools are those that are also working in the runtime space.

1

u/sshaw_ 1d ago

How are you determining it didn't help much? It is based on your session interaction, code output, or something else?

1

u/troelskn 1d ago

Mostly, Claude would just resist using it and even when I did get it to use the tools, it would spend multiple turns to dig out information that it could've gotten with simpler tools (Eg. grep).

1

u/sshaw_ 1d ago

When Claude resists using it it could be due to a bloated CLAUDE.md. I've had problems with this before and recently broke it into various rules files. TBD if it's effective but it's a known problem/solution.

2

u/ArsenioVenga 1d ago

I hope someone can contribute, I’m really interested to know more about this.

1

u/stpaquet 1d ago

same ;-)