plugins/codex/code/scripts/auto-approve.sh
Snider 466fe9f5a6 feat(codex): mirror claude plugins and ethics modal
Summary:\n- added Codex marketplace registry plus awareness/ethics/guardrails sub-plugins\n- mirrored Claude plugin commands/scripts/hooks into codex api/ci/code/collect/coolify/core/issue/perf/qa/review/verify\n- embedded Axioms of Life ethics modal, guardrails, and kernel files under codex/ethics\n- added Codex parity report, improvements list, and MCP integration plan\n- extended Gemini MCP tools and docs for Codex awareness
2026-02-05 20:13:01 +00:00

23 lines
534 B
Bash
Executable file

#!/bin/bash
# Auto-approve all permission requests during /core:yes mode
#
# PermissionRequest hook that returns allow decision for all tools.
# Used by the /core:yes skill for autonomous task completion.
read -r input
TOOL=$(echo "$input" | jq -r '.tool_name // empty')
# Log what we're approving (visible in terminal)
echo "[yes-mode] Auto-approving: $TOOL" >&2
# Return allow decision
cat << 'EOF'
{
"hookSpecificOutput": {
"hookEventName": "PermissionRequest",
"decision": {
"behavior": "allow"
}
}
}
EOF