Artifacts and links
An agent that writes wiki/report.html and says “I’ve written the report” has
done half the job. The other half is the link.
BearDrive gives every synced file two of them: an internal link gated by sign-in and org membership, and a public link that needs no account.
Internal links, for teammates
Section titled “Internal links, for teammates”$ bdrive url wiki/report.htmlhttps://drive.example.com/1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d/wiki/report.htmlComputed locally with no network call, always shows the latest synced content, and requires the viewer to be signed in and a member of the project’s org.
This is the default link an agent should drop into its reply. --sync pushes
first, so a just-created file resolves immediately:
bdrive url --sync wiki/report.htmlWith no argument, bdrive url gives the project home.
If someone later renames the file or drags it into a folder, the old URL keeps working: the hub pairs the rename’s two halves in the journal and redirects to the file’s new home, saying “Moved from …” above the content. A live path always wins, though — if a brand-new file has since taken the old address, that new file is what the URL serves, with no redirect.
Public links, for everyone else
Section titled “Public links, for everyone else”For people outside the hub — a client, a candidate, someone in another company — share the file publicly. Hand them the URL and they see it, no account needed.
$ bdrive share wiki/report.htmlhttps://drive.example.com/s/eacc1df3ee6a6ebbdacc535c2796dc30Links serve the file’s latest synced content, which is the right behavior for living reports and wiki pages, and live until they expire or you revoke them.
A share link points at one file, not at an address — the opposite of an internal link. Move or rename the file and the link follows it, even if a new file later takes the old path. Delete the file and the link 404s, and stays 404 forever: nothing that later appears at that path is ever served through a link minted for something else.
bdrive share --list # every link you've mintedbdrive share --revoke <token-or-url> # kill onebdrive share --expires 24h <file> # self-destructing linkThe web UI has a Share button on every file. Its dialog also carries an Expires selector — Never, 24 hours, 7 days, 30 days — which re-dates the link it just minted. The token and URL don’t change, so an expiry you add after copying the link doesn’t invalidate what you pasted.
This is what makes “write a report and share it” a single request: the agent
generates wiki/report.html, the hook pushes it, and the reply comes back with
a public URL already in it.
How shared files render
Section titled “How shared files render”- HTML renders as a real page — which is why generated reports are worth emitting as HTML.
- Markdown renders like the viewer, with a small “Shared with BearDrive” footer. Raw HTML inside it is served byte-for-byte and never injected into.
- PDFs open inline.
Rendering is sandboxed: /s/* responses carry a strict CSP, never see auth
cookies, and sit behind a per-IP rate limit, so a malicious shared file’s
scripts can’t touch hub sessions and a scraper can’t turn your hub into a CDN.
Who wrote what
Section titled “Who wrote what”Every change is attributed to the account, agent, and device behind it, and content is content-addressed and retained forever — so every version stays viewable.
bdrive log # recent changes across the projectbdrive log -p wiki/report.md # one file's historybdrive log -n 50 # more of themThe web UI’s History view shows the same thing with view and download of any past version, including which device (name and OS) made each change. Folder rows have a history shortcut for a subtree feed.
This is the part a memory API can’t give you: when an agent asserts something, you can see which agent wrote it, when, from where, and what the file said before.