Portable agent templates with Project connections and safe updates
@wpfleger96 @tlongwell-block, I have the working pieces locally and would like to align the remaining boundaries with Buzz before sending more PRs.
Buzz already has agent identities, personas, managed agents and snapshots. What is missing is one coherent path for creating a reusable agent, installing it as a distinct identity, giving it Project-owned tools, and updating it safely.
Today, moving a useful agent to another Project still means rebuilding its instructions, Skills and tool setup by hand. Updates also lack a clear authority boundary: a user may mean to change one agent, but the same edit can affect the reusable definition behind several agents.
I do not think this needs a new top-level object or product name. It can extend the concepts Buzz already has:
- An agent template holds reusable instructions, pinned Skills, model defaults and logical tool requirements.
- An agent has its own key, home, workspace and private settings.
- A Project connection holds the concrete MCP command or endpoint and its credentials. Credentials are never part of the portable template.
- An immutable version makes template changes reviewable and reversible.
- Agent Snapshot is the natural portable boundary for import and export.
Product flow
Editing an agent should offer two explicit actions:
- Edit this agent changes only that agent.
- Edit its template shows which agents use the template before anything is published.
Publishing creates a version. It does not silently change running agents. Update agents shows the exact instruction, Skill and tool changes, then lets the user choose which agents receive them.
A running update should finish the current task, start the selected version, verify that the agent is available, and restore the previous version if startup fails. The UI should show the actual state throughout.
Current work
- #4164 adds structured, named MCP configuration to
buzz-acp. - #4588 adds Project-owned connection setup without placing credentials in portable agent data.
- #4600 defines a validated, runtime-neutral Skill bundle.
- #4271 can extend the same MCP document with HTTP transport.
The next slice should connect these pieces to Buzz's existing persona, snapshot and managed-agent records. It should not introduce a second agent registry or a separate update system.
The remaining decisions are the source of truth between a template and an agent, how logical tool requirements bind to Project connections, and how a version is rolled out or restored across local and hosted runtimes.
@adamazad @custard-pirate @shellz-n-stuff @kerpopule @sapience7-hub, this overlaps the installation, MCP, shared-instruction and hosted-agent work already in progress. I would appreciate a read on where these boundaries should meet.
After rechecking current work, I am treating #4631, #4485, #4567 and #3637 as the foundation rather than proposing a parallel registry. The remaining product decision is explicit edit authority: whether a change applies to one agent or its reusable template. #4620, #4488, #4206 and #4268 each expose part of that gap.
The UI should ask which object is being changed and show the affected agents before a template version is published.
An agent is portable when someone can move its reviewed definition, instructions, Skills and declared capability needs to another Project or machine, then create or select a local instance and reconnect the required tools without transferring credentials, private keys, hidden permissions or machine-specific launch configuration.
I rechecked this against current main and the active agent work. The implementation is spread across several PRs, but I think it now fits into three boundaries.
Portable definition
#1753 already moves a reviewed definition and its instructions, then creates a fresh local cryptographic identity. #5386 improves how those instructions reach a runtime. #4600 and #5301 are working on Skills from different directions. This boundary should carry reviewed Skill content and logical tool requirements, but never MCP commands, endpoints, credentials or permission grants.
Project and execution target
#5349 defines the bounded handoff for resolved stdio MCP servers, and #5321 maps native runtime configuration into it. The Project chooses the concrete connection. The target resolves credentials and proves whether the required capability is available. #2957 can show that evidence without becoming the source of the requirement.
Running agent
#4999 owns private cross-device operating state. #5328 owns the edit experience and the distinction between changing one agent and changing its shared definition. That UI needs to show which agents a definition change will affect.
The complete user journey is then straightforward: import an agent, review what comes with it, connect the tools it needs, see whether it is ready, and run it. Later, edit one agent or its shared definition without silently changing the wrong thing.
@wesbillman @wpfleger96 @tlongwell-block, does this ownership split match the direction you are taking? @BradGroux @whyihaveyou @sloppamadewithlove @cmyk, your current work sits on these seams, so please correct anything I have connected badly.
I am keeping my contributions small from here. The first concrete dependency is #5349, which is one commit, green on current main, and already has a live #5321 mapper waiting on the contract.
From #5321 (target-side discovery / runtime-config read model): the seam mapping above is accurate — no corrections from our side.
- #5321 reads native Hermes/Kimi MCP configuration (read-only adapter state;
enabledand native fields stay in the adapter inventory). - #5349 defines the bounded, versioned stdio launch document.
- The mapper in #5321 maps a selected native entry into that document (1:1 field mapping), and is now hardened to enforce every #5349 limit (16-server / 128-arg / 128-env / 64 KiB) at construction, with args and env values redacted in both
Debugand sample output (commit1354b5c).
As agreed we keep the clean follow-up parked: once #5349 lands, we will rebase, drop the local mirror, and construct buzz_core::mcp_config::McpLaunchConfigDocument directly. Thanks for the clear boundaries — this makes the handoff straightforward.
@wolfyy970, the three-boundary model is directionally right, and #5321's follow-up confirms the cleanest execution-side seam. I found one important correction and a few places where the ownership language should be narrower so we do not turn adjacent implementation work into a source of authority it does not own.
Important correction: the agent's cryptographic identity does not travel
#1753 deliberately separates a portable agent definition from a running agent identity. Its merged import path carries the definition/profile and optional memory, but mints a fresh keypair and NIP-OA authorization tag on the receiving installation. That is a safety property, not an implementation gap: exporting the original Nostr private key would make a portable snapshot a credential-transfer format.
So I would restate the opening test as: an agent is portable when someone can move its reviewed definition, instructions, Skills, and declared capability needs to another Project or machine, then create or select a local instance and reconnect the required tools without transferring credentials, private keys, hidden permissions, or machine-specific launch configuration. The new instance may preserve the agent's name and behavioral definition, but it receives a new cryptographic identity unless a separate, explicitly authorized identity-transfer flow is designed.
Boundary review
1. Portable definition
This should be the durable source of truth for reusable behavior: instructions, model preferences/defaults, reviewed Skill content, and logical capability requirements.
The current PRs support pieces of that boundary, but they should not be collapsed into one concept:
- #1753 provides the snapshot/import foundation and the
AgentDefinitionversus instance distinction. - #5386 transports a negotiated persistent system prompt to a runtime. It is a delivery mechanism for instructions, not the durable definition/version store.
- #4600 defines portable Skill content with exact bytes, portable paths, executable intent, and a stable digest. Its
allowed-toolsdata is explicitly an untrusted request, not a permission grant. - #5301 provides a local per-agent Skill allowlist and UI. It controls what a local Buzz agent may load; it does not make a local Skill name or filesystem path a portable content identity.
That last distinction matters during integration: a template should reference reviewed Skill content by a stable identity/digest, while each Project or target decides whether that content is installed and permitted. Import must never silently convert a requested tool or Skill into local authority.
2. Project binding and execution target
The #5321 → #5349 direction looks correct.
- #5321 is a read-only adapter inventory for native runtime configuration. It discovers what a target already has and maps a selected entry.
- #5349 is a strict, bounded, versioned resolved stdio launch document. It validates limits, rejects protected identity environment keys, and keeps argument/environment values out of diagnostics.
The resolved launch document is execution-scoped. Because it can contain concrete commands and environment material, it must not be embedded in the portable definition or treated as the Project's reusable requirement declaration. The portable side should say something like “requires a GitHub-compatible repository capability”; the Project binding selects an approved connection; the target resolves that binding into a launch document and reports whether it can satisfy it.
#2957 belongs on the evidence side of this boundary. It aggregates owner-local readiness, capability, runtime, and effective-permission evidence before delegation. It should remain observed state: not the source of the requirement, not a portable attestation, and not authorization to auto-delegate. Its current branch is mergeable with DCO, Semgrep, and zizmor green, but still awaiting maintainer review.
3. Running instance and private operating state
#4999 and #5328 are related, but neither currently owns the complete safe-update workflow described by this issue.
- #4999 is private, owner-authored cross-device operating state for managed agents. That is the right neighborhood for instance-specific private configuration and runtime overlays, not for a public/reusable template definition. Its GitHub checks are green, but its own PR description still calls out the fresh-device live end-to-end gate as remaining validation.
- #5328 is Phase 1 of the edit-surface consolidation. It gives definition, instance, and local settings explicit field ownership in one form and sequences their saves. That is the needed UI foundation for avoiding the ambiguity documented in #4620, but it does not yet provide immutable template publication, version selection, rollout, or rollback. It is currently mergeable, with Desktop E2E Integration failing on the live head, so I would not describe this boundary as complete yet.
#4620 is useful evidence for why explicit edit authority is necessary. Definition defaults and keyed instance values are intentionally different objects: defaults are copied at mint time, while an existing instance retains its effective snapshot. The failure was the UI presenting definition defaults as though they were the running instance's effective settings. A safe template update must not reintroduce that ambiguity at a larger scale.
What remains unowned
I do not see a current PR that fully owns the following product contract:
- An immutable
AgentDefinitionversion with a stable identifier and content digest. - Logical capability requirements that contain no endpoint, command, credential, or permission grant.
- A Project-owned binding from each logical requirement to an approved concrete connection.
- An instance selecting a specific definition version while retaining explicit private/local overrides.
- A pre-publication impact view that lists which instances are on the shared definition and which fields will change.
- A rollout state machine that lets active work drain, starts the selected version, proves readiness from local evidence, and rolls back to the previously selected version if startup or readiness fails.
- An audit trail that records who published the definition version, who approved each Project binding, which instances moved, and why a rollback occurred.
The source-of-truth split I would use is:
- Agent definition/version: portable behavior and logical requirements.
- Project binding: approved mapping from logical requirements to Project connections.
- Agent instance: selected definition version, local/private overrides, and cryptographic identity.
- Runtime evidence: observed readiness/capability state only.
- Resolved launch document: short-lived target-specific execution input.
That keeps one authority for each decision and avoids a parallel registry.
Suggested dependency order
- Land or settle #5349, then rebase #5321 onto the shared core type as already planned.
- Reconcile #4600's content-addressed portable Skill model with #5301's local allowlist/activation model so name-only references cannot become accidental portable identity.
- Stabilize #5328's definition/instance/local ownership surface and clear its current E2E failures.
- Specify the smallest immutable definition-version and Project-binding schema, including explicit non-goals for credentials, permission grants, runtime evidence, and resolved launch data.
- Add impact preview, selected rollout, readiness proof, and rollback only after those authority boundaries are fixed.
So: yes, the proposed ownership split matches the direction of the active work after correcting “identity” to “definition” and narrowing what #5386, #2957, #4999, and #5328 actually own. The remaining design work is not another agent registry; it is the version, binding, selection, and rollout contract that connects the existing pieces without blurring authority.
Thanks, Brad. The cryptographic-identity correction is right. I edited the opening and the #1753 description so the definition travels and the receiving installation creates a fresh identity.
Your narrower source-of-truth split is better too. I agree that the unowned work is the version, binding, selection and rollout contract. I will keep #2957 as observed evidence, and I will not describe #4999 or #5328 as owning more than they do.
I am re-reviewing #5321 at 1354b5c now. #5349 remains the first dependency.
Concrete operator use case: Berd-authored updates to one durable Buzz identity
We design and improve reusable agents in Berd, then deploy them into Buzz, where their messages and work history are attributed to a stable identity. Snapshot import is appropriate for the first installation or an intentional clone. Using it to deploy an improved definition, however, creates a replacement identity and fragments the agent's history.
The lifecycle we need is:
- Create or import once to establish the Buzz identity.
- Maintain and version the reusable definition in Berd.
- Select an existing Buzz instance by stable identity/public key, not display name.
- Preview the proposed definition diff, including instructions, runtime defaults, and skill requirements, while excluding credentials and local grants.
- Require owner review, then apply the update in place after current work drains.
- Preserve the same Buzz public key, work/activity history, memory, channel membership, and local bindings.
- Record the source definition version/digest and target Buzz identity in the audit trail.
Until this is first-class product behavior, our manual flow will be to review changes in Berd, use Buzz's edit-in-place flow on the existing agent, update skills separately, verify the public key is unchanged, and record the applied Berd version. We will not re-import an improved agent unless we intentionally want a new identity.
Non-goals are key transfer, silent synchronization, automatic tool/permission grants, or changing import/clone behavior.
This is why the remaining version, binding, selection, rollout, and audit contract matters operationally: improving an agent should be a reviewed configuration deployment to an existing teammate, not the creation of a replacement teammate.
I filed the matching Berd-side request as block/berd#224. We are documenting the manual workflow for now, not proposing custom integration development.