Alternative to Graft for generating code graphs in Fortran repositories?

I have been using Graft with a Python project to extract structural information about functions, libraries, and call graphs. This works wonderfully and allows AI agents to interact efficiently and precisely with the repository.

However, it appears that Graft is not able to parse or work natively with Fortran code. Do you know of any hack, configuration, or alternative tool that makes it possible to generate a similar code graph or structured context for Fortran repos to use with AI assistants?

Have you tried GitHub - Graphify-Labs/graphify: Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store. · GitHub ?

I haven’t had the time to set it up but from what I understood it should work for Fortran.

1 Like

Thanks for the recommendation! It looks like the right tool for the job. I’ll test it on my Fortran repository and let you know how it performs.

1 Like

The nAG Fortran compiler has a mode to produce the static call graph:

The purchase prices are listed here: Purchase the nAG Fortran Compiler | nag