BlogCoding agentsclaude code Β· plans Β· sharing Β· passcode
How to password-protect a Claude Code plan before you send it to a client
Where Claude Code keeps plans, what a secret gist, a Claude Code artifact and a PDF actually protect, and how to send a plan behind a passcode that expires.
Prashant Shaw
Founder, Sumibako
6 min read
Claude Code has just written a very good plan. It names the client's database, the vendor they are leaving, the date they want it done and, if your agent is as candid as mine, a line like "their current setup is held together by cron jobs and hope". The client should read it. Their competitor, their intern's group chat and a search engine should not.
The trouble is never the plan. It is the link. Most of the easy ways to share a Markdown file give you an address that anyone holding it can open, and addresses travel: forwarded emails, pasted Slack threads, browser histories, a chat app's link preview. This guide is how to put a lock on the page itself, so the address alone opens nothing.
I make Sumibako, which is one of the ways to do this, so I have a conflict of interest. I will say where it comes in and what the other options do well. Everything about other products here was checked against their own pages on 23 November 2026.
πΊοΈ First, find the plan
In plan mode, Claude Code writes its plan to a Markdown file. The .claude directory reference lists them under plans/: "Plan files written during plan mode". By default that folder is ~/.claude/plans, in your home directory, not in the repository, and the same page says Claude Code deletes old files there once they pass cleanupPeriodDays, which defaults to 30 days. A plan you mean to send is a plan you should move.
You can have them written into the project instead. The plansDirectory setting takes a path relative to the project root; the docs recommend writing it as "docs/plans", with a forward slash, so it works on every system:
{ "plansDirectory": "docs/plans" }Put that in .claude/settings.json and the next plan lands in docs/plans/. I wrote a longer piece on where Claude Code saves plans if you want the details.
π What the usual ways actually protect
1οΈβ£ A secret gist. One command, gh gist create plan.md, and you have a link. GitHub is admirably honest about what "secret" means: "Secret gists aren't private." They stay out of search and Discover, but "if someone you don't know discovers the URL, they'll also be able to see your gist." It is unlisted, not locked.
2οΈβ£ A Claude Code artifact. Claude Code can now publish its work as an artifact, which is lovely for a dashboard. For a client the choices are your organization, a shared folder, or publicly, which is "a link that anyone on the internet can open, with no claude.ai sign-in required." There is no password and no expiry. Unless your client is inside your Claude organization, public is the option that reaches them. Artifacts also need a Pro, Max, Ultra, Team or Enterprise plan, and on Team and Enterprise an Owner has to switch public sharing on first.
3οΈβ£ A PDF with a password. Export the plan as a PDF and Preview on a Mac can add a password. This one genuinely locks the content. The cost is that it is a file: the client keeps the version you sent, your next revision is a second attachment, and the password usually travels in the same email thread as the PDF, which is a bit like taping the key to the door.
4οΈβ£ A shared doc. Notion, Google Docs and friends can share with named people, which is the strongest option of all if your client will make an account for you. Many will not, and the ones who will often use a different work account from the address you have.
π A passcode on the page itself
What I wanted was the convenience of a link with a lock on it: the address on its own opens a lock screen, a short code opens the page, and I can change my mind later. That is what Sumibako does with one flag:
npx sumibako publish docs/plans/client-migration.md --passcode --expires 30dIt files the plan as a page in your vault and prints the link and the code:
Share this: https://sumibako.com/p/jd7exq...
Passcode: K7M-4QX
Expires: 2026-12-23
Send the passcode separately from the link. It opens nothing without it.Send the link by email and the code by text, or whatever two channels you like. What the client gets:
- A lock screen that gives nothing away. Not the title, not the icon. The link itself carries no title either, so "Acme-migration-plan" is not sitting in anybody's chat preview.
- No account. They type six characters and read. Their browser stays unlocked for 30 days, so they are not typing it every visit.
- The latest version. Revise the file and publish it again: same page, same link, same code. No "v3-final-FINAL.pdf". Leave
--expiresoff the second time to keep the end date; naming it again starts the clock again from that moment.
And what you keep:
- A way to change your mind.
--new-passcodemakes a new code, and every browser that opened the page with the old one is locked out at once. - An end date.
--expires 7dor30dand the link stops working on its own, and an expired link names nothing, not even the title. - A tripwire. Ten wrong guesses in 15 minutes locks the page for a while, and you get an email saying so.
If you would rather not touch a terminal, ask Claude Code in plain words: "Publish the migration plan for the client with a passcode." With the Sumibako skill it knows the command. In Claude.ai or ChatGPT, connected through MCP, "put a passcode on it" does the same thing. And with no agent at all, the password-protected link tool takes the Markdown in a browser tab and hands back the same link and code.

TIP
βοΈ When a passcode is the wrong tool
A passcode decides who can open a page. It is not a safe. Sumibako stores the page so it can show it to the right people, which means it is not end-to-end encrypted, and nothing that ends up in a client deliverable should be a credential anyway. If the plan contains an API key, the fix is to take the key out, not to pick a stronger lock.
It is also the wrong tool when the client works inside your company's Claude organization, where an artifact shared with the organization is simpler, or when they need to edit the plan with you, where a shared doc is better. A passcode page is for the common case in between: one plan, one or two readers outside your company, and a revision or three before anyone signs anything.
For the rest of the decision, I compared Claude Code artifacts, Cursor canvases and Codex's options and wrote up sharing the plan Claude Code wrote without a passcode. This one is for when the plan mentions the cron jobs. And if what you are sending was made in Claude rather than Claude Code, sharing a Claude artifact privately covers that case.
More on coding agents
All 19 posts β- Where Claude Code saves your plans, and when it deletes themClaude Code writes plans to ~/.claude/plans and deletes them after 30 days by default. Where Cursor and Codex keep theirs, and the two settings that fix it.6 min read
- Share the plan Claude Code wrote as a linkPlan mode writes a good plan and leaves it in a terminal. Three ways to hand it to someone, from a draft pull request to one command that returns a link.6 min read
- Handing work from Claude Code to Codex without losing the planCodex cannot see Claude Code's session or its plans folder. Three steps put the plan where both read it, and the same steps bring the work back.4 min read

