SFDC ERIO
Elevate Requirements Into Outcomes
SFDC ERIO turns a normal Salesforce user story into Draft metadata you can review, validate, and deploy — Flows, Apex, LWC, and Experience Cloud LWR assets — without starting from a blank Setup screen.
Analysis and generation run on your machine. You stay in control of what gets written and what gets pushed to the org. There is no cloud coding API (no OpenAI / Anthropic / Google / Copilot call for Generate).
What you get
- Story → design — Objects, fields, Flow vs Apex path, and a checklist as you type
- Intent Mirrors — Optional builder-shape presets (guidance only; Generate works without picking one)
- Optional story templates — Insert a sample (guided Flow+LWC+Apex, custom objects, messaging, …). Not required; free-form still works.
- Draft metadata — Auto-Layout Flows stay Draft (SFDC ERIO never activates Flows)
- Apex / LWC / Experience when the story needs them
- Validate & Deploy — Salesforce CLI dry-run first; deploy only what you check
- Update existing Flow — Retrieve an Active Flow and merge generated elements
- History — Recent stories and results for quick reload
- Inline CodeLens — Explain / Review / Test / Fix / Generate on Apex, LWC, Flow, and validation rules
Engines
| Engine |
What it does |
Model download |
| Rules (default) |
Spec patterns + bundled assist. Fully offline for coding assist. No GGUF required. |
None |
| Local Agent (Local LLM) |
Optional on-device models for story Spec enrich, Apex/LWC body fill, Chat, and Fix. Rules still write Flow XML. |
One-time download into extension storage (not inside the VSIX) |
Tip: On corporate networks that block Hugging Face, keep Rules — you do not need a Local LLM download to generate. Or point salesforceFlow.localLlm.githubRelease at a company/CDN mirror that hosts the GGUF files.
Local Agent models (downloaded on first use)
| Role |
Model (GGUF Q4_K_M) |
Approx. download |
When |
| Story Agent |
Qwen2.5-1.5B-Instruct |
~1.0 GB |
Required with Local Agent (reads the story into Spec JSON) |
| Coding Agent |
Qwen2.5-Coder-7B-Instruct |
~4.7 GB |
Required with Local Agent (Apex/LWC coding + chat) |
| Vision (optional) |
Qwen2.5-VL-7B-Instruct + mmproj |
~6.0 GB |
Only if a story includes a screenshot / image |
Local Agent pack (text stories): Story 1.5B + Coder 7B ≈ ~5.7 GB total, once, into VS Code/Cursor global storage (…/KrishanKumar.sfdc-erio/erio-llm/models/). The Marketplace VSIX stays small; GGUFs are not shipped inside the VSIX.
RAM: plan on about 16 GB system RAM for the 7B Q4 model (close other heavy apps on 16 GB machines). Optional: run LM Studio or Ollama and set salesforceFlow.localLlm.llamaServerUrl so inference uses that app’s GPU/NPU.
Local Agent also needs a node-llama-cpp native for your OS. The VSIX does not embed every platform binary. From the extension folder after install:
npm install @node-llama-cpp/linux-x64
npm install @node-llama-cpp/mac-arm64
npm install @node-llama-cpp/win-x64
Use @node-llama-cpp/mac-x64 on Intel Macs. Reinstalling the VSIX can remove a native you added by hand — install it again after an upgrade. Set ERIO_LLAMA_CPU=1 to stay on the CPU build.
Requirements
- Visual Studio Code 1.85 or later (or Cursor)
- An SFDX / Salesforce DX project folder open as the workspace
- Salesforce CLI (
sf) authenticated to a target org for describe, validate, and deploy
- Optional Local Agent: ~6 GB free disk for the 1.5B+7B pack (plus ~6 GB more if you enable Vision), and ~16 GB RAM for comfortable 7B inference
Get started
- Open your Salesforce project folder.
- Click the SFDC ERIO icon in the activity bar (opens an editor tab).
- Choose a Target org in the header (or Connect / Refresh from Salesforce CLI).
- Paste the full user story, or use Sample template (optional) → Insert sample (recommended for Flow + LWC + Apex; not required).
- Optionally open Intent mirrors if you want to preview builder shapes — not required for Generate.
- Click Generate and validate.
Files are written under your project’s default package directory. Review Generated components, then Deploy when validation succeeds.
To try Local Agent: set Engine to Local LLM, confirm the one-time model download (~5.7 GB for Story + Coder), then Generate / Chat / Fix as usual.
Useful commands
- SFDC ERIO: Generate from Selection — selection in the editor
- SFDC ERIO: Analyze Selection — design only
- SFDC ERIO: Generate from File — explorer context menu on
.md / .txt
- SFDC ERIO: Connect Org —
sf org login web
- SFDC ERIO: Toggle Inline AI CodeLens — show/hide inline Explain / Review / Fix
How generation works
- Analyze the story (objects, path, mirrors, mockup).
- Generate Draft Flow / Apex / LWC / Experience files locally (Rules scaffolds; Local Agent may fill Apex/LWC bodies).
- Validate with a check-only deploy against the selected org.
- Deploy selected members when you are ready — still as Draft where Salesforce allows.
You can uncheck components so they stay local-only. Flows are never auto-activated.
Settings (optional)
| Setting |
Purpose |
salesforceFlow.targetOrg |
CLI org alias or username (empty = CLI default) |
salesforceFlow.engine |
local (Rules) or localLlm (Local Agent) |
salesforceFlow.localLlm.size |
7b = Story 1.5B + Coder 7B pack (~5.7 GB); vl = optional Vision (~6 GB more) |
salesforceFlow.localLlm.githubRelease |
HTTPS base for model files (tried before Hugging Face) |
salesforceFlow.localLlm.llamaServerUrl |
Optional LM Studio / Ollama OpenAI-compatible URL |
salesforceFlow.localLlm.gpuSidecar |
Prefer local GPU server / Vulkan when safe (default on) |
salesforceFlow.localLlm.liveDocs |
Fetch public Salesforce developer docs into the local model context (default on) |
salesforceFlow.alwaysSevenBBodies |
Always run 7B Apex body fill after Rules (default off) |
salesforceFlow.inlineAgent.enabled |
Show inline AI CodeLens (default on) |
salesforceFlow.showRevertButtons |
Show Revert on Advanced fields |
Privacy
- Rules — story and metadata stay on your PC; no model download and no cloud model call for Spec generation.
- Local Agent — GGUF files download once into extension storage; inference stays on your machine (or your chosen LM Studio/Ollama). Source is not sent to OpenAI, Anthropic, Google, or GitHub Copilot.
- Live docs (optional) — public pages from developer.salesforce.com may be fetched for context; org data and source stay local. Turn
salesforceFlow.localLlm.liveDocs off for fully offline.
- Org credentials use Salesforce CLI auth you already manage.
License
MIT