Skip to content

Publishing Manifests

abt publish pushes your compiled manifest to remote targets so other projects can consume your public agents via Loom.

Quick start

# Publish to ~/.abt/published/<project>/ (no `publish:` section needed)
abt publish --local

# Publish to the targets configured under `publish:` in abt.yaml
abt publish

# Preview without writing (works with --local, or once `publish:` is configured)
abt publish --dry-run

Only agents with access: public are published. With none, abt publish exits 2 with "No agents with 'access: public' found".

Configuration

Add a publish: section to your abt.yaml:

publish:
  targets:
    - type: s3
      config:
        bucket: <your-bucket>
        key: "{{ project_name }}/manifest.json"
        region_name: eu-central-1

    - type: local
      config:
        path: "~/.abt/published/{{ project_name }}/manifest.json"

Target types

Type Config keys Description
local path Write to local filesystem
s3 bucket, key, region_name (optional) Upload to AWS S3
http url, method (default: PUT), headers (optional) HTTP upload

http targets send headers only to the configured URL. abt does not follow redirects: any 3xx response fails the upload (exit 1, HTTP 30x uploading manifest), so a credential never reaches a server the config did not name. Point url at the final address. With version: set, a publish makes two requests: <url>/<version> and <url>/latest.

Variable interpolation

Config values support a {{ project_name }} placeholder (filled in with the project's name at publish time) and {{ env_var('NAME') }} / {{ env_var('NAME', 'default') }} calls.

What gets published

A stripped manifest containing only:

  • Agents with access: public (and origin: local)
  • Metadata (including published_at timestamp)
  • Filtered parent_map / child_map
  • Referenced skills and MCPs

Excluded: private agents, loom agents, contexts, test suites, handlers, few-shot examples.

Remote skills must resolve. A github(...) skill of a public agent that did not fetch during abt compile (missing or bad credentials) fails the publish with E_PUBLISH_REMOTE_SKILL_MISSING (exit 2). The compile itself still succeeds without --live, so publish is where the gap is caught. Provide the provider's credentials, recompile, then publish again. A file left by an earlier successful fetch also satisfies the check.

Prompts are published. Each public agent's system prompt is part of the manifest by default. Set strip_prompts: true under publish: to clear it (see Options).

Versioning

publish:
  version: auto       # timestamp-based: 2026.06.06T1430Z
  # version: "1.2.0" # explicit semver
  targets: [...]

When versioned, publishes to both <path>/<version>/manifest.json and <path>/latest/manifest.json.

Override from CLI: abt publish --version 2.0.0

Local publish

abt publish --local writes to ~/.abt/published/<project_name>/manifest.json without any publish: config. Consumers point their abt_loom.yaml at the same path:

# abt_loom.yaml (consumer side)
projects:
  - name: infra-agents
    manifest: ~/.abt/published/infra-agents/manifest.json

CI/CD

# GitHub Actions example
- run: abt compile
- run: abt publish

Flags:

  • --dry-run — show targets and agent count. It runs the remote-skill check below, so it exits 2 when that check fails. It does not validate targets: an unknown type: passes here and fails a real publish with exit 2

Exit codes: 0 (success), 1 (upload failed), 2 (config/validation error, including a missing remote skill).

Symmetry with Loom

The config shape in publish.targets[*].config matches abt_loom.yaml projects[*].manifest.config. Copy-paste from your publish config to a consumer's loom config works directly.

Options

publish:
  strip_prompts: false  # when true, system_prompt is cleared from published agents
  version: null         # null = overwrite latest, "auto" = timestamp, "X.Y.Z" = semver
  targets: [...]

CLI reference

abt publish [OPTIONS]

Options:
  --local           Publish to ~/.abt/published/<project>/ (no `publish:` section
                    needed, but at least one `access: public` agent)
  --dry-run         Show what would be published without writing
  --version TEXT    Override publish version
  --project-root    Path to project root
  --target          Profile target key
  --profiles-dir    Directory containing profiles.yaml