You can customize how OpenHands interacts with your repository by creating a .openhands
directory at the root level.
.openhands/setup.sh
file, which will run every time OpenHands begins working with your repository.
This is an ideal location for installing dependencies, setting environment variables, and performing other setup tasks.
For example:
.openhands/pre-commit.sh
file to create a custom git pre-commit hook that runs before each commit.
This can be used to enforce code quality standards, run tests, or perform other checks before allowing commits.
For example: