Paul alludes to it in his post about Healthcare.gov from the other day, but this was apparently one of the major parts of the failure there - endless lines of code generated from UML diagrams, making reading the code hard and things like “can we add a trace statement here” difficult.
Optimising for diagrams-as-source-of-truth has drawbacks for debugging and maintainability of the running code
https://www.pauladamsmith.com/blog/2023/10/the-10-year-anniv...
You can have what you're asking for if you agree to a predefined architecture and everyone agrees to write code that way.
Schematix generates diagrams (models) from code which can be entered via the web interface, or from a remote command line or scripts.
Diagrams are rendered on-the-fly from queries called "topological expressions" run against the model. The model must be updated as IT workers change the environment, but since diagrams are generated from code, they always reflect the most up to date information from the model.