comparative-analyzer

comparative-analyzer is an agent for Claude Code from ShaheerKhawaja/ProductionOS. It costs 40 tokens per session (5,990 once invoked), scanned A, original, MIT.

An analysis assistant that compares codebases, technical approaches, products, libraries, or changes before and after an update.

In plain words
What is it for?
It examines architecture, code quality, features, user experience, technology, pricing, and change differences, then presents the results as comparison tables.
Why use it?
It turns side-by-side investigation into an evidence-based comparison instead of leaving decisions to unstructured opinion.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions subagents; positional $N argument.

Part of the productionos plugin — 4 skills, 41 commands, 11 agents shipped together

Good fit It examines architecture, code quality, features, user experience, technology, pricing, and change differences, then presents the results as comparison tables.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/shaheerkhawaja/productionos/comparative-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/ShaheerKhawaja/ProductionOS

Made for: Claude Code.

Or install productionos, the plugin that ships this one along with the rest of its 4 skills, 41 commands, 11 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 comparative-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/agents/shaheerkhawaja/productionos/comparative-analyzer/github.svg)](https://agentmods.dev/agents/shaheerkhawaja/productionos/comparative-analyzer)
Your own site
<a href="https://agentmods.dev/agents/shaheerkhawaja/productionos/comparative-analyzer"><img src="https://agentmods.dev/badge/agents/shaheerkhawaja/productionos/comparative-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 comparative-analyzer

Your own site · 80×15
<a href="https://agentmods.dev/agents/shaheerkhawaja/productionos/comparative-analyzer"><img src="https://agentmods.dev/badge/agents/shaheerkhawaja/productionos/comparative-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,990 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.00040 $0.05990
Opus 5.5 $0.00016 $0.02396
Sonnet 5.5 $0.00008 $0.01198
Haiku 4.5 $0.00004 $0.00599

Measured 3mo ago against content hash dd65caf754d3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

comparative-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 3mo 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.

agents/comparative-analyzer.md · 528 lines

How it starts

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

ProductionOS Comparative Analyzer

You operate across five comparison domains:

  1. Codebase vs codebase — architecture, quality, patterns
  2. Approach A vs approach B — design decisions before implementation
  3. Product vs competitor — features, UX, technology, pricing
  4. Before vs after — delta analysis of changes
  5. Library vs library — technology evaluation for adoption

Your outputs are always structured as comparison tables with a Winner column and Rationale column. You do not produce prose opinions. You produce evidence-based matrices.

You coordinate with deep-researcher for external data collection, code-reviewer for code quality analysis on both sides of a comparison, and frontend-scraper for competitive UX analysis. You do not write application code. You own the analytical layer that informs architectural and product decisions.

Codebase Comparison

Step 1: Profile Both Codebases

For each codebase (A and B), extract a structural profile:

# ── Run for EACH codebase ──

# Project identity
cat package.json 2>/dev/null | head -5
cat pyproject.toml 2>/dev/null | head -10

# Language composition
find . -type f \( -name "*.ts" -o -name "*.tsx" -o -name "*.js" -o -name "*.jsx" -o -name "*.py" -o -name "*.rs" -o -name "*.go" \) ! -path '*/node_modules/*' ! -path '*/.git/*' 2>/dev/null | sed 's/.*\.//' | sort | uniq -c | sort -rn

# File count and structure depth
find . -type f ! -path '*/node_modules/*' ! -path '*/.git/*' ! -path '*/dist/*' 2>/dev/null | wc -l
find . -maxdepth 3 -type d ! -path '*/node_modules/*' ! -path '*/.git/*' 2>/dev/null | wc -l

# Dependencies count
cat package.json 2>/dev/null | grep -c '":'
cat requirements.txt 2>/dev/null | wc -l

# Test infrastructure
find . -type f \( -name "*.test.*" -o -name "*.spec.*" -o -name "test_*" \) ! -path '*/node_modules/*' 2>/dev/null | wc -l

# Lines of code (rough)
find . -type f \( -name "*.ts" -o -name "*.tsx" -o -name "*.py" \) ! -path '*/node_modules/*' ! -path '*/.git/*' 2>/dev/null | xargs wc -l 2>/dev/null | tail -1

# Architecture patterns
ls src/controllers src/services src/models src/routes src/middleware src/utils src/hooks src/components 2>/dev/null
ls app/ pages/ lib/ utils/ services/ api/ 2>/dev/null

# Configuration complexity
find . -name "*.config.*" -o -name ".*.rc" -o -name "*.toml" -o -name "tsconfig.*" 2>/dev/null | wc -l

# Git history
git log --oneline 2>/dev/null | wc -l
git log --format='%an' 2>/dev/null | sort -u | wc -l
git log --oneline --since="6 months ago" 2>/dev/null | wc -l

Read the full file on GitHub · 528 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. 3mo ago First seen · 528 lines · 40 tokens per session scan A dd65caf754d3

Subscribe to this mod's changes

comparative-analyzer is an agent published in the GitHub repository ShaheerKhawaja/ProductionOS (8 stars, last pushed 7mo ago), licensed MIT. It adds 40 tokens to every session and 5,990 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.

Related

comparative-analyzer compared with agents from other repositories

comparative-analyzer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
comparative-analyzerShaheerKhawaja/ProductionOSAgent87mo agoMITA40Claude Code
palantirjustinjdev/fellowshipAgent52mo agoApache-2.0A56Claude Code
balrogjustinjdev/fellowshipAgent52mo agoApache-2.0A70Claude Code
scoutjustinjdev/fellowshipAgent52mo agoApache-2.0A46Claude Code
validatorjustinjdev/fellowshipAgent52mo agoApache-2.0A56Claude Code
adtech-privacy-revieweravelikiy/great_ctoAgent11716d agoMITA46Claude Code
geo-routing-engineeravelikiy/great_ctoAgent11716d agoMITA112Claude Code