| | |
| | | type: Note |
| | | _organized: true |
| | | --- |
| | | This is a [Tolaria](https://github.com/refactoringhq/tolaria) vault — a folder of markdown files with YAML frontmatter forming a personal knowledge graph. |
| | | # AGENTS.md — Tolaria Vault |
| | | |
| | | ## Note structure |
| | | This is a [Tolaria](https://github.com/refactoringhq/tolaria) vault: a folder of Markdown files with YAML frontmatter forming a personal knowledge graph. |
| | | |
| | | Every note is a markdown file. The **first H1 heading in the body is the title** — there is no `title:` frontmatter field. |
| | | Keep edits compatible with Tolaria's current conventions. Prefer small, human-readable changes over heavy restructuring. |
| | | |
| | | ## Core conventions |
| | | |
| | | - One Markdown note per file. |
| | | - The first H1 in the body is the preferred display title. |
| | | - Legacy `title:` frontmatter is still read as a fallback when a note has no H1. Do not add it to new notes unless you are maintaining an older file. |
| | | - Store note type in the `type:` frontmatter field. |
| | | - Most notes live at the vault root as flat `.md` files. Type definitions are normal notes with `type: Type`; Tolaria creates new ones at the root and still reads legacy `type/` or `types/` folders. Saved views live in `views/`. |
| | | - Any frontmatter field containing [[wikilinks]] is treated as a relationship. Common names include `Belongs to:`, `Related to:`, `Workspace:`, and custom relationship names. |
| | | - Frontmatter properties that start with `_` are usually Tolaria-managed state. Leave them alone unless the user explicitly asks for them to change. |
| | | |
| | | ## Notes |
| | | |
| | | ```yaml |
| | | --- |
| | | type: TypeName # the note's type (must match the title of a type file in the vault) |
| | | url: https://... # example property |
| | | belongs_to: [[other-note]] |
| | | related_to: |
| | | - [[note-a]] |
| | | - [[note-b]] |
| | | type: Project |
| | | status: Active |
| | | _icon: target |
| | | Workspace: "[[tolaria]]" |
| | | Belongs to: |
| | | - "[[25q2]]" |
| | | Related to: |
| | | - "[[person-luca-rossi]]" |
| | | aliases: |
| | | - Tolaria work |
| | | url: https://example.com |
| | | --- |
| | | |
| | | # Note Title |
| | | # Ship Tolaria |
| | | |
| | | Body content in markdown. |
| | | Body content in Markdown. |
| | | ``` |
| | | |
| | | System properties are prefixed with `_` (e.g. `_organized`, `_pinned`, `_icon`) — these are app-managed, do not set or show them to users unless specifically asked. |
| | | |
| | | ## Types |
| | | |
| | | A type is a note with `type: Type`. Type files live in the vault root: |
| | | Type definitions are regular notes. Use `type: Type` for new ones: |
| | | |
| | | ```yaml |
| | | --- |
| | | type: Type |
| | | _icon: books # Phosphor icon name in kebab-case |
| | | _color: "#8b5cf6" # hex color |
| | | _icon: shapes |
| | | _color: blue |
| | | _sidebar_label: Projects |
| | | template: | |
| | | ## Outcome |
| | | |
| | | ## Next actions |
| | | --- |
| | | |
| | | # TypeName |
| | | # Project |
| | | ``` |
| | | |
| | | To find what types exist: look for files with `type: Type` in the vault root. |
| | | |
| | | ## Relationships |
| | | |
| | | Any frontmatter property whose value is a wikilink is a relationship. Backlinks are computed automatically. |
| | | |
| | | Standard names: `belongs_to`, `related_to`, `has`. Custom names are valid. |
| | | Useful type metadata includes `_icon`, `_color`, `_order`, `_sidebar_label`, `_pinned_properties`, `_list_properties_display`, `template`, `_sort`, `view`, and `visible`. |
| | | |
| | | ## Wikilinks |
| | | |
| | | - [[filename]] — link by filename |
| | | - Works in frontmatter values and markdown body |
| | | - [[filename]] or [[Note Title]] — link by filename or title |
| | | - [[filename|display text]] — with custom display text |
| | | - Works in frontmatter values and Markdown body |
| | | |
| | | ## Views |
| | | |
| | | Saved filters live in `views/` as `.view.json` files: |
| | | Saved views live in `views/*.yml` and are written as YAML: |
| | | |
| | | ```json |
| | | { |
| | | "title": "Active Notes", |
| | | "filters": [ |
| | | {"property": "type", "operator": "equals", "value": "Note"}, |
| | | {"property": "status", "operator": "equals", "value": "Active"} |
| | | ], |
| | | "sort": {"property": "title", "direction": "asc"} |
| | | } |
| | | ```yaml |
| | | name: Active Projects |
| | | icon: kanban |
| | | color: blue |
| | | sort: modified:desc |
| | | filters: |
| | | all: |
| | | - field: type |
| | | op: equals |
| | | value: Project |
| | | - field: status |
| | | op: equals |
| | | value: Active |
| | | ``` |
| | | |
| | | ## Filenames |
| | | |
| | | Use kebab-case: `my-note-title.md`. One note per file. |
| | | |
| | | ## What you can do |
| | | ## What agents should do |
| | | |
| | | - Create/edit notes with correct frontmatter and H1 title |
| | | - Create new type files |
| | | - Add or modify relationships |
| | | - Create/edit views in `views/` |
| | | - Edit `AGENTS.md` (this file) |
| | | - Create and edit notes using the frontmatter and H1 conventions above. |
| | | - Create and edit type documents as regular notes with `type: Type`. |
| | | - Add or modify relationships without breaking existing wikilinks. |
| | | - Create and edit saved views in `views/`. |
| | | - Update `AGENTS.md` only when the user asks for vault-level guidance changes. |
| | | |
| | | Do not modify app configuration files — those are local to each installation. |
| | | ## What agents should avoid |
| | | |
| | | - Do not infer a note's type from its folder; use the `type:` frontmatter field. |
| | | - Do not silently overwrite an existing custom `AGENTS.md`. |
| | | - Do not overwrite user-authored config or installation-specific app files unless the user explicitly asks. |