Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Run automatically on Claude Code events. Claude doesn't decide.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
rust-analyzer executableserver
Executable on PATH or an absolute executable path. With rustup installed, rust-analyzer resolves to the workspace toolchain component.
stringdefault rust-analyzer
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Rust memory budget (MiB)memory_limit_mib
Whole MiB. Windows: hard aggregate commit ceiling. Linux/macOS: soft process-group RSS budget, which may overshoot.
number32–1048576default 6144
Rust code intelligence for Claude Code on Windows, Linux and macOS, with a compiled native Rust supervisor. Claude stays outside the guarded LSP group.
| Platform | Protection |
|---|---|
| Windows 10+ | Kernel-enforced committed-memory ceiling for the entire process tree |
| Linux / macOS | Soft watchdog over process-group resident memory (RSS) |
The Unix watchdog is not a hard limit. Fast allocations can exceed the budget before the next check. It does not use Linux cgroups or macOS virtual-address-space limits.
Requires rustup with a Rust 1.99+ stable toolchain and a native linker, and Claude Code
with plugin SessionStart hooks and LSP userConfig support. Supported architectures: x64 and
ARM64. There is no .NET SDK/runtime dependency. Python is needed only for tests.
Windows MSVC needs the Visual Studio C++ build tools; Linux needs a C linker/toolchain; macOS needs the Xcode Command Line Tools. These are the usual prerequisites for building native Rust projects.
claude plugin marketplace add kjanat/agent-plugins
claude plugin install rust-analyzer@kjanat [--scope user | local | project] [--config memory_limit_mib=VALUE] [--config server=RUST_ANALYZER_BINARY]
# e.g.
claude plugin install rust-analyzer@kjanat --scope user --config memory_limit_mib=2048 --config server=rust-analyzer
claude plugin disable rust-analyzer-lsp@claude-plugins-official [--scope user | local | project]
Disable other plugins claiming .rs, including rust-guard@local-rust-guard if you used the
earlier standalone setup. Restart Claude after switching.
At session start and resume, the plugin's SessionStart hook runs cargo +stable install: Cargo
fetches the complete https://github.com/kjanat/agent-plugins.git repository's master branch
and installs the rust-analyzer-guard package with --locked. The first session builds the
guard, and Claude's first response waits for that build. Later sessions reinstall only when
master has moved. +stable keeps a project's rust-toolchain.toml away from the build. The
executable goes under runtime/0.3.1/bin in the persistent plugin data directory; build
intermediates stay under build/0.3.1. Dependencies use the fetched workspace-root
Cargo.lock. The hook needs GitHub access and, for uncached dependencies, registry access. The
configured command resolves the .exe suffix on Windows.
A failed build shows a SessionStart hook error and leaves Claude itself running. Run
claude --debug to see the Cargo output. A missing compiled guard prevents this LSP from
starting; there is no unguarded fallback.
To load a local plugin without registering a marketplace:
claude --plugin-dir /absolute/path/to/agent-plugins/plugins/rust-analyzer
The SessionStart hook builds GitHub's master, including with --plugin-dir; unpushed Rust
changes are not installed. The tests below build an isolated Git snapshot of the current
checkout, including uncommitted changes.
Use the plugin configuration in /config, or set a budget at installation:
claude plugin install rust-analyzer@kjanat --scope local --config memory_limit_mib=4096
| Option | Default | Meaning |
|---|---|---|
memory_limit_mib | 6144 | Windows commit ceiling; Linux/macOS RSS threshold, in whole MiB |
server | rust-analyzer | Executable on PATH, or an absolute executable path |
Budgets must be whole numbers from 32 to 1,048,576 MiB. Small budgets support bounded tests;
they are not useful for normal Rust work. Relative executable paths and relative/empty PATH
entries are rejected or ignored. Windows requires a native .exe; .exe is added when
resolving a bare PATH name.
When server is rust-analyzer and rustup is on PATH, the guard runs
rustup which rust-analyzer in the workspace and launches the binary of the workspace
toolchain. If that toolchain lacks the component, the guard launches rust-analyzer from
rustup's default toolchain, or stable when no default is set, and installs the component
there first when it is missing. A standalone rust-analyzer, such as a distribution package,
needs an absolute server path on machines with rustup. Without rustup, the guard takes the
first rust-analyzer on PATH.
Two analysis workers, at most two Cargo jobs, and disabled eager cache priming reduce background work. Navigation, diagnostics, proc macros and build scripts remain enabled. These settings may slow analysis; they are separate from memory enforcement.
npx claudepluginhub kjanat/agent-plugins --plugin rust-analyzerBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground