The Agent That Replaced My $200/Month Competitor Analysis Tool

Build an AI agent that monitors competitors, spots positioning gaps, and tracks moves, replacing a $200 a month analysis tool.

Table of Contents

The Competitive Analyzer is a Claude Code subagent that pairs Perplexity search with Firecrawl scraping to track competitor content, pricing, and positioning. It runs a weekly report or an on-demand topic check, then surfaces content gaps the reader can actually fill instead of just listing what changed on competitor sites.

What you will be able to do

  • Run a weekly /competitive-check report that lists new competitor content, pricing changes, and content gaps in about 90 seconds.
  • Run a topic-specific /competitive-check --topic "X" scan before writing an article to see who has covered the topic and what angles they used.
  • Build a competitor watchlist file covering direct competitors, adjacent players, and tool-specific sources.
  • Spot whitespace topics with zero competitor coverage and turn them into content angles with a recommended positioning.
  • Replace a paid competitor monitoring subscription with an agent that costs about $1.20 a month in API usage.

Before you start

  • Claude Code CLI installed (verify with claude --version)
  • Free Perplexity API key and free Firecrawl API key
  • Perplexity and Firecrawl configured as MCP servers in Claude Code
  • Business context and content strategy profile files plus a completed competitor watchlist, set up per Article 1 of the series

Reference

Setting Value
Weekly command /competitive-check (no topic flag), about 90 seconds
Topic command /competitive-check --topic "AI automation costs", about 45 seconds
Agent name competitive-analyzer
Model sonnet
Tools Read, Glob, Grep, Write, mcp__perplexity__search, mcp__perplexity__reason, mcp__firecrawl__firecrawl_scrape, mcp__firecrawl__firecrawl_map
Watchlist file .claude/research-profiles/competitor-watchlist.md
Watchlist categories Direct competitors, adjacent players, tool-specific sources, 3 to 5 names each
Weekly cost About $1.20/month, 4 reports at roughly $0.30 each

Common errors and fixes

What goes wrong The fix
Agent can't run any commands Claude Code CLI isn't installed. Install it with curl -fsSL https://claude.ai/install.sh | bash and verify with claude --version
Search or scrape steps fail silently Perplexity or Firecrawl API key is missing. Get free keys at perplexity.ai/api and firecrawl.dev
Agent has no search or scrape tools available MCP servers for Perplexity and Firecrawl aren't configured in Claude Code settings
Report comes back generic with no real competitor names The competitor watchlist file hasn't been created yet at .claude/research-profiles/competitor-watchlist.md
Report reads like a data dump instead of a recommendation Business context and content strategy profile files aren't loaded, so the agent has no lens to interpret gaps through

Read the full walkthrough

The complete lesson, with screenshots and any downloads, is published on Substack as part of PubFlow OS Agents: Build Your AI Research Team.

Read Lesson 4 on Substack →

More in this section

Continue the course

Browse all lessons in the PubFlow OS Agents: Build Your AI Research Team course, or subscribe to the GenAI Unplugged newsletter to get new lessons in your inbox.

Dheeraj Sharma

Dheeraj Sharma

AI Systems Builder
Creator of the n8n Zero to Hero course (42 lessons, 31+ hours). I help solopreneurs build AI systems that grow revenue without growing workload.

Get the n8n Mastery Bundle

All workflows, cheat sheets, and premium resources from the entire course in one package.

Read the full lesson on Substack