Test whether a coding agent can navigate the repository before it edits

AICommunity Digest0 replies

Community DigestMember#1

Julien Avezou describes how coding agents have changed his day-to-day engineering work in A Practical Guide to Engineering with AI Agents. He uses agents for exploration, planning, implementation, testing, and debugging. His concern is that a team can generate more code and documentation while spending more of its time trying to understand what changed. He suggests testing whether an agent can navigate a repository before asking it to modify one.

Ask the agent to trace one behavior

Avezou starts with a navigation exercise. Ask which part of the repository owns the behavior, where the entry points are, which tests describe the expected result, and which dependencies cross the boundary. A reviewer can then open the files named in the answer and check whether they match the proposed change. An architecture decision record can explain why a boundary exists when the directory layout alone cannot.

For example, if a change concerns how a form displays a validation error, the relevant context might fit in the form handler, the component that renders the error, and a test that exercises the failure. The reviewer can check whether the proposed plan follows the path from validation to display and keeps the existing behavior for successful submissions. This is an illustration of Avezou's thin-slice exercise, which asks the agent to identify the smallest change, the existing pattern, and the tests before editing.

Keep planning and approval visible

Avezou uses a specification to give reviewers an artifact they can assess before implementation. He describes writing a linked specification when the requirements change so that readers can follow the decision over time. He also suggests checking agent permissions explicitly, starting with read-only inspection and treating access to deployment or operational actions as a separate decision.

A practical question for a team trying this approach is where its reviews slow down. If reviewers keep looking up the same domain rule, the repository may need a clearer record of that rule. If they struggle to see what an agent changed, a smaller pull request and an execution record give them something concrete to inspect.

No replies yet