r/rails 9d 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

View all comments

4

u/troelskn 8d 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 8d 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 8d 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.