DGCDocs
Using DGC/Plan mode

read-only planning, then one-tap approve

Plan mode#

Switch to plan mode (/mode plan or Shift+Tab) and the agent goes read-only: it explores the code, reasons about an approach, and presents a concrete plan — files it will touch, the steps, the risks — without editing anything.

When the plan lands you get an approval prompt:

  • Approve — DGC drops back to your previous edit mode and executes the plan.
  • Keep planning — give feedback, stay read-only, and receive a revised plan.

DGC keeps the plan inline in the transcript, saves a plan.md beside the session, and (by default) renders a self-contained preview on loopback. /view-plan reopens the saved copy. The preview never inherits LAN sharing; arbitrary project previews remain disabled in plan mode unless artifact_in_plan is explicitly enabled.