Goal
Keep legacy exceptions scoped to the legacy package instead of allowing them to affect the entire repository.
Repository Context
This monorepo contains modern TypeScript packages and one legacy JavaScript package.
platform/
├── AGENTS.md
├── packages/
│ ├── web/
│ ├── api/
│ └── legacy-reports/
│ └── AGENTS.md
└── package.json
Repository-wide standards:
Language TypeScript
Package manager pnpm
Testing Vitest
The legacy-reports package still uses JavaScript and Jest.
It is being maintained but is not currently being migrated.
Legacy exceptions should apply only under:
packages/legacy-reports/
Current AGENTS.md
The root AGENTS.md contains:
# Project Instructions
## Development
- Use `pnpm`.
- Write new application code in TypeScript.
- JavaScript is acceptable because some packages still use it.
- Use Vitest for tests.
- Jest may be used anywhere in the repository because the legacy package depends on it.
The current packages/legacy-reports/AGENTS.md contains:
# Legacy Reports Instructions
- Preserve existing behavior when making changes.
Your Task
Move the JavaScript and Jest exceptions out of the root instructions and scope them to packages/legacy-reports/AGENTS.md.
Keep the repository-wide TypeScript and Vitest standards at the root.