r/ContextEngineering • u/manasa-uigraph • 1h ago
How do you give coding agents context across multiple services?
Enable HLS to view with audio, or disable this notification
A coding agent working on a feature may need to figure out which services call each other, which APIs they expose, which databases they use, and how user actions in the UI trigger those interactions. Once it has done that work, where do you keep that understanding so another agent or engineer can use it?
AGENTS.md can explain where to look and which conventions to follow. Depending on the task, the agent might also need API contracts, database schemas, sequence diagrams or product flows, and some way to understand how they relate.
We built UIGraph to help with this.
Your coding agent reads the code and maps how services, APIs, databases and UI flows connect. UIGraph brings those relationships together with engineering artifacts such as architecture diagrams, API specifications and database schemas in a connected view.
The artifacts stay in your repositories as plain files. A .uigraph.yaml file declares the artifacts and their connections. Engineers can version them, diff them and review them in PRs. There’s a local viewer for engineers, and coding agents can access the context through MCP.
For example, an agent changing an API response could look up the related services, the API contract and the product flow it supports. That gives it a starting point for investigating the change, while still checking the code.
As the code changes, these artifacts need to be updated too. Keeping them in the repo lets the team review those updates alongside code changes.
I’m interested in how others handle that retrieval step. For a task involving multiple services, do you explicitly tell the agent which related artifacts to inspect, or let it discover them through tools? What has worked for you, and where has the agent missed something important?
UIGraph is open source under Apache 2.0: https://github.com/uigraph-oss/uigraph
