Skip to content
venizia.ai

Documentation · VULCAN

The .agents folder ​

.agents/ holds what the coding agents of a project read and what they leave behind. Part of it is committed, part of it is yours alone, and one folder, local/, is where everything an agent creates while it works goes. Nothing goes outside the project (rule V-B-08).

text
.agents/
├── rules.md                  tracked   the project's own rules
├── knowledge/                tracked   the facts: the knowledge bundle
├── skills/                   tracked   the project's own skills (optional)
├── hooks/                    tracked   scripts of the project's own hooks (optional)
├── atlas.manifest.json       tracked   written by vulcan project sync; atlas and the wiki build read it
├── vulcan.manifest.json      tracked   a temporary copy of it for atlas of 0.5.0-6 and before; goes with the stable release
├── plans/                    ignored   plans an agent saved for you
├── specs/                    tracked   lane-L cards from plan-a-change (optional)
└── local/                    ignored   what an agent creates while it works
    ├── tmp/                            scratch for one task
    ├── worktrees/                      git worktrees, one per branch
    ├── clones/                         clones made for research
    ├── cache/                          the atlas source cache
    ├── reports/                        reports an agent wrote
    ├── prototypes/                     throwaway prototypes and vulcan page new pages
    ├── agents/                         one agent's own state: notes, staged copies, scratch that outlives a session (on demand)
    ├── events/                         the agent event log (on demand)
    ├── release-candidates/             builds made to test a release (on demand)
    ├── profile.json                    how you like to work (vulcan profile)
    └── auto-clean.json                 when the automatic clean last ran, and what it removed

plans/ is created and ignored by init. specs/ is the default folder where plan-a-change writes lane-L cards. It is not created and not ignored, so cards are tracked unless the project adds it to .gitignore.

vulcan project init puts .agents/plans, .agents/local/, the secret patterns (**/.env, **/.env.*, with !**/.env.example kept) in .gitignore. sync writes the manifest and the folders below.

What is tracked ​

PathWho writes itWhat it is
rules.mdYouThe project's rules, next to the base rules every VULCAN project inherits
knowledge/You and the okf toolsThe facts about the project, in a bundle agents and atlas read
skills/, hooks/YouSkills and hook scripts that belong to the project; sync links the skills into .claude/skills/
atlas.manifest.jsonvulcan project syncWhat atlas reads: name, packages, layout, presets, knowledge, release, sources. Never edit it; doctor fails a stale one
vulcan.manifest.jsonvulcan project syncA temporary data-only copy of atlas.manifest.json, kept until the stable 0.5.0 release for atlas of 0.5.0-6 and before
local/vulcan.manifest.jsonvulcan project syncThe resolved project in full: rule hashes and the settings the hooks, the board and doctor read. Gitignored; each clone writes its own

What is in local/ and when it goes ​

Every folder of local/ has a lifetime, and one command takes it back. vulcan project clean is a dry run until you add --yes.

FolderCreatedGoes whenTaken by
tmp/by syncThe task ends. doctor warns after a dayvulcan project clean --tmp (the default)
worktrees/by syncIts branch is merged or gone. doctor warnsvulcan project clean --worktrees, merged or gone branches with no uncommitted work only
clones/by syncThe research is reported. doctor warns after 14 daysvulcan project clean --clones
cache/by syncYou ask; it rebuildsvulcan project clean --cache
reports/by syncYou delete itvulcan project clean --reports
prototypes/by syncYou delete itvulcan project clean --prototypes
agents/on first writeYou delete itNothing: vulcan project clean never takes it
events/on first writeYou delete itvulcan project clean --events
release-candidates/on first writeThe release shipsvulcan project clean --release-candidates, tagged versions only

About two of these rows:

  • agents/ holds one folder per agent, agents/<name>/: its notes, staged copies and per-session scratch that outlives a session. doctor never warns about it.
  • release-candidates/ holds one folder per version, and doctor warns when that version is tagged.

--all takes tmp/, worktrees/, clones/ and cache/. It never takes reports/, prototypes/, agents/, events/, release-candidates/ or the profile: those are named, or deleted by you. A worktree is removed with git worktree remove and only when its branch is merged into the branch checked out at the project root, into origin/develop or into the default branch of origin, and it is safe to lose: the branch has commits of its own (a new branch has the commit it came from, so git calls it merged; clean keeps it and says "no commits of its own yet"), it holds no uncommitted or untracked file, and every file git ignores in it is one a build or an install makes again (node_modules, dist, .turbo, coverage, .cache, *.tsbuildinfo). An ignored .env, a local database or a key keeps the worktree, and the output names the file. A folder in release-candidates/ counts only when its name is a version (1.2.3, v1.2.3, 1.2.3-rc.1) and a tag of that name exists, with or without the v: the folder 1.0.0 is removed when the tag v1.0.0 exists, and v1.0.0 when the tag 1.0.0 exists. Any other name is kept. The clean reference has the details.

The automatic clean ​

You do not have to run vulcan project clean for the safe part. At most once a day per project, the session-start hook starts a clean in a process of its own, so the session never waits (the hook only reads a stamp, auto-clean.json, and a manifest). It removes four things and nothing else:

WhatWhen
tmp/ entriesolder than a day, unless the folder holds a repository (see below)
com.google.Chrome.* and org.chromium.Chromium.* folders under .agents/local/older than an hour
Event day filespast maxAgeDays, maxFiles or maxSize; never today's or a later day's
release-candidates/ folderswhose version is tagged

A tmp/ folder that holds a repository stays: a .git folder or file anywhere inside it (a scratch clone, a git worktree add into tmp/; a .git inside node_modules does not count) is somebody's work.

It never removes a worktree or a clone, wherever it sits, and never touches the cache, reports/, prototypes/ or anything it does not know: a wrong guess there loses work, so those stay with vulcan project clean --yes and the warnings of vulcan project doctor. When a run removed something, the next session prints one line on stderr, such as vulcan: cleaned 12.0 MB from .agents/local. Set local: { autoClean: false } in the config to turn it off, or VULCAN_AUTO_CLEAN=off for one shell. A shared events folder outside the project is kept by whichever session starts first.

What doctor says ​

vulcan project doctor never deletes anything. It warns about:

  • an entry that has outlived its use (old tmp/, a worktree of a merged branch, an old clone, a shipped release candidate), with the command that takes it;
  • an entry directly under .agents/local/ that is not in the tree above. Put scratch in tmp/, what you want to keep in reports/, and what one agent keeps for itself in agents/<name>/; nothing removes the unknown entry. A script the team relies on does not belong here: put it in the tracked tree (scripts/), where it gets review and history;
  • the size of .agents/local/ once it is large;
  • today's event file when it alone is over board.events.maxSize.

A browser's scratch folders ​

Headless Chrome puts a folder com.google.Chrome.XXXXXX in the temp folder it is given, and leaves it when it is killed. The temp folder of VULCAN's own browser tests is a folder in the project where Chrome's socket path fits (107 characters at most), and the test removes the folders its browser made. The helper gives each run a folder of its own inside it when the path is short enough, and removes it whole at the end, so two runs at once never touch each other's files; when there is no room for that, it removes only the folder its own Chrome made (Chrome names it in a link in the run's own profile), and the small folders Chrome also makes stay. Folders left directly under .agents/local/ by an earlier run or by another tool, com.google.Chrome.* and org.chromium.Chromium.*, with or without a leading dot, are taken by vulcan project clean --tmp once they are an hour old.

See also ​