Skip to content

docs: add AGENTS.md guidance for generated files#454

Merged
louis-sanna-dev merged 2 commits intomainfrom
docs/add-agent-guidance
Mar 30, 2026
Merged

docs: add AGENTS.md guidance for generated files#454
louis-sanna-dev merged 2 commits intomainfrom
docs/add-agent-guidance

Conversation

@louis-sanna-dev
Copy link
Copy Markdown
Contributor

Summary

  • add a short AGENTS.md explaining that most of this repo is generated
  • point reviewers to the Speakeasy DO NOT EDIT header and the relevant .genignore files
  • add CLAUDE.md as a symlink so both agent entrypoints share the same guidance

Why

We keep getting PRs that directly edit generated files. This gives reviewers and coding agents a short repo-local rule of thumb for what is hand-owned vs generated.

@louis-sanna-dev louis-sanna-dev changed the title Add AGENTS.md guidance for generated files docs: add AGENTS.md guidance for generated files Mar 29, 2026
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
```

If that marker is present, do not hand-edit the file. Changes should be made in the upstream source or generator inputs, then regenerated.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Some .genignore files may still contain this header. We should either remove the header from all .genignore files or adjust the workflow so that .genignore should be checked first: if a file is in .genignore but has the header, it can still be edited.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@louis-sanna-dev louis-sanna-dev merged commit 3bcadf6 into main Mar 30, 2026
6 checks passed
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