Documents and embeds
A project's documents are files in its repository: the README.md and the Markdown, text and .csv files in its docs folder, plus notes added on the board and files the agent published. The Documents tab lists them by their first heading, with the first lines of each.
Reading and editing
Click a document to read it. Edit replaces the page with the document's own text; Save writes it back to the file and shows the page again. Only Markdown and text files can be edited this way, up to 2 MB.
Embeds
A document can quote another file without copying it. Put an embed on a line of its own:
| Embed | Shows |
|---|---|
![[plan.md#Budget]] | The section under the heading "Budget". |
![[plan.md#"exact phrase"]] | The paragraph or list item that contains the phrase. |
![[src/timer.ts#L10-L20]] | Lines 10 to 20. |
![[notes/meeting]] | The whole file. .md is added when the name has no extension. |
Headings and phrases work in Markdown files; in code and other text files use line ranges or the whole file. Paths are relative to the document that contains the embed. The board reads the source each time the document opens, so an embed always shows the source's current text. Click an embed to open its source in the same reader, scrolled to the quoted lines.
An embed that cannot be resolved shows the reason in its place, for example file not found: plan.md.
Limits
Embeds read text files inside the workspaces folder, the code folder or a project's repository. They never open a folder whose name starts with a dot (such as .git or .env), a binary file or a file over 2 MB, and a link may not lead outside those folders.