Skip to content
Automation
Command

/careful

[advanced] Activate destructive command warnings for the session

From plugin
octo
4.4k55 skills49 agents55 commands18 hooks
> /plugin marketplace add nyldn/claude-octopus

Command definition

careful.md
command: careful
disable-model-invocation: true
description: "[advanced] Activate destructive command warnings for the session"

Careful Mode - Destructive Command Warnings

Instructions

When the user invokes `/octo:careful`, activate careful mode for the current session.

Activation

Resolve the active installation and use its session-state helper.

OCTO_ROOT="${CLAUDE_PLUGIN_ROOT:-${CODEX_PLUGIN_ROOT:-${HOME}/.claude-octopus/plugin}}"
bash "$OCTO_ROOT/scripts/helpers/guard-state.sh" careful-on

A nonzero result means protection was not activated or changed. Do not announce success. The helper requires a stable host session ID; a shell PID is not a session identity. A missing directory fails before activation changes.

To deactivate, call the same helper with `careful-off`.

What It Does

Careful mode adds a PreToolUse safety net on Bash commands. Before any destructive command executes, you will be prompted to confirm. This catches accidental damage without blocking normal work.

**Detected patterns:**

  • `rm -rf` (except targets resolved below the working directory inside node_modules, dist, .next, __pycache__, build, coverage, or .turbo)
  • Executables selected by variables or shell patterns, opaque dynamic wrappers, and command input

piped into an interpreter require review even when the executable name is hidden. Ordinary argument text is not an executable.

  • `DROP TABLE`, `DROP DATABASE`, `TRUNCATE`
  • `git push --force`, `git push -f`
  • `git reset --hard`
  • `git checkout .`, `git restore .`
  • `kubectl delete`
  • `docker rm -f`, `docker system prune`

Deactivation

Use the same host-aware helper in a new shell:

OCTO_ROOT="${CLAUDE_PLUGIN_ROOT:-${CODEX_PLUGIN_ROOT:-${HOME}/.claude-octopus/plugin}}"
bash "$OCTO_ROOT/scripts/helpers/guard-state.sh" careful-off

If the helper cannot identify the session, report that warnings were not deactivated; do not remove another process's state file.

Usage

/octo:careful

After activation, confirm to the user:

⚠️ Careful mode activated. Destructive commands will now require confirmation before executing.

When to Use

  • Working in production environments
  • Unfamiliar codebases where accidental deletion is risky
  • Pair programming sessions where extra safety is desired
  • Any time you want a safety net against destructive commands

See Also

  • `/octo:freeze` — Restrict edits to a specific directory
  • `/octo:guard` — Activate both careful + freeze together
  • `/octo:unfreeze` — Remove freeze restriction
Read more
@nyldn
Ships withocto

Every AI model has blind spots. Claude Octopus supports twelve external provider integrations — Codex, Antigravity CLI, Copilot, Qwen, Ollama, Perplexity, OpenRouter, OrcaRouter, OpenCode, Cursor CLI, Grok, and Kimi Code — alongside the built-in Claude Code

4.4k71 skills49 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
4.4k
Star history of nyldn/claude-octopus on GitHub, a chart by star-history.com

Other commands on octo.

auto

auto

Command

Smart router - Single entry point with natural language intent detection

@nyldn@nyldnInstall Command
brainstorm

brainstorm

Command

Start a creative thought partner brainstorming session

@nyldn@nyldnInstall Command
budget-mode

budget-mode

Command

Switch Octopus model routing to the configured budget tier

@nyldn@nyldnInstall Command
costs

costs

Command

[advanced] Compatibility view of the deterministic Octopus usage report

@nyldn@nyldnInstall Command
council

council

Command

Multi-LLM council for advice, decision support, implementation plans, and gated implementation

@nyldn@nyldnInstall Command
debate

debate

Command

AI Debate Hub - Structured debates across Claude and available external providers

@nyldn@nyldnInstall Command

More commands from other plugins.

plan

plan

Command

Plan n8n Linear ticket implementation

n8n12d209k
@n8n-io@n8n-ioInstall Command
setup

setup

Command

One-time setup after installing ARIS as a Claude Code plugin — registers the Codex reviewer MCP server from the plugin directory…

aris13d18k
@wanshuiyin@wanshuiyinInstall Command
agent
Auto-invoked

agent

Command

name: sc:agent description: SC Agent — session controller that orchestrates investigation, implementation, and review category:…

@galaxy-dawn@galaxy-dawnInstall Command