# Workspace layout

> The directory tree of a workspace as the agent sees it: where profiles, skills, rules, jobs and memory live, where outputs go, what is versioned and what is indexed.

Source: https://docs.ventgris.com/agents/workspace-layout

Every workspace machine has one workspace folder: the files that the agent, the terminals and the **Files** screen all work on. The control plane reads some of its folders by convention (`agents/`, `skills/`, `rules/`, `jobs/`, the memory folder) and indexes them, so where a file lives decides what it does. This page gives the tree, then what each part is for.

## The tree

```text
/home/agent/workspace/                  the workspace ($WORKSPACE_ROOT)
├── WORKSPACE_MAP.md                    generated map, injected into every session
├── agents/                             agent profiles, one folder each
│   └── <slug>/AGENT.md
├── skills/                             skills, one folder each
│   └── <name>/SKILL.md
├── rules/                              written rules, one note per rule
│   └── <id>.md
├── jobs/                               job files, one per scheduled job
│   └── <name>.toml
├── ventgris-os-memory/                 the memory folder
│   ├── SOUL.md                         identity, voice, business context
│   ├── AGENTS.md                       the operating map of the memory
│   ├── CONTEXT_MEMORY.md               weighted summary of recent days, weeks, months
│   ├── NEXT.md                         what is planned next
│   ├── OPEN_LOOPS.md                   the register of open loops (vg loop)
│   ├── LEARNINGS.md                    optional, indexed as learning
│   ├── memory/
│   │   ├── daily/YYYY-MM-DD.md         the journal of the day (vg log)
│   │   ├── daily/_template_daily.md    template of a new day
│   │   ├── weekly/YYYY-Www.md
│   │   ├── monthly/YYYY-MM.md
│   │   ├── quarterly/YYYY-Qn.md
│   │   └── yearly/YYYY.md
│   ├── learning/
│   │   └── notes/<short-name>.md       durable lessons, one per note
│   └── subagent-tasks/                 protocols the memory jobs follow
│       └── daily-close.md
├── inbox/
│   ├── YYYY-MM-DD/<conversation>/      files received in channels
│   └── browser/<profile>/YYYY-MM-DD/   files the shared browser downloaded
├── projects/                           your own work, by convention
└── .trash/                             files deleted from the Files screen

/home/vg-ai/                            home of the AI sessions ($HOME)
├── .claude/CLAUDE.md                   generated instructions for Claude Code
├── .codex/AGENTS.md                    generated instructions for Codex
├── .codex/config.toml                  Codex settings, with a generated MCP block
└── .local/bin/                         tools you install without root
```

Only the folders above that the platform reads have fixed names. Everything else (`projects/`, your own folders) is free. `$WORKSPACE_ROOT` is set in every session; use it instead of hard-coding the path.

## What a new workspace starts with

The first seed of a new workspace writes these files once, and never overwrites one that exists:

| Path | Content |
|---|---|
| `agents/ventgris/AGENT.md` | Ventgris, the orchestrator profile (Claude Code) |
| `agents/ventgris-codex/AGENT.md` | the same role on Codex |
| `agents/memory/AGENT.md` | the memory keeper, used by the nightly close |
| `agents/agent-builder/AGENT.md` | interviews a member and writes a new profile, skill or job |
| `agents/reader/AGENT.md`, `agents/intern/AGENT.md` | sandboxed profiles for untrusted content and for guests |
| `skills/treg/SKILL.md` | a skill for external data |
| `rules/minimal-edit.md`, `rules/rendered-means-seen.md` | two starter rules |
| `jobs/memory.daily-close.toml` | the nightly close of the journal, 23:45 every day |
| `ventgris-os-memory/` | `SOUL.md`, `AGENTS.md`, `CONTEXT_MEMORY.md`, `NEXT.md`, `memory/daily/_template_daily.md`, `subagent-tasks/daily-close.md` |

