Publishing a harness
Install the afh CLI first with npm install -g agentfacehub (Node.js 22 or newer).
1. Sign in and claim a namespace
afh login # emails you a one-time code
afh namespace claim your-handle
Your namespace is the first half of every harness name, as in your-handle/my-harness. Handles are lowercase letters, digits and hyphens, and first come, first served.
2. Write harness.yaml
The smallest useful harness is a system prompt and a skill:
spec: v1
name: your-handle/repo-helper
version: 0.1.0
license: apache-2.0
description: Answers questions about a repo and cites the files it read.
runtime:
kind: declarative
system_prompt: ./prompts/system.md
models:
requires: [tool_use]
min_context: 32000
tools:
skills: [./skills/*]
permissions:
network: []
filesystem: workspace-only
Every field is described in the harness.yaml reference. Add a README.md too: it becomes the harness card that people see first.
Try it locally before you publish:
afh export ./repo-helper --into claude-code
3. Push
afh push ./repo-helper
The hub checks the manifest, makes sure every file it mentions is in the package, and stores each file by its hash. Use --private to publish a harness only you can see.
There are no shared org or team namespaces yet, so a private harness can’t be shared with a group. Anything you want others to pull has to be public, which means public to everyone. Don’t push unpublished prompts, data or credentials.
Hosted-only harnesses
To let people see and (soon) use a harness without handing them its files, set distribution: hosted_only with a non-open license:
license: proprietary # or your own terms, e.g. LicenseRef-Acme-EULA
distribution: hosted_only
Everyone still sees the card, the version list and the manifest (what models it needs, its permissions). Only you can see the file list or afh pull it. Others will be able to use it through hosted runs once they launch.
Hosted-only doesn’t mean secret. A model can often be talked into repeating its prompt, so don’t put anything in a harness you can’t afford to leak.
distribution is set per version and can’t change. To open a harness, publish a new version with distribution: open and an open-source license. After a hosted-only version, the next one must say distribution explicitly, so a harness is never opened by accident.
Versions are immutable
A published version can’t be changed or deleted. To fix something, bump version in harness.yaml and push again. People who pinned the old version keep getting exactly what they pinned.