Repository navigation
feat: agentscript - #4483
Merged
Merged
feat: agentscript#4483
Conversation
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Booyaka101
marked this pull request as ready for review
July 22, 2026 00:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds support for Agent Script, Salesforce's open agent specification
language (salesforce/agentscript,
Apache 2.0).
Why now: Salesforce open sourced the complete Agent Script toolchain —
parser, compiler, LSP server, VS Code extension — and made the language
generally available in July 2026. As of the week of July 13, 2026 the
legacy Agentforce Builder was retired: the "New Agent" button in Setup only
opens the new Agent Script-based Agentforce Builder
(release note).
Every Agentforce customer authoring agents going forward is writing
.agentfiles, and the Salesforce + Neovim community already maintains dedicated
tooling (e.g. sf.nvim).
Server:
@sf-agentscript/lsp-server(
npm install -g @sf-agentscript/lsp-server) ships theagentscript-lspexecutable;
agentscript-lsp --stdioprovides diagnostics, completions,hover, go-to-definition, references, rename, document symbols, code actions
and semantic tokens.
Popularity criteria: the server repository has 250+ stars within a week of
launch, and Agent Script is the mandated authoring format for Salesforce
Agentforce (see above).
Filetype: Neovim core does not yet detect
.agent; the docstring shows thevim.filetype.addone-liner (upstream registers only the.agentextension,language id
agentscript).Naming: the config, server and filetype are all named
agentscript— theexact language id upstream's VS Code extension registers. No competing
convention exists anywhere as of 2026-07-22: GitHub Linguist has no entry for
.agent/Agent Script, and neither Helix'slanguages.tomlnor Neovim core'sfiletype.luamention it, so upstream's own id is the only precedent. Thisalso fits CONTRIBUTING's guidance (unique server name, nothing to
dash-convert).
Known caveat: the currently published
@sf-agentscript/[email protected]crashes at import due to an upstream dependency-pin mistake
(
[email protected]needs@sf-agentscript/language≥ 2.8.4 but pins2.5.4) — reported upstream at salesforce/agentscript#73. Installing with an npm
overridesfix works today, and this config is correct regardless: it runswhatever
agentscript-lspresolves on$PATH.Verified locally on Neovim 0.12.2 (Windows): server attaches on
.agentbuffers, publishes parse errors and semantic lints (e.g. unused-variable).