Skip to content

chore: improve AGENTS.md to enforce upstream workflow and project scripts#577

Merged
alexander-akait merged 1 commit intomainfrom
chore/improve-agents-md
May 8, 2026
Merged

chore: improve AGENTS.md to enforce upstream workflow and project scripts#577
alexander-akait merged 1 commit intomainfrom
chore/improve-agents-md

Conversation

@xiaoxiaojx
Copy link
Copy Markdown
Member

Summary

The previous AGENTS.md passively pointed to the upstream webpack AGENTS.md ("see ..."), which AI agents tended to skip — missing key rules like test-first for bug fixes and commit identity for CLA. It also said "refer to scripts in package.json" without being explicit enough, leading agents to use npx instead of project scripts.

This change makes the instructions actionable:

  1. MUST fetch and read the upstream AGENTS.md before starting any task
  2. MUST use project scripts from package.json, never npx

This file is designed to be copied across all webpack sub-repos.

What kind of change does this PR introduce?

chore

Did you add tests for your changes?

N/A — documentation only.

Does this PR introduce a breaking change?

No.

Use of AI

This PR was authored with the assistance of Claude Code (Claude Opus 4.6), based on workflow issues identified during a prior bug-fix session.

…ipts

Make AI agents fetch and read the upstream webpack/webpack AGENTS.md
before starting work, and use project-specific scripts from package.json
instead of running tools via npx.
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 8, 2026

⚠️ No Changeset found

Latest commit: dc1378d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@codecov
Copy link
Copy Markdown

codecov Bot commented May 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.56%. Comparing base (292aee5) to head (dc1378d).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #577      +/-   ##
==========================================
+ Coverage   96.54%   96.56%   +0.01%     
==========================================
  Files          50       50              
  Lines        2927     2937      +10     
  Branches      922      928       +6     
==========================================
+ Hits         2826     2836      +10     
  Misses         85       85              
  Partials       16       16              
Flag Coverage Δ
integration 96.56% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented May 8, 2026

Merging this PR will improve performance by ×55

⚡ 3 improved benchmarks
✅ 135 untouched benchmarks

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Memory tsconfig-paths: 5 path prefixes (warm) 96.6 KB 1.8 KB ×55
Memory resolve-to-context: directory resolve (warm) 96.6 KB 1.8 KB ×54
Memory array-alias: @ -> [preferred, fallback] (warm) 1.8 KB 1.5 KB +16.92%

Comparing chore/improve-agents-md (dc1378d) with main (f28d8b9)

Open in CodSpeed

@alexander-akait alexander-akait merged commit 32ed958 into main May 8, 2026
35 checks passed
@alexander-akait alexander-akait deleted the chore/improve-agents-md branch May 8, 2026 09:47
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.

2 participants