Agentforce Vibes: coding in Salesforce with AI agents

A practical guide to Agentforce Vibes: set up the workspace, write Apex, improve results with Rules and Skills, and understand the limits.

A robotic stylus shaping a white ribbon into a layered structure.

Agentforce Vibes is Salesforce’s AI coding agent. You can describe what you want to understand or change, then let it inspect a project, edit files and use development tools. It runs in desktop Visual Studio Code and in the browser-based Agentforce Vibes IDE.

This guide explains what you can delegate, how to set up the workspace and how to make useful results repeatable. Setup with Agentforce provides a separate conversational administration experience inside Salesforce; Vibes works in a development environment with project files and tools.

Meet your Salesforce coding agent

Understand how a request becomes a change

An integrated development environment (IDE) combines project files, editing, testing and tools. Vibes adds a conversation: it interprets requests, inspects context, chooses tools, modifies files and reviews results before its next step. The supplied information, instructions and tools shape this loop. Salesforce’s Vibes overview covers planning, development and code completion.

A request enters Agentforce Vibes, which uses project context, Rules and Skills, and connected tools to produce work for review.

What you can ask it to do

Apex is a useful starting point. Here are a few examples across a Salesforce project.

  • Investigate: inspect source and relevant org metadata, explain classes and relationships, follow dependencies and investigate failing tests.

  • Build: generate triggers and handlers, refactor services, write Apex and Lightning Web Components, and generate or modify supported metadata such as objects, fields and Flows.

  • Verify: generate tests, run available checks, read failures and attempt corrections.

  • Prepare delivery: assemble related components, use deployment tools and document the implementation.

The workflow documentation covers these patterns and their limits. Choose the working surface that makes the change easiest to understand and verify; some configuration work remains quicker in Salesforce Setup.

Choose a workspace and get connected

Route

What to set up

Desktop VS Code

Install supported VS Code, the Salesforce Extension Pack and Salesforce CLI. Open or create a Salesforce DX project with an sfdx-project.json file, then authorize the development org. Follow the desktop setup guide.

Browser IDE

Launch the hosted Agentforce Vibes IDE from an eligible org after administrative activation and access are complete. Salesforce tooling is preinstalled.

Before the first task, confirm these shared requirements.

  • Access: check Einstein enablement, the required permission set license and the assigned permission set. The entitlement guide explains metered and unmetered access.

  • Project and org: confirm which project is open and which development org the tools will affect. Retrieve the relevant metadata and compare local files with that environment.

  • Model and tools: check that a model is available and the required connections work. Ask Vibes to inspect a known component and compare the answer with its source.

Usage: allowances, model access and billing depend on the org’s entitlements. Long context and repeated attempts affect consumption. Check the current usage and billing guide before substantial work.

Follow the work from request to result

  • Investigate: establish existing behavior before asking for a change. Give precise component names, relevant files and observed errors.

  • Plan: for a change spanning several components or design choices, enable Plan beside the model selector. Review and refine the approach, then select Approve Plan when ready. See the Plan Mode guide.

  • Inspect: review changed files and tool results as the agent works. The current Chat interface exposes inline differences so you can examine what changed.

The Salesforce example below shows the conversation using a skill and a supporting file. Interface details vary by release.

Agentforce Vibes conversation with numbered markers for the request, skill loading and file inspection.

Source: Salesforce - Skills in Agentforce Vibes

  • 1. Request: describe the intended result and include the details needed to recognize success.

  • 2. Skill: the agent loads task-specific guidance. Check that the selected procedure fits the work.

  • 3. File inspection: the agent reads supporting information before continuing. Inspect tool results when you need to understand its assumptions.

Plan approval accepts an approach. Tool approval permits an operation. Accepting the delivered change means its behavior meets the agreed need. Keep those decisions distinct.

Build a system that helps your agent excel

Give the agent a usable brief, project conventions and checks. DORA’s 2025 research on AI-assisted development describes AI as amplifying existing organizational strengths and weaknesses, making workflow design as relevant as tool selection.

Give each task a usable brief

  • Outcome: state the current behavior, desired behavior and users affected.

  • Scope: identify the components to investigate and the boundaries of the change. Ask the agent to look for existing functionality it can reuse.

  • Constraints: include relevant permissions, data volumes, exceptions, integrations and project conventions.

  • Acceptance: describe observable results and the checks that would demonstrate them. Ask the agent to expose assumptions and unresolved decisions before building.

