setup-code-intelligence

A TypeScript coding rule focused on function declarations. TypeScript is a version of JavaScript that adds checks and annotations to help catch programming mistakes.

In plain words
What is it for?
It is for reviewing or enforcing how functions are declared in TypeScript files.
Why use it?
It provides a consistent standard for writing functions in a TypeScript codebase. The input does not explain the exact declaration style it requires.

Command

Install

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.

agentmods
npx agentmods add commands/antonbabenko/agent-plugins/setup-code-intelligence
Clone the repo
git clone --depth 1 https://github.com/antonbabenko/agent-plugins
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 963 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00022 $0.00963
Opus 5 $0.00011 $0.00481
Sonnet 5 $0.00004 $0.00193
Haiku 4.5 $0.00002 $0.00096

Measured yesterday against content hash e3ee3802fd64, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

setup-code-intelligence scanned grade B with 1 finding 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 yesterday.

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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- Debian/Ubuntu: `sudo apt install ripgrep`
plugins/code-intelligence/commands/setup-code-intelligence.md · 88 lines

How it starts

The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.

code-intelligence: setup & readiness check

Run a one-shot readiness check for the code-intelligence skill, then offer an optional star. The skill picks LSP vs exact-text vs fuzzy search by task; it needs rg for the exact-text tier and a language server for the semantic tier. Without them it runs degraded (text/fuzzy only).

Do the steps in order. Report results as a compact table. Do not install anything. Do not write any state file. Keep output ASCII.

1. Detect OS

Run uname -s. Use it to pick the install hint column:

  • Darwin -> Homebrew (brew install ...)
  • Linux -> distro package manager (apt, dnf, pacman) or the language-native installer below

2. Check ripgrep

command -v rg >/dev/null 2>&1 && rg --version | head -1 || echo "rg MISSING"

If missing, print the matching install line and mark the exact-text tier unavailable:

  • macOS: brew install ripgrep
  • Debian/Ubuntu: sudo apt install ripgrep
  • Fedora: sudo dnf install ripgrep
  • Arch: sudo pacman -S ripgrep
  • Any (Rust): cargo install ripgrep

3. Probe language servers

For each server below, run command -v <bin> and report present or missing on one line, with the install hint when missing. The user only needs the server for the languages they work in - missing ones are not failures by themselves.

Language Binary Install hint
TypeScript/JS typescript-language-server npm i -g typescript-language-server typescript
Python pyright or pylsp npm i -g pyright or pipx install python-lsp-server
Go gopls go install golang.org/x/tools/gopls@latest
Rust rust-analyzer rustup component add rust-analyzer
C/C++ clangd brew install llvm or apt install clangd
Bash bash-language-server npm i -g bash-language-server
Terraform terraform-ls brew install hashicorp/tap/terraform-ls
Lua lua-language-server brew install lua-language-server

Read the full file on GitHub · 88 lines

Changes

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.

  1. yesterday First seen · 88 lines · 22 tokens per session scan B e3ee3802fd64

Subscribe to this mod's changes

setup-code-intelligence is a command published in the GitHub repository antonbabenko/agent-plugins (40 stars, last pushed 4d ago), licensed Apache-2.0. It adds 22 tokens to every session and 963 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.