/claude-workspaces:feedback-sharefrom claude-workspaces
Publish a board behind Cloudflare Access for an external team. A board is the unit of sharing; dev-server / mockup surfaces coming next.
Ships in claude-workspaces. Installing the plugin adds it to Claude Code.
You're being asked to share a claude-workspaces review surface publicly so an external team can review it for a bounded window (default 72 hours).
Wraps a board in a Cloudflare Access-gated public URL. Reviewers hit the URL → email-OTP login → only allowed email domains can complete login → arrive at the board, and navigate to everything filed on it.
A board is the unit of sharing (Bryan, 2026-08-17: "Workspace only — a review must be filed on a board before it can be shared"). Two smaller grants used to exist and both are gone:
share_doc is gone. A doc with a docId in the body gets
410 per_doc_sharing_removed.410 grouping_sharing_removed.share_link is gone too, and for a different reason: it minted a Cloudflare
Access application per share — its own hostname, audience and policy —
while share_workspace writes a membership record behind the one Access
application that fronts the share hostname. Two mints meant two answers to
"who may open this board". Shares already minted the old way keep working:
list_shares lists them, set_share_ttl shortens one, unshare revokes one.
So the id you share is always a board id: the one create_workspace
returned, or the hubWorkspaceId that attach_folder / create_diff_review
reports. Everything on that board is available to everyone the share reaches
— that is the default and the point (see .claude/rules/workspace-board.md)
— so decide what belongs on the board before you share it, not afterwards.
Resolve the allow-list. Read .claude/live-feedback.json from the
current repo. Look for share.defaultAllowDomains. If present, use that
value. If absent, ask the user which domain(s) to allow. Never default
to "anyone."
Find or create the BOARD. If the thing to review is a loose doc bound
via attach_markdown, file it on a board with attach_doc. A folder
bind or diff review is already filed on one — attach_folder and
create_diff_review return it as hubWorkspaceId. list_docs shows
which workspace a doc already belongs to.
Check what else is on that board before you share it — the share is board-wide. The visitor gets every doc filed on it, each grouping's file tree, and the navigation endpoints. Two consequences worth pausing on:
files /
context-file reach every file in that repo.hubWorkspaceId lands on
the default "Unfiled" board, which collects everything anyone bound
without naming a board. Sharing Unfiled shares all of it.When the reviewer should see this review and nothing else, give it its own
board: create_workspace takes about a second, and create_diff_review
accepts the new board's id as hubWorkspaceId in the same call.
Call share_workspace with { workspaceId, allowDomains?, ttlSeconds? },
where workspaceId is the BOARD id. Links do not expire by default — pass
a ttl only when the user asks for a window. Each allowDomains entry is an
address ([email protected]) or an exact domain
(@partner.example, subdomains not included), and the server checks it on
every request, not only the first.
Only the board's owner lets somebody new in. A board has an audience:
the addresses and domains the owner approved (list_shares shows them). A
link for people the audience already names is minted at once. A link that
names somebody new, or role: 'owner', is not minted: pass taskId and
why, and the call files an access card on that task and returns
proposed: true. The owner approves it in their browser, and you are told
when they answer. set_share_audience changes the audience the same way:
remove applies at once, add files a card. The owner reads every board's
list, and what is waiting for them, at /access. The call answers 410 grouping_sharing_removed if you hand it a review id by mistake.
Share the resulting URL with the user along with a brief instruction the user can forward to reviewers:
"Click the link, enter your @ email, you'll get a one-time code from Cloudflare, then you'll land on the review page. Comments save automatically."
Watch the docs via watch_doc(docId) if you aren't already, so external
comments arrive on the same channel as internal ones.
unshare(shareId) for early teardown if the review wraps up faster.list_shares() audits what's currently live.set_sharing_enabled(false) is the master switch: it refuses every share
host at once and hangs up open websockets and SSE streams.share_site (dev server) and
share_mockup (static HTML) are scoped for a later pass.cloudflare-api-tokencloudflared installed as a launchd service routing the share wildcard
ingress to the claude-workspaces serverCF_ACCESS_TEAM_DOMAIN, CF_ACCOUNT_ID, and
CF_SHARE_BASE_HOSTNAME env vars set (see docs/product/sharing.md).
There is no no-sign-in link mode any more — every visitor signs in.If a prerequisite is missing, the share_workspace MCP call returns a
specific error message — surface it to the user with the install hint and let
them follow up.
Files this command reads when invoked
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
3 commands in this plugin
npx claudepluginhub fryanpan/claude-workspaces-plugin --plugin claude-workspaces