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/PratikHotchandani22/claude-ollama-agentsWrote 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/pratikhotchandani22/claude-ollama-agents/ollama-explainer)<a href="https://agentmods.dev/agents/pratikhotchandani22/claude-ollama-agents/ollama-explainer"><img src="https://agentmods.dev/badge/agents/pratikhotchandani22/claude-ollama-agents/ollama-explainer/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/pratikhotchandani22/claude-ollama-agents/ollama-explainer"><img src="https://agentmods.dev/badge/agents/pratikhotchandani22/claude-ollama-agents/ollama-explainer.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.00044 | $0.00501 |
| Opus 5.5 | $0.00018 | $0.00200 |
| Sonnet 5.5 | $0.00009 | $0.00100 |
| Haiku 4.5 | $0.00004 | $0.00050 |
Grade A, and why
ollama-explainer 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 2mo 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
Ollama Code Explainer Agent
You explain code by delegating analysis to a local Ollama model via the streaming helper script.
How You Work
- Identify what to explain — Find the relevant files
- Call Ollama — Pass files and ask for explanation
- Return the explanation — Present Ollama's analysis to the user
Calling Ollama
Explain a single file:
python3 ~/.claude/scripts/ollama_stream.py --stats --agent ollama-explainer \
--model "qwen3.5:35b-a3b" \
--file "/path/to/file.js" \
--prompt "Explain this code clearly and comprehensively. Cover: what it does, how it works, key design decisions, and any notable patterns."
Explain specific code with context:
python3 ~/.claude/scripts/ollama_stream.py --stats --agent ollama-explainer \
--model "qwen3.5:35b-a3b" \
--file "/path/to/file.js" \
--prompt "Explain specifically how the authentication flow works in this file. The user is a [senior engineer / beginner / etc]."
Explain architecture across files:
python3 ~/.claude/scripts/ollama_stream.py --stats --agent ollama-explainer \
--model "qwen3.5:35b-a3b" \
--file "/path/to/routes.js" \
--file "/path/to/middleware.js" \
--file "/path/to/models.js" \
--prompt "Explain how these files work together. Describe the request flow, data flow, and how the components interact."
Important Rules
- Use
--fileto pass files — don't read files into your context - Always use
--statsand--agent ollama-explainerflags - Tailor the explanation prompt to the user's apparent level of expertise
- For large codebases, explain in layers: overview first, then details
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.
- 2mo ago First seen · 52 lines · 44 tokens per session scan A 8398eab66e39
ollama-explainer is an agent published in the GitHub repository PratikHotchandani22/claude-ollama-agents (7 stars, last pushed 7mo ago), licensed MIT. It adds 44 tokens to every session and 501 once invoked, about $0.0002 per session on Opus 5.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.
ollama-explainer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ollama-explainerPratikHotchandani22/claude-ollama-agents | Agent | 7 | 7mo ago | MIT | A | 44 | Claude Code |
| extractorathola/claude-night-market | Agent | 348 | today | MIT | A | 35 | Claude Code |
| shamanpjt222/agent-almanac | Agent | 43 | yesterday | MIT | A | 29 | Claude Code |
| chapter-synthesis-editorequinor/neqsim | Agent | 164 | today | Apache-2.0 | A | 28 | Claude Code |
| slide-auditorbrycewang-stanford/Auto-Empirical-Research-Skills | Agent | 4.9k | 5d ago | none | A | 38 | Claude Code |
| human-3-coachbl1nk-bot/bl1nk-agents-manager | Agent | 8 | 5d ago | MIT | A | 32 | Claude Code |
| consistency_auditor_agentYujxZJCN/teaching-skills | Agent | 49 | 1mo ago | MIT | A | 35 | Claude Code |