Repository navigation
feat: tell agents to use --force only when the user asks - #494
Open
angeloashmore wants to merge 5 commits into
Open
angeloashmore wants to merge 5 commits into
angeloashmore wants to merge 5 commits into
Conversation
Add agent help to each command that removes something, so that an agent asks the user before it runs the command. Add agent help to `push` and `pull`, so that an agent uses `--force` only when the user asks for it. These rules were in the Prismic skill before. Humans do not see this text. The shared AGENTS text does not change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L1dGD553PK5SyWPuV2R36u
…them Change the agent help of the 12 removal commands. Agents must now ask before they run the command, also when the user asked for the removal. They can skip the question only when the user asked to force it. Update the slice remove and token delete help tests to check the new sentence. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L1dGD553PK5SyWPuV2R36u
The shared AGENTS behavior is already tested in index and init tests: the section shows only for agents, before USAGE. The new tests now only check the text that each command adds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L1dGD553PK5SyWPuV2R36u
Logout is not destructive. A user who wants to log out can log out. Remove the agent help text that told agents to ask first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L1dGD553PK5SyWPuV2R36u
Remove the agent help text from the removal commands and from sync. These commands have no --force option, and they can remove things without extra guidance. Keep the text on push and pull, which have a --force option. Remove the tests of the removed text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L1dGD553PK5SyWPuV2R36u
lihbr
approved these changes
Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves:
Description
Before this PR, the Prismic skill told agents to use
--forceonly when the user asks. The minimized skill (prismicio/skills#19) removes that rule, because CLI guidance now lives in the CLI.After this PR, the agent help of
pushandpulltells agents to use--forceonly when the user asks, and says what forcing does. Humans see no change.This is guidance, not an enforced confirmation. Other removal commands are unchanged.
Checklist
Preview
How to QA 1
Generated by Claude Code
Note
Low Risk
Help text and tests only; no change to pull/push behavior or human-facing CLI output.
Overview
Adds agent-only guidance on
prismic pullandprismic pushso automated clients see--forceshould be used only when the user explicitly asks, with short notes on what--forcedoes (discard local changes on pull; allow remote deletes and skip git checks on push). Human--helpoutput is unchanged; the text appears in the existing AGENTS section when an agent is detected.Tests assert that running
--helpwithAI_AGENTset includes the new--forcewording for both commands.Reviewed by Cursor Bugbot for commit 3ebb562. Bugbot is set up for automated code reviews on this repo. Configure here.
Generated by Claude Code
Footnotes
Please use these labels when submitting a review:
⚠️ #issue: Strongly suggest a change.
❓ #ask: Ask a question.
💡 #idea: Suggest an idea.
🎉 #nice: Share a compliment. ↩