SFsmiths
AI craftsmen for your Salesforce org, running inside Claude Code. They forge, test and temper — you approve.
SFsmiths turns one Claude Code session into a disciplined Salesforce team: an intake analyst, a reproduction
engineer, an architect, a developer, a QA engineer, a reviewer, a comms writer and a coach — each a Claude Code
subagent with a single job and least-privilege tools — coordinated by a conductor that follows a deterministic
toolkit instead of its own judgement. Every stage must pass mechanical gates before the next one starts; every
risky step waits for you.
/ticket PROJ-123
→ prior art → intake → baseline sync (preprod → dev) → org map → REPRODUCE (failing test)
→ plan (every API name verified) → develop (dev sandbox only) → QA → review + deploy brief + deploy manifest → comms drafts
→ you deploy (Blue Canvas / your tool) → PARITY CHECK (did everything arrive?) → QA in preprod
→ you deploy to production → read-only verify → coach retro
What makes it different from "an AI that writes Apex"
| SFsmiths |
|---|
| Production | Read-only, always. One masked, logged evidence channel (sfsmiths-evidence MCP) through a least-privilege user. No agent has a production login, deploy path or write tool. |
| Preprod | Reachable only by the toolkit's engine keychain (a separate HOME), never by an agent. Baseline sync copies preprod → dev before work starts, so fixes are built against reality. |
| Proof before fix | Nothing is fixed until a test fails on the bug (and an inverse test passes). The referee is a run file, not prose. |
| Zero hallucinated names | Plans are linted against describe/metadata caches of your org: an API name that does not exist fails the stage. |
| Zero real email | You keep the list of allowed test addresses in the UI (⛨ Safety). Every artifact is scanned against it; a canary probe proves the sandbox refuses to send — or, when a test needs real delivery, an e-mail census proves no address outside the list exists in the org. |
| Your style | Comments match the existing codebase format; names describe behaviour, never ticket numbers. |
| Humans decide | Tier-based gates (LOW/MEDIUM/HIGH), per-agent ask/auto, typed approvals on HIGH plans, deploys always human. Approvals are recorded by a prompt hook only you can trigger. |
| Deploys are verified | The reviewer hands you the exact component list from git (06c-deploy-manifest.md, package.xml); after you deploy to preprod the toolkit retrieves the same components and compares fingerprints before QA runs there. |
| Official knowledge only | Agents cannot browse. Platform facts come from a mirror of Salesforce's own documentation and from notes a human filed with author and source. |
| Learns from evidence | A reward ledger computed from events (gate results, denials, escalations, your decisions) → lesson candidates → you approve → injected into the right agent as a skill. Agents' own notes are quarantined until confirmed. |
| Nothing hard-coded | Orgs, tracker, emails, names, models, budgets live in config/*.yaml (schema-validated; tracked defaults in config/defaults/, your copies gitignored). Clone, run setup, add your orgs — git status stays clean. |
Quick start (macOS / Linux)
git clone <your-fork> sfsmiths && cd sfsmiths
npm ci && npm run build && npm test # 96 offline tests: state machine, gates, hooks, lifecycle, UI, MCP, scripts, config layers, hard rules
npm run install:toolkit # installs ~/.sfsmiths/bin (hooks call this copy, never the repo)
export PATH="$HOME/.sfsmiths/bin:$PATH"
sfsmiths-human setup # wizard → config/orgs.yaml, tracker, emails, models
sfsmiths-human org login --alias DevSandbox --keychain agent # dev sandbox (read-write)
sfsmiths-human org login --alias Production --keychain agent # as the READ-ONLY evidence user (docs/SETUP.md §3)
sfsmiths-human org login --alias PartialUAT --keychain engine # preprod, engine keychain only
sfsmiths-human sync && sfsmiths-human doctor # generated files + boot conditions must be green
# in Claude Code, once: /plugin marketplace add ./ → /plugin install salesforce-development@sfsmiths-pinned
sfsmiths-human start # conductor session → /ticket PROJ-123
sfsmiths-human ui # local control room (127.0.0.1 + token): dashboard, tickets, agents/models, orgs, SAFETY (e-mails), lessons, config
No Jira yet? Set tracker.adapter: file and drop inbox/DEMO-101.md (template in templates/inbox-ticket.md).
Full setup, including creating the production read-only user and the Phase 0 spikes: docs/SETUP.md.
How it is built