Use AI coding assistants in VS Code with a reviewable Git workflow

Published · Updated

Save

Test a local or hosted coding assistant with the same small task and the same acceptance checks. Pick a workflow that keeps secrets out of the prompt and preserves human review of every change.

Set a baseline before the first edit

Start from a clean branch and record the expected behavior. Ask for a change in a named file or function. Use the editor’s review controls and inspect git diff before accepting. Check for unrelated formatting, unsafe dependency additions, credentials and unwanted generated files.

Compare assistants on real outcomes

Run the same tests and compare the time spent correcting each diff. For a local model, record hardware and latency. For a hosted model, check workspace policy, processing terms and access before opening confidential repositories. Review staged changes with git diff --cached before committing.

References

VS Code review of AI edits

Git diff documentation

Discuss this answer