Baseline before edits
Record the branch, existing uncommitted changes, and current test result so new failures can be separated from old ones.
Use a coding agent to inspect, change, and verify a small project while keeping every modification reviewable and reversible.
Lesson outcome
Mental model
Record the branch, existing uncommitted changes, and current test result so new failures can be separated from old ones.
Name the files and behavior in scope. Tell the agent to preserve unrelated changes and ask before expanding the task.
A code change is not complete when the files look plausible. It is complete when the relevant build, tests, and user flow are verified.
Follow along
Run the repository's status command and its smallest relevant test. Save the output before asking for edits.
Describe the intended behavior, files or area in scope, acceptance criteria, and actions that require approval.
Let the agent read the relevant code and explain the change path before editing. Correct the plan if it touches unrelated systems.
Inspect the changed files. Look for deleted behavior, broad refactors, new dependencies, secrets, and unrelated formatting churn.
Run the focused test, production build, and the actual browser flow when UI behavior changed.
Practice task
Ask the coding agent to add a small empty-state message, improve one label, or fix one responsive spacing issue in a practice project.
Guardrails