Trace C# symbol usage with a Roslyn-backed index
Graphify C# helps agents map real C# usages, including overrides and implementations, from compiler-resolved project data.
- What they did
- A custom-built agent was set up with Graphify C#, a .NET global tool that can be run on a solution or project file. The tool reads the code through MSBuild, then asks Roslyn to resolve symbols and assemble a JSON graph of nodes and edges for calls, references, implements, inherits, and overrides. A companion skill file guides Codex or Claude Code on rebuilding the index and traversing those relationships, and an optional watcher can keep the data fresh.
- How it went
- In the README’s sample, an internal method turned up with only one caller that Roslyn could prove, and that caller was a test. That shows how test-only use can be uncovered. The tool does not account for reflection, dependency injection, or dynamic invocation, and it does not report any benchmark numbers.
- Tips
- A symbol with no inbound edges only has no observed static references, so treat deletion as a judgment call. The local machine still needs the right SDKs, packages, and MSBuild inputs available.
Try it yourself with Claude Code
I have a C# codebase at [path]. Build a usage graph for [symbol] using the compiler’s semantic information instead of text matching. Include callers, references, interface implementations, base-type links, and overrides, and show the file and line for each match grouped by project. Do not edit anything. If the index needs to be rebuilt or refreshed, do that first. Before any action that would delete, send, submit, or otherwise make a permanent change, stop and ask me to approve it. When you finish, explain briefly how you verified the matches were compiler-accurate.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Deploy a project and register a domain from one agent flow
A custom agent can set up a Cloudflare account, buy a domain, and ship an app with only brief approval steps.
Revive old apps and sketch new ones with a coding agent
Terence Tao used a coding agent to port old Java applets to JavaScript and to build two new math visualizations in conversation.
Break one goal into a sequenced coding plan
Ordewell turns a single objective into a step-by-step task list for coding agents, with dependencies, review, and parallel runs.
Translate a runtime to Rust module by module
Microsoft used agents to replace the Copilot runtime’s TypeScript with Rust while keeping the implementation’s overall design the same.
Create a CLI coding agent from a Python LLM base
Claude Code turned Simon Willison’s Python LLM template into a working CLI coding agent from two prompts.
Profile and tune a CUDA kernel with an agent
They used a LangGraph agent to test CUDA kernel tweaks, verify results, and profile candidates with Nsight.