something i have found to help, which is very aligned with what this tools does, is to put automatic tools on git hooks
pre-commit will run a bunch of ruff checks with --fix, then fail if any of the tracked files have un-staged changes. the output is a helpful message nudgin claude to add these files to the commit, and try again.
pre-push will run pytest but with reduced output, one-line tracebacks, max-fail=5, etc.
a makefile with concise outputs can also contribute here, if claude knows to use it.