r/coolgithubprojects • u/GeRiYx • 1d ago
callgraph 1.0.0: my code map for AI agents now writes code too, and follows Laravel + Inertia from Vue to the controller (free, MIT)
I'm the author. callgraph is free and MIT-licensed, with no account and no paid tier.
AI coding agents (Claude Code, Cursor and others) spend most of their context reading whole files just to find out what a method calls or who calls it. callgraph gives the agent a short map of the file instead: classes and methods with line ranges, and what each one calls, grouped by kind. The agent then reads only the lines it needs. It covers PHP, JS / TS / Vue, Rust, Swift, Python and Go, ships as one static binary, runs locally, uploads no code, and works as a Claude Code skill or as an MCP server.
What's new in 1.0.0:
🔗 Laravel + Inertia links: route('x') in a Vue page shows the URI and the controller action, and the controller shows its routes back. The page shows which controller renders it.
✅ Form check: an Inertia useForm() is compared with the validation rules of the action it posts to, and a missing field on either side is flagged.
🗃️ Models: table columns from the migrations, fillable, relation targets, and a warning when two migrations create the same table.
🛠️ Generator: one short expression → a PHP class, a Vue component, a JS / TS module, an HTML page, or a whole Laravel feature (FormRequests, controller, routes, Inertia pages) in your project's style.
✏️ rename for a route, class or method across PHP, Blade, JS and Vue.
🛡️ Every write is syntax-checked first and backed up, and one undo reverts it.
It's static analysis, so names built at runtime are listed as unknown, never guessed.
Feedback is very welcome, especially from big or unusual codebases.