Install
npm i -g @syntax-syllogism/sfd
Needs Node 22 or newer and an installed, authenticated
sf. sfd has no dependencies of its own.
Salesforce CLI. Without the wait.
sfd runs common Salesforce CLI operations through a long-lived local
daemon. Each call skips the seconds sf spends loading
oclif and its plugins, so a warm query answers in about 0.2 seconds.
It is built for coding agents and scripts that make many small org
calls in a row. It uses the auth, aliases and API versions of the
sf you already have.
sf data query
3.40 s
sfd query
0.17 s
The same SOQL query against a scratch org, measured on one machine.
Your numbers depend on your sf install and plugins. The
first call starts the daemon; every call after that is warm.
Query and describe
sfd query fetches every page and strips attributes; --csv --limit 200 is the cheapest way for an agent to read rows. sfd describe prints a compact describe.
Apex and REST
sfd apex runs anonymous Apex from a file or stdin and prints the USER_DEBUG and fatal lines. sfd rest makes any REST call.
Deploy, retrieve, test
sfd deploy, sfd retrieve and sfd tracking share source tracking with sf. sfd test runs Apex tests and prints one summary line.
Logs, metadata, orgs
sfd logs lists and filters debug logs. sfd list-metadata lists live members. sfd org list reads local auth without network calls.
Nothing to manage
The first command starts the daemon. It exits after 60 idle minutes, restarts itself after an upgrade or sf update, and keeps access tokens in memory only. Use sf for anything sfd does not cover.
Your agent keeps writing sf. A hook rewrites each
supported command to sfd before it runs, and anything it
does not recognize runs unchanged. Hooks are available for Claude
Code, Codex CLI and Gemini CLI.
$ sfd hook install --agent claude
$ sfd hook check 'sf apex run test -n MyTest -w 10 --json'
→ sfd test -n 'MyTest' -w '10'
Hooks
Settings are merged, not replaced, so existing hooks keep working. SFD_HOOK_DISABLE=1 turns rewriting off.
Instructions
sfd agents-snippet --write adds sfd usage notes to your AGENTS.md or CLAUDE.md.
Discover
sfd discover reads your local agent transcripts and reports which sf calls could have gone through sfd, with the estimated time and output tokens saved.
npm i -g @syntax-syllogism/sfd
Needs Node 22 or newer and an installed, authenticated
sf. sfd has no dependencies of its own.
sfd query "SELECT Id, Name
FROM Account LIMIT 5" \
-o my-org
Without -o, the org resolves the same way as
sf.
sfd hook install --agent claude
sfd discover
Also codex and gemini. Add
--project for project scope.