mentor

mentor is an agent for coding agents from a-ariff/ariff-claude-plugins. It costs 31 tokens per session (1,469 once invoked), scanned A, original, MIT.

A teaching-focused agent that explains programming concepts and guides developers through learning and problem-solving.

In plain words
What is it for?
It is for explaining concepts, reviewing code as a learning exercise, teaching best practices, planning learning paths, and developing problem-solving skills.
Why use it?
It helps turn difficult subjects and code reviews into understandable lessons instead of only giving answers.

Agent

Part of the mentor plugin — 1 agent shipped together

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.

agentmods
npx agentmods add agents/a-ariff/ariff-claude-plugins/mentor
Clone the repo
git clone --depth 1 https://github.com/a-ariff/ariff-claude-plugins

Or install mentor, the plugin that ships this one along with the rest of its 1 agent.

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 mentor

README.md
[![agentmods](https://agentmods.dev/badge/agents/a-ariff/ariff-claude-plugins/mentor.svg)](https://agentmods.dev/agents/a-ariff/ariff-claude-plugins/mentor)
Your own site
<a href="https://agentmods.dev/agents/a-ariff/ariff-claude-plugins/mentor"><img src="https://agentmods.dev/badge/agents/a-ariff/ariff-claude-plugins/mentor.svg" alt="Measured on agentmods" height="20"></a>
Per session 31 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,469 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00031 $0.01469
Opus 5 $0.00015 $0.00734
Sonnet 5 $0.00006 $0.00294
Haiku 4.5 $0.00003 $0.00147

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

Security

Grade A, and why

mentor 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 4d 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/mentor/agents/mentor.md · 255 lines

How it starts

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

Mentor Agent

You are a specialized mentoring agent focused on teaching and guiding developers in their learning journey.

Your Mission

Educate and guide through:

  • Concept Explanation: Break down complex topics
  • Code Review for Learning: Teach through review
  • Best Practices: Share industry standards
  • Learning Paths: Guide skill development
  • Problem-Solving: Teach how to think

Teaching Philosophy

Explain the Why: Not just what, but why Build Understanding: Concepts before code Encourage Exploration: Learn by doing Be Patient: Everyone learns differently Practical Examples: Real-world applications

Teaching Approach

Explain Concepts Clearly

Break Down Complexity:

Complex Topic
  ├─ Core Concept
  │  └─ Simple Example
  ├─ How It Works
  │  └─ Visual/Analogy
  └─ When to Use
     └─ Real Scenario

Use Analogies:

  • "Promises are like restaurant orders..."
  • "Closure is like a backpack..."
  • "Async/await is like waiting in line..."

Visualize:

Stack:
[Function C]  ← Currently executing
[Function B]  ← Waiting
[Function A]  ← Waiting

Heap:
{Object 1} ← {Object 2} ← {Object 3}

Code Review for Learning

// Student code
function calculateTotal(items) {
  let total = 0;
  for (let i = 0; i < items.length; i++) {
    total = total + items[i].price;
  }
  return total;
}

// Mentor feedback
// ✅ Good: Function works correctly!
// ✅ Good: Clear variable names
// ✅ Good: Simple and readable

// 💡 Learning Opportunity:
// This can be simplified using array methods

function calculateTotal(items) {
  return items.reduce((total, item) => total + item.price, 0);
}

// Why this is better:
// 1. More concise (fewer lines)
// 2. Functional programming style
// 3. No mutation (let total)
// 4. Self-documenting (reduce clearly shows aggregation)

// When to use each:
// - Your version: When learning loops, clarity is key
// - This version: Production code, when team knows reduce

Read the full file on GitHub · 255 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. 4d ago First seen · 255 lines · 31 tokens per session scan A 9caaccdb04d2

Subscribe to this mod's changes

mentor is an agent published in the GitHub repository a-ariff/ariff-claude-plugins (14 stars, last pushed 5mo ago), licensed MIT. It adds 31 tokens to every session and 1,469 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-30.

Related

Other agents, from other repositories

tools

Tools give agents the ability to interact with the outside world — reading files, making HTTP requests, connecting to MCP servers, calling APIs, or running custom Python functions. They are configured in the tools list of a role definition. A bare name (- search) enables a tool with defaults; a mapping adds options (…

vladkesler/initrunner · 0 tokens

tool_creation

This guide covers the four ways to extend InitRunner with tools: built-in tools (contributing to InitRunner itself), custom tools (Python modules), declarative API tools (YAML-only), and the plugin registry (distributable packages).

vladkesler/initrunner · 0 tokens

registry

InitRunner's role registry lets you install, share, and discover roles from InitHub and OCI registries. Roles are downloaded, validated, and saved to /.initrunner/roles/ where they integrate automatically with the CLI.

vladkesler/initrunner · 0 tokens

role_generation

InitRunner provides a single initrunner new command for creating role.yaml files. It supports multiple seed modes (templates, AI generation, examples, hub bundles, or local files) and an interactive refinement loop for iterating on the YAML before saving. Run with no arguments in a terminal and it shows a guided start…

vladkesler/initrunner · 0 tokens

services

Services are curated always-on agents: start once, they run on a schedule, report status, and stop without requiring YAML. Built on roles, cron triggers, sinks, and daemon mode — not a separate runtime.

vladkesler/initrunner · 0 tokens

example_tools

This guide shows how to configure each built-in tool type using real examples from examples/roles/. For the full configuration reference (all fields, defaults, types), see tools.md. For writing custom tools and plugins, see toolcreation.md.

vladkesler/initrunner · 0 tokens