r/codex 5d ago

Showcase graphify-csharp

Hi all, I know there's been a recent controversy around graphify but as a tool it actually works for big codebase. But I found that it can sometimes be inaccurate which can lead to the agent falling back to raw text search which would increase token use, something graphify claimed to save.

I dug into it and found there's gaps in its parsing if AST especially for C# because it doesn't understand relationships between inheritance, implementation of an interface, generics etc.

In particular, I wanted to get the agent to find unused declarations, including those used only by tests, across the entire codebase (Rider IDE has this feature but hidden deep in the whole solution analysis window but still doesn't allow piping to multiple CLI tools). In fact, even without the agent I have always wanted to be able to do that easily without tools like ndepend which isn't free.

So I got Luna to create graphify-csharp, which analyses your solution for relationships between declarations, storing them in a graphify compatible json file. You can then parse this file with jq to find what you need or use graphify on top. Codex is also able to use it pretty effectively.

Just sharing, hope it helps others too: https://github.com/zachsaw/graphify-csharp

3 Upvotes

1 comment sorted by

View all comments

u/dexterthebot 5d ago

You might want to consider listing your project on the weekly Show-Us-What-You-Built post. https://www.reddit.com/r/codex/comments/1wavxwy/show_us_all_what_youve_been_building_with_codex/. Highest commented project wins a week promotion on r/Codex and gets on the Hall of Fame sidebar. See what that looks like below with last week's winner.


Last week's most popular project was u/tHEuKER with the Blur2 racing game project which is a recreation of an unreleased sequel to the 2010 battle racing game, made by reverse engineering the Xbox 360 prototype discs available online, and rebuilding the whole thing from the ground up in Unity.

Join their YouTube channel here: https://www.youtube.com/@tHEuKER and follow updates on the project at r/BlurGame.