Introduction#
What the manifest is, why it matters, and how the schema keeps things predictable.
What is agent.json?#
agent.json is the single source of truth for an AgentPM package or project. It describes:
- Kind — a tool (single runnable package), a skill (procedural package), a knowledge package (prepared context or retrieval corpus), a memory package (durable memory contract and lifecycle policy), a profile package (portable authored role and communication guidance), a loop package (declarative orchestration contract), an agent (composes tools, skills, knowledge, memory, profiles, and an optional loop), or a template (generates a project scaffold).
- Standard — the APDS identity and version defining the manifest's structure and meaning.
- Behavior & interface — names, versions, entrypoint, inputs/outputs, files, env vars.
- Operational details — runtime, timeouts, auth modes, and more.
AgentPM surfaces read this file to know how to validate, install, publish, or generate from the package.
Why it’s important#
- Determinism: Installs and executions are reproducible across machines and CI.
- Discoverability: The registry renders docs straight from the manifest.
- Safety & trust: Lint/publish validations enforce schema correctness and semantic checks.
The schema (high level)#
APDS agentpm / 1.0.0 defines the manifest structure in its versioned JSON Schema:
https://raw.githubusercontent.com/agentpm-dev/cli/refs/tags/apds-v1.0.0/standards/agentpm/1.0.0/manifest.schema.jsonAt a glance:
- Canonical file:
standards/agentpm/1.0.0/manifest.schema.json;schemas/agentpm.manifest.schema.jsonis AgentPM's compatibility copy. - Kinds:
tool,skill,knowledge,memory,profile,loop,agent, andtemplate - Strictness:
additionalProperties: false— unknown fields are rejected
Use agentpm init to create an Agent Package, or select another kind
explicitly, such as --kind tool. All new scaffolds declare the supported
standard and pin the editor schema. An Agent Package may omit Components and a
Loop; executing it with Harness requires a Loop dependency and model
configuration.
Declaring the standard#
APDS 1.0.0 manifests require this root declaration:
{
"standard": { "id": "agentpm", "version": "1.0.0" }
}standard selects the definition contract. $schema is an optional editor hint;
it cannot select a different standard or replace the bundled validation contract.
The CLI validates a declared standard against its supported contract offline.
agentpm init emits this declaration for all eight kinds and both Knowledge
modes, as does agentpm export --manifest for its generated Skill.
Ordinary agentpm lint requires this explicit declaration and evaluates canonical
standalone APDS rules. Missing or unsupported declarations fail even without
--strict; that flag additionally treats warnings as errors. Publish/package and
local Knowledge/Memory build and inspect use the same standalone authoring rules.
Use explicit APDS evaluation for supplied
resolved-composition or packaged-content checks. A standalone pass does not
establish those broader properties or Runner readiness.
For an undeclared local file, agentpm lint --legacy runs the same engine on an
in-memory copy with an inferred selector. It is read-only, reports
compatibility: "legacy-unverified" without an APDS verdict, and cannot authorize
publication. Explicit unknown declarations still fail as unsupported. See
older local manifests for manual migration.
Neither --fix nor --schema can supply a missing standard or bypass canonical
checks.
Existing historical artifacts remain usable through compatible install, run,
Template generation, and installed Knowledge/Memory inspection paths. Preserve
their original bytes. The consumer root synthesized by agentpm new still lacks
standard; upgrade that local manifest
before strict authoring lint rather than modifying a historical package.
Design notes#
- Strict by default: Unknown fields are rejected (
additionalProperties: false). - SemVer enforced:
versionmust match a SemVer-compatible regex. - Paths:
files[]are literal package-relative file or directory paths, not globs. Every declared path must exist when packaging; a missing path stops publish instead of being silently omitted. - Validated declaration:
standardmust identify a supported APDS contract. It is validated metadata, not an opaque extension slot; other unknown root fields are rejected.
Versioning & stability#
- Each published APDS version is immutable and lives in its own version directory. Contract changes require a new standard version rather than edits to the published version.
- New scaffolds point
$schemato the version-pinned URL above, rather than a moving branch. - The CLI validates against its bundled supported contract without downloading an arbitrary schema URL.