Claude Code · Claude in Chrome · private artifacts

Claudeforce: Claude working on Salesforce

How Claude was used to build, test and document this repo: which tool did what, where a human stayed in the loop, and what went wrong along the way.

What Claudeforce is for

Claudeforce is Claude as the builder and operator. It works while a person is building or maintaining the project: writing and deploying code, testing agents, reading what is in an org, driving a web UI with approvals, and writing documentation. End users never see it and it is not in the run-time path.

Meant for

  • Building and deploying Apex and agent metadata, with tests
  • Reading and documenting what already exists in an org
  • Diagnosing failures, such as an agent that answers Off Topic
  • Browser steps in Slack and Setup, with a person approving
  • Writing documentation and diagrams and pushing them

Not meant for

  • Handling secrets, logins or verification codes
  • Approving permission screens on your behalf
  • Acting as the production support agent for customers
  • Deploying to production without review

Use cases

Use caseWhoHow it worksStatus
Build and deploy Apex with testsDeveloperSalesforce CLI, deploying only the new classes with specified testsBuilt
Create and wire an agentDeveloperAgent spec, actions with schemas, topic, bot user permission setBuilt
Test an agent with real utterancesDeveloperAgent test spec and test run. Results were mixed and are listed on the Agentforce pageBuilt
Retrieve and document an orgAdminRetrieved the Site Helper agent, channel and queue and wrote them upBuilt
Load sample dataDeveloperApex scripts for Cases and Knowledge articlesBuilt
Test the Slack alertsDeveloperSent messages, created a High priority Case to fire the trigger, deleted itBuilt
Drive a web UI with approvalsAdminClaude in Chrome. The Slackbot page had no agent builder, so instructions were written insteadBuilt
Instructions only
Publish documentation and diagramsAnyonePages and README written from real files and pushed to GitHubBuilt
Review code before a releaseDeveloperRun a Salesforce code review on the ApexNext
Re-run agent tests on every changeDeveloperAdd the agent tests to a release checklistNext
Log in, enter secrets, click AllowClaudeAlways left to a personOut of scope
Answer customers in productionClaudeThat is AgentforceOut of scope

The toolchain

Claude Code runs in your editor and works in the project folder. It deploys and tests through the Salesforce CLI, and pushes to GitHub with git and gh. Claude in Chrome drives the browser for steps that only exist in a web UI, such as Slack. Pages are published as private claude.ai artifacts and, for this repo, to GitHub Pages from docs/. Anything that needs a secret, a login or a permission click comes back to you.

You decide, approve Claude Code editor, shell, files Claude in Chrome your signed-in browser Salesforce CLIdeploy, test, query git and ghcommit, push Artifact toolprivate pages Slack web appapps, webhooks Salesforce Setup Salesforce orgagents · Apex · Knowledge GitHub repo Artifacts stops for you: logins, permission clicks, secrets, irreversible steps
Two Claude tools, each limited to what it can safely reach. The browser tool never receives the Slack webhook URL.

What Claude did in this repo

WorkToolResult
Apex actions for CasesClaude Code, sf CLIDeployed, 2 tests pass
Case Triage agentClaude Code, sf agent createCreated and activated. Agent test: the list-cases test passed, the priority-change test stopped at the confirmation prompt, one topic-name check mismatched
Agent actions and schemasClaude CodeFixed after the agent answered Off Topic. Missing schema files were the cause
Bot user accessClaude CodePermission set assigned after removing View All
Knowledge and sample dataClaude CodeKnowledge enabled after you approved it. 14 articles (5, then 9 more), 10 Cases
Slack alertsClaude CodeDeployed, 4 tests pass. After you set the webhook, a test Case fired the trigger and the alert arrived in Slack
Daily digestClaude CodeScheduled for 8:00 daily. A manual send was seen in Slack
Site Helper agent, channel, queueClaude Code, retrieveRead from the org and documented. Built by you, not by Claude
Slackbot pageClaude in ChromeFound no agent builder, stopped, wrote instructions instead
Claude agent on AWSClaude Code, Sonnet 5.5Code type-checked, 5 unit tests, 10 Apex tests, two LWCs deployed. Nothing was deployed to AWS. A second model (Opus) then reviewed the README and pages for accuracy, and Claude fixed what it found
Architecture pagesClaude Code, artifactsWritten from the retrieved metadata and code
This repoClaude Code, gitOrg usernames redacted before the public push
Not verified by Claude. A live Site Helper chat and an end-to-end escalation to a human were not run, and the Case Triage priority update was not run. The first scheduled digest has not fired yet. The pages say so where it applies.

Where a human stayed in charge

MomentWhat happened
Enabling KnowledgeIt cannot be undone, so Claude asked first and waited for a yes.
Slack approachClaude asked which way to build, since the Slackbot UI had no agent builder.
Webhook URL pasted in chatClaude declined to enter it into Salesforce and opened the Custom Labels page so you could paste it yourself.
Slack webhook URLTreated as a secret. You paste it into Salesforce yourself. The Chrome instructions forbid reading it back.
Public repoPushed because you asked. Usernames were replaced with placeholders first. GitHub Pages was already on, so the pages are public.
A wrong earlier claimThe first architecture page said the chat had no routing. Claude retrieved the real metadata, found that wrong, and published a correction.

Instructions for Claude in Chrome

The file docs/slackforce-chrome-instructions.md is a prompt you paste into Claude in Chrome. It creates the Slack app and webhook, stops for each approval, and checks whether the Salesforce and Slack integration is available. Replace the placeholders for your own org URL and Slack workspace ID first.

Things that went wrong, and the fix

ProblemFix
Installed CLI too old for sf agent publishCreate with sf agent create, then deploy metadata
Actions deployed but unusableAdd input and output schema.json beside each function
Bot user rejected View All permissionsUse read access with sharing
Apex would not compile: bind on the left, String[][]Two queries, and List<List<String>> with explicit inner lists
Wider deploy failed the 75% coverage checkDeploy only the new classes with RunSpecifiedTests
Webhook label reset to its placeholder, so no alert was sentA project deploy overwrote it. In the working project the label file is now in .forceignore. The README says to deploy first, paste the webhook after, and then add that line
Apex tests failed once the real webhook was set, and a test insert fired the live Slack triggerPin config such as the webhook in every test, and use a Medium priority Case where a High one would fire the trigger
A claim of generic error messages was only partly true until a reviewer checked the codeBoth Apex services now catch every exception. Have a second reviewer check claims against the code
SSH push deniedPushed over HTTPS with the existing gh login, no config change