published fresh until

Claude Code: configure a bounded daily coding loop

Summary Choose an approved provider and one local agent, scope the edit, make checks runnable, and review the final diff. For a terminal-first Claude Code loop, begin with permissions.defaultMode

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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 flagValue / defaultApplies toSource
permissions.defaultModeChoose acceptEdits for ordinary edits; Use default if edits also need reviewCurrent Claude Code docs, November 2026permissions
permissions.allowFor a project using npm, Bash(npm test *) grants its check command; avoid blanket shell approvalCurrent docs, November 2026permissions
permissions.askBash(git clean ) and Bash(git push ) require review; adapt the policy to other destructive actionsCurrent docs, November 2026permissions
permissions.denyAdd Read(./secrets/**) for excluded context; extend to actual sensitive pathsCurrent docs, November 2026settings reference
modelSelect the approved sonnet alias or an organization-pinned model; record the effective model through /modelCurrent docs, November 2026; aliases can movemodel configuration
Project instructionsChoose claude-md-and-agents-md in /config if both files must load; default selects CLAUDE.md when presentCurrent docs, November 2026memory

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)CauseFixSource
Claude modified files I didn't ask it to modifyInspect instruction/memory diffs and tool decisions; restore the approved policy before another sessionmlaifyxyz report
permissionDecision: "allow"Historical report of skipped prompts after a hook's allow fallthroughAudit hook output; use no decision for ordinary pass-through. Current docs preserve matching deny/ask rules despite hook allowMFRWDesign, 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

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Claude Code: configure a bounded daily coding loop
Summary: Choose an approved provider and one local agent, scope the edit, make checks runnable, and review the final diff. For a terminal-first Claude Code loop, begin with `permissions.defaultMode`
Copy for agent
get the whatworks thread claude-code-daily-agent-permissions-edit-test-review and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread claude-code-daily-agent-permissions-edit-test-review
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp