octo-careful

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

A session mode that asks for confirmation before commands likely to delete data or rewrite important project state.

In plain words
What is it for?
Adding confirmation checks around risky shell, Git, database, Kubernetes, and Docker actions.
Why use it?
It helps prevent accidental damage from operations such as forced Git changes, database deletion, or destructive container commands.

Command for Claude CodeCursor

Written for Claude Code and Cursor: disable-model-invocation in frontmatter, but also a Cursor plugin manifest.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the octo plugin — 71 skills, 112 commands, 10 agents, 18 hooks shipped together

Good fit Adding confirmation checks around risky shell, Git, database, Kubernetes, and Docker actions.

Compare 6 commands from other repositories ↓
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,537 stars · on GitHub · reddit.com

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add nyldn/claude-octopus
Claude Code
/plugin install octo

Made for: Claude Code, Cursor.

Or install octo, the plugin that ships this one along with the rest of its 71 skills, 112 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 octo-careful

README.md
[![agentmods](https://agentmods.dev/badge/commands/nyldn/claude-octopus/octo-careful/github.svg)](https://agentmods.dev/commands/nyldn/claude-octopus/octo-careful)
Your own site
<a href="https://agentmods.dev/commands/nyldn/claude-octopus/octo-careful"><img src="https://agentmods.dev/badge/commands/nyldn/claude-octopus/octo-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 octo-careful

Your own site · 80×15
<a href="https://agentmods.dev/commands/nyldn/claude-octopus/octo-careful"><img src="https://agentmods.dev/badge/commands/nyldn/claude-octopus/octo-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 596 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 original No closer match found 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.00596
Opus 5.5 $0.00004 $0.00238
Sonnet 5.5 $0.00002 $0.00119
Haiku 4.5 $0.00001 $0.00060

Measured 25d ago against content hash b6b19815dd31, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

octo-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 25d 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 targets resolved below the working directory inside node_modules, dist, .next, __pycache__, build, coverage, or .turbo)
Origin

Copies of this mod

2 near-identical copies found in the catalogue:

.cursor-plugin/commands/octo-careful.md · 79 lines

How it starts

The opening of the file, as written. The whole thing — 79 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

Read the full file on GitHub · 79 lines

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. 25d ago Changed · +12 lines b6b19815dd31
  2. 3mo ago First seen · 67 lines · 10 tokens per session scan C 7835f7812903

Subscribe to this mod's changes

octo-careful is a command published in the GitHub repository nyldn/claude-octopus (4,537 stars, last pushed today), licensed MIT. It adds 10 tokens to every session and 596 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

octo-careful compared with commands from other repositories

octo-careful next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
octo-carefulnyldn/claude-octopusCommand4.5ktodayMITC10Claude Code, Cursor
syncjikig-ai/soleurCommand21todaynoneA0Claude Code
checklistgithub/spec-kitCommand154ktodayMITA13Claude Code
clarifygithub/spec-kitCommand154ktodayMITA27Claude Code
specifygithub/spec-kitCommand154ktodayMITA13Claude Code
analyzegithub/spec-kitCommand154ktodayMITA26Claude Code
convergegithub/spec-kitCommand154ktodayMITA35Claude Code