Roast Room is installed as a managed Git clone under ~/.my-ai-configuration/roast-room, shared by Claude and Codex. A personal launcher skill runs it from any folder, starts its live room when needed, and only runs when invoked by name (/roast-room, $roast-room). Codex now gets what was Claude-only before: the Caveman skill with a SessionStart hook that keeps it on, PreCompact and session-pointer hooks, execpolicy deny rules mirroring Claude's permissions.deny, and Impeccable's custom agents registered in ~/.codex/agents. The command-safety hook checks both shell dialects for Codex on Windows, where PowerShell text arrives as Bash, in both the PowerShell and Bash packages. Audit fixes: - command-safety blocks git checkout -- / restore / push --force / stash clear and find -delete, and treats heredoc bodies as text - removing a clone clears read-only Git files, git errors no longer abort the extension sync, and a lock left by a dead process is replaced - with-credential passes child flags such as -k or -d through unchanged and resolves commands from PATH - uninstall strips only owned hooks from settings.json and config.toml and keeps the selection while another client is installed; update keeps CLAUDE_CODE_MAX_TOOL_USE_CONCURRENCY; Bash merges write the same bytes as PowerShell - qmd no longer trusts a stale daemon.json after a lost start race and prunes collections of deleted repositories - Bash scripts avoid GNU-only find -printf Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
46 lines
1.4 KiB
Plaintext
46 lines
1.4 KiB
Plaintext
# Managed by MyAiConfiguration. Codex execpolicy backstop that mirrors Claude's permissions.deny.
|
|
# The command-safety hook also catches forms these prefix rules cannot express
|
|
# (rm -r -f, Remove-Item -Recurse, commands inside if/for blocks or nested shells).
|
|
|
|
prefix_rule(
|
|
pattern = ["git", "reset", "--hard"],
|
|
decision = "forbidden",
|
|
justification = "Discards work tree changes. Ask the user to run it if intended.",
|
|
)
|
|
|
|
prefix_rule(
|
|
pattern = ["git", "clean"],
|
|
decision = "forbidden",
|
|
justification = "Deletes untracked files. Ask the user to run it if intended.",
|
|
)
|
|
|
|
prefix_rule(
|
|
pattern = ["git", "checkout", "--"],
|
|
decision = "forbidden",
|
|
justification = "Discards file changes. Ask the user to run it if intended.",
|
|
)
|
|
|
|
prefix_rule(
|
|
pattern = ["git", "push", "--force"],
|
|
decision = "forbidden",
|
|
justification = "Overwrites remote history. Ask the user to run it if intended.",
|
|
)
|
|
|
|
prefix_rule(
|
|
pattern = ["git", "push", "-f"],
|
|
decision = "forbidden",
|
|
justification = "Overwrites remote history. Ask the user to run it if intended.",
|
|
)
|
|
|
|
prefix_rule(
|
|
pattern = ["rm", "-rf"],
|
|
decision = "forbidden",
|
|
justification = "Recursive forced deletion. Ask the user to run it if intended.",
|
|
)
|
|
|
|
prefix_rule(
|
|
pattern = ["rm", "-fr"],
|
|
decision = "forbidden",
|
|
justification = "Recursive forced deletion. Ask the user to run it if intended.",
|
|
)
|