Dispersal
Publish the posts in 5_Express to your own website. Bonsai keeps the posts; an agent on your computer follows the site repo's own guide, does a dry run, and publishes only after you confirm.
Dispersal is how Bonsai manages Express and publishes it as a website. In PARA, 5_Express/ holds what you send out into the world: blog posts, docs, drafts for other platforms. With Dispersal you write each post once, in Bonsai, and publishing is done by an agent on your own computer and by the site’s own CI/CD.
The name comes from seed dispersal: a tree doesn’t carry its seeds to where they land; the wind and the birds do. Bonsai is the same. It grows the posts; your runtime carries them out.
| Question | Answer |
|---|---|
| Where the content lives | Bonsai, at 5_Express/<site>/…. The notes are the single source; the content in the site repo is generated |
| Who publishes | Your runtime: an agent runs the site repo’s own publish script |
| Who deploys | The site’s own CI/CD (for example Vercel or Cloudflare building on push) |
| What Bonsai doesn’t do | Render the site, deploy it, or hold the keys publishing needs |
What works today
1. Put posts into Express
- Upload files / Upload folder: two buttons on the header card of your personal space and of its folders.
.mdfiles become new notes written by you, the same as creating them in the editor; images are stored next to the notes. Existing files are never overwritten, and files like.DS_Store, PDFs and anything starting with.are skipped; you get a count of each at the end. Uploading a folder keeps that folder’s own name and everything inside it. - Rename a folder: Rename on a folder page. Notes and images move to the new name together; the old notes go to Recently deleted, where they can be restored.
[[links]]and![[image.png]]embeds resolve by name, so nothing inside the notes needs changing. Top-level folders, the folder of a Project or Area itself,Issues, and folders containing a registered share can’t be renamed. Agents have no move or rename tool; only you can do this, on the web.
One folder per site, for example 5_Express/Message From Garden Place/. How posts are laid out inside it and which frontmatter they carry is up to the site (usually written in an AGENTS.md in that folder).
2. Images live next to the notes
png, jpg, gif, webp and svg, up to 10 MB each, with the same permissions as the notes. Agents store them with the MCP tool write_file and list them with list_files.
Not built yet. The editor doesn’t show images referenced with
![[image.png]]yet. They are stored and go out with the post when you publish; in Bonsai you only see the line of text for now.
3. The Publish button
Notes under 5_Express/ have Publish in their More menu (templates and guides such as AGENTS.md, CLAUDE.md and README.md don’t). When you click it:
- A new conversation opens in the right pane with one sentence pre-filled: publish this note to the targets turned on in its frontmatter, following the project’s publishing guide: dry run first, show me the result, publish for real only after I confirm.
- In the setup bar you pick the runtime and the project, the site’s code repository, and press Send yourself.
- On that computer the agent follows the repo’s guide: fetch the posts, dry run, show you the report, and go live only when you say so.
The button assigns nothing by itself; it only starts the conversation for you. You can also skip it and just say “publish this post” in any conversation.
4. How the agent gets the posts: export_folder
Publish scripts usually want a local folder, not notes read one by one. The MCP tool export_folder packs a folder’s notes and images, byte for byte, into a tar and returns a download link: valid for 10 minutes, GET only, and the whole folder must be within your read permission. Paths in the tar are relative to the space root, so unpacking it into an empty folder gives you a vault:
curl -fsSL -o "$TMP/vault.tar" "<url>"
mkdir -p "$TMP/vault" && tar -xf "$TMP/vault.tar" -C "$TMP/vault"
The link itself is read access; don’t paste it anywhere else.
Connecting a website to Dispersal
Bonsai doesn’t know your website; it only hands the posts over. For a site to publish from Bonsai it needs three things:
-
The site repo is on your runtime: cloned on that computer and added to Bonsai (see Connecting your computer), so you can pick it in the conversation’s setup bar.
-
A publishing guide in the repo: tell the agent what to do in
CLAUDE.mdorAGENTS.md. A working skeleton:## Publishing from Bonsai 1. Call the Bonsai MCP tool export_folder (personal space, folder `5_Express/<site>`) for a download link and unpack it into a fresh temporary folder. 2. Dry run: <your script> --vault "$TMP/vault" --dry-run, and show the report to the person as is. 3. Only when the person clearly says go: <your script> --vault "$TMP/vault" --publish. Without that, stop at step 2. 4. Delete the temporary folder. - Don't edit the posts in Bonsai; report what the dry run found and let the person fix it in Bonsai. -
Publish targets are frontmatter switches: your script decides the keys; Bonsai doesn’t interpret them. Message from Garden Place, for example, uses
gardenplace: truefor the blog itself andwechat: true,xiaohongshu: trueandsspai: truefor other platforms, all peers.
Keys for sending email or deploying stay in the repo on that computer, for example in .env. They don’t go into Bonsai, and they don’t need to go into GitHub Secrets.
Planned
Planned. None of this is built yet.
- Showing the images in notes in the editor.
- Putting Bonsai’s own blog and docs, and other personal sites, on the same path.
- A self-media pack: one post rendered for each platform, such as WeChat Official Accounts and Xiaohongshu (the Message from Garden Place script already does this locally; Bonsai has no dedicated entry for it yet).
- A hosted public page for people without a website of their own.