octo-careful

octo-careful is a command for Claude Code from CES-Ltd/Lumi. It costs 7 tokens per session (395 once invoked), scanned C, a copy of octo-careful, MIT.

A session command that turns on warnings before potentially destructive shell commands run. Destructive commands can delete data, discard Git work, or remove infrastructure.

In plain words
What is it for?
Activating a session safety mode that warns before commands such as forced pushes, hard resets, database deletion, Kubernetes deletion, or force-removing Docker resources.
Why use it?
It adds a confirmation step that can help prevent accidental damage during work in risky or unfamiliar environments.

Command for Claude Code

Written for Claude Code: ${CLAUDE_SESSION_ID variable.

Part of the octo plugin — 10 skills, 47 commands shipped together

Good fit Activating a session safety mode that warns before commands such as forced pushes, hard resets, database deletion, Kubernetes deletion, or force-removing Docker resources.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ces-ltd/lumi/octo-careful
View source ↗ CES-Ltd/Lumi
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/CES-Ltd/Lumi

Made for: Claude Code.

Or install octo, the plugin that ships this one along with the rest of its 10 skills, 47 commands.

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/ces-ltd/lumi/octo-careful/github.svg)](https://agentmods.dev/commands/ces-ltd/lumi/octo-careful)
Your own site
<a href="https://agentmods.dev/commands/ces-ltd/lumi/octo-careful"><img src="https://agentmods.dev/badge/commands/ces-ltd/lumi/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/ces-ltd/lumi/octo-careful"><img src="https://agentmods.dev/badge/commands/ces-ltd/lumi/octo-careful.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 395 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 91% 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.00007 $0.00395
Opus 5 $0.00003 $0.00198
Sonnet 5 $0.00001 $0.00079
Haiku 4.5 $0.00001 $0.00040

Measured 11d ago against content hash 796bb88a9fc4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 11d 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

91% identical to octo-careful — 13 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.

resources/seed/octopus/commands/octo-careful.md · 64 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:

echo "active" > "/tmp/octopus-careful-${CLAUDE_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:

rm -f "/tmp/octopus-careful-${CLAUDE_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. 11d ago First seen · 64 lines · 7 tokens per session scan C 796bb88a9fc4

Subscribe to this mod's changes

octo-careful is a command published in the GitHub repository CES-Ltd/Lumi (31 stars, last pushed 4mo ago), licensed MIT. It adds 7 tokens to every session and 395 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). It is 91% identical to octo-careful, differing in 13 lines, and is treated as a copy.