As a QA lead, what would you put in place before your team uses coding agents every day on the product and its tests?
Answer
Set up the harness before scaling usage. Write one short instructions file with commands, test-writing rules and scope limits, and define one verify command as 'done', enforced by a hook before the agent finishes and as a required CI check. Give tiered permissions: free edits in an isolated worktree or sandbox, approval for dependencies, CI configuration, migrations and deletions, and no production secrets. Require human review of test diffs for weakened assertions and keep changes small. Start with tasks that have checkable results, turn every recurring agent mistake into a rule or check with an owner, and compare escaped defects, rework and cost per merged change with a baseline.
Strong answer includes
- defines a single verification command and enforces it with hooks and CI
- uses isolated environments and tiered permissions for risky actions
- keeps human review focused on test changes and small diffs
- runs a feedback loop that turns recurring mistakes into checks and measures outcomes against a baseline
Practical example
Before rollout, a QA lead adds AGENTS.md with `npm run verify` as the definition of done, a Stop hook that runs it, worktree-per-task sandboxes without production credentials, and a review rule that any removed assertion needs a written reason. A weekly review turns the top recurring agent mistake into a new lint rule or test.