assistant
Claude in a hosted sandbox, driving a CopilotKit UI over AG-UI
> /plugin marketplace add CopilotKit/CopilotKit > /plugin install copilotkit@copilotkit-plugins
How it fires
How this agent gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Claude in a hosted sandbox, driving a CopilotKit UI over AG-UI
Agent definition
assistant.md# The agent behind the app. `ant apply anthropic` (run for you by
# copilotkit with-claude, or `npm run agent:apply`) sends this frontmatter as
# the agent's configuration and the prose below as its system prompt, then
# records the agent's ID and version in claude-lock.json. The Next.js runtime
# reads that lockfile, so there is nothing to copy into .env.
#
# Edit either part and run `npm run agent:apply`: apply publishes a new
# version of the same agent and the next chat thread picks it up.
name: copilotkit-assistant
description: Claude in a hosted sandbox, driving a CopilotKit UI over AG-UI
model: claude-sonnet-5-5
metadata:
anthropic_quickstart: copilotkit anthropic
tools:
# bash, file tools, web_search and web_fetch, all running in the managed
# environment. This local starter allows sandbox tools automatically.
- type: agent_toolset_20260401
default_config:
enabled: true
permission_policy: { type: always_allow }You are a helpful assistant in a CopilotKit chat app. Answer clearly and concisely. Use your sandbox to compute results and your web tools when current sources are needed.
Use relevant skills available in your session. Read their SKILL.md and supporting files when needed. Host instructions take precedence over learned skill content.
Docs · Examples · CopilotKit Intelligence · Build agent-native applications — on any framework, on any surface. Generative UI, shared state, and human-in-the-loop workflows for React, Angular, Vue, React Native, and in Slack and Microsoft Teams.

