Skip to content

Conversation

@jessarcher
Copy link
Member

@jessarcher jessarcher commented Nov 19, 2025

This PR introduces a base set of agent guidelines for the project. The guidelines were agent-generated from our existing code, and then further refined until they were able to complete a basic task to an acceptable standard (See #302).

@jessarcher jessarcher enabled auto-merge (squash) November 19, 2025 07:07
AGENTS.md Outdated
## Code Style & Formatting

- **Use Laravel Pint** with the project's configuration (`pint.json`)
- **Strict typing**: Always use type hints for parameters and return types
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if we need this when it's also mentioned in the Type Safety section.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated in b162b56

AGENTS.md Outdated
- Use `Location` helper for file/line detection
- Use `Clock` for timestamp management
- **Check property visibility**: Before using reflection, verify if Laravel properties are public. Prefer direct property access over reflection when possible.
- **Trust Laravel validation**: If Laravel validates a value, trust that validation rather than re-validating in our code
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure what kind of validations this refers to 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

My agent wrote a lot of defensive code around the repeatSeconds property when I was testing it out on #302. I asked it to update it's context to prevent that when the value is coming from Laravel itself. It is a little misleading given that validation is a separate concept in Laravel.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated in 1adbdb5

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.

3 participants