Skip to content
Back to Instructions

Preserve Task Scope

The assistant reads the approved specification before starting and checks each planned action against it. It needs your explicit approval to expand the scope, even when the specification leaves a detail open. Before reporting completion, it checks the finished work and flags any deviations or unresolved scope questions.

Use when
Use it for tasks such as a bug fix or refactor where the specification defines which changes are authorized.
Limits
This instruction requires an approved specification. For exploratory work, define and approve the scope first.

Use this instruction

A standing instruction is a direction you save so the assistant can use it again in future conversations. You can also try this instruction in a single chat before deciding whether to save it.

Download .md

Claude Code · Project · CLAUDE.md

Destination
./CLAUDE.md
Run in
Your project's root folder
  1. Select Copy install command.
  2. Open a terminal (macOS, Linux or WSL, with curl) in your project's root folder, paste the command and run it.
  3. Start a new Claude Code session in the project. Claude Code reads CLAUDE.md when a session starts.

The command downloads the same file as Download .md and adds it to the end of ./CLAUDE.md, between two marker comments, creating the file if there is none. It keeps everything already in the file, adds nothing if the instruction is already there and changes nothing if the download fails.

Claude Code removes block-level HTML comments, such as the markers, before it gives the file to Claude.

Claude Code · Project · Rule file

Destination
.claude/rules/preserve-task-scope.md
Run in
Your project's root folder
  1. Select Copy install command.
  2. Open a terminal (macOS, Linux or WSL, with curl) in your project's root folder, paste the command and run it.
  3. Start a new Claude Code session in the project. Claude Code loads its rules when a session starts.

The command downloads the same file as Download .md. It never replaces an existing file and changes nothing if the download fails.

Claude Code · Global · CLAUDE.md

Destination
~/.claude/CLAUDE.md
Run in
Any folder
  1. Select Copy install command.
  2. Open a terminal (macOS, Linux or WSL, with curl) in any folder, paste the command and run it.
  3. Start a new Claude Code session. Claude Code reads ~/.claude/CLAUDE.md in every project on this computer.

The command downloads the same file as Download .md and adds it to the end of ~/.claude/CLAUDE.md, between two marker comments, creating the file if there is none. It keeps everything already in the file, adds nothing if the instruction is already there and changes nothing if the download fails.

Claude Code removes block-level HTML comments, such as the markers, before it gives the file to Claude.

Claude Code · Global · Rule file

Destination
~/.claude/rules/preserve-task-scope.md
Run in
Any folder
  1. Select Copy install command.
  2. Open a terminal (macOS, Linux or WSL, with curl) in any folder, paste the command and run it.
  3. Start a new Claude Code session. Claude Code loads this rule in every project on this computer.

The command downloads the same file as Download .md. It never replaces an existing file and changes nothing if the download fails.

Codex · Project

Destination
AGENTS.md
Run in
Your project's root folder
  1. Select Copy install command.
  2. Open a terminal (macOS, Linux or WSL, with curl) in your project's root folder, paste the command and run it.
  3. Start a new Codex run or session. Codex reads AGENTS.md when it starts.

If the folder has a non-empty AGENTS.override.md, Codex reads that file instead of AGENTS.md, so the command adds the instruction there.

The command keeps everything already in the file and marks the added text, so running it again adds nothing. Codex .rules files are not for instructions: they control which commands Codex may run.

Codex · Global

Destination
~/.codex/AGENTS.md
Run in
Any folder
  1. Select Copy install command.
  2. Open a terminal (macOS, Linux or WSL, with curl) in any folder, paste the command and run it.
  3. Start a new Codex run or session. Codex reads this file in every project.

If CODEX_HOME is set, Codex reads its home folder from there, so the command writes $CODEX_HOME/AGENTS.md instead. If that folder has a non-empty AGENTS.override.md, Codex reads that file instead, so the command adds the instruction there.

The command keeps everything already in the file and marks the added text, so running it again adds nothing. Codex .rules files are not for instructions: they control which commands Codex may run.

Claude chat · Use in one chat

  1. Select Copy instruction.
  2. Paste it into your message in Claude, above your request. It applies to that conversation only.

Claude chat · Save to a project

  1. Select Copy instruction.
  2. Open the project in Claude and select Set project instructions.
  3. Paste the text and select Save instructions. Claude uses it in every chat in that project.

Claude chat · Save to my account

  1. Select Copy instruction.
  2. Click your initials in the lower left corner, then open Settings → Your Claude (in the older settings layout: Account).
  3. Paste the text under Instructions (older layout: Instructions for Claude). Claude applies it to all your conversations.

ChatGPT · Use in one chat

  1. Select Copy instruction.
  2. Paste it into your message in ChatGPT, above your request. It applies to that conversation only.

ChatGPT · Save to a project

  1. Select Copy instruction.
  2. Open the project in ChatGPT, select the more options menu (•••) in the upper-right corner, then Project settings.
  3. Paste the text into Instructions. It applies only in that project and overrides your custom instructions there.

ChatGPT · Save to my account

  1. Select Copy instruction.
  2. On the web or in the desktop app, open Settings → Personalization. In the iOS or Android app, open Settings → Customize ChatGPT.
  3. Turn on Enable customization and paste the text into Custom Instructions. It applies to all your chats.

This instruction has 1,014 characters. Custom Instructions holds up to 1,500 characters on the Free and Go plans and up to 5,000 on Plus, Pro, Business, Enterprise and Education, together with anything already in the field.