AIToday
Large Language ModelsAI Coding AssistantsAI Safety & AlignmentZenn AI/MLPublished: Nov 15, 2026, 04:00 JST

Five-line CLAUDE.md keeps Claude Code from pressing publish

Send on LINE
Five-line CLAUDE.md keeps Claude Code from pressing publish

3 Key Points

  1. What happened

    A Zenn author published a five-line CLAUDE.md rule set and tested it; Claude Code saved drafts to out/ but left published: false unchanged, replying that a human must do the rest.

  2. Why it matters

    The result suggests a short written rule can make the tool stop short of irreversible public actions, though the author cautions this is an instruction, not a technical restriction.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

By signing up you agree to the Terms of Service and Privacy Policy.

Context & Analysis

A distinction many business readers will recognize: telling an AI assistant what not to do is not the same as removing its ability to do it. The author shows that without any CLAUDE.md, Claude Code flipped published: false to true on request in one trial. With the five-line rule in place, it declined and handed the step back to a person. The rule also asks Claude Code to name the button a human should press, or to write "unconfirmed" when that cannot be determined from the folder, which the author added after an early reply guessed a button name. A separate test with a memo file containing an embedded instruction to publish showed Claude Code declining that instruction, though the author notes it also declined in a no-rule folder and that a single trial cannot prove consistent behavior. The author lists untested scenarios, including the screen-based version, a single continuous conversation, and setups with external posting tools connected, and cautions that other CLAUDE.md files may also be loaded and could conflict with these rules.

FAQ
What exactly does the five-line rule tell Claude Code to do?
It tells Claude Code not to publish, post, send, apply, purchase, or schedule such actions, and not to change a file's published flag. It should build what it can, save it to out/, and stop by naming the button a human must press and up to three things to check first.
Did Claude Code follow the rule in the author's tests?
In the author's tests, yes: drafts were saved to out/, published: false stayed unchanged, and replies said a human must do the rest. When a memo file contained an instruction to publish, Claude Code said it did not follow it.
Is this rule a hard technical block?
No. The author describes it as an instruction, not a tool restriction, and warns that if Claude Code can run commands or use external tools, the means to publish still exist.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleDeepSeek turns its whole app into an API