Register the Agents plugin in a NocoBase App and configure it (agents.* in config.yml), contribute subjects, scopes, business actions, agent defaults, the App's own agents, CLI commands and reports through agentsToken, enable the agents discovered from runners, configure OnlineAgentService and OnlineAgentConfigurator for SDK chats, business tools and native web search, set up model services for the App's own model calls, connect runners (registration tokens, protocol, upgrade_required), build and serve the CLI and runner tarballs (pnpm nocobase cli build, --runner), or work out why a run, a runner or a model fails.
npx skills add https://github.com/nocobase/nocobase --skill nocobase-app-plugin-agents
Use this Skill when an App gives people agents to work with: agents that drive a coding tool (native tools and the shared ACP catalog) on a runner someone connects, one for each tool and model the runners report. Use it as well to build the App's CLI and the runner as tarballs the App serves, and to diagnose a run, a runner or a model that does not work. Do not use it for the business data agents act on; that stays with nocobase-app-development and the plugins that own it.
The package README is the full reference: read it at node_modules/@nocobase/app-plugin-agents/README.md (in this repository, packages/plugins/app-plugin-agents/README.md). The references below say what to do and point to its sections rather than repeating them.
agentsToken from @nocobase/app-plugin-agents/server/tokens when the App's providers boot. With nothing contributed, agents still work in conversations.unsupported results; never forward unsupported bytes, guess contents, persist the description as an original message or cache it as extracted text. Keep authorization, inline validation, format-mismatch, budget, cancellation and actual parsing/Provider failures unchanged.maxNativeFiles when the Provider requires it. Model changes and approvals rebuild replay copies from originals. Stop waits for file-stream cancellation and Worker termination; retryFinalization does not repeat extraction or tools.context.execution only inside the current tool invocation, forward context.signal, and never retry unknown writes or restore approval-time /tmp.secrets.keys before storing any, or the API answers SECRETS_KEY_MISSING (503).agentsAccessToken, or every business action level is none.subjects.register's context.assemble, brief sections and mounts run inside the claim's transaction: database reads only, never a network or a model call. Read anything else in the optional prepare(run).pnpm nocobase cli build (the App's CLI) and cli build --runner (nocobase-runner), either as separate CI artifacts mounted into storage/runners/dist (or agents.dist.dir), or by the App's own pnpm build into its build output (universal packages, at the versions it was built with) and served from there. Never commit them.acme), never nocobase or nocobase-runner.| Task | Read |
| --------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| Register the plugin, its prerequisites and agents.* configuration, mount the pages and the chat | Setup and configuration |
| Contribute subjects, scopes, actions, agent defaults, the App's own agents, CLI commands, people, reports, mounts | Extension points |
| Agents discovered from runners, the model catalog, enabling agents, availability, the App's own agents | Agents |
| Configure OnlineAgentService/OnlineAgentConfigurator, register SDK tools, use realtime/background sessions | OnlineAgent chats and business tools |
| Enable native web search, verify platform admission, isolation, budgets and Registry upgrades | node_modules/@nocobase/app-plugin-agents/docs/native-web-search.md |
| Open JSON UI context, custom SDK tool cards, generic form adapters and safe browser-draft application | UI context, tool cards and local form drafts |
| Model services and the model gateway | Model services |
| Register runners, how claims and heartbeats work, local policy, protocol and upgrade_required | Runners |
| Build the CLI and runner tarballs, serve them, CI artifacts, install script, download tokens, updates, the npm runner | Distribution |
| Variables and secrets, the skill library, chat attachments, usage, prices and reports | Variables, skills, attachments and usage |
| Check that everything works, and diagnose failures | Verification and troubleshooting |
Take nocobase/nocobase-app-plugin-agents from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.