cargo-ai manifest scaffolds that
repo and installs modules into it.
A Manifest repo has six layers:
The layers that execute (
infra/, modules) need a Cargo workspace. The rest
(context, skills, evals, outputs, the context linter) work in any repo with no
account at all.
manifest init
--from <source>— template source,owner/repo[@ref]or a github.com URL (default: the official template,getcargohq/cargo-manifest)--name <name>— repo name written intopackage.json/manifest.json(default: the directory name)--force— scaffold into a non-empty directory (existing files are still kept, never overwritten)
manifest add
infra/ by
default) and are yours to edit from then on — there is no runtime dependency
on the source. A module’s transitive requirements come along automatically
(installing inbound-flow also brings base-gtm), driven by the source
repo’s cargo.scaffold.json.
Every install is recorded in manifest.json with its source, git ref, and
per-file content hashes, so future tooling can show how your copy has diverged
from upstream.
Options:
--from <source>— module source,owner/repo[/folder][@ref]or a github.com URL (default:getcargohq/cargo-cookbooks). A trailing folder scopes the module root (scaffold manifest + module folders) to that path inside the repo.--dir <dir>— install directory relative to the repo root (default:infra)--force— overwrite files that already exist locally; without it, collisions are kept and reported
cargo.scaffold.json at the module root to declare shared files
and per-folder requires.
