Organization forks let you customize a built-in Platform Template without changing the global template, or affecting other organizations.
A fork remains connected to its Platform lineage through a recorded baseline. When a newer Platform version becomes available, Agent Barn can copy that version into the Organization fork as another immutable Organization version.
Before you begin
You need:
- Access to the organization containing the template
template.readpermission to view templates and version historytemplate.managepermission to create or update an Organization fork- Permission to update an agent when changing its selected template version
- Lifecycle permission when applying a version to a running agent
Organization Members can view and use shared templates. Organization Owners and Administrators can manage their definitions. Platform Template authoring requires separate Platform Administrator permissions.
If you have not worked with immutable template versions, read Manage template versions first.
Understand the template sources
Agent Barn distinguishes between several template sources.
Built-in Platform Template
- Ownership
- Global platform
- Who can edit it
- Platform Administrators
- Update relationship
- Publishes global Platform versions
Organization fork
- Ownership
- One organization
- Who can edit it
- Organization template managers
- Update relationship
- Tracks a Platform baseline
Organization-owned template
- Ownership
- One organization
- Who can edit it
- Organization template managers
- Update relationship
- No Platform source
Agent override
- Ownership
- One agent
- Who can edit it
- Users permitted to configure that agent
- Update relationship
- Tracks its direct shared source
This guide focuses on Organization forks of Platform Templates.
Organization-owned templates do not receive Platform updates, because they have no Platform source. Agent overrides have a separate Agent-owned version and draft model, covered in Use Agent overrides.
How an Organization fork works
Editing a built-in Platform Template creates an Organization-scoped fork. The fork:
- Keeps the Platform Template’s stable template key
- Copies its content into Organization version
1 - Copies its required Skill rules
- Records the Platform version used as its baseline
- Starts an independent Organization version sequence
- Leaves the global Platform Template unchanged
- Does not move existing agents
- Platform v1
- Platform v2 — baseline
- Platform v3
- Org v1
- Org v2
- Agent A → Org v1
- Agent B → Org v2
The Organization sequence is independent of the Platform sequence. A fork created from Platform v2 starts at Organization v1, not Organization v3.
The same visible lineage can therefore contain:
Built-in platform v1
Built-in platform v2
Built-in platform v3
Organization fork v1
Organization fork v2Fork, baseline, and origin
An Organization fork maintains two related ideas:
- Origin identifies the Platform Template from which the fork was originally created.
- Baseline identifies the latest Platform version explicitly adopted into the Organization fork.
Suppose an organization creates a fork from Platform v2:
Origin: Platform Template tpl-4f6a71b29c83
Baseline: Platform v2
Current: Organization v1The organization then publishes two custom changes:
Origin: Platform Template tpl-4f6a71b29c83
Baseline: Platform v2
Current: Organization v3Publishing Organization changes does not advance the Platform baseline.
If the organization later applies Platform v5, Agent Barn creates the next Organization version and advances the baseline:
Origin: Platform Template tpl-4f6a71b29c83
Baseline: Platform v5
Current: Organization v4The fork’s original lineage remains intact.
Create an Organization fork
To customize a built-in template:
- Open your organization.
- Go to Templates.
- Select a template marked Built-in.
- Review its content and required Skills.
- Select Edit template.
- Make the Organization-specific changes.
- Select Save.
Saving creates Organization version 1. The built-in Platform versions remain read-only and unchanged, and future Organization edits publish Organization v2, v3, and so on.
After the first Organization version is created, the template is labeled as an Organization fork and shows its Platform baseline.
How fork resolution changes
An Organization fork uses the same stable template key as its Platform source. Once an Organization version exists, Organization-level template resolution prefers the Organization lineage for that key, so the fork represents the organization’s customized version of the built-in template.
The Platform versions still exist and remain visible in version-selection interfaces. An agent can be explicitly pinned to either a Built-in Platform version or an Organization fork version.
The exact source is stored with the agent’s template pin, so overlapping version numbers do not create ambiguity.
Detect an available Platform update
Agent Barn compares the latest Organization fork’s recorded baseline with the latest published Platform version. An update is available when the latest Platform version is higher than the fork’s Platform baseline.
Latest Platform version: v5
Fork Platform baseline: v3
Platform update: AvailableThe Templates list and template drawer display Platform update available when a newer Platform version can be adopted.
The update status belongs to the fork lineage as a whole. Selecting an older Organization version in the history does not change whether the latest fork version has an update available.
Review an update before applying it
A Platform update replaces the fork’s current content, so review it as a new release.
- Record the current Organization version.
- Record the current Platform baseline.
- Open the latest Built-in Platform version.
- Review its description.
- Review all eight Markdown artifacts.
- Review its required Skills and Skill groups.
- Identify Organization-specific customizations in the current fork.
- Decide which customizations must be reapplied afterward.
- Identify one test agent for validation.
The complete template snapshot includes SOUL.md, IDENTITY.md, USER.md, TOOLS.md, AGENTS.md, BOOT.md, BOOTSTRAP.md, HEARTBEAT.md, the description, and the required Skill rules.
There is no partial Platform update. Agent Barn adopts the latest complete Platform snapshot.
Apply a Platform update
To apply the update:
- Open your organization.
- Go to Templates.
- Select the Organization fork marked Platform update available.
- Confirm the displayed Platform baseline.
- Select Apply platform update.
- Review the confirmation.
- Select Apply update.
- Note the new Organization version number.
- Review the resulting version before applying it to an agent.
If the current Organization version is v3, the update creates Organization v4. The new version contains the latest Platform description, all eight Markdown artifacts from the latest Platform version, the latest Platform required Skill rules, and the updated Platform baseline.
The update does not modify Organization v1, v2, or v3.
Replacement, not merge
Consider a fork whose Organization version customized the escalation path, and a Platform version that then changed the same content.
Platform v4 — new source
- Improved support instructions
- New severity-based escalation
- Required Skills: Jira and Slack
Organization v2 — current fork
- Standard support instructions
- Custom escalation to Team Atlas
- Required Skill: Jira
Organization v3 — result
- Improved support instructions
- New severity-based escalation
- Custom escalation to Team Atlas Not carried forward
- Required Skills: Jira and Slack
The custom Team Atlas escalation is not merged into Organization v3. If that customization is still needed, edit Organization v3 and save it as Organization v4 containing both the new Platform behavior and the local escalation rule.
This makes the release sequence explicit, and preserves every intermediate snapshot.
What happens to existing agents
Applying a Platform update creates a template version. It does not update an agent’s selected version.
Before the update
Agent A ── Organization v2
Agent B ── Organization v2
Agent C ── Platform v3After the update
Agent A ── Organization v2
Agent B ── Organization v2
Agent C ── Platform v3
Organization v3 is available but not yet selected.This separation gives you time to test the updated fork. To roll out the update:
- Select a test agent.
- Apply the new Organization version.
- Restart the agent if it is running.
- Verify its health, activity, logs, and behavior.
- Apply the version to a small production group.
- Monitor the group.
- Move the remaining agents when ready.
There is no automatic fleet-wide rollout.
Reapply Organization customizations
When the Platform snapshot is correct but your organization still needs local changes:
- Apply the Platform update.
- Open the newly created Organization version.
- Select Edit template.
- Reapply the required Organization-specific content.
- Review the required Skills.
- Select Save.
- Test the resulting Organization version.
This creates one version for the adopted Platform snapshot, and another for the Organization customization:
- Org v3 Previous customized fork
- Org v4 Exact Platform snapshot, created by the Platform update
- Org v5 Updated customized fork, after reapplying Organization changes
This history makes it clear which Platform content was adopted, and which changes were added by the organization.
Required Skills during an update
A Platform update copies the latest Platform version’s complete required Skill configuration. That includes standalone Skills that are all required, and Skill groups where at least one member must be assigned.
The fork’s previous Skill requirements are replaced.
Before applying the new Organization version to an agent:
- Inspect its required Skills.
- Confirm that the required Skills are visible to the organization.
- Confirm that the agent has the required standalone Skills.
- Choose at least one Skill from every required group.
- Configure any required provider credentials.
- Apply the template version.
Agent Barn validates the exact selected version’s requirements when the agent is updated. An agent still pinned to the older Organization version remains governed by that older version’s requirements.
Apply an update with the API
Use the Organization Template update endpoint. No request body is required.
POST /api/v1/organizations/{organization_id}/templates/{template_key}/platform-updateExample:
curl --request POST \
--url "${AGENT_BARN_URL}/api/v1/organizations/${ORGANIZATION_ID}/templates/${TEMPLATE_KEY}/platform-update" \
--header "Authorization: Bearer ${AGENT_BARN_TOKEN}"A successful request returns 201 Created and the newly created Organization version:
{
"template_key": "tpl-4f6a71b29c83",
"template_name": "Customer Support Agent",
"template_source": "pre-defined",
"version": 4,
"fork_baseline_platform_version": 5,
"platform_update_available": false
}The response also contains the copied template content and required Skills.
Platform update validation
The API rejects the update when:
- The template key does not identify an Organization fork
- The template is an Organization-owned custom template
- The fork’s Platform baseline is unavailable
- No newer Platform version exists
- The caller lacks
template.managepermission
Possible conflict responses include:
409 Template Update is only available for organization forks of Platform Templates
409 No newer Platform Template Version is available
409 The fork's Platform Template baseline is no longer availableRefresh the template before retrying, so you are working with its latest lineage state.
Choose the correct action
| Goal | Correct action |
|---|---|
| Customize a built-in for the organization | Edit the Built-in template to create an Organization fork |
| Change an existing Organization fork | Edit it and publish the next Organization version |
| Adopt the latest Platform snapshot | Apply the Platform update |
| Keep local changes while adopting Platform changes | Apply the update, then reapply local changes in another Organization version |
| Test the latest Platform version without changing the fork | Pin a test agent directly to that Platform version |
| Move one agent to the updated fork | Apply the exact Organization version to that agent |
| Undo an agent rollout | Repin the agent to its previous version |
| Make previous fork content latest again | Publish the historical content as the next Organization version |
| Give one agent private changes | Create an Agent override |
| Permanently combine Platform and Organization changes automatically | Not supported; review and reapply changes explicitly |
Use a safe update workflow
A recommended release sequence is:
- Platform update detected
- Review latest snapshot
- Record customizations
- Apply update
- Reapply customizations
- Test with one Agent
- Canary rollout
- Wider rollout
For high-impact templates, keep the previous Organization version pinned to at least one test agent until the new version has been verified.
Roll back after a Platform update
Because previous Organization versions remain immutable, you have two rollback options.
Roll back one agent
Repin the agent to its previous Organization version. This is the fastest option, and it does not create a template version.
Agent A: Organization v5 → Organization v3Other agents remain unchanged.
Restore fork content as a new version
If historical content must become the latest fork version:
- Open the historical Organization version.
- Review all artifacts and required Skills.
- Edit or reproduce its complete snapshot.
- Save it as the next Organization version.
- Apply the new version to the required agents.
This preserves the Platform update in history, while creating a new immutable version containing the restored behavior.
For an exact API restoration, submit all template fields and Skill requirements. Omitted fields inherit from the current latest Organization version.
Return an agent to the Platform source
Creating a fork does not prevent an individual agent from using a Built-in Platform version.
- Open the agent.
- Go to Configuration.
- Open the template selector.
- Find the entry labeled Built-in platform.
- Select the exact Platform version.
- Preview its content and required Skills.
- Select Apply or Apply & Restart.
This changes only that agent’s pin. It does not remove or alter the Organization fork.
Deleting and detaching forks
Organization forks cannot be deleted through normal Template deletion. You also cannot detach a fork and convert its existing lineage into a normal Organization-owned template.
If you need a separately managed template with no Platform update relationship:
- Create a new Organization-owned template.
- Copy the desired content.
- Configure its required Skills.
- Publish it as Organization version
1. - Test it.
- Move the required agents to the new template.
The original Organization fork remains available with its history and Platform relationship.
Template forks and Skill forks are different
This update model applies to Organization Template forks. A fork of a built-in Skill is different:
- It creates a new Organization-owned custom Skill
- It is a one-time snapshot
- It has its own identity and version history
- It does not track future updates from the built-in Skill
Do not expect a custom Skill fork to display Platform update available.
Troubleshooting
The Platform update badge does not appear
Only forks track a Platform baseline
Check that:
- The template is an Organization fork.
- Its source is a Built-in Platform Template.
- A Platform version newer than the fork’s baseline has been published.
- You are viewing the latest state of the fork.
- The page has been refreshed.
Organization-owned templates do not receive Platform update notifications.
Selecting an older fork version changes the displayed baseline but not the update button
Update status follows the latest version
Historical versions retain the baseline recorded when they were published. The update-available result, however, is determined from the latest Organization version for the lineage.
Selecting an old version does not change the current update status.
Applying the update removed our custom instructions
Expected: replacement, not merge
This is expected. Platform updates copy the complete latest Platform snapshot and replace Organization customizations.
Repin affected agents to the previous Organization version, then reapply the customizations in a new version.
Applying the update did not change any agents
Publication and selection are separate
Template publication and Agent selection are separate operations. Apply the new Organization version to each intended agent.
Restart running agents so they load the new runtime configuration.
I receive “No newer Platform Template Version is available”
The baseline is already current
The fork’s baseline is already at the latest Platform version, or another user applied the update before your request completed.
Refresh the template and inspect its current baseline.
I receive “Template Update is only available for organization forks”
The lineage is not a fork
The selected template is likely a Built-in Platform Template that has not been forked, an Organization-owned custom template, or a lineage that is not recorded as a Platform fork.
Only Organization forks can use the Platform update endpoint.
The latest Platform version adds required Skills
Configure them before applying
Configure those Skills and any required provider credentials before applying the new Organization version to an agent.
Existing agents pinned to an older version remain unchanged.
I want to adopt an intermediate Platform version
The update adopts the latest snapshot
The Platform update action adopts the latest published Platform snapshot. It does not let the fork choose an intermediate Platform baseline.
You can test an older Platform version by pinning an agent directly to that exact Platform version. If the fork must incorporate selected historical content, reproduce it deliberately as a new Organization version, and review every artifact and Skill requirement.
I cannot delete the Organization fork
Forks are protected from deletion
Organization forks are protected from normal Template deletion.
Create a separate Organization-owned template if you need an independent lineage, then move agents explicitly.
Recommended practices
- Record the fork’s Platform baseline before making Organization changes
- Keep Organization customizations focused and documented
- Review all eight artifacts before applying an update
- Treat required Skill changes as part of the release
- Assume an update is a replacement, never a merge
- Test updates with a dedicated agent
- Use a canary rollout before moving all agents
- Keep previous versions available for rollback
- Reapply local changes as a separate immutable version
- Record both source and version when discussing a template
- Never assume publishing or updating automatically moves agents
Next steps
Continue to Use Agent overrides to learn how one agent can maintain private template changes without modifying its Organization or Platform source.