Inline YAML blocks: small pieces of structure inside the note
Inside a Fragment, you can add fenced YAML blocks annotated with block:<type>. Each type focuses on one thing: AI behavior, local settings, tasks, future timelines, or relations.
block:prism — how AI should behave
Describes persona, tone, boundaries, and what the AI should always check for this page. It effectively turns a note into a small AI app.
```yaml block:prism
persona:
name: "Gentle weekly coach"
role: "helps me review my week without guilt"
tone:
style: "calm, concrete"
directness: "low"
boundaries:
avoid:
- "productivity guilt"
- "pushing extra commitments"
always_check:
- "energy"
- "family load"
```When you ask AI to help on this page, Fragment can load this block first so the model starts from the right stance.
block:config — local config inside the page
Optional, for power users. A place for small, structured hints about audience, language, or mode that are specific to this Fragment.
```yaml block:config
audience: ["self", "partner"]
language: "ja-en"
notes:
- "Private weekly reflection"
- "Share summary later if it feels right"
```
Studio and AI can both read this block to adjust how they present or suggest things, without cluttering the main text.
block:tasks — tasks anchored to this Fragment
A structured list of tasks related to this note. Fragment can already let AI read and update them; UI for boards and summaries will grow over time.
```yaml block:tasks
tasks:
- id: "t1"
title: "Schedule dentist appointment"
status: "todo"
- id: "t2"
title: "Write short update for team"
status: "in-progress"
```Even before a full calendar or board view, AI can help you review, rephrase, and carry these tasks forward.
block:calendar & block:relations — time & links
These blocks describe upcoming or past events, and how this Fragment connects to others. Fragment will gradually add richer ways to browse and visualize them.
```yaml block:calendar
events:
- title: "Next weekly review"
start: "2025-03-08T09:00"
```
```yaml block:relations
refs:
parents: ["life-os-2025"]
children: ["weekly-review-2025-03-08"]
```You can start writing these today. As Fragment evolves, the same YAML will power cross-page views, reminders, and timelines.