Extending Burrow
Choose the smallest extension boundary that owns the behavior you need.
| Need | Extension point |
|---|---|
| Reusable operating instructions | Skill |
| Persistent agent identity or working guidance | Profile documents |
| An external service capability | MCP provider |
| Runtime-integrated tools, routes or UI contributions | Mod |
| A new provider wire protocol | Model adapter in Core |
A skill does not install a tool or grant permission. Mods run executable code; a child host separates lifecycle and failures but is not an operating-system sandbox.
Create a skill
Use the Burrow Skills authoring guide for SKILL.md, companion files and validation. Ordinary operator-owned skills can be imported and assigned through Settings. Official managed copies are maintained by their source and are not customized in place; see Skills and memory.
Add an MCP capability
Configure the provider, discover tools and apply the relevant access controls. Ordinary MCP connections and mod-managed providers do not necessarily expose the same grant UI. A discovered tool is not evidence that a call will be authorized. See MCP and Tools and mods.
Build a mod
Use Burrow Tutor as the runnable example, and its contract walkthrough for manifests, routes, tools, storage, UI and lifecycle. Read the checked source/version limits before treating an example as compatible with an older installed Core.
Minimal manifest:
{
"id": "example-status",
"name": "Example status",
"version": "2026.10.25",
"server": "server.mjs"
}
A server module exports activate(context), registers only its own routes/tools and returns cleanup when needed. Validate arguments in the handler and handle cancellation. Installation, enablement, ordinary tool grants and privileged system-mod capabilities are separate concerns; a manifest cannot grant itself Core authority.
The current authoring material follows inspected development source. Release status distinguishes that work from public snapshots and installed versions. Tutor’s installation readiness records a verified public tag; select an actual accepted tag with a matching manifest rather than inventing one from a default branch.
Mod-owned native agents
Current development Core provides a generic host contract for a mod to own native agent identities and supply their per-turn context. Register context.agents.context.register(provider) during activation. The provider receives { agentId, sessionId } plus { signal }, and returns only profileFiles and context, each an array of { name, content } string records. Names are bounded non-path identifiers, unique within each collection; each collection accepts at most 64 records and the combined UTF-8 name/content budget is 1,000,000 bytes. Invalid or excess provider output is rejected, not silently trimmed.
context.agents.owned.create, .list, .read, .update and .remove are scoped to the installed owner. Core assigns ownership. Creation requires an authenticated, existing enabled native model and stores identity/model selection atomically. Supported capability flags are a2a, forge, brains, mcp, skills; visibility flags are agents, chat. Omitted flags default false; update patches preserve omitted flags. These records do not imply engineering/tool access, profile documents or a Dream cycle.
The live owner provider is required for dependent turns. Disablement, host failure/replacement, a missing provider, timeout or invalid output fails with mod_agent_unavailable. Context is selected by logical conversation session ID, including fresh scheduled turns. The native bridge reaches only the owner's current published tools, independently of external MCP. See runtime context construction.
Owned-agent reads include the canonical chat avatar. An owned update may set avatar through Core identity validation; creation does not accept that field. This is separate from the original reference photo. The Settings host exposes optimizeAvatar for the native small-avatar workflow.
Owned referenceImages.get, .put and .remove use the canonical agent reference store. Portable settings preserve ownership/capability/visibility records; restoring an unavailable owner leaves its agent unavailable, and conflicting regular/mod or different-owner identities are rejected. This host contract is not a separate public HTTP endpoint or a guarantee that every declared flag is exposed by every route.
Enabled-mod shared guidance
An enabled mod may supply text to all native agents and residents, including A2A recipient turns, independently of owning an agent. Register context.agents.context.registerShared(provider) once during activation. The callback receives { agentId, sessionId, participants } for the logical conversation and { signal }, and returns only { context: [{ name, content }] }. Names must be unique non-path identifiers of at most 128 characters; at most 64 records and 1,000,000 combined UTF-8 name/content bytes are accepted. Profile, identity and tool fields are rejected.
Core resolves currently published contributions in mod-ID order. Disablement, unload or replacement removes old contributions from fresh turns; a failed or malformed active provider reports mod_agent_unavailable rather than silently dropping guidance. Shared-only registration grants no agent ownership or tools.
Current shared guidance is a separate developer message with mod-shared-context-provider provenance and mod://<mod-id>/agent/shared-context/<record> labels. It does not replace individual profiles. Earlier snapshots are history, not current instructions; prompt compression retains the current turn's captured contribution. Side questions capture guidance separately from the conversation transaction and record its own resolution time while remaining snapshot-only and tool-free. Core supplies the generic mechanism; the mod owns the text.
Contribute Settings and Archive UI
Imperative Settings sections can opt into form, form-wide, form-inventory or document layout metadata. form keeps the complete save scope in primary on the left half of a wide workspace; form-wide spans both tracks. form-inventory uses overflow for the left inventory and primary for its editor. document instead uses primary for document choices and overflow for the editor. Below 640px available work-area width, the corresponding panes stack or fill the width. Host surfaces remain stable; metadata does not create declarative content or protect drafts by itself.
Register one current draft with setDraft and route editor replacement through navigate. navigateSection(sectionId, beforeNavigate?) changes to a declared section through the same guard; its optional synchronous callback runs only after acceptance, before the section changes. Invalid destinations and disposed mounts are ignored. Feature-detect these APIs rather than using an unguarded fallback on older hosts.
setEntitySelector({label, items, selectedId, onSelect, addLabel?, onAdd?}) places an owner-managed selector in the native horizontal row above the sections. Items are {id,label,disabled?}. Use guarded navigation inside callbacks. The row and scroll position survive same-owner section remounts, but old callbacks are inert; each new mount must publish fresh selection/callbacks or null. Owner, entry-URL or externally selected-resource changes, declarative content and mount failure clear it. This does not preserve the previous section's draft or surfaces.
Archive mounts receive host date and timeZone; forward them together to date-aware APIs. When available, configureHeader opts into native heading controls and filters: {search, participantId, category}. Configure categories and a complete authorized participant catalogue as {id,label} arrays; disable incomplete participant discovery with participantsDisabled and explain it with participantsStatus. The host keeps valid selections when labels/options refresh and supplies changes through update(context). Removed selections reset only after a complete roster replacement; changing mod identity/version resets filters. Feature-detect header support and do not render duplicate controls. A mod without date availability leaves all calendar dates selectable; native calendar markers do not certify its records.
This generic host contract does not establish adoption by any particular mod. Mods remain responsible for request cancellation, stale-result handling, filtering before pagination, accurate totals and cleanup; host disposal makes obsolete registration callbacks inert but cannot cancel arbitrary mod network work.
Extend a model adapter
Provider wire protocols belong in Core's model-adapter layer. Test request construction, supported options, streaming, tool continuations, error handling and credential boundaries against that provider's contract. A model name alone does not establish support for every endpoint or capability.
Development checklist
- Choose the smallest correct owner.
- Validate inputs and preserve trusted caller identity.
- Bound output and failure behavior.
- Test activation, rejection, cancellation, cleanup and repeated calls.
- Verify disabled or ungranted capabilities remain unavailable.
- Update documentation alongside the behavior.
- Publish through the supported tagged release process rather than editing an active installation.
Full home-Core API capability
Current Core supports the independently declared and operator-granted core-api-v1 system capability. context.coreApi.request requires a live tool invocation, trusted Core-bound caller and membership in the mod's Core-owned coreApiAgentIds on each admission. It is full administrative access to the home Core API, not the managed read-only diagnostics subset, a remote proxy or a GET-only endpoint allowlist. Activations, background work and detached callbacks cannot use a completed invocation's authority. Revocation blocks subsequent admissions; it does not undo already admitted side effects.
Requests accept a local /api path and optional method, headers, and exactly one of JSON body, UTF-8 bodyText or bodyBase64. Responses preserve status, headers, encoding, original byte length and complete finite body; HTTP errors remain response data. Finite NDJSON is aggregated, not delivered incrementally. The default 96 MiB response allocation ceiling fails explicitly rather than returning truncated success. Response failure does not roll back an already executed mutation; reconcile before retrying.
This capability does not automatically grant other host interfaces or cross-agent managed diagnostics. Neither tool arguments nor headers establish trusted caller authority. Task-board mutations retain the actual agent/session/run attribution. Use Backdoor's current API guidance for the shipped tool surface; a skill itself grants none of these capabilities.
3 November development delta
The changed context and host contracts above were checked statically against Backend 32dde3266a231777ddfec6dba141d6b9972a21fd on 2026-11-03. No application, provider or database tests were run; unchanged historical sections retain their earlier qualifications. See source coverage.
5 November development delta
The changed preference, recall, embedding or shared-guidance contracts above were checked statically against Core 6465a9b200bc550697ddfc41959d671eac9abf33 on 5 November 2026. No application, database or live-provider tests were run; unchanged historical sections retain their earlier qualifications. See source coverage.
Temporary mod lifecycle directories
Checked 6 November 2026: discovery ignores distribution-owned backup/uninstall siblings matching the lifecycle naming contract, including uninstall recovery directories, even though those folders retain the original manifest. They are not separate installed mods. This does not authorize deleting recovery data or bypassing normal update/uninstall reconciliation. Ordinary installed-mod validation and duplicate-ID checks remain in force.
Durable agent-run completion metadata
Checked 7 November 2026: context.agents.runs.onCompleted(handler) registers one activation-time callback. Its { cursor } is an advisory wake-up, not an HTTP route or a full event. Catch up at activation and on each wake using context.agents.runs.list({ cursor, limit? }), starting with cursor: null; limits are 1–100, default 50. Page { events, nextCursor, hasMore } to completion. Persist the last processed cursor with any reserved work in the mod's own serialized durable decision. Wakes can be lost/replayed, so downstream admission and idempotency remain the mod's responsibility.
Events contain only cursor, agentId, sessionId, runId, source, origin, peerAgentId, startedAt, completedAt, durationMs and outcome. They exclude messages, objectives, tool results, transcripts and credentials. Source/origin and incoming peer identity are Core-derived, not parsed from user prose. Completion is inserted alongside terminal continuity where that path is reached; admitted failures without a terminal commit receive best-effort records. A duplicate agent/run cannot publish a second completion.
context.agents.runs.activity({ agentIds? }) returns bounded { runs } metadata with statuses running, cancelling and response_pending. The last means the model has retired but the HTTP answer has not finished. Notifications wait for HTTP finish and model retirement, but another wake can discover an already-readable row sooner. Include transport readiness in follow-on work policy. Activity is an observation, not a reservation. Completion rows are not time-pruned and a checkpoint does not delete them; operator-directed retention still needs an explicit lifecycle policy.
Initial conversations for mod-owned agents
Checked 9 November 2026: creating a mod-owned agent provisions an empty default conversation in the same transaction as its registry/model ownership. Session listing repairs an identity only when it has no conversation sessions at all. An agent with other sessions does not receive a resurrected default, including when its default was deliberately archived or deleted. This does not change mod ownership or bypass model/permission validation.
Anthropic projects composed tool schemas into provider-compatible object roots while the original runtime/IPC schema remains authoritative. Do not weaken a mod's input validation to imitate that wire projection; see provider conversion.
Discover hidden agent identities explicitly
Checked 10 November 2026: context.agents.list() keeps the panel-visible directory by default. context.agents.list({ includeHidden: true }) includes registered identities hidden from the Agents panel, such as mod-owned residents. Both modes retain disabled identities with enabled: false for historical attribution; callers must separately decide which enabled identities can be selected.
The option must be a boolean. Unknown keys, non-object inputs and nonboolean includeHidden values are rejected. The result remains only { id, name, enabled }: no profiles, ownership, capabilities or visibility settings are exposed. Discovery does not change panel visibility, enable an identity or grant authority to act as it. This is the generic mod directory, not native A2A discovery or a new HTTP route.
Mod-panel API query strings
Checked 10 November 2026: a main mod panel's scoped api(path, init?) forwards query strings under /api/mods/<declaring-mod-id>, matching the Archive host's query support. Build filter/cursor values with URLSearchParams; do not interpolate unescaped values. The path rejects .., backslashes, encoded dot/slash/backslash sequences and fragments. These path checks do not reject the same encoded characters inside query values, and they do not replace endpoint authorization. A Core-looking path or absolute URL passed to this helper remains under the declaring mod's prefix, not an unscoped request.
Receipt-owned output attachments
Checked 12 November 2026: Terminal agents.turns.read results can include attachments, a durable list of byte-free { id, name, mimeType, sizeBytes } descriptors. Core captures only the assistant output and native provider artifacts belonging to that exact agent/session/run, not input uploads, prior turns or a session-tail guess.
context.agents.turns.readAttachment(turnId, attachmentId) reads only an attachment listed on a receipt owned by the calling mod. It returns { name, mimeType, sizeBytes, encoding: "base64", content }, with raw base64 rather than a data URL. Reads are capped at 32 MiB decoded bytes; larger descriptors can remain visible but fail with mod_external_turn_attachment_too_large. Missing, expired, replaced or unsafe artifact bytes fail as not found. Durable receipt metadata is not a promise of permanent byte retention.
Forge delivery accepts existing database session identities, including transport/mod identities, rather than assuming a filesystem slug. Explicit artifact delivery is bound to the originating run; reusing another run’s generation identity conflicts. A terminal turn snapshot is not broadened by a late generation after cancellation. Receipt ownership does not replace the mod’s recipient authorization.
Addressed participants for shared providers
Checked 17 November 2026: participants is Core-owned routing data, shaped as {agentId,tags:[]} entries sorted by canonical agent ID. Tags come from the owning mod's optional participantTags agent metadata: unique lowercase identifiers, at most 32 tags of 64 characters each. They grant no additional tools or permissions.
Direct operator routes include their receiving agent; A2A also includes the authenticated peer, and group routes include current channel participants. Unaddressed background work receives an empty set. Providers must not infer participation from mentions, tool prose or previous invocations.
After an outgoing agent_send_message has actually entered its recipient's transcript, Core refreshes shared guidance for the sender's next continuation after the full tool batch. Canonical outgoing recipients are deduplicated; outgoingRecipientIds is included only when nonempty and is a subset of participants. A delivered request counts even if its reply fails, but invalid/denied/pre-ingress failures do not. Fresh shared guidance replaces the previous contribution without changing paired tool protocol, identity or grants. The next operator turn starts from its own route, not the previous turn's outgoing peers.
Capability admission and external-turn receipts
Checked 19 November 2026: the mod host no longer imposes a shared four-request capability concurrency quota. Active requests are still tracked for cancellation, lifecycle ownership and diagnostics. Per-capability validation, grants, provider bounds and any explicitly configured deadlines remain; removing a shared quota does not broaden authority.
External-turn terminal persistence retries the known receipt without executing the submitted turn again. An idempotent replay/read can flush that pending receipt; it does not grant a new execution. Remote process replies have a dispatch watchdog in addition to cancellation grace. A lost reply follows cancellation/unknown-outcome handling, not an assumption that the process stopped or succeeded.
Remove a mod-owned native agent
context.agents.owned.remove(agentId) returns {agentId, removed} for a currently owned identity or one already absent. Foreign and ordinary identities are rejected. Core checks ownership under the registry lock; active native runs, queued/held chat inputs, and pending or running external turns, scheduled occurrences, Forge jobs or completion events can block removal. Wait for active work to settle. Removal is destructive: it deletes native sessions and the identity and its model/profile-image records, not merely UI visibility. It does not imply that the mod’s own application records or external copies are deleted.
Mod minions and return to the calling conversation
Development 2026.11.26.7 and later includes two separate capabilities. They are not part of public Burrow 2026.11.26.
context.minions.catalog()discovers eligible harnesses, model connections and execution hosts.submit,readandcancelare scoped to the calling mod. Submit a filesystem target and a mod-local idempotency key; there is no silent fallback to a different host. Catalog readiness does not prove that a credential or quota works.- Register
context.minions.onCompleted(handler)once during activation. A terminal signal contains the committed job ID; read the authoritative receipt withcontext.minions.read(jobId). A null job ID on activation or replacement tells the mod to reconcile its own saved pending IDs. Make handling idempotent. - A mod tool called from trusted private operator chat can register
context.followThrough.register({ key })during that call. Save the authoritative result first, then callcontext.followThrough.complete({ id, result })with a small structured status and locator. Core binds the destination to the original agent, session and conversation generation; the mod cannot select another destination. Background, group and standalone route invocations cannot register an origin. The completion acknowledgement means durable acceptance, not delivery; the eventual assistant reply follows normal conversation persistence.
This is separate from peer messaging and from task-bound GitHub workflow waits. A mod should use its own saved result as evidence, not treat a completion as new operator instructions.