Introducing Dev Agent (Dev Preview) — and How to Get Started

If you’ve used Agentforce for Developers in VS Code (aka “Dev Assistant”), you’ll love the new Dev Agent. It doesn’t just suggest code—it can actually take action for you. Ask for something in plain English and Dev Agent will plan it, run tools, and complete multi-step workflows right inside VS Code.

What is Dev Agent?

Dev Agent is an agentic AI teammate for Salesforce developers. It understands your project context and can execute tools via the Model Context Protocol (MCP)—a standard that lets AI agents safely discover and call tools (like Salesforce DX) without brittle, one-off integrations.

In short: Dev Assistant answered questions; Dev Agent can plan and act on your behalf. 

Prerequisites

  • VS Code with the Salesforce Extension Pack (includes Agentforce for Developers). 

  • Salesforce CLI v2.91.5+ installed. 

  • A Salesforce DX project and at least one authorized org. 

Enable Dev Agent (once)

Note: Dev Agent is currently Developer Preview and gated by a feature flag in VS Code settings. 

Open VS Code → Command Palette → Preferences: Open User Settings (JSON)

Copy the code below

{
  "salesforce.einsteinForDevelopers.enableDebugLogging": true,
  "salesforce.einsteinForDevelopers.advanced": {
    "enableAgenticChat": true
  }
}

(Source: https://developer.salesforce.com/docs/platform/einstein-for-devs/guide/devagent-setup.html)

Add the code to the settings.json file and save it, making sure the commas and curly braces are correctly placed.

Click on the Agentforce icon in the left side panel, and now you will see Dev Agent. Earlier, this used to appear as Dev Assistant.

Your First Task (Quick Win)

In the chat, try:

“Create 5 sample Account records for top Singapore companies in my default org.”

Dev Agent will plan the steps, generate an Apex script, and run the actions via MCP tools (with approvals).

You’ll see results inline and can verify records in Salesforce. 

Log in to Salesforce, go to Accounts → All Accounts, and you’ll see the newly created records in the Account object.

Tip: By default, Dev Agent proposes actions for your review. Approve to execute, or switch back to Plan mode to analyze without changes. 

What More Can We Do with Dev Agent?

Once Dev Agent matures and becomes more stable, here are some of the things we’ll be able to do with it. I tried a couple of these commands in the current version and they didn’t work yet, but I’ve used the same commands with other agents like Cursor Agent, and they worked quite well.

  1. “Create and deploy a validation rule on Account to make Billing City required.”

  2. “Create a new Profile (Salesforce license) with minimal permissions.”

  3. “Create a Permission Set named ‘Key Account Manager Permission Set’ with:

    • Read, Create, Edit on Account

    • Read and Edit on all Account fields.”

  4. “Create an Apex trigger on Account that updates related Contacts’ addresses when the Account address changes.”

These leverage tool execution and metadata operations driven by Dev Agent’s MCP integration. You may iterate once or twice—just reply in chat and Dev Agent adjusts. 

Conclusion

Salesforce has always promoted its platform as No-Code, Low-Code, and Pro-Code. For No-Code and Low-Code, we usually relied on point-and-click declarative tools within the Salesforce UI to configure features and functionalities.

Not anymore. With Dev Agent, you don’t even need to do that. Just tell the agent what you want, and it will handle the task for you.

For example, in the screenshots above, I asked the agent to create five sample records in the Account object. It generated the records instantly—no need to open the Salesforce UI and create them one by one.

References & Useful URLs



Liked something here? Share your feedback in the comments below 👇