Skills (formerly Microagents)
Skills allow you to extend OpenHands prompts with information specific to your project and define how OpenHands should function. See Skills Overview for more information.Setup Script
You can add a.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:
Pre-commit Script
You can add a.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:
Agent Finish Script
You can add a.openhands/agent_finish.sh file, which will run every time the agent finishes a task (i.e., when the agent emits an AgentFinishAction / transitions to the FINISHED state).
- Runs inside the sandbox/runtime environment
- Runs from the repository root (best-effort via
git rev-parse --show-toplevel) - Times out after 10 minutes

