What this thread does
Do first: set permissions.defaultMode to acceptEdits only after selecting an approved data route and restricting the working directory to the task. Save shared project permissions in .claude/settings.json. Save personal project overrides in .claude/settings.local.json.
Short answer
As of November 2026, Claude Code 2.1.331 (November 23, 2026) is the release reference; use current docs for the settings below. For a terminal-first daily loop, start with one Claude Code session, a bounded file list and an explicit acceptance command. This is a workflow choice, not a model-quality ranking.
Choose / don't choose
- Claude Code: choose its terminal workflow when the approved Anthropic or supported enterprise route fits; don't send restricted repository material before route approval (data usage).
- Codex: choose terminal/IDE workflows when OpenAI is the approved provider; don't assume a personal subscription provides business data policy (CLI, plan/data controls).
- Cursor: choose an planning and change-review surface; don't assume choosing an editor resolves its provider or data policy (Cursor).
- Cline: choose editor/terminal access with bring-your-own-provider requirements.
Not for: coordinating a foreman and several workers; see foreman-implementer-reviewer-agent-factory.
Settings that matter
| Setting or flag | Value / default | Applies to | Source |
|---|---|---|---|
permissions.defaultMode | Choose acceptEdits for ordinary edits; Use default if edits also need review | Current Claude Code docs, November 2026 | permissions |
permissions.allow | For a project using npm, Bash(npm test *) grants its check command; avoid blanket shell approval | Current docs, November 2026 | permissions |
permissions.ask | Bash(git clean ) and Bash(git push ) require review; adapt the policy to other destructive actions | Current docs, November 2026 | permissions |
permissions.deny | Add Read(./secrets/**) for excluded context; extend to actual sensitive paths | Current docs, November 2026 | settings reference |
model | Select the approved sonnet alias or an organization-pinned model; record the effective model through /model | Current docs, November 2026; aliases can move | model configuration |
| Project instructions | Choose claude-md-and-agents-md in /config if both files must load; default selects CLAUDE.md when present | Current docs, November 2026 | memory |
Use filesystem isolation when arbitrary subprocesses must not read a path. .claudeignore has no effect in the current permission reference (permissions).
Order of operations
1. Provide one outcome, allowed files, constraints and a concrete acceptance check. Keep secrets outside readable context. Record the active account/provider before including private material. 2. Inspect /status for loaded setting sources and /memory for instruction context. Reconcile conflicting user, project, local and managed configuration (settings, memory). Run claude doctor to list settings entries the client rejected. 3. Have the agent inspect the relevant code and propose a small change; inspect the scope before accepting edits. Allow the exact local check command to run, or run it yourself. 4. Require the actual command, output and exit status. A narrative claim is insufficient. Review the final diff for unrelated files, policy changes and deleted assertions. Accept only after the intended check and diff review (best practices).
Known failures and fixes
| Error (short quote) | Cause | Fix | Source |
|---|---|---|---|
Claude modified files I didn't ask it to modify | Inspect instruction/memory diffs and tool decisions; restore the approved policy before another session | mlaifyxyz report | |
permissionDecision: "allow" | Historical report of skipped prompts after a hook's allow fallthrough | Audit hook output; use no decision for ordinary pass-through. Current docs preserve matching deny/ask rules despite hook allow | MFRWDesign, current guide |
For a claim that checks passed without a run, inspect whether any execution record exists, whether the command was denied, and whether the effective instructions named a runnable check. Repair command access or run it outside the agent; do not substitute a generated success summary (best practices).
Limits
- Commands without an allow rule follow the active permission mode (permissions).
- The linked report describes a denied-action workaround becoming persistent instructions in an unrelated change (mlaifyxyz report).
- Read exclusions are best-effort client controls for recognized file access (permissions).
- The project's approved provider, sensitive paths and acceptance commands must come from its owner; there is no universal model, shell allow list or benchmark winner for daily coding.
Checked
Release reference and Claude permissions rechecked 2026-11-24. 2026-11-12: Claude configuration/permissions/memory/data and workflow docs, Codex/Cursor/Cline references and dated mlaifyxyz/MFRWDesign reports read. No coding agents configured or project checks executed.
Started from a post by @Anthropic (Claude Code docs), packaged by the editor. Original post