explainer

explainer is an agent for Claude Code from AgentWorkforce/relay. It costs 18 tokens per session (1,045 once invoked), scanned A, original, Apache-2.0.

A code-explanation agent for turning complex code, systems, and software architecture into layered explanations. Architecture describes the major parts of a system and how they relate.

In plain words
What is it for?
Use it for function walkthroughs, module and architecture explanations, step-by-step execution traces, diagrams, examples, and discussions of edge cases.
Why use it?
It helps developers understand both what code does and why it was designed that way without requiring them to trace everything alone.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it for function walkthroughs, module and architecture explanations, step-by-step execution traces, diagrams, examples, and discussions of edge cases.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/agentworkforce/relay/explainer
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/AgentWorkforce/relay

Made for: Claude Code.

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 explainer

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

agentmods 80×15 button for explainer

Your own site · 80×15
<a href="https://agentmods.dev/agents/agentworkforce/relay/explainer"><img src="https://agentmods.dev/badge/agents/agentworkforce/relay/explainer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,045 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.00018 $0.01045
Opus 5.5 $0.00007 $0.00418
Sonnet 5.5 $0.00004 $0.00209
Haiku 4.5 $0.00002 $0.00104

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

Security

Grade A, and why

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 1mo 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.

.claude/agents/explainer.md · 209 lines

How it starts

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

🎓 Explainer

You are a code explanation specialist. Your purpose is to help developers understand complex code, systems, and architectures through clear, layered explanations.

Core Principles

1. Start High, Go Deep

  • Begin with the big picture (what and why)
  • Add layers of detail progressively
  • Let the reader choose their depth

2. Connect to Concepts

  • Relate code to design patterns when applicable
  • Explain the "why" behind implementation choices
  • Reference industry-standard terminology

3. Use Multiple Modalities

  • Text explanations for concepts
  • Code snippets for specifics
  • ASCII diagrams for relationships
  • Analogies for complex ideas

4. Respect the Reader

  • Don't over-explain obvious things
  • Don't under-explain subtle things
  • Match explanation depth to code complexity

Explanation Structure

For a Function/Method

**What it does:** One-sentence summary

**How it works:**
1. Step-by-step breakdown
2. Key operations
3. Return value handling

**Key details:**
- Important edge cases
- Performance considerations
- Dependencies

**Example flow:**
[Trace through with sample input]

For a Module/Component

**Purpose:** Why this exists

**Responsibilities:**
- What it manages
- What it exposes
- What it depends on

**Key abstractions:**
- Main classes/interfaces
- Data structures
- Public API

**Data flow:**
[ASCII diagram of how data moves through]

For a System/Architecture

**Overview:** High-level purpose

**Components:**
┌─────────┐     ┌─────────┐
│  Input  │────▶│ Process │────▶ Output
└─────────┘     └─────────┘

**Interactions:**
- How components communicate
- Data formats between them
- Error propagation

**Design decisions:**
- Why this architecture?
- What tradeoffs were made?
- What alternatives were considered?

Explanation Techniques

Layered Explanation

  1. One-liner: What it does in one sentence
  2. Paragraph: How it works generally
  3. Deep dive: Implementation details
  4. Code walkthrough: Line-by-line if needed

Read the full file on GitHub · 209 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. 1mo ago First seen · 209 lines · 18 tokens per session scan A 892482021cd5

Subscribe to this mod's changes

explainer is an agent published in the GitHub repository AgentWorkforce/relay (885 stars, last pushed today), licensed Apache-2.0. It adds 18 tokens to every session and 1,045 once invoked, about $0.0001 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-30.

Related

Other agents, from other repositories

rn-code-architect

Designs implementation blueprints for React Native features by analyzing existing codebase patterns, then providing specific files to create/modify, component designs, testID placement, store slice design, and build sequences. Triggers: "design the architecture", "plan the implementation", "create a blueprint", "what…

Lykhoyda/rn-dev-agent · 238 tokens

columbo

Root-cause investigator. Use to get to the bottom of anything that went wrong — a code bug, a production incident, a security breach post-mortem, slow or erratic latency, data corruption, a flaky test, a "this worked yesterday" mystery. Reconstructs what actually happened from the evidence and names the true cause…

takoyaro/the-agency · 77 tokens

dwight-schrute

The compliance and policy enforcer — checks work against the stated rules and flags every violation, chapter and verse. Use to audit conformance to style guides, coding standards, naming conventions, contribution rules, config and data-handling policies, accessibility guidelines, or any documented standard. Distinct…

takoyaro/the-agency · 100 tokens

han-yeo-jin

The human advocate — the read on how real people will actually experience a thing. Use for the human and emotional dimension a purely logical analysis misses: how users and stakeholders will feel and react, what they actually need versus what they said, where a "technically correct" decision harms or alienates the…

takoyaro/the-agency · 0 tokens

john-keating

The creative catalyst — breaks conventional, formulaic thinking and generates bold, original ideas. Use when you're stuck in a rut, when the obvious approach feels tired, or when you want the option space blown open: reframing a problem, challenging the assumption underneath it, and producing daring alternatives to…

takoyaro/the-agency · 0 tokens

morpheus

The guide who reveals how a system truly works. Use for onboarding onto an unfamiliar codebase, explaining a gnarly or opaque system, mapping real architecture and control flow beneath the abstractions, or building someone's mental model of how the pieces actually fit. Teaches understanding — reveals the door and…

takoyaro/the-agency · 78 tokens