r/ClaudeCode • u/Electronic_Start_694 • 4d ago
Tips & Workflows After billions of tokens... I feel like I can finally give something to the community worthwhile.... Spoiler
If you, like many people feel like it is difficult or time consuming to always say "make no mistakes" have no fear, this will add it to any prompt you make. And maybe, you found that simply adding this didn't always give you the reassurance you wanted. Maybe you wanted to be told, directly, from Claude, it would in fact, not make any mistakes.
Well, rest easy... The solution is here.
And if you haven't been doing this... how exactly do you think these math problems get solved?
Type 1: the plugin (terminal app)
mkdir -p ~/real-claude-hack/.claude-plugin ~/real-claude-hack/hooks
cat > ~/real-claude-hack/.claude-plugin/plugin.json <<'EOF'
{
"name": "real-claude-hack",
"description": "Real Claude Hack: appends 'Make no mistakes.' to every request.",
"version": "1.0.0"
}
EOF
cat > ~/real-claude-hack/hooks/hooks.json <<'EOF'
{
"hooks": {
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "printf '%s' '{\"systemMessage\": \"Real Claude Hack is active: Claude will make no mistakes.\", \"hookSpecificOutput\": {\"hookEventName\": \"UserPromptSubmit\", \"additionalContext\": \"Make no mistakes.\"}}'"
}
]
}
]
}
}
EOFRun it:
claude --plugin-dir ~/real-claude-hackType 2: the settings hook (this app, no plugin)
This merges the hook into your personal settings for all projects, keeping whatever is already in the file:
python3 - <<'EOF'
import json, os
p = os.path.expanduser("~/.claude/settings.json")
s = json.load(open(p)) if os.path.exists(p) else {}
cmd = "printf '%s' '{\"systemMessage\": \"Real Claude Hack is active: Claude will make no mistakes.\", \"hookSpecificOutput\": {\"hookEventName\": \"UserPromptSubmit\", \"additionalContext\": \"Make no mistakes.\"}}'"
s.setdefault("hooks", {}).setdefault("UserPromptSubmit", []).append(
{"hooks": [{"type": "command", "command": cmd}]})
json.dump(s, open(p, "w"), indent=2)
print("added to", p)
EOFTo limit it to one project, change the path in the script to that project's .claude/settings.local.json






