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/ibrahimhajjaj/ig-dlWrote 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/ibrahimhajjaj/ig-dl/diagnose)<a href="https://agentmods.dev/commands/ibrahimhajjaj/ig-dl/diagnose"><img src="https://agentmods.dev/badge/commands/ibrahimhajjaj/ig-dl/diagnose/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/commands/ibrahimhajjaj/ig-dl/diagnose"><img src="https://agentmods.dev/badge/commands/ibrahimhajjaj/ig-dl/diagnose.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.00017 | $0.00428 |
| Opus 5 | $0.00009 | $0.00214 |
| Sonnet 5 | $0.00003 | $0.00086 |
| Haiku 4.5 | $0.00002 | $0.00043 |
Grade A, and why
diagnose 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 8d 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
Produce a concise health report for the user's ig-dl setup. Run each check, collect the output, and at the end synthesize a 4-6 line summary with the exact remediation step if anything's off.
Checks:
ig-dl status— authentication state.ig-dl browsers— which Chromium browsers are exposing CDP, which are live vs stale.which ig-dl gallery-dl yt-dlp— are all three binaries on PATH?ls -la ~/.ig-dl/ 2>/dev/null— does the config directory exist and what's in it?- If
~/.ig-dl/session.jsonexists, runstat -f "%Sm" ~/.ig-dl/session.json(macOS) orstat -c %y ~/.ig-dl/session.json(linux) to get its last-modified timestamp.
Synthesis:
- If
statusreports "not authed" and no[live]browser in step 2 → user needs to enablechrome://inspect/#remote-debuggingin a real browser, then runig-dl login. - If
statusis authed but age > 24h → it'll auto-refresh on the next command if a live browser is around; otherwise suggestig-dl loginproactively. - If
statusis authed but age > 7d → warn that the session is very old; recommendig-dl loginbefore attempting a download. - If any backend binary is missing →
brew install gallery-dl yt-dlp(or platform equivalent). - If
ig-dlitself is missing →go install github.com/ibrahimhajjaj/ig-dl/cmd/ig-dl@latest.
Do NOT run ig-dl login on the user's behalf — it triggers a permission dialog in their browser and should be user-initiated.
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.
- 8d ago First seen · 24 lines · 17 tokens per session scan A 22f5a807c67e
diagnose is a command published in the GitHub repository ibrahimhajjaj/ig-dl (1 stars, last pushed 4mo ago), licensed MIT. It adds 17 tokens to every session and 428 once invoked, about $0.0001 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 commands, from other repositories
trace-claude-code
Control Opik tracing for your Claude Code sessions.
map
Generate MAP.md — a relational map of every file, function, signature, and call in the repo.
sanity
Cross-check a dekko callers/uses result against a targeted grep before trusting a low/zero count.
doctor
Diagnose dekko environment/install issues (PATH shadowing, map freshness, MCP registration, plugin, hooks, CLAUDE.md policy block).
audit-release
Diagnose release-readiness against the Starter Series quality bar — matched starter, version-vs-last-tag drift, CHANGELOG drift vs merged PRs, and publish-workflow kind. Read-only.
doctor
Diagnose WhatsApp MCP setup — bridge health, auth, pairing, and which account each server points to.