feat: add /graph command to export conversation as Graphviz visualization#44
feat: add /graph command to export conversation as Graphviz visualization#44modulovalue wants to merge 1 commit intomainfrom
Conversation
…tion Adds a new slash command that exports the current conversation as a graph visualization. The command generates a DOT file representing the conversation flow with user messages, assistant responses, and tool invocations, then renders it to SVG using Graphviz and opens in Finder. - Add GraphCommand class with DOT generation logic - Add getConversation callback to CommandContext - Color-code nodes by type (user, assistant, tool categories) - Show tool parameters and results in the graph
|
This is not a finished feature. This is just an idea that I think might be interesting. @Norbert515 are there interesting test cases that we could use to test such a feature? I'm especially interested in seeing how, or if we can, visualize how the agents interact with each other. I think such a visualization could be used to explore if there are any opportunities for optimizing context management. Feel free to let me know what you think. |
|
@modulovalue this could be a great tool to investigate a refactoring process. I just used vide to update an old project of mine to the latest flutter version and bump dependencies. Since this might actually be a common workflow for using vide (both for hobby and "small" client projects) it could be worth building an agent for this case & optimising it using this visualisation. |
That's like context management but for humans! The overarching idea that I have is that I'd like to eventually play around with dynamic context, where we keep all the context around, but are able to provide summarized snapshots/views, depending on the task. @dkbast Your use case is an interesting category where we could have a "refactored" view that only shows what has been changed, and if it's valuable to a human, it would most likely be valuable to agents as well. |
Summary
/graphslash command that exports the current conversation as a graph visualizationFeatures
Test plan
/graphto export