Autonomous
TokRepo for OpenHands
OpenHands (formerly OpenDevin). .openhands/microagents/repo.md is loaded as repo-scoped microagent.
官方文档: https://docs.all-hands.dev/usage/prompting/microagents-repo
60 秒接入
OpenHands 最短路径
- 01
npx -y tokrepo@latest init-agent --target openhands - 02OpenHands automatically loads .openhands/microagents/repo.md.
- 03Optional MCP: configure tokrepo MCP via OpenHands settings.
项目规则文件
.openhands/microagents/repo.md安装位置
.openhands/microagents/MCP 客户端
OpenHands MCP configMCP 安装命令
tokrepo: command="npx -y tokrepo-mcp-server"
六条强制规则
每个 agent runtime 都执行
- SESSION BOOTSTRAP — call
tokrepo_session_initonce per session. - DISCOVER BEFORE BUILD — call
tokrepo_discoverbefore writing reusable artifacts. - VERIFY BEFORE INSTALL — install_plan must include
trust_gate; honorTOKREPO_MIN_TRUST(default 0.6). - DRY-RUN BEFORE APPLY — lifecycle tools default
dry_run=true. - HANDOFF AFTER REUSABLE WORK — call
tokrepo_handoff_plan. - PRIVATE BY DEFAULT, NEVER PUSH SECRETS.