ollama-chunked-analyzer

ollama-chunked-analyzer is an agent for Claude Code from dansasser/claude-code-marketplace. It costs 44 tokens per session (2,529 once invoked), scanned A, original, MIT.

A file-analysis helper that estimates input size, splits large files or multiple references into smaller parts, and combines the results into one review.

In plain words
What is it for?
Use it for large-file reviews, multi-file analysis, and complex architecture, security, or implementation-plan reviews.
Why use it?
It avoids truncated or empty results when an analysis request is too large for one model call.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the ollama-agents plugin — 5 commands, 3 agents shipped together

Good fit Use it for large-file reviews, multi-file analysis, and complex architecture, security, or implementation-plan reviews.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/dansasser/claude-code-marketplace/ollama-chunked-analyzer
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.

Clone the repo
git clone --depth 1 https://github.com/dansasser/claude-code-marketplace

Made for: Claude Code.

Or install ollama-agents, the plugin that ships this one along with the rest of its 5 commands, 3 agents.

Wrote 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.

agentmods badge for ollama-chunked-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/agents/dansasser/claude-code-marketplace/ollama-chunked-analyzer/github.svg)](https://agentmods.dev/agents/dansasser/claude-code-marketplace/ollama-chunked-analyzer)
Your own site
<a href="https://agentmods.dev/agents/dansasser/claude-code-marketplace/ollama-chunked-analyzer"><img src="https://agentmods.dev/badge/agents/dansasser/claude-code-marketplace/ollama-chunked-analyzer/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.

agentmods 80×15 button for ollama-chunked-analyzer

Your own site · 80×15
<a href="https://agentmods.dev/agents/dansasser/claude-code-marketplace/ollama-chunked-analyzer"><img src="https://agentmods.dev/badge/agents/dansasser/claude-code-marketplace/ollama-chunked-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,529 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00044 $0.02529
Opus 5 $0.00022 $0.01264
Sonnet 5 $0.00009 $0.00506
Haiku 4.5 $0.00004 $0.00253

Measured 9d ago against content hash a403a4aebf2e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

ollama-chunked-analyzer 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 9d 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.

plugins/claude-ollama-agents/agents/ollama-chunked-analyzer.md · 353 lines

How it starts

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

Ollama Chunked Analyzer Agent

You are a specialized agent that handles large-scale analysis using ollama-prompt with intelligent chunking.

Your Capabilities

  1. Token Estimation - Calculate approximate tokens from file sizes
  2. Smart Chunking - Split large inputs into manageable chunks
  3. Sequential Analysis - Process chunks through ollama-prompt
  4. Response Synthesis - Combine multiple chunk responses into coherent analysis

When You're Invoked

  • User asks to analyze large files (>20KB)
  • Multiple file references in analysis request
  • Complex multi-step reviews (architecture, security, implementation plans)
  • Previous ollama-prompt call returned truncated/empty response
  • Large directory analysis that exceeds single-call limits

Model Context Windows (Reference)

kimi-k2-thinking:cloud: 128,000 tokens
kimi-k2:1t-cloud: 1,000,000 tokens
deepseek-v3.1:671b-cloud: 64,000 tokens
qwen2.5-coder: 32,768 tokens
codellama: 16,384 tokens
llama3.1: 128,000 tokens

Token Estimation Formula

Conservative estimate: 1 token ≈ 4 characters

  • File size in bytes ÷ 4 = estimated tokens
  • Add prompt tokens (~500-1000)
  • If total > 80% of context window → chunk needed

Directory Operations

When analyzing directories, use ollama-prompt's directory syntax for efficient analysis:

Directory Syntax Reference

Syntax Operation Tokens Use Case
@./dir/ List contents ~200 Quick overview
@./dir/:tree Tree view (depth=3) ~500 Architecture analysis
@./dir/:search:PATTERN Search for pattern ~1,000 Targeted analysis

Directory Chunking Strategy

For large directories, use a structure-first approach:

Step 1: Get Structure Overview
# Low token cost - shows entire structure
ollama-prompt --prompt "Analyze the structure of this codebase:
@./src/:tree

Identify:
- Key modules and their purposes
- Layer organization
- Entry points" --model kimi-k2-thinking:cloud > structure.json

Read the full file on GitHub · 353 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. 9d ago First seen · 353 lines · 44 tokens per session scan A a403a4aebf2e

Subscribe to this mod's changes

ollama-chunked-analyzer is an agent published in the GitHub repository dansasser/claude-code-marketplace (9 stars, last pushed 4mo ago), licensed MIT. It adds 44 tokens to every session and 2,529 once invoked, about $0.0002 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.