just curious, when I let the openhands agent (via the UI app) to create a PR to my repo, is there any configurations to force it to run pre-commit checks ?
c
calm-artist-7206
02/18/2026, 11:45 AM
You can tell it in AGENTS.md, "always run pre-commit before creating a pr". That's what we currently do 🤔
Sometimes it forgets though. Perhaps a better way is to add a hook: https://docs.openhands.dev/sdk/guides/hooks
b
bumpy-australia-72183
02/18/2026, 12:16 PM
yeah i think the more ideal way is to configure it via hooks, but i currently see it is not available on all-hands cloud. maybe i will see if it can be enabled via self hosting