Project structure¶
my-project/
├── pyproject.toml / uv.lock # Python dependencies (uv)
├── tuvl.lock # pinned model ids, artifact hashes, MCP schemas (tuvl generate lock)
├── .env / .env.example # secrets and connection settings — never in YAML
├── idea/ # IDEA-XX-NNNN/: numbered, immutable copies of the briefs (tuvl import idea)
├── specs/
│ ├── SPEC-XX-0004-01.md # intent: flows, policies, acceptance examples; front matter holds the approval
│ └── SPEC-XX-0004-01.tasks.yaml # task list (TASK-XX-0004-01-NNN), derived — statuses are derived from the project
├── workflows/ # kind: Workflow (version: tuvl/v2)
├── agents/ # code agents: one @agent function per file
│ └── _generated/schemas.py # typed In/Out models (tuvl generate code) — never hand-edited
├── models/ # kind: ModelDefinition, EmbeddingRegistry, CollectionRegistry
├── llms/ # kind: AgentModel — type llm or decision
├── datasources/ # kind: DataSource
├── storage/ # kind: Storage — named blob stores (S3, Azure, GCS, local)
├── federation/ # kind: FederationProvider
├── artifacts/ # prompts, steering, skills (.md); guardrail, hook, mcp, judge, rules (YAML)
├── tests/
│ ├── triage_ticket/*.yaml # kind: Test (generated from the spec, or hand-written)
│ └── fixtures/ # pinned run journals for replay
├── fixtures/judge/ # labelled judge calibration subjects
├── .agents/ # AGENTS.md + skills for coding agents (tuvl update skills)
└── .tuvl/ # system.yaml, project.yaml (identity), layout, breakpoints, judge cache, dev session;
# git-ignored on your machine: agent.yaml, audit/, trace/, live/, worktrees/
Folder names are conventions: tuvl discovers documents recursively and dispatches them by kind:.
Generated vs written¶
| You write | tuvl generates |
|---|---|
specs/*.md (or tuvl generate spec drafts it from an idea, and you approve it) |
specs/*.tasks.yaml (tuvl generate tasks, or written by your agent) |
| workflow YAML (or edit it in Insight) | agents/_generated/, code-agent stubs, prompt placeholders |
| code-agent function bodies | tests/<workflow>/*.yaml from spec examples |
| hand-written tests, mocks | tuvl.lock, tests/fixtures/*.journal.json (pinned runs) |
Document kinds¶
Workflow, Test, TaskPlan (all version: tuvl/v2), ModelDefinition, AgentModel,
DataSource, RedisConfig, EmbeddingRegistry/EmbeddingConfig, CollectionRegistry/
CollectionConfig, FederationProvider, Artifact, ProjectConfig, TelemetryConfig,
SystemConfig. Every document is kind: + metadata: + spec:. See the
Agentic Manual.