Dev Agent Plan and Act Modes

Dev Agent has two distinct interaction modes that optimize your Salesforce development workflow: Plan mode for strategic thinking, and Act mode for implementation. This dual-mode approach helps you create more maintainable, accurate solutions while reducing development iterations and ensuring thoughtful architecture decisions. Plan and Act modes separate strategic thinking from execution, helping you tackle complex Salesforce projects more effectively. The toggle on the bottom right of the chat lets you switch between these two modes.

Plan Mode - Think first:

  • Analyze your project without making changes.
  • Identify risks and plan architecture.
  • Build comprehensive context about your org.

Act Mode - Build it:

  • Execute planned solutions with full tool access.
  • Remember all planning decisions.
  • Take direct action on your codebase.

Use Plan Mode for: New features, complex debugging, architectural decisions. Use Act Mode for: Implementing solutions, routine changes, established patterns.

Plan mode focuses on analysis and strategy without making changes to your files or org:

  • Analyze: Project structure, custom objects, Apex classes, Lightning components.
  • Plan: Implementation strategies, deployment sequences, testing approaches.
  • Identify Risks: Governor limits, security considerations, integration challenges.

Act mode provides full tool access to implement solutions:

  • Create and Modify: Apex classes, triggers, Lightning components, metadata.
  • Execute: Salesforce CLI commands, tests, deployments.
  • Implement: Follow established plans with real-time validation and error handling.
  • Plan Mode: Analyze requirements, design architecture, identify risks.

  • Act Mode: Implement components, deploy metadata, run tests.

  • Plan Mode: Analyze code patterns, identify root causes, plan optimization.

  • Act Mode: Refactor code, implement fixes, validate with tests.

  • Plan Mode: Review existing code, identify improvements, plan refactoring.
  • Act Mode: Implement modern patterns, update dependencies, ensure coverage.
  • Share complete business context and constraints.
  • Let Dev Agent explore your codebase structure.
  • Ask for multiple solution approaches.
  • Document plans for team reference.
  • Follow the established plan consistently.
  • Monitor code quality and test coverage.
  • Return to Plan mode for unexpected complexity.
  • Validate each step against requirements.