The **Agents** screen has a button that writes the missing base files again, without touching the ones that exist.

## The convention folders

| Folder | Read by | Format | Picked up |
|---|---|---|---|
| `agents/<slug>/AGENT.md` | the catalog | [Agent profiles](https://docs.ventgris.com/agents/agent-profiles.md) | on change, or `vg skills sync` |
| `skills/<name>/SKILL.md` | the catalog, the memory index | [Skills and rules format](https://docs.ventgris.com/agents/skills-and-rules-format.md) | on change, or `vg skills sync`. Linted |
| `rules/*.md` | the catalog, the memory index, the startup context | [Skills and rules format](https://docs.ventgris.com/agents/skills-and-rules-format.md) | on change, or `vg skills sync`. Then `vg rules build` writes them into the harness instructions |
| `jobs/*.toml` | the scheduler | [Job files](https://docs.ventgris.com/agents/job-files.md) | every minute, when the content hash changes |
| `ventgris-os-memory/` | the memory index, the startup context | Markdown | as files change |
| `WORKSPACE_MAP.md` | the startup context | generated | rewritten by `vg map --refresh` |

## The memory folder

`ventgris-os-memory/` is the long-term memory. See [Memory](https://docs.ventgris.com/workspace/memory.md) for how people use it.

| File | Written by | Rule for the agent |
|---|---|---|
| `SOUL.md` | members | Read at start. Do not edit unless a member asks |
| `AGENTS.md` | members | Read at start. Do not append prose to it |
| `CONTEXT_MEMORY.md` | the nightly close | Read at start. If it is more than 36 hours old, the startup context warns you: search the journal for the last days |
| `NEXT.md` | any session | Keep it short and current |
| `OPEN_LOOPS.md` | `vg loop` | Do not edit by hand: use `vg loop add`, `vg loop close` |
| `memory/daily/YYYY-MM-DD.md` | `vg log`, then the nightly close | Write with `vg log`; the close adds `## Summary`, `## Decisions`, `## Carryover`, `## Tomorrow` above `## Log` |
| `memory/weekly/`, `monthly/`, `quarterly/`, `yearly/` | the memory profile | Reviews |
| `learning/notes/*.md` | the memory profile, sessions | One lesson per note, with its date and session |
| `subagent-tasks/*.md` | members | Protocols that jobs run |

A write to `rules/` or `learning/` from a turn that read untrusted content, or from a session of a channel `member`, is quarantined until a person confirms it. A quarantined passage shows `(quarantined)` in `vg recall`.

## What is injected at the start of a session

Each session receives a startup context built from the workspace, in this order, each block within its own size budget (about 11,000 tokens in all):

| Block | Source |
|---|---|
| Identity | `ventgris-os-memory/SOUL.md`, plus the behaviour section of the profile |
| Operating map | `ventgris-os-memory/AGENTS.md` |
| Weighted past | `ventgris-os-memory/CONTEXT_MEMORY.md`, with a warning when it is stale |
| Corrections | the rules in `rules/`, the most-hit first |
| Channel, Counterpart | for a session started from a channel: the channel and who is talking |
| Workspace map | `WORKSPACE_MAP.md` |
| Tools, Autonomy | the tools of the machine and what the agent may do without a person |
| Date | the date and time in the workspace time zone |

When the blocks together are too large, the weighted past and the workspace map are cut first. Do not read these files again at start: you already have them.

The harness instruction files (`~/.claude/CLAUDE.md`, `~/.codex/AGENTS.md`) carry a generated block of rules and skills between markers. `vg rules build` rewrites the block and leaves the rest of the file as it is.

## Where outputs go

| Output | Put it in | Then |
|---|---|---|
| Work files, drafts, code | a folder of your choice under the workspace, usually `projects/<name>/` | Members see them in **Files** |
| A page, a report, a small site | a folder with an `index.html` | `vg art publish DIR`: it becomes an [artifact](https://docs.ventgris.com/workspace/artifacts.md) with its own versions, outside the workspace |
| A heavy file (video, audio, image, PDF) | anywhere, then `vg media put` or `vg media import` | It moves to object storage; `vg media import` leaves `NAME.media.json` in its place |
| A file for the person who wrote in a channel | the workspace | `vg deliver FILE` |
| A fact worth remembering | the journal | `vg log "..."` |
| A commitment | the loops register | `vg loop add` |
| A scheduled task | `jobs/<name>.toml` | the scheduler reads it within a minute |
| A temporary file | `/tmp` | not part of the workspace and not backed up; never put anything you need there |

Background task output stays with the task: read it with `vg task logs ID`.

## What is versioned

| What | How |
|---|---|
| The memory folder | the system job `memory.git-push` commits and pushes `ventgris-os-memory/` every night at 00:10, only if the folder is already a git repository with a remote. It never creates a repository, a remote or a key |
| Artifacts | each publish is a version; `vg art rollback ID --to N` goes back |
| Profiles, skills, rules, jobs | not versioned by the platform. Put the workspace, or a project, under git yourself if you want history |
| The whole workspace | covered by the machine backups, see [Data and backups](https://docs.ventgris.com/security/data-and-backups.md) |

Files deleted from the **Files** screen go to `.trash/` at the workspace root first.

## What is indexed

The memory index (searched by `vg recall`) reads Markdown files only:

| Source | Layer | Depth |
|---|---|---|
| `ventgris-os-memory/memory/daily/` | `daily` | files of the folder |
| `ventgris-os-memory/memory/weekly/`, `monthly/`, `quarterly/`, `yearly/` | `weekly`, `monthly`, `quarterly`, `yearly` | files of the folder |
| `ventgris-os-memory/learning/notes/` | `note` | 3 levels |
| `ventgris-os-memory/learning/`, `ventgris-os-memory/LEARNINGS.md` | `learning` | 3 levels |
| `ventgris-os-memory/NEXT.md` | `next` | |
| `ventgris-os-memory/AGENTS.md`, and every `AGENTS.md` of the workspace | `agent` | 3 levels, 600 folders at most |
| `rules/` | `rule` | 2 levels |
| `skills/*/SKILL.md` | `skill` | 4 levels, 400 folders at most |

Left out everywhere: names that start with `.` or `_` (hidden files, templates, archives), the folders `node_modules`, `__pycache__`, `venv`, `vendor`, `dist`, `build`, `target`, `archive`, and files over 4 MiB. Journal files are dated by their name (`2026-11-29.md`, `2026-W48.md`, `2026-11.md`, `2026-Q4.md`, `2026.md`); a note is dated by a date in its name (`venue-2026-11-02.md`).

A project folder gets into the index through its `AGENTS.md`: write one at the root of each project with what it is, its commands and its paths. It also appears in the workspace map.

> [!AGENT]
> Search inside the workspace, never from `/`. Read the workspace map before exploring. Put each project under `projects/<name>/` with an `AGENTS.md`. Never write secrets into the workspace: every member with a terminal can read it. Run `vg scan PATH` before you publish or commit a folder.

## Who can read the workspace

The workspace is shared. AI sessions, the terminals of the interface and the **Files** screen all read and write the same files. Sessions and terminals run as the Linux user `vg-ai`, and the workspace is writable by its group `vg-work`. Everything in it is readable by every member who can open a terminal or the **Files** screen. See [Security overview](https://docs.ventgris.com/security/overview.md).

## Related

- [Read this first if you are an agent](https://docs.ventgris.com/agents/overview.md)
- [Memory](https://docs.ventgris.com/workspace/memory.md)
- [Files and editor](https://docs.ventgris.com/workspace/files-and-editor.md)
- [Job files](https://docs.ventgris.com/agents/job-files.md)
- [Skills and rules format](https://docs.ventgris.com/agents/skills-and-rules-format.md)
