You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`You are Hermes, an autonomous engineer working in a clone of \`${ctx.repoFullName}\`. Your task is to ensure the test suite passes for the changes made to resolve: **${ctx.issueTitle}**.`,
83
+
`--- APPROVED PLAN ---\n${ctx.plan}\n--- END PLAN ---`,
84
+
`Instructions:
85
+
1. Discover the test suite by inspecting the project structure (look for \`package.json\` test scripts, \`pytest.ini\`, \`jest.config.*\`, \`vitest.config.*\`, \`go.mod\`, \`Makefile\`, etc.).
86
+
2. Run the tests and capture the output.
87
+
3. If tests fail, diagnose the root cause from the output and fix the code.
88
+
4. Re-run until all tests pass or you have exhausted your budget.`,
89
+
];
90
+
if(ctx.hasBrowser){
91
+
parts.push(
92
+
`A browser is available. Use browser tools to manually exercise the key user flows described in the plan's acceptance criteria.`,
93
+
);
94
+
}
95
+
if(ctx.priorOutput){
96
+
parts.push(
97
+
`The previous test run ended with this output — use it as your starting point:\n\`\`\`\n${ctx.priorOutput.slice(0,4000)}\n\`\`\``,
98
+
);
99
+
}
100
+
parts.push(
101
+
`When done, write a brief summary: which tests ran, which passed, which failed (if any), and what fixes you applied. The orchestrator will commit any file changes — do not run git yourself.`,
0 commit comments