Claude Code
Claude Code runs your tests as you would, so it runs your properties already. Two settings make it better at them: the agent format, so it reads a failure with the rules beside it, and leave to run the proptastic command.
The agent format
Section titled “The agent format”Set PROPTASTIC_AGENT for every command Claude runs, in the project’s .claude/settings.json:
{ "env": { "PROPTASTIC_AGENT": "1" } }A failure then leads with its verdict and the rules, its data fenced
(Coding agents), whether Claude runs ./gradlew test or proptastic run.
Letting Claude run proptastic
Section titled “Letting Claude run proptastic”Without leave, Claude asks each time it runs proptastic. To allow it, add this to the same file,
or your own:
{ "permissions": { "allow": ["Bash(proptastic:*)"] } }In a property Claude is writing, it pastes the failure’s pin it line in, and you see the pin in
its diff. For a property it didn’t write, it proposes one with proptastic example ID --propose,
and you accept it in review.