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
{{ message }}
Repository navigation
Copilot CLI: confirm the agentStop hook sends the agent back on a broken test #135
Part of #132. Nobody has run DiffCI's GitHub Copilot setup in a real session yet. This is the first check, and the one that matters most: does Copilot CLI's agentStop hook send the agent back when its change breaks a test?
You need: Copilot CLI signed in to an account with Copilot, Node.js, and any small repository with a test suite (JS/TS, Python or Go).
Steps
In the repository, run npx "@diffci.com/diffci@latest" init and commit nothing yet. Check that .github/hooks/diffci.json exists with an agentStop handler.
Start Copilot CLI in the repository and ask it to make a change that breaks an existing test (for example, change a function's return value without updating its test).
When the agent ends its turn, the hook runs diffci agent-stop --agent copilot. Expected: the agent gets another turn, with DiffCI's failing tests as the reason, and fixes them. After 3 failed attempts in a session, it should hand back to you.
Repeat with a change that keeps the tests passing. Expected: the agent stops normally, with no extra turn.
Please post
Copilot CLI version, OS, and the language of the repository.
What happened in steps 3 and 4: did the agent continue, what reason did it see, and did it stop when it should?
The stdin payload the hook received, if you can capture it (for example by wrapping the command in the hook file to write stdin to a file). Remove anything private first.
Anything that didn't match docs/agent-installation.md#github-copilot.
A report is a contribution: it is credited like a PR, and sustained work on the Copilot integration is how the Area maintainer tier is offered (CONTRIBUTING.md).
Activity