AI Agent Orchestration Framework for Salesforce Development - Two-phase architecture with 70% context reduction
npm install sf-agent-framework!SF-Agent Framework
!Salesforce
!AI Agents
!Version
!Status
AI-Powered Salesforce Development Framework | 70% Less Context | 3x Faster Delivery
š Quick Start | š Documentation | š” Features | š¤ Agents | š¦ Installation
---
- Overview
- Features
- Installation
- Quick Start
- How It Works
- Agents
- Workflows
- Templates
- Project Structure
- Advanced Features
- Use Cases
- Documentation
- Contributing
- License
---
SF-Agent Framework is an intelligent orchestration system that transforms Salesforce development through AI agents. It dramatically reduces development time and improves code quality by leveraging specialized AI agents that understand Salesforce best practices.
| Benefit | Impact | How It Works |
| -------------------------- | -------------------------------- | ----------------------------------------------------- |
| 70% Less Context | Faster AI responses, lower costs | Two-phase architecture separates planning from coding |
| 3x Faster Development | 20-minute story implementation | Lean agents optimized for specific tasks |
| 85% First-Pass Success | Less rework, higher quality | Agents trained on Salesforce best practices |
| 30+ Specialized Agents | Complete coverage | Each agent masters specific Salesforce domains |
| Enterprise-Ready | Production-safe | Built-in security, compliance, and governance |
- Implementation Time: 60 min ā 20 min per story
- Context Usage: 100k ā 30k tokens per task
- Documentation: 30 min ā 6 min generation
- Test Coverage: 75% ā 90% automated
---
Separate planning from coding for maximum efficiency:
```
PLANNING PHASE (128k context) DEVELOPMENT PHASE (32k context)
āāāāāāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāāāāāā
ā ⢠Full requirements ā ā ⢠Focused stories ā
ā ⢠Architecture ā āāāāā ā ⢠Fast execution ā
ā ⢠Complex analysis ā ā ⢠Lean agents ā
ā ⢠Story generation ā ā ⢠3x faster ā
āāāāāāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāāāāāā
Transform requirements into actionable, self-contained stories:
`markdownSTORY-001: Implement Customer Portal Login
All information needed for implementation...
- User authentication via OAuth 2.0
- Session management with 30-min timeout
- Multi-factor authentication support
- Apex controller: CustomerPortalController
- LWC component: customerLogin
- Integration: Auth0 SSO
`
- Architecture Team: Solution design, technical patterns, data modeling
- Development Team: Apex/LWC coding, configuration, testing
- Deployment Team: CI/CD, release automation, monitoring
Pre-built workflows for common scenarios:
- New Salesforce implementations
- Org enhancements and features
- Lightning migration
- DevOps pipeline setup
- Package development
---
- Node.js >= 20.0.0
- Git
- 8GB RAM minimum
- 2GB disk space
`bashGlobal installation (recommended)
npm install -g sf-agent-framework@latest
---
Quick Start
$3
`bash
Create new project
sfa init my-salesforce-project
cd my-salesforce-projectOr add to existing project
cd existing-project
sfa install
`$3
`bash
Start interactive workflow
sfa workflowOr use agents directly
sfa phase planning
/sf-business-analyst *requirements "customer portal"
/sf-architect *designSwitch to development
sfa phase development
/sf-developer-lean *implement
/sf-qa-lean *test
/sf-devops-lead-lean *deploy
`$3
| Command | Description | Example |
| ------------------ | -------------------------- | ----------------------------------------- |
|
sfa init [name] | Create new project | sfa init my-app |
| sfa workflow | Start interactive workflow | sfa workflow |
| sfa phase [mode] | Switch context mode | sfa phase planning |
| sfa story create | Generate stories | sfa story create --from requirements.md |
| sfa help | Show all commands | sfa help |---
How It Works
$3
`bash
sfa phase planning
`AI agents analyze requirements with full context to create comprehensive plans.
$3
`bash
sfa story create --from requirements.md
`Requirements are broken into self-contained, implementable stories.
$3
`bash
sfa phase development
`Switch to optimized agents that work 3x faster with focused context.
$3
`bash
/sf-developer-lean *implement
`Lean agents implement each story with all necessary context included.
---
Agents
$3
| Agent | Specialization | Commands |
| ------------------------ | ---------------------- | ---------------------------- |
|
sf-business-analyst | Requirements gathering | requirements, analysis |
| sf-architect | Solution architecture | design, patterns |
| sf-technical-architect | Technical design | integration, api |
| sf-data-architect | Data modeling | datamodel, migration |
| sf-security-architect | Security framework | security, compliance |$3
| Agent | Context Size | Focus | Speed |
| --------------------- | ------------ | --------------------- | ----------- |
|
sf-developer-lean | 32k | Apex, LWC, Triggers | 3x faster |
| sf-admin-lean | 24k | Configuration, Fields | 2.5x faster |
| sf-qa-lean | 24k | Testing, Quality | 2x faster |
| sf-devops-lead-lean | 30k | Deployment, CI/CD | 2x faster |---
Workflows
$3
Start with
sfa workflow and choose:1. š New Salesforce Implementation - Greenfield projects
2. š Enhance Existing Org - Add features
3. š Modernize to Lightning - Classic to Lightning
4. š§ Setup DevOps - CI/CD pipeline
5. š¦ Build Package - Managed/Unmanaged packages
$3
`bash
$ sfa workflow? Select your project type: New Salesforce Implementation
? Choose your approach: Requirements-driven development
? Select clouds: Sales Cloud, Service Cloud
ā
Workflow initialized: salesforce-greenfield-fullstack-v2
š Generated 12 implementation stories
š Ready to start development!
`---
Templates
AI-powered document generation that adapts to your needs:
| Template | Purpose | Time Saved |
| --------------------------- | ------------------------------------- | --------------- |
|
user-story-enhanced | User stories with acceptance criteria | 20 min ā 2 min |
| technical-design-enhanced | Architecture documents | 60 min ā 10 min |
| test-class-enhanced | Complete test classes | 30 min ā 5 min |
| apex-class-enhanced | Apex classes with best practices | 15 min ā 3 min |
| lwc-component-enhanced | LWC with HTML, JS, metadata | 25 min ā 5 min |$3
`bash
Interactive mode
sfa template process user-story-enhancedWith variables
sfa template process technical-design-enhanced \
--var project_name="Customer Portal" \
--var complexity="high"
`---
Project Structure
`
your-salesforce-project/
āāā .sf-core/ # Framework core (auto-managed)
ā āāā agents/ # 30+ specialized agents
ā āāā workflows/ # Enterprise workflows
ā āāā templates/ # Document templates
āāā src/ # Your Salesforce code
ā āāā classes/ # Apex classes
ā āāā lwc/ # Lightning Web Components
ā āāā objects/ # Custom objects
ā āāā triggers/ # Apex triggers
āāā docs/ # Generated documentation
ā āāā stories/ # Implementation stories
ā āāā architecture/ # Design documents
ā āāā handoffs/ # Agent handoff packages
āāā config/ # Configuration files
āāā sf-agent.config.json
`---
Advanced Features
$3
Break large requirements into manageable stories:
`bash
sfa shard docs/100-page-requirements.md
Output: 20 focused implementation stories
`$3
Seamless collaboration between AI agents:
`bash
sfa handoff create --from sf-architect --to sf-developer
Packages all context for smooth transition
`$3
Use with ChatGPT, Claude, or Gemini:
`bash
sfa build --teams-only
Upload dist/teams/salesforce-core-team.txt to any AI chat
`$3
Works with all major IDEs:
- Cursor
- VS Code + Salesforce Extensions
- IntelliJ with Illuminated Cloud
- Code Builder
---
Use Cases
$3
ā
Greenfield Implementations - New Salesforce orgs
ā
Feature Development - Complex features for existing orgs
ā
Lightning Migration - Classic to Lightning Experience
ā
DevOps Setup - CI/CD pipelines and automation
ā
Package Development - Managed/unmanaged packages
ā
Integration Projects - Connect with external systems
ā
Data Migration - Move data between orgs
$3
- Enterprise Retail: 70% reduction in implementation time
- Financial Services: 85% first-pass code accuracy
- Healthcare Provider: 3x faster Lightning migration
- SaaS Company: 90% automated test coverage
---
Documentation
$3
- Complete Documentation
- Quick Start Guide
- Best Practices
- API Reference
$3
- š Report Issues
- š¬ Discussions
- š§ Email: support@sf-agent-framework.com
---
Contributing
We welcome contributions! Areas where you can help:
- š¤ Create new specialized agents
- š Improve templates and documentation
- š§ Enhance workflows
- š Report and fix bugs
- š” Suggest new features
See Contributing Guide for details.
---
License
MIT License - See LICENSE file for details.
---
Why Choose SF-Agent Framework?
| Feature | SF-Agent | Traditional Dev | Generic AI |
| ------------------------ | -------------------------- | ------------------- | ---------------- |
| Salesforce Expertise | ā
Deep platform knowledge | ā
Manual expertise | ā No context |
| Development Speed | ā
3x faster | ā Standard pace | ā ļø Variable |
| Context Efficiency | ā
70% reduction | ā Full context | ā Massive usage |
| Code Quality | ā
85% first-pass | ā ļø Varies | ā ļø Heavy review |
| Best Practices | ā
Built-in | ā ļø Manual | ā Unaware |
| Cost | ā
Lower AI costs | ā High dev costs | ā High tokens |
---
$3
`bash
npm install -g sf-agent-framework@latest
``
Join thousands of developers building smarter with AI


