Claude Code subagent that answers from official Salesforce docs (developer, architect, help, admin, lightningdesignsystem.com). Reads each page's markdown version when one exists, opens a browser only when it must, and grep-checks every quote.
README
Read the docs, keep your context. A Claude Code agent that reads the official Salesforce docs for you and returns just the lines that answer, each with its official URL.
The model picks the lines, a script copies them word for word from the official page · No third-party API: pages come straight from Salesforce's sites to your machine · 83% fewer tokens added to your session than Salesforce's own docs skill
Install · Use · How it works · How it compares · Limitations · Benchmarks
| Salesforce's platform-docs-get skill · 4,578 tokens | sf-docs-agent · 338 tokens | |---|---| | Every page it read lands in your session | Only the lines that answer, each with its official URL |
"How many versions can a flow have, and how many active flows per flow type in Enterprise vs Professional?" Same right answer, a fraction of the context.
The agent reads the pages in its own context. The model picks the lines and a script copies them word for word from the cached page, so no quote is written from the model's memory. Where Claude Code gives the agent its hand-back tool and runs its hook, the hook also checks each quote and source in the agent's report against the cached page before the report reaches you.
I built this because every docs lookup was dumping whole pages into my Claude Code session. I only wanted the lines that answer my question.
Needs Node 22+ and Claude Code.
npx sf-docs-agent
Then start a new Claude Code session. The agent is listed as sf-docs. Add --project to install it for the current project only. Claude Code then runs the agent's hook only in a folder you trust: in one you have not trusted, for example under claude -p, the agent runs without i