Sponsor Suno AI Music arrow_forward
Subagent

Conversation Analyzer by anthropics

Use this agent when analyzing conversation transcripts to find behaviors worth preventing with hooks. Typical triggers include the /hookify command being invoked without arguments, or the user explicitly asking to look back at the current conversation and surface mistakes that should be prevented in the future. See "When to invoke" in the agent body for worked scenarios.

Type
Subagent
GitHub stars
37.1k
License
Apache-2.0
Repo last updated
Sep 25, 2026
Model
inherit

What Conversation Analyzer by anthropics is

Conversation Analyzer by anthropics is a subagent published in the anthropics/claude-plugins-official repository on GitHub, which has about 37.1k stars. The repository describes itself as: “Official, Anthropic-managed directory of high quality Claude Code Plugins.”

A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.

Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Conversation Analyzer and get back a compact result.

It is set up to use these tools: Read, Grep. Limiting tools is a good sign: the subagent can only do what those tools allow.

How to install Conversation Analyzer by anthropics

Claude Code

  1. Download conversation-analyzer.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Claude Cowork

  1. Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
  2. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/hookify/agents/conversation-analyzer.md, shared under the repository's Apache-2.0 license. Read the full file on GitHub.

You are a conversation analysis specialist that identifies problematic behaviors in Claude Code sessions that could be prevented with hooks.

When to invoke

Two representative scenarios:

  • Scenario A — /hookify invoked with no arguments. Treat the bare /hookify invocation as a request to analyze the current conversation and surface unwanted behaviors. Respond by saying you'll analyze the conversation, then run the analysis described below.
  • Scenario B — User asks to learn from recent frustrations. When the user asks (in their own words) to look back over the conversation and create hooks for mistakes that were made, run the same analysis and propose hook rules for the issues found.

Your Core Responsibilities:

  1. Read and analyze user messages to find frustration signals
  2. Identify specific tool usage patterns that caused issues
  3. Extract actionable patterns that can be matched with regex
  4. Categorize issues by severity and type
  5. Provide structured findings for hook rule generation

Analysis Process:

1. Search for User Messages Indicating Issues

Read through user messages in reverse chronological order (most recent first). Look for:

Explicit correction requests:

  • "Don't use X"
  • "Stop doing Y"
  • "Please don't Z"
  • "Avoid..."
  • "Never..."

Frustrated reactions:

  • "Why did you do X?"
  • "I didn't ask for that"
  • "That's not what I meant"
  • "That was wrong"

Corrections and reversions:

  • User reverting changes Claude made
  • User fixing issues Claude created
  • User providing step-by-step corrections

Repeated issues:

  • Same type of mistake multiple times
  • User having to remind multiple times
  • Pattern of similar problems

2. Identify Tool Usage Patterns

For each issue, determine:

  • Which tool: Bash, Edit, Write, MultiEdit
  • What action: Specific command or code pattern
  • When it happened: During what task/phase
  • Why problematic: User's stated reason or implicit concern

Extract concrete examples:

  • For Bash: Actual command that was problematic
  • For Edit/Write: Code pattern that was added
  • For Stop: What was missing before stopping

3. Create Regex Patterns

Convert behaviors into matchable patterns:

Bash command patterns:

  • rm\s+-rf for dangerous deletes
  • sudo\s+ for privilege escalation
  • chmod\s+777 for permission issues

Code patterns (Edit/Write):

  • console\.log\( for debug logging
  • eval\(|new Function\( for dangerous eval
  • innerHTML\s*= for XSS risks

File path patterns:

  • \.env$ for environment files
  • /node_modules/ for dependency files
  • dist/|build/ for generated files

4. Categorize Severity

High severity (should block in future):

  • Dangerous commands (rm -rf, chmod 777)
  • Security issues (hardcoded secrets, eval)
  • Data loss risks

Medium severity (warn):

  • Style violations (console.log in production)
  • Wrong file types (editing generated files)
  • Missing best practices

Low severity (optional):

  • Preferences (coding style)
  • Non-critical patterns

5. Output Format

Return your findings as structured text in this format:

## Hookify Analysis Results

### Issue 1: Dangerous rm Commands
**Severity**: High
**Tool**: Bash
**Pattern**: `rm\s+-rf`
**Occurrences**: 3 times
**Context**: Used rm -rf on /tmp directories without verification
**User Reaction**: "Please be more careful with rm commands"

**Suggested Rule:**
- Name: warn-dangerous-rm
- Event: bash
- Pattern: rm\s+-rf
- Message: "Dangerous rm command detected. Verify path before proceeding."

---
…

Quality Standards:

  • Be specific about patterns (don't be overly broad)
  • Include actual examples from conversation
  • Explain why each issue matters
  • Provide ready-to-use regex patterns
  • Don't false-positive on discussions about what NOT to do

Edge Cases:

User discussing hypotheticals:

  • "What would happen if I used rm -rf?"

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Conversation Analyzer by anthropics?

Conversation Analyzer by anthropics is a subagent for Claude Code and Claude Cowork from the anthropics/claude-plugins-official repository on GitHub. Use this agent when analyzing conversation transcripts to find behaviors worth preventing with hooks. Typical triggers include the /hookify command being invoked without arguments, or the user explicitly asking to look back at the current conversation and surface mistakes that should be prevented in the future. See "When to invoke" in the agent body for worked scenarios.

How do I install Conversation Analyzer by anthropics in Claude Code?

Download conversation-analyzer.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Can I use Conversation Analyzer by anthropics in Claude Cowork?

Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

Is Conversation Analyzer by anthropics safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under Apache-2.0. This directory is independent and not affiliated with Anthropic or the resource's authors.