All posts
Development · Zapco journal

AI Coding Agent in VS Code: A Safe First Task Guide.

Follow a step-by-step walkthrough for running a safe first task with Zapco for VS Code.

Integrating an artificial intelligence coding agent into your daily development environment should not require surrendering control over your local repository. Many developers hesitate to adopt agentic tools because they worry about unintended file modifications, broken dependencies, or destructive terminal operations. Zapco for VS Code is built with human-in-the-loop safeguards to keep you in complete control.

Coming 15 January 2027, Zapco for VS Code brings an agentic coding assistant directly into your local editor without requiring an external desktop companion. Neither the extension nor the desktop app is available before launch. This guide walks you through setting up a safe, low-risk first task to help you master the agentic workflow with confidence.

By establishing clear operational boundaries, reviewing proposed edits in native diff views, and approving terminal commands individually, you can leverage agentic speed while preserving the stability of your codebase.

Prerequisites and Safe Setup

When launched on 15 January 2027, Zapco for VS Code requires VS Code version 1.95 or newer, an account with Projects access, and a single local project folder. To begin safely, choose an isolated, non-critical repository or create a sandbox directory containing a small TypeScript or Python project. Ensure your working directory is clean in Git, with no uncommitted changes.

Connecting your account follows a secure browser flow. Open the command palette and run Zapco: Sign in. Complete authentication in your browser, select Connect editor, and choose Return to editor. Zapco connects directly to your editor extension host, operating solely within your currently opened folder.

Take a moment to check your `.gitignore` configuration so secrets such as `.env.local` stay out of your repository, and review which files a task references before you send it.

Understanding the Four Operating Modes

Zapco Projects features four distinct operational modes designed for graduated levels of autonomy. Mastering these modes is the key to maintaining repository safety. Ask mode is strictly read-only; it inspects code and answers architectural questions without modifying any disk files. Plan mode analyzes your codebase to propose a structured, step-by-step implementation plan, also making zero disk modifications.

Build mode is the interactive execution mode. It prepares precise file edits and outlines terminal commands, asking for your explicit approval before each action is applied. Auto mode operates semi-autonomously within configured guardrails, performing approved edits and routine test runs while pausing to ask confirmation for Git branch, commit, push, or pull request operations.

For your first several tasks, staying in Ask, Plan, and Build modes allows you to observe every proposed modification before a single line of code is written to disk.

Step-by-Step: The Ask → Plan → Build Workflow

For your first task, select an objective with clear boundaries, such as adding unit tests for an existing utility module or refactoring a validation function. Begin in Ask mode. Prompt the agent: "Read src/utils/format.ts and explain what test cases are currently missing." The agent examines the file and reports its findings without touching disk.

Next, switch to Plan mode. Ask: "Create a plan to add Vitest unit tests for format.ts covering all boundary cases." Zapco produces a numbered implementation checklist detailing which files it will create and which test runner commands it will invoke. Review the plan to verify that the scope matches your intentions.

Finally, switch to Build mode and instruct Zapco: "Implement the test file as planned." The agent generates the test file and pauses, displaying an Open diff prompt. Click Open diff to inspect the exact line-by-line additions in VS Code's native diff editor. If the code looks correct, click Accept; if you spot issues, click Reject to restore the original file state.

This graduated progression ensures you understand what the agent intends to do before reviewing actual code diffs, preventing surprises and eliminating rework.

Approving Terminal Commands and Test Runs

After accepting file edits, Zapco may propose running your test suite to verify the changes. In Build mode, the agent presents the proposed shell command, such as `npm test -- format`. Inspect the command parameters before clicking Approve. The command executes inside your project folder, and Zapco reads the terminal stdout and stderr output.

If a test fails, Zapco analyzes the failure trace and suggests an edit to fix the discrepancy, once again asking for your approval before writing to disk. At any time, you can click Stop to end the agent loop. If a command is already executing in the foreground, it completes before stopping.

Because commands run with the permissions of your local user account, reviewing command arguments protects your local environment against unintended script executions.

Checkpoints and Rollback Safety

Safety extends beyond individual diff reviews. Zapco automatically creates snapshots known as checkpoints before and after major edit sequences. If a series of changes produces unexpected regressions, you can roll back the conversation to an earlier checkpoint, restoring file contents to their exact previous state.

Note that rejecting an edit or rolling back a checkpoint protects disk files, but does not undo previously executed terminal commands, such as database migrations or third-party API calls. For this reason, untrusted folders are restricted to Ask mode only, and multi-root workspaces are excluded from supported scope.

By combining git branches with Zapco checkpoints, you maintain a double layer of version security throughout your development sessions.

Try it step-by-step

  1. Open an isolated repository: Choose a clean git branch on a small project with an existing test runner.
  2. Ask about the code: Start in Ask mode to inspect function boundaries without risking file modifications.
  3. Generate a plan: Switch to Plan mode to review proposed changes before any code is generated.
  4. Inspect with native diff: In Build mode, choose Open diff to review changes line by line before accepting.
  5. Run tests with approval: Approve the test command to verify that your new implementation passes.
  6. Test checkpoint rollback: Practice rewinding to an earlier checkpoint to build confidence in recovery tools.

Put it into practice

The editor runs tools in its extension host without a desktop companion.

  1. Wait for the 15 January 2027 release; installation is not available yet.
  2. Follow the editor setup guide: browser sign-in → Connect editor → Return to editor, then open one local folder.
  3. Begin with Ask, prepare Build when ready, approve edits and commands, then Open diff and review Accept or Reject.

Keep this in mind

Adopt the Ask → Plan → Build workflow to maintain complete control over your codebase. Use native diff reviews to inspect every change, approve terminal commands explicitly, and rely on checkpoints for safe experimentation.

Read the full product guide