Create a Vivary workspace
Use this guide for a new project or an empty directory.
Result
Section titled “Result”Vivary creates a five-file governed workspace. The workspace contains no starter records, templates, skills, or second-brain content.
Release boundary
Section titled “Release boundary”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.
Agent contract
Section titled “Agent contract”| 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. |
1. Check the target
Section titled “1. Check the target”Use init only for a new project or an empty directory.
If the target contains project files, use Adopt an existing project.
2. Select a preset
Section titled “2. Select a preset”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.
3. Preview the workspace
Section titled “3. Preview the workspace”Run a dry-run before the first write.
uvx create-vivary init C:/path/to/my-project --preset coding --no-wizard --dry-run --jsonConfirm the target, preset, contract, and five planned files. Stop if the target contains work that Vivary can overwrite.
4. Create the workspace
Section titled “4. Create the workspace”Run the same command without --dry-run.
uvx create-vivary init C:/path/to/my-project --preset coding --no-wizard --jsonVivary creates this tree:
my-project/├── .gitignore├── AGENTS.md├── STATE.md└── .vivary/ ├── context.md └── workspace.tomlAGENTS.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.
5. Verify the workspace
Section titled “5. Verify the workspace”Run Doctor. Then run Tropo validation.
uvx create-vivary doctor C:/path/to/my-projectuvx --from vivary-tropo tropo check --root C:/path/to/my-projectBoth commands must exit with code 0.
Fix each error before an agent uses the workspace.
Optional second-brain example
Section titled “Optional second-brain example”Preview the policy before creation.
uvx create-vivary init C:/path/to/my-notes --preset second-brain --no-wizard --dry-run --jsonuvx create-vivary init C:/path/to/my-notes --preset second-brain --no-wizard --jsonThe result is still the five-file seed. Real notes must come from later work.
Optional additions
Section titled “Optional additions”Include an adapter in the initial command only when the runtime needs it.
uvx create-vivary init C:/path/to/my-agent-project --preset coding --adapter agents --no-wizarduvx create-vivary init C:/path/to/my-claude-project --preset coding --adapter claude --no-wizardEach adapter adds one bounded runtime file.
Use --adapter twice when both adapters are required.
Include active code context only after explicit selection.
uvx create-vivary init C:/path/to/my-code-project --preset coding --active-context cocoindex-code --no-wizardThis 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 conditions
Section titled “Stop conditions”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.
