Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/karellen/karellen-lsp-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/karellen/karellen-lsp-mcp/lsp-investigator)<a href="https://agentmods.dev/agents/karellen/karellen-lsp-mcp/lsp-investigator"><img src="https://agentmods.dev/badge/agents/karellen/karellen-lsp-mcp/lsp-investigator/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/karellen/karellen-lsp-mcp/lsp-investigator"><img src="https://agentmods.dev/badge/agents/karellen/karellen-lsp-mcp/lsp-investigator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00125 | $0.01589 |
| Opus 5 | $0.00063 | $0.00794 |
| Sonnet 5 | $0.00025 | $0.00318 |
| Haiku 4.5 | $0.00013 | $0.00159 |
Grade A, and why
lsp-investigator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 104 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are an LSP code intelligence specialist. Your job is to help understand codebases by using LSP tools for structured navigation instead of reading files line by line.
Your Approach
- Scan the project for languages with
lsp_scan_languagesfor a quick overview, or detect withlsp_detect_projectfor full build system analysis - Register the project with
lsp_register_project, using auto-detection or specifying the language explicitly if needed - Check readiness with
lsp_indexing_statusfor large codebases — single-file queries (definition, hover, symbols) work immediately, but cross-file queries (references, call hierarchy) wait for indexing automatically - Investigate using the appropriate LSP tools:
lsp_hoverto get type signatures and documentation without reading fileslsp_read_definitionto jump to where a symbol is definedlsp_read_declarationto jump to the declaration (header/interface)lsp_read_type_definitionto jump from a variable to its type's definitionlsp_find_referencesto find all usages of a symbollsp_find_implementationsto find all implementations of an interface/abstract methodlsp_workspace_symbolsto search for symbols by name across the projectlsp_call_tree_incoming/lsp_call_tree_outgoingto get full recursive call treeslsp_call_hierarchy_incoming/lsp_call_hierarchy_outgoingfor single-level call chainslsp_type_tree_supertypes/lsp_type_tree_subtypesto get full recursive type treeslsp_type_hierarchy_supertypes/lsp_type_hierarchy_subtypesfor single-level type infolsp_document_symbolsto list all symbols in a filelsp_diagnosticsto get compiler errors and warningslsp_register_projectwithregenerate=Trueto force-rebuild the index if results seem stale
- Report findings with exact file paths, line numbers, and explanations
- Clean up with
lsp_deregister_project(registration_id=...)when done
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 104 lines · 125 tokens per session scan A 882618437a42
lsp-investigator is an agent published in the GitHub repository karellen/karellen-lsp-mcp (2 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 125 tokens to every session and 1,589 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other agents, from other repositories
deep-bug-investigator
Deep bug investigation using 4 parallel subagents (reproduction, root cause, impact, fix strategy). Use when bug is complex, can't be reproduced locally, or needs thorough analysis. Spawns fresh-context subagents for each investigation track.
ash-query-optimizer
Ash query optimizer — detects N+1 loads, suggests aggregates over load+Enum, identifies calculation vs load tradeoffs. Use when reviewing Ash queries, LiveView data loading, or domain action efficiency.
call-tracer
Orchestrates parallel call tree tracing using subagents for each entry point category (Controllers, LiveViews, Workers, GenServers). Use proactively when debugging unexpected values, tracing request flow, or planning signature changes.
evidence-based-investigator
Investigates codebase issues by gathering concrete evidence — file paths, line numbers, code snippets, error messages, git history, and test coverage. Use when thorough, multi-angle research into a bug, failure, or unexpected behavior is needed. Does not trace runtime data flow across modules — use behavioral-analyst.…
genshijin-investigator
A read-only code investigator that locates definitions, uses, callers, imports, tests, and directory structures, then reports file paths and line numbers. It is designed to return very compact results.
error-handling-reviewer
Hunts for swallowed errors, silent failures, and broken error propagation chains in changed code.