{"name":"--force","slug":"force","family":"cli","title":"CLI flags","noun":"CLI flag","description":"Auto-memory file deletion now rejects every flag except -f or --force, so fewer commands slip through.","description_source":"entry","described_by":{"version":"2.1.219","anchor":"auto-memory-rm-allowlist-reworked"},"presence":{"first_seen":"2.1.138","removed_in":null,"in_current_build":true,"newest_mined":"2.1.308","builds":149,"mined_builds":149,"first_cited":{"version":"2.1.16","released_at":"2026-01-22 19:03:08","spans":3}},"aliases":[],"entries":[{"version":"2.1.293","anchor":"claude-test-plugin-gating-and-claude-test-messages","heading":"New messages for the built-in Claude Test feature and \/claude-test","line":"Claude Test gains sign-in-dependent access and messages for when it is still loading or its browser helper failed to load","released_at":"2026-10-07 17:18:04","reason":"found in this entry's text"},{"version":"2.1.290","anchor":"worktree-cleanup-and-registration-recovery-for-byoc-runner","heading":"BYOC runner recovers from stale worktree records and cleans up more safely","line":"The BYOC runner now clears git's stale record of a missing worktree and retries, and deletes worktrees through a helper limited to a trusted folder","released_at":"2026-10-05 18:12:44","reason":"found in this entry's text"},{"version":"2.1.290","anchor":"worktree-removal-tries-a-safer-checkout-aware-path-first","heading":"Worktree cleanup tries a careful removal before forcing it","line":"Before forcing a worktree's removal, Claude Code now tries a step that checks the copy's state and can remove, refuse or leave it","released_at":"2026-10-05 18:12:44","reason":"found in this entry's text"},{"version":"2.1.290","anchor":"agent-worktree-removal-goes-through-an-anchored-remover","heading":"Removing an agent's worktree now refuses before deleting when something looks wrong","line":"Agent worktree cleanup now uses a safer remover that stops before deleting anything if the worktree's link to git looks wrong","released_at":"2026-10-05 18:12:44","reason":"found in this entry's text"},{"version":"2.1.285","anchor":"worktree-cleanup-hardened-and-worktree-deregistration-replac","heading":"Safer cleanup of leftover git worktrees","line":"Claude Code now removes stale git worktrees more carefully, checking each one before deleting and replacing the old prune step","released_at":"2026-09-29 17:32:09","reason":"found in this entry's text"},{"version":"2.1.285","anchor":"git-worktree-cleanup-is-vetted-against-the-git-dir","heading":"Git worktree cleanup now confirms the repository first","line":"Before listing or removing git worktrees, Claude Code now confirms the git directory and does nothing if it cannot","released_at":"2026-09-29 17:32:09","reason":"found in this entry's text"},{"version":"2.1.283","anchor":"powershell-path-check-helpers-now-return-the-checked-paths-i","heading":"PowerShell path checks now pass on the actual file paths","line":"Checks on PowerShell commands now return the list of paths they accepted instead of a simple yes or no","released_at":"2026-09-25 18:46:11","reason":"found in this entry's text"},{"version":"2.1.268","anchor":"reload-plugins-sdk-request-gains-a-hold-on-cache-impact-opti","heading":"reload_plugins SDK request gains a hold_on_cache_impact option to avoid silent cache invalidation","line":"reload_plugins can now hold off reloading if it would invalidate the prompt cache, via a new hold_on_cache_impact option","released_at":"2026-09-10 18:41:11","reason":"found in this entry's text"},{"version":"2.1.229","anchor":"the-built-in-commit-and-pr-command-now-blocks-risky-flags","heading":"The built-in commit and PR command now blocks risky flags","line":"The built-in commit-and-PR command can no longer use flags that rewrite history.","released_at":"2026-08-12 19:28:48","reason":"found in this entry's text"},{"version":"2.1.222","anchor":"git-invocations-hardened-with-sanitized-args-and-environment","heading":"Git invocations hardened with sanitized args and environment","line":"Many more git commands now run with a scrubbed environment so stray variables can't redirect them.","released_at":"2026-08-04 20:37:17","reason":"found in this entry's text"}],"entries_total":17,"docs":[{"source":"api","path":"build-with-claude\/prompt-engineering\/claude-prompting-best-practices","title":"claude-prompting-best-practices","documented":false},{"source":"api","path":"cli-sdks-libraries\/cli\/apply","title":"apply","documented":false},{"source":"api","path":"managed-agents\/self-hosted-sandboxes","title":"spawn.sh: called once per claimed work item","documented":false},{"source":"api","path":"managed-agents\/self-hosted-sandboxes-operations","title":"self-hosted-sandboxes-operations","documented":false},{"source":"claude-code","path":"agent-sdk\/python","title":"Agent SDK reference - Python","documented":false},{"source":"claude-code","path":"agent-sdk\/typescript","title":"Agent SDK reference - TypeScript","documented":false},{"source":"claude-code","path":"agent-view","title":"Manage multiple agents with agent view","documented":false},{"source":"claude-code","path":"auto-mode-config","title":"Configure auto mode","documented":false},{"source":"claude-code","path":"cli-reference","title":"CLI reference","documented":false},{"source":"claude-code","path":"commands","title":"Commands","documented":false}],"docs_total":12,"gates":[],"related":[],"url":"https:\/\/changelogs.core-directive.com\/reference\/cli\/force","family_url":"https:\/\/changelogs.core-directive.com\/reference\/cli.json"}