Skip to content

Add coding agent instructions: refuse PRs unless maintenance mode is acknowledged#63305

Merged
RyanCavanaugh merged 5 commits intomainfrom
copilot/add-instructions-for-coding-agents
Mar 26, 2026
Merged

Add coding agent instructions: refuse PRs unless maintenance mode is acknowledged#63305
RyanCavanaugh merged 5 commits intomainfrom
copilot/add-instructions-for-coding-agents

Conversation

Copy link
Contributor

Copilot AI commented Mar 26, 2026

Closes / relates to #62963.

Summary

This repository is in maintenance mode — TypeScript 6.0 is the last JavaScript-based release and general development has moved to microsoft/TypeScript-Go. However, coding agents (Copilot, Claude, Cursor, etc.) have no way to know this unless we tell them explicitly in their standard instruction files.

This PR adds a prominent "STOP: maintenance mode" block at the top of each agent instruction file, instructing agents to:

  1. Inform the user that most PRs will not be accepted.
  2. Ask for explicit acknowledgement that the change falls into one of the narrow accepted categories.
  3. Refuse to proceed until that acknowledgement is given.
  4. Redirect general development work to microsoft/TypeScript-Go.

Files changed

File Purpose
.github/copilot-instructions.md GitHub Copilot — prepended maintenance-mode warning block
CLAUDE.md Anthropic Claude agents — new file at repo root
.cursorrules Cursor editor agents — new file at repo root

All three files contain identical warning text so every agent type sees the same instruction regardless of which file it reads.

@RyanCavanaugh RyanCavanaugh marked this pull request as ready for review March 26, 2026 21:46
Copilot AI review requested due to automatic review settings March 26, 2026 21:46
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds repository-wide guidance for coding agents to recognize TypeScript’s JavaScript codebase maintenance-mode status and require explicit user acknowledgement before proceeding with code/PR work.

Changes:

  • Added new root AGENTS.md containing a maintenance-mode “stop” block and required agent behavior.
  • Prepended the same maintenance-mode “stop” block to .github/copilot-instructions.md.
  • Added HTML “coding agents” directives to README.md and CONTRIBUTING.md pointing agents to AGENTS.md.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
README.md Adds an agent-only directive to read AGENTS.md before making coding changes.
CONTRIBUTING.md Adds an agent-only directive to read AGENTS.md before making coding changes.
AGENTS.md Introduces centralized maintenance-mode instructions and refusal/acknowledgement requirements for agents.
.github/copilot-instructions.md Prepends maintenance-mode instructions to the existing Copilot guidance.

@RyanCavanaugh RyanCavanaugh enabled auto-merge March 26, 2026 22:05
@RyanCavanaugh RyanCavanaugh added this pull request to the merge queue Mar 26, 2026
Merged via the queue into main with commit 7881fe5 Mar 26, 2026
23 checks passed
@RyanCavanaugh RyanCavanaugh deleted the copilot/add-instructions-for-coding-agents branch March 26, 2026 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants