Agentforce DX for Visual Studio CodeAgentforce DX brings powerful agent development capabilities directly into Visual Studio Code. Build, preview, test, and debug Salesforce agents with an integrated development experience that includes:
Prerequisites
How to Use this ExtensionHere are the high-level features of this extension: Preview Agents (Beta)Chat with your agents directly in VS Code to test how they respond to user inputs. The Agent Preview panel lets you have interactive conversations with agents using their Agent Script file or with active agents in your org. Previewing agents helps you validate their behavior before deployment. You can use these two modes when previewing an agent from its Agent Script file:
See Preview and Debug an Agent for details.
Trace Agent Conversations (Beta)Understand exactly how your agent processes each conversation with the built-in Conversation Tracer. The tracer provides a detailed, step-by-step view of the agent's decision-making process, including:
Use the tracer to troubleshoot unexpected behavior, optimize agent performance, and gain insights into your agent's reasoning.
Test AgentsRun and manage your agent test suites from the Agent Testing Panel. View test definitions and individual test cases, run tests with a single click, and get detailed results for each test execution. The testing panel integrates with VS Code's native testing UI, providing a familiar experience for running and debugging agent tests. See Test an Agent for details.
DocumentationFor details about the features in this VS Code extension, and generally more information about Agentforce DX, see the Build Agents with Agentforce DX section of the Agentforce Developer Guide. Bugs and FeedbackTo report issues with this Agentforce DX extension, open a bug on GitHub. To suggest a new feature, start a GitHub discussion. |


