fix(ai-chat): tell the session chat that an agent is an ai_agent resource (#11798)

* fix(ai-chat): tell the session chat that an agent is an ai_agent resource

Asked about an agent by name, the chat looked for a flow, script or app
of that path and concluded the agent does not exist. The rule tells it to
read the agent as a resource, and to leave deploys to the agent's page,
whose editor validates the config.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(ai-chat): gate agent drafting on write_draft, share the ai_agent fact

The drafting sentence now reaches only users who can write resource
drafts, and the fact that an agent is an ai_agent resource also lives in
system_prompts/base/resources.md so the CLI skills get it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Guilhem
2026-10-16 17:53:10 +02:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 19fc07faa9
commit a52154877c
7 changed files with 99 additions and 0 deletions
+6
View File
@@ -7173,6 +7173,12 @@ Example: \`f/databases/postgres_prod.resource.json\`
- \`value\` - Object containing the resource configuration
- \`resource_type\` - Name of the resource type (e.g., "postgresql", "slack")
## Agents
An agent, as the Agents page lists it, is a resource of type \`ai_agent\`. Its value holds the
agent's provider, system prompt, tools and memory settings, and a flow step uses a saved agent by
linking its path.
## Variable References
Reference variables in resource values: