Skip to content

Create a Vivary workspace

Use this guide for a new project or an empty directory.

Vivary creates a five-file governed workspace. The workspace contains no starter records, templates, skills, or second-brain content.

These commands describe published 0.4.2. Registry latest installs it and creates the five-file layout. Pin create-vivary==0.3.1 only to get the historical full layout.

Field Value
Goal Create one minimal governed workspace.
Required input Target directory and preset.
Default authority Create the five-file seed.
Optional authority Add only the selected bounded adapter or sidecar.
Prohibited action Do not install providers, create records, or copy starter packs.
Proof Doctor and Tropo checks pass.

Use init only for a new project or an empty directory. If the target contains project files, use Adopt an existing project.

Select one preset that matches the work. Each preset creates the same five files. A preset changes policy labels only.

Preset Use
coding Software, tests, documentation, and release work.
second-brain Personal notes, sources, decisions, and retrieval.
knowledge-work Research, decisions, artifacts, and proof.
writing Drafts, research, reviews, and publication gates.

The second-brain preset does not create notes or a pre-populated second brain.

Run a dry-run before the first write.

Terminal window
uvx create-vivary init C:/path/to/my-project --preset coding --no-wizard --dry-run --json

Confirm the target, preset, contract, and five planned files. Stop if the target contains work that Vivary can overwrite.

Run the same command without --dry-run.

Terminal window
uvx create-vivary init C:/path/to/my-project --preset coding --no-wizard --json

Vivary creates this tree:

my-project/
├── .gitignore
├── AGENTS.md
├── STATE.md
└── .vivary/
├── context.md
└── workspace.toml

AGENTS.md routes the agent to governed context. STATE.md shows the current focus, status, and next action. .gitignore protects private and runtime paths. .vivary/context.md defines the work loop and gates. .vivary/workspace.toml defines the thin contract and type policy.

Run Doctor. Then run Tropo validation.

Terminal window
uvx create-vivary doctor C:/path/to/my-project
uvx --from vivary-tropo tropo check --root C:/path/to/my-project

Both commands must exit with code 0. Fix each error before an agent uses the workspace.

Preview the policy before creation.

Terminal window
uvx create-vivary init C:/path/to/my-notes --preset second-brain --no-wizard --dry-run --json
uvx create-vivary init C:/path/to/my-notes --preset second-brain --no-wizard --json

The result is still the five-file seed. Real notes must come from later work.

Include an adapter in the initial command only when the runtime needs it.

Terminal window
uvx create-vivary init C:/path/to/my-agent-project --preset coding --adapter agents --no-wizard
uvx create-vivary init C:/path/to/my-claude-project --preset coding --adapter claude --no-wizard

Each adapter adds one bounded runtime file. Use --adapter twice when both adapters are required.

Include active code context only after explicit selection.

Terminal window
uvx create-vivary init C:/path/to/my-code-project --preset coding --active-context cocoindex-code --no-wizard

This option keeps the five-file seed. It declares the capability and ignores its local index path. It does not copy guidance, install an indexer, or create an index.

Stop when the target is nonempty. Stop when a planned file can replace user content. Stop when provider installation needs approval. Stop when privacy policy is missing or invalid.

Use the command reference for all flags and output fields.