Work effectively with AI coding agents. Understand them as language models running in a tool loop with limited context, which is why they guess, game the visible signal and report confidently. Recognise the shortcut and correctness tells in their code across Python, TypeScript/JavaScript, Rust, Java and Go, and know the damage each one does later. Verify changes instead of trusting them, review diffs fast for quality and security, judge when work is truly finished, and choose, design and steer tasks so agents can finish them well.
Rule out shortcuts explicitly
card 3 of 6
The four rules, then the check
builds on: Making a failing test pass by weakening it
Put these in every task:
1. Don't edit, delete or skip tests.
2. Add no dependencies.
3. Add no suppressions (`# type: ignore`, `@ts-ignore`, `@ts-expect-error`, `#[allow(...)]`, `@SuppressWarnings`, `//nolint`).
4. If blocked, stop and report what fails and what you tried.
Rules are text, not enforcement. So check the diff for three things:
- changes to test files;
- changes to manifests and lock files (`requirements.txt`, `pyproject.toml`, `package.json`, `go.mod`, `go.sum`, `Cargo.toml`, `pom.xml`);
- added suppressions or skip markers (`@pytest.mark.skip`, `@Disabled`, `t.Skip()`, `#[ignore]`, `it.skip`).
Lesson goal: State the rules up front: do not modify or skip tests, add no new dependencies or suppressions, and stop and report when blocked instead of working around the problem. Then check the diff for compliance, because stated rules can still be broken. ·
the whole lesson