OmO
Oh My OpenAgentv4.7.5

LSP

Workspace-level rename, go-to-definition, find-references, and pre-build diagnostics. IDE precision for agents.

OmO exposes Language Server Protocol features as tools. Agents get the same precision an IDE gives a human — rename across the workspace, jump to definitions, find references, surface diagnostics before a build.

ToolPurpose
lsp_diagnosticsErrors and warnings, surfaced without running the build.
lsp_prepare_renameValidate that a rename is safe before triggering it.
lsp_renameRename a symbol across the workspace.
lsp_goto_definitionJump to a symbol's definition.
lsp_find_referencesFind every usage of a symbol across the workspace.
lsp_symbolsFile outline or workspace-wide symbol search.

Why agents need this

Grep finds strings; LSP knows the semantics. When Sisyphus needs to rename User to Account in a TypeScript codebase, grep-based replace hits docs, comments, and string literals — LSP rewrites only the actual references. The diagnostics tool catches type errors before next build would, so agents fix at write-time, not at CI-fail-time.

Configuration

Per-language LSP server config is in plugin config under lsp:

{
  "lsp": {
    "typescript-language-server": {
      "command": ["typescript-language-server", "--stdio"],
      "extensions": [".ts", ".tsx"],
      "priority": 10
    },
    "pylsp": { "disabled": true }
  }
}

Fields: command, extensions, priority, env, initialization, disabled. Full schema in Configuration.

Source Notes

Aligned with upstream docs/reference/features.md#lsp-tools-ide-features-for-agents.

On this page