feat(appkit): migrate agent-app and docs to the new agents() plugin#295
Closed
MarioCadenas wants to merge 1 commit intoagent/5b-agents-pluginfrom
Closed
feat(appkit): migrate agent-app and docs to the new agents() plugin#295MarioCadenas wants to merge 1 commit intoagent/5b-agents-pluginfrom
MarioCadenas wants to merge 1 commit intoagent/5b-agents-pluginfrom
Conversation
- apps/agent-app/server.ts rewritten to use createApp({ plugins: [
server, analytics, files, agents({...}) ] }) with createAgent() for
the code-defined support agent and mcpServer() entries inline. Uses
the appkit.agent runtime handle (the agents() plugin registers
under the singular name so routes mount at /api/agent/*).
- apps/dev-playground/server/index.ts swapped from the deprecated
agent() to agents(). Route prefix, client code, and runtime handle
are unchanged; the singular "agent" manifest name is preserved in
the new plugin so /api/agent/* keeps working.
- Normalize assistant.md (both apps) and autocomplete.md frontmatter
to proper YAML. The old flat parser tolerated '## key: value'
markdown-heading markers and missing closing '---'; the new js-yaml
parser requires real YAML. Without this fix, the dev-playground
assistant agent silently failed to load and chat requests routed
to the autocomplete text-completion model, which rejected them
with upstream 400s.
- New docs/plugins/agents.md covering all shapes: level 1 (drop a
markdown file), level 2 (scope tools in frontmatter), level 3
(code-defined agents), level 4 (sub-agents), level 5 (standalone
runAgent). Includes config reference and frontmatter schema table.
- New docs/guides/migrating-to-agents-plugin.md with side-by-side
before/after for the deprecated createAgent() shortcut and a gradual
migration path using the @deprecated aliases.
Signed-off-by: MarioCadenas <MarioCadenas@users.noreply.github.com>
This was referenced Apr 21, 2026
Collaborator
Author
|
Superseded by the v2 6-PR stack:
The v2 stack reorganizes the same work so no PR ships API that a later PR deletes. Start at #301 for the new entry point. Branches from this older stack are preserved unchanged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Cuts over the reference application and documentation to the
agents()plugin API introduced in PR #294.Apps
apps/agent-app/server.ts— rewritten from the deprecatedcreateAgent({ plugins, tools, port })app-shortcut tocreateApp({ plugins: [server(), analytics(), files(), agents({ agents: { support } })] }). Thesupportagent is a code-definedcreateAgent(def)that spreads tools from the analytics and files plugins via.toolkit()and mixes in inlinetool()+mcpServer()helpers.apps/agent-app/config/agents/assistant.md— rewritten to the new YAML frontmatter schema (proper---delimiters,endpoint:/default:keys).Docs
docs/docs/plugins/agents.md— full guide for the new plugin. Covers the five progressive levels (markdown-only → frontmatter scoping → code-defined agents → sub-agents → standalonerunAgent). Includes the configuration reference and the full frontmatter schema table.docs/docs/guides/migrating-to-agents-plugin.md— migration guide from the oldcreateAgentshortcut tocreateApp + agents(). Covers name changes, frontmatter format differences, code migration examples.CLI template
template/appkit.plugins.json— plugin registry synced to includeagentsfordatabricks apps init --features agentsscaffolding.PR Stack
agents()plugin +createAgent(def)+.toolkit()— feat(appkit): add agents() plugin, createAgent() factory, and .toolkit() #294agents()(this PR)preparePluginsforwards eager instance — refactor(appkit): forward eager plugin instance through preparePlugins #297fromPlugin()API — feat(appkit): add fromPlugin() for referencing plugin tools in code-defined agents #298agent()+createAgentApp— chore(appkit): remove deprecated agent() plugin and createAgentApp shortcut #299toPluginWithInstance+ bug fixes — refactor(appkit): retire toPluginWithInstance; consolidate on fromPlugin + fix schema/routing bugs #300Test plan
pnpm docs:build)