Schema, Knowledge, and Contents#

LayerRoleExamples
SchemaInstructions for AI (optional)AGENTS.md, skills, rules, hooks
KnowledgeNotes you write and maintainMarkdown, CSV tables
ContentsMaterials your notes draw onPDFs, Office files, folders on this computer or from a sync app, GitHub repositories

Read source materials and write your understanding in Knowledge. Schema appears only when the vault agent is on in Settings → Agents → vault agent.

How folders relate#

The layers describe roles and presentation. They do not require every vault to have the same folder names. You can open existing notes without moving them.

Top-level hidden files and folders, and files such as AGENTS.md, belong to Schema. Contents locations follow the vault's declarations. Other knowledge files appear in Knowledge.

Under Layers in the vault's settings, each of Knowledge and Contents has a name shown on screen (Shown as) and a Folder. With The vault's root for Knowledge, notes sit at the top of the repository beside AGENTS.md.

Choosing a vault's layers#

Not every vault is a knowledge base with materials. Under Layers in the vault's settings, The layers this vault has turns Knowledge and Contents on or off. Every vault has Schema, and Knowledge, Contents or both.

LayersCalledFor example
Schema + Knowledge + ContentsVaultA knowledge base with its materials (default)
Schema + KnowledgeCorpusNotes or ideas alone
Schema + ContentsContainerA workspace for code or other work, no notes

Settings and the home show the name its layers give it; "vault" still means any of the three. Its icon is an octagon with three dots below, Schema, Knowledge and Contents from left to right, filled for the layers it has.

A layer you leave out is not shown, takes no new notes or connections, and is not described to the vault's agent. No file moves, and turning the layer on again brings it back as it was. Disconnect a vault's folders and repositories before leaving Contents out.

A vault's own files are those outside Schema and its contents folder. They appear in Knowledge when the vault has that layer, and in Contents otherwise, so a repository of code becomes a Container as it is: its files open, save, are created, renamed, moved and deleted in Contents, and stay in the vault's Git history. The contents folder is still where folders and repositories from elsewhere are connected; it appears below the vault's own files under its name.

A vault with both layers can also keep code beside its notes: turn on The vault's own files too on the Contents row. Knowledge is then its folder alone, which must have a name rather than being the vault's root.

An agent makes the same choices with irori set <vault> --layers schema,contents and --own contents.

Renaming a layer's folder#

Renaming a folder moves it and updates what points into it: links in the vault's notes, comments, drafts and connected folders. If links in some files could not be updated, irori says how many. The names are kept in the vault's .irori/scope.json, so everyone who opens the vault sees the same ones, and a change pulled from another computer applies at once.

See irori-templete for a recommended structure. Creating a new vault does not automatically copy the entire template.

What agents use#

The optional vault agent works with that vault's Schema and notes. It can also use connected Contents within its access to the folder. The work folder, where agents keep scratch files and results, shows in Contents as work; see AI agents.

Give cross-vault work to the irori agent. See Schema settings for configuration, and synced folders and GitHub repositories in Contents for connecting materials.