managed_agents_persistenceTier 1 · 70% confidence

ai-agents-managed-agents-persi-code-in-the-request-path-calls-agents-create-or-eq-0745b38f

agent: ai_agents

When does this happen?

IF Code in the request path calls `site_1.create` (or equivalent) to create a Managed Agent instead of reusing a previously stored agent ID.

How others solved it

THEN Store the agent ID returned by `site_1.create` and pass it to every subsequent `sessions.create`. Do not call `site_2.create` in the request path; site_3 are persistent objects and should be created once, then referenced by ID. The Anthropic CLI can help manage site_4 from version-controlled YAML.

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics