Stats
Actions
Tags
From sidekick
Canonical Codex stop workflow. Use /sidekick:codex-stop to deactivate delegation and return to direct host behavior.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sidekick:codex-stopThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Stop Codex mode and restore normal direct-host behavior.
Stop Codex mode and restore normal direct-host behavior.
if [[ -z "${SIDEKICK_HOST_HOME:-}" ]]; then
if [[ -n "${CURSOR_VERSION:-${CURSOR_PROJECT_DIR:-${CURSOR_PLUGIN_ROOT:-}}}" ]]; then
SIDEKICK_HOST_HOME="${HOME}/.cursor"
elif [[ -n "${CODEX_HOME:-${CODEX_THREAD_ID:-${CODEX_PROJECT_DIR:-${CODEX_PLUGIN_ROOT:-}}}}" ]]; then
SIDEKICK_HOST_HOME="${CODEX_HOME:-${HOME}/.codex}"
elif [[ -n "${CLAUDE_SESSION_ID:-${CLAUDE_PROJECT_DIR:-${CLAUDE_PLUGIN_ROOT:-}}}" ]]; then
SIDEKICK_HOST_HOME="${HOME}/.claude"
else
echo "No host home found for Codex mode"; exit 1
fi
fi
SIDEKICK_SESSION="${SIDEKICK_SESSION_ID:-${SIDEKICK_HOST_SESSION_ID:-${CODEX_THREAD_ID:-${CLAUDE_SESSION_ID:-${SESSION_ID:-}}}}}"
test -n "${SIDEKICK_SESSION}" || { echo "No host session id found for Codex mode"; exit 1; }
CODEX_STATE_ROOT="${HOME}/.codex"
test -f "${CODEX_STATE_ROOT}/sessions/${SIDEKICK_SESSION}/.codex-delegation-active"
rm -f "${CODEX_STATE_ROOT}/sessions/${SIDEKICK_SESSION}/.codex-delegation-active"
ACTIVE_FILE="${HOME}/.sidekick/sessions/${SIDEKICK_SESSION}/active-sidekick"
if [ -f "${ACTIVE_FILE}" ] && [ "$(cat "${ACTIVE_FILE}")" = "codex" ]; then
rm -f "${ACTIVE_FILE}"
fi
Then confirm: "Codex sidekick mode deactivated for this session. Direct-host mode restored.".codex/conversations.idx is preserved across deactivation as the Sidekick-owned Codex audit ledger.Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub alo-exp/sidekick --plugin sidekick