careful

careful is a command for Claude Code from nyldn/claude-octopus. It costs 10 tokens per session (454 once invoked), scanned C, a copy of octo-careful, MIT.

A session mode that adds confirmation prompts before potentially destructive shell, database, Git, Kubernetes, or Docker commands run.

In plain words
What is it for?
Use it when working in a session where commands such as deleting resources, dropping tables, force-pushing, or resetting Git need an extra safety check.
Why use it?
It reduces the chance of damaging files, data, deployments, or repository history by accident.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the octo plugin — 70 skills, 106 commands, 10 agents, 18 hooks shipped together

Good fit Use it when working in a session where commands such as deleting resources, dropping tables, force-pushing, or resetting Git need an extra safety check.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/nyldn/claude-octopus/careful
About the project

Claude Octopus is an orchestration project that sends research, design, and coding tasks to Claude Code and other AI model providers so their results can be compared. Developers use it for multi-model work, disagreement detection, reviews, persistent context, and an optional workflow that moves from discovery through delivery. The catalogue entries are its commands, skills, agents, instructions, hooks, plugins, and settings.

nyldn/claude-octopus · 4,061 stars · on GitHub · reddit.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/nyldn/claude-octopus

Made for: Claude Code.

Or install octo, the plugin that ships this one along with the rest of its 70 skills, 106 commands, 10 agents, 18 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for careful

README.md
[![agentmods](https://agentmods.dev/badge/commands/nyldn/claude-octopus/careful/github.svg)](https://agentmods.dev/commands/nyldn/claude-octopus/careful)
Your own site
<a href="https://agentmods.dev/commands/nyldn/claude-octopus/careful"><img src="https://agentmods.dev/badge/commands/nyldn/claude-octopus/careful/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for careful

Your own site · 80×15
<a href="https://agentmods.dev/commands/nyldn/claude-octopus/careful"><img src="https://agentmods.dev/badge/commands/nyldn/claude-octopus/careful.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 454 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 94% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00010 $0.00454
Opus 5 $0.00005 $0.00227
Sonnet 5 $0.00002 $0.00091
Haiku 4.5 $0.00001 $0.00045

Measured 8d ago against content hash 55e1a81bcb07, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade C, and why

careful scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- `rm -rf` (except safe targets: node_modules, dist, .next, __pycache__, build, coverage, .turbo)
Origin

This is a copy

94% identical to octo-careful — 3 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

commands/careful.md · 68 lines

What it actually says

Careful Mode - Destructive Command Warnings

Instructions

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

Activation

Write the activation state file:

_OCTO_SESSION_ID="${CLAUDE_CODE_SESSION_ID:-${CLAUDE_SESSION_ID:-$$}}"
echo "active" > "/tmp/octopus-careful-${_OCTO_SESSION_ID}.txt"

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 safe targets: node_modules, dist, .next, pycache, build, coverage, .turbo)
  • 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

Remove the state file to deactivate:

_OCTO_SESSION_ID="${CLAUDE_CODE_SESSION_ID:-${CLAUDE_SESSION_ID:-$$}}"
rm -f "/tmp/octopus-careful-${_OCTO_SESSION_ID}.txt"

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
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 68 lines · 10 tokens per session scan C 55e1a81bcb07

Subscribe to this mod's changes

careful is a command published in the GitHub repository nyldn/claude-octopus (4,061 stars, last pushed yesterday), licensed MIT. It adds 10 tokens to every session and 454 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). It is 94% identical to octo-careful, differing in 3 lines, and is treated as a copy.