For larger work, agree the scope, dependencies and success measures with the people responsible for the process.

Put the right information in the right place

Keep context relevant and current. Anthropic’s context-engineering guidance describes selecting useful information within a limited context window.

Part

What belongs there and how to configure it

Context

Supply current files, org metadata, errors and decisions, plus business terms and integration contracts that code cannot explain. Use file references and terminal output to focus the task, and compare local source with the target org.

Rules

Put recurring standards in Toolkit > Rules. Choose project or global scope and an application mode, then write concise instructions. Share project rules through .vibes/rules/ in Git.

Skills

Use Toolkit > Skills to inspect supplied procedures or add task-specific guidance and supporting resources. Store project skills in .vibes/skills/ and explain when each procedure applies.

Tools

Use development commands and Toolkit > MCP Servers for the operations the task requires. Confirm authentication, the target org, connection status and available actions.

The Rules guide, Skills guide and MCP guide explain these settings. MCP, the Model Context Protocol, provides a common interface between agents and connected tools.

Record accepted decisions, verified state and outstanding work in maintained project documents. Refresh outdated metadata and prepare a concise handover before another substantial task.

For example, a project rule could say:

Reuse the existing trigger framework. Investigate current behavior before adding automation. Include normal, negative and bulk scenarios in Apex tests.

A skill could explain how to apply that framework, use the project’s test-data factory and run the relevant checks. Instructions guide generation; tests and review establish whether the result follows them.

Set permissions and recovery

Choose autonomy deliberately: Ask every time, Run safe defaults and Bypass permit different levels of tool execution. Review the actual permission settings, including individual tool controls, before delegating work. Check which information reaches models and connected services, and how file changes, deployments and data changes can be recovered.

Use current setup guidance when older tutorials show different controls or instruction paths.

Review a working change

  • Check the behavior: tie tests to the agreed outcome, including normal, negative and bulk scenarios. For Apex, review governor limits, sharing, object and field access, and error handling.

  • Check the environment: run relevant tests and analysis, inspect deployment dependencies and exercise the result with representative user permissions. Include interface interactions and accessibility where relevant.

  • Keep the evidence: record the changes reviewed, checks run, observed results and remaining work. Salesforce’s verification guidance provides a starting point.

For larger work, the documented sub-agent and Teams capabilities can separate tasks across Apex, interfaces and testing. Check availability, define boundaries and review the combined result. Compare models and working methods by total completion time, corrections and consumption, rather than generation speed alone.

Where the agent reaches its limits

Incomplete context can produce a convincing mistake

A missing integration contract, undocumented rule or production-only configuration can change the right solution. Ask which evidence supports a finding and what remains unexamined. Org access does not mean the agent has inspected the full implementation. Tool failures, authentication and quotas can also interrupt the investigation; use the logging guide when a technical trace is needed, and redact sensitive details before sharing it.

Technically valid work can implement the wrong behavior

Code can compile while applying the wrong rule. Tests generated from the same assumptions can pass while missing the real requirement. Check the agreed behavior independently with realistic data and user access; a successful deployment establishes that Salesforce accepted the changes.

Independent accounts illustrate the review burden. In December 2025, Texeï reported useful metadata, Batch Apex and test generation with corrections. In January 2026, Nebula’s developers reported helpful scaffolding alongside broken interactions, deployment dependencies and substantial revision. These experiences concern earlier versions and identify failure categories to investigate, rather than a current success rate.

Business decisions still need people

Process owners must agree the outcome, whose requirements take priority and acceptable trade-offs. As contributors work together, connect their changes to the scope, responsibilities, decisions and client acceptance. Salesforce’s Lifecycle Center supports collaboration and release management; our Salesforce implementation guide explains how the wider engagement links that work to the business need and client agreement.

Work independently where you can understand, test and recover the change. Seek targeted specialist help when architecture, security, integrations, migration or organizational decisions exceed your ability to evaluate the result.

Agentforce Vibes can handle a substantial share of Salesforce development work. Start with a bounded change, relevant context, review and evidence. As scope grows, extend shared planning, review practices and responsibilities so faster delivery remains understandable, accepted and maintainable.