/tale-mode:trustfrom Tale Mode
Explains tale-mode's two user-only opt-in files for trusting committed gates and enabling the autonomous loop on Codex. Only invoke when user asks about trust or the content-hash notice.
Ships in Tale Mode. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
tale-mode's Stop-hook loop has two separate user-only grant files, both living in the user's home (never in a repo). Your job with this skill is to explain them and hand the user the exact commands — never to run those commands yourself. Writing either file is the user's deliberate act; an agent (or a cloned repo) doing it on their behalf defeats the security model.
~/.claude/tale-mode-trustWhat it gates. A repo may commit .claude/tale-mode.json with a gates list (arbitrary shell,
each entry running as one script). During a deliberate kickoff phase with uncommitted changes, the Stop
hook (hooks/stop-goal-loop.sh) runs those gates and blocks the turn until they're green — but
only if the file's exact content-hash is listed in the trust store. No listed hash → the gates
never execute; the hook instead shows a one-time "review and trust" notice containing the hash.
Why a content-hash. Trusting the content (not the path) means any edit to the config — including a malicious gate slipped into a pull — invalidates the trust and the gates go inert until the user re-reviews and re-trusts the new hash.
How the user grants it (after actually reading the gates in .claude/tale-mode.json):
shasum -a 256 .claude/tale-mode.json # macOS; on Linux: sha256sum .claude/tale-mode.json
echo "<that-hash> # <repo-name> tale-mode gates" >> ~/.claude/tale-mode-trust
One hash per line; anything after whitespace is a comment. Revoke by deleting the line. The store
path can be overridden with TALE_TRUST_STORE (used by the test suites).
Hard rule (D3): the hook and the agent only ever read this store. If you (the agent) are asked to "just trust it," decline and show the commands — the user reviews the gates, the user writes the line. A repo whose gates self-trust is exactly the attack this design prevents.
~/.tale-mode-allow-cwd-rootWhat it gates. The Stop hook anchors on CLAUDE_PROJECT_DIR as the trusted project root and
refuses, by default, to resolve a root from the hook payload's cwd for a blocking decision (a
stray goal-file under an agent-controlled cwd must never trap an unrelated turn). Codex does not
export CLAUDE_PROJECT_DIR, so there the loop stays inert until the user opts in to resolving
the root from the session cwd (validated as an absolute, existing directory).
How the user opts in (once, after confirming their Codex Stop-payload cwd is the stable
workspace root):
touch ~/.tale-mode-allow-cwd-root
Revoke with rm ~/.tale-mode-allow-cwd-root.
Why a file and not an env var. TALE_ALLOW_CWD_ROOT=1 also works on Claude Code — but Codex
does not pass host env config into hook subprocesses (verified by a live probe), so on Codex the
env var never reaches the hook and the marker file is the working mechanism.
On Claude Code this file has no effect: CLAUDE_PROJECT_DIR is always set for hooks, so the
cwd branch is never taken and Claude Code stays strict regardless.
Both files are per-user grants in the user's own home — a cloned repository cannot ship them, an agent must not write them, and the hook only reads them. The trust store binds execution to a reviewed exact content (re-review on every change); the cwd-root file is a one-time runtime capability grant for hosts without a trusted project-root env. Everything stays fail-safe without them: untrusted gates don't run, and on Codex without the opt-in the loop simply never engages.
Full threat model: SECURITY.md at the repo root. Source of truth for the mechanics:
hooks/stop-goal-loop.sh (root resolution + _hash_trusted).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
tale-mode, trust-store, security-model, opt-in, committed-gates, codex-root
6 skills in this plugin
/end-phaseExplicitly end a tale-mode build phase by clearing the phase marker(s) under <project>/.claude/, which stops the Stop-hook's committed-gate enforcement for this repo. Invoke ONLY when the user explicitly asks to end the phase, stop or disarm the tale-mode phase loop, or clean up phase markers — never proactively, and never as a way to escape a failing gate./kickoff-phaseBuild ONE scoped phase of an existing multi-phase plan in a fresh session — re-verify the plan against the live code, interview the user sharply on real forks, then implement only that phase behind plan-mode approval with runnable verification and a fresh-eyes review. Invoke explicitly when starting a phase (the cross-platform form of /tale-mode:kickoff-phase; on Codex, name the plan-file + phase in your prompt). On Claude Code, use the /tale-mode:kickoff-phase command instead of this skill./plan-phasePlan a large, multi-phase feature to a high bar — verify against the code, receipts on every decision, an adversarial fresh-eyes review, and runnable verification gates, decomposed into independently-shippable phases. Invoke explicitly when starting a big multi-session build (the cross-platform form of the /tale-mode:plan-phase command; on Codex, name the task in your prompt). On Claude Code, use the /tale-mode:plan-phase command instead of this skill./seed-gatesScan a repo's package.json scripts, CI workflows, and equivalent manifests, then SUGGEST a committed .claude/tale-mode.json gate list for tale-mode's Stop-hook loop — suggestions only; this skill never writes the config unasked, never trusts it, and never arms anything. Invoke ONLY when the user explicitly asks to seed, suggest, or set up tale-mode gates for a repo./tale-modeMake Claude work rigorously on complex or high-stakes tasks instead of one-shotting them. Triggers: "tale mode", "tale on" — or self-activates on hard multi-step work. Enforces staged planning, decisions-with-receipts, verifying claims against the real source (not memory), parallel delegation, an independent adversarial review for high-stakes output, and durable progress notes. Right-sizes itself so trivial work stays fast.npx claudepluginhub alicicek/tale-mode --plugin tale-modeOther plugins' skills for the same job