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.
npx agentmods add commands/mitulgarg/env-doctor/scangit clone --depth 1 https://github.com/mitulgarg/env-doctorWrote 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/commands/mitulgarg/env-doctor/scan)<a href="https://agentmods.dev/commands/mitulgarg/env-doctor/scan"><img src="https://agentmods.dev/badge/commands/mitulgarg/env-doctor/scan.svg" alt="Measured on agentmods" 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 | $0.00000 | $0.00538 |
| Opus 5 | $0.00000 | $0.00269 |
| Sonnet 5 | $0.00000 | $0.00108 |
| Haiku 4.5 | $0.00000 | $0.00054 |
Grade A, and why
scan 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 3d 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.
What it actually says
scan
Scan your project for deprecated AI library imports and suggest fixes. [BETA]
Usage
env-doctor scan [PATH]
If no path is provided, scans the current directory.
What It Detects
LangChain Deprecations
- Old import paths from
langchain - Migration to
langchain-core,langchain-community, etc.
Pydantic V1 → V2
- Deprecated validator syntax
- Old import paths
Other Library Changes
- TensorFlow 1.x patterns
- PyTorch deprecated APIs
Example Output
🔍 SCANNING PROJECT: ./my_project
📁 Files scanned: 47
📝 Issues found: 3
------------------------------------------------------------
src/chains/qa.py:12
❌ Deprecated import: from langchain.chat_models import ChatOpenAI
✅ Replace with: from langchain_openai import ChatOpenAI
src/chains/qa.py:15
❌ Deprecated import: from langchain.embeddings import OpenAIEmbeddings
✅ Replace with: from langchain_openai import OpenAIEmbeddings
src/models/user.py:8
⚠️ Pydantic V1 syntax: @validator
✅ Replace with: @field_validator (Pydantic V2)
SUMMARY:
❌ Errors: 2
⚠️ Warnings: 1
Scan Patterns
LangChain
| Old Import | New Import |
|---|---|
langchain.chat_models |
langchain_openai or langchain_anthropic |
langchain.embeddings |
langchain_openai |
langchain.vectorstores |
langchain_community.vectorstores |
langchain.document_loaders |
langchain_community.document_loaders |
Pydantic
| V1 Syntax | V2 Syntax |
|---|---|
@validator |
@field_validator |
@root_validator |
@model_validator |
class Config: |
model_config = ConfigDict(...) |
Excluding Files
The scan automatically excludes:
.git/__pycache__/node_modules/.venv/,venv/*.pyc,*.pyo
Advanced Options
JSON Output
env-doctor scan --json
See Also
- check - Environment diagnosis
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.
- 3d ago First seen · 98 lines · 0 tokens per session scan A 254e4e02cd2e
scan is a command published in the GitHub repository mitulgarg/env-doctor (172 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 538 tokens. 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-30.
Other commands, from other repositories
data-scientist
Run the Data Scientist workflow using the canonical contract in .github/agents/data-scientist.agent.md.
audit-prompt
Evaluate an existing prompt for clarity, effectiveness, and edge cases.
update-prompt
Update a prompt, system instruction, or agent definition by applying a research-backed prompt engineering technique.
vlm-ocr-evaluation
Run the vlm-ocr skill in its evaluate phase: compare candidate OCR systems against a stratified human-transcribed ground-truth sample and pick a model on measured CER/WER before committing to a bulk run.
multi-execute
Multi-model collaborative execution - Get prototype from plan → Claude refactors and implements → Multi-model audit and delivery.
make-prompt
Analyze what you want to build, research the tech stack, create a detailed todo spec, and generate a copy-paste-ready team prompt for a new Claude Code session.