From 76bb89b0cf3a1ef8f8e74733413c8e510ec2747a Mon Sep 17 00:00:00 2001 From: Alona King Date: Fri, 24 Oct 2025 14:05:52 -0400 Subject: [PATCH] feat: add /init microagent for repository initialization Creates a new '/init' microagent that automatically generates a comprehensive repo.md file containing repository documentation, structure, and CI/CD setup. Users can now simply type '/init' to create a .openhands/microagents/repo.md file that captures essential repository context, reducing repetitive searches and improving OpenHands' understanding of the codebase. The slash prefix makes it clear this is a command, consistent with other task microagents like /codereview and /fix_test. --- microagents/init.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 microagents/init.md diff --git a/microagents/init.md b/microagents/init.md new file mode 100644 index 0000000000..36c8244aed --- /dev/null +++ b/microagents/init.md @@ -0,0 +1,19 @@ +--- +name: init +type: task +version: 1.0.0 +agent: CodeActAgent +triggers: +- /init +--- + +Please browse the repository, look at the documentation and relevant code, and understand the purpose of this repository. + +Specifically, I want you to create a `.openhands/microagents/repo.md` file. This file should contain succinct information that summarizes: +1. The purpose of this repository +2. The general setup of this repo +3. A brief description of the structure of this repo + +Read all the GitHub workflows under .github/ of the repository (if this folder exists) to understand the CI checks (e.g., linter, pre-commit), and include those in the repo.md file. + +The repo.md file should be a microagent with type "knowledge" that provides context about the repository for future conversations. \ No newline at end of file