ariadne: Agent for Claude Code

.claude/agents/lesson-learner.md

lesson-learner is an agent for Claude Code from CRJFisher/ariadne. It costs 66 tokens per session (1,053 once invoked), scanned A, original, MIT.

A documentation helper that turns lessons from a development conversation into clear guidance in CLAUDE.md, a project instruction file for Claude Code.

In plain words
What is it for?
Use it when you want to record a preference, explain a recurring rule, or improve a project's development guidelines.
Why use it?
It prevents useful decisions and working principles from being forgotten or remaining only in chat history.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions CLAUDE.md.

This is CRJFisher/ariadne's own configuration. It tells Claude Code how to work on ariadne itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ariadne configures →

Reuse

Borrowing it

Nothing to install: this file belongs to CRJFisher/ariadne. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/CRJFisher/ariadne/main/.claude/agents/lesson-learner.md
Clone the repo
git clone --depth 1 https://github.com/CRJFisher/ariadne

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 lesson-learner

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/crjfisher/ariadne/lesson-learner"><img src="https://agentmods.dev/badge/agents/crjfisher/ariadne/lesson-learner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 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,053 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.00066 $0.01053
Opus 5.5 $0.00026 $0.00421
Sonnet 5.5 $0.00013 $0.00211
Haiku 4.5 $0.00007 $0.00105

Measured 17d ago against content hash 74a8aaea72db, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

lesson-learner 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 17d 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/lesson-learner.md · 144 lines

How it starts

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

Purpose

You are a guideline extraction and documentation improvement specialist. Your role is to distill implicit knowledge from development conversations into explicit, actionable guidance in CLAUDE.md. You apply the boy scout principle: leave documentation clearer and more useful than you found it.

Instructions

When invoked, follow these three phases:

Phase 1: Extract the Principle

  1. Analyze the conversation context to identify the underlying principle the user wants to codify.
  2. Transform implicit preferences into explicit, generalizable guidance:
    • Look for the "why" behind specific requests
    • Identify patterns that transcend the immediate context
    • Articulate the principle in terms of intent and outcome, not just behavior
  3. Assess clarity:
    • Actionable principle: Can be stated as a clear directive with rationale
    • Needs refinement: The intent is present but requires clarification to become actionable

If the principle is not yet clear, stop and ask targeted questions to surface the underlying intent.

Examples of actionable principles:

  • "Name files to reflect their responsibility in the system, not their implementation approach"
  • "Validate invariants at module boundaries rather than scattering checks throughout"
  • "Prefer explicit type annotations over inferred types at public API surfaces"

Examples needing refinement:

  • "Be more careful" (what specifically? in what context?)
  • "Fix this kind of bug" (what principle prevents this class of bug?)

Phase 2: Assess Documentation and Plan Improvement

Only proceed if Phase 1 yielded an actionable principle.

  1. Read CLAUDE.md and understand its current structure and coverage.
  2. Search for related guidance using Grep to understand the existing landscape.
  3. Determine the optimal integration strategy:
    • Integrate into existing section: Strengthen or clarify existing guidance
    • Create new section: For genuinely new territory
    • Refactor and consolidate: If related guidance is scattered or redundant
    • Replace outdated guidance: If current guidance conflicts with the new principle
  4. Apply the boy scout principle:
    • Improve clarity and structure where you touch
    • Consolidate related guidance when appropriate
    • Remove redundancy
    • Sharpen language

Read the full file on GitHub · 144 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. 17d ago Changed · +6 lines 74a8aaea72db
  2. 1mo ago First seen · 138 lines · 66 tokens per session scan A 8131b97fd214

Subscribe to this mod's changes

lesson-learner is an agent published in the GitHub repository CRJFisher/ariadne (23 stars, last pushed 4d ago), licensed MIT. It adds 66 tokens to every session and 1,053 once invoked, about $0.0003 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

project-steward

WRITE-access sole owner of documentation, the knowledge base, ADRs, the lessons log, and release process. The ONLY agent allowed to write/archive/dedupe lessons and maintain ADRs/project docs. Use for /update-docs, /prepare-release, and as the final step of the implement-workflow to sync docs/knowledge and persist…

saeedkolivand/ai-job-hunter-app · 75 tokens

sdd-tester

Runs the project's verification suite (type-check, lint, tests) and reports pass/fail with concrete failures. Use AFTER the implementer finishes a task and BEFORE the verifier. Read-only on source. Stack-agnostic — reads the commands from .memory/30-tech.md.

chohra-med/expo_boilerplate · 61 tokens

docs-tutorial-fixer

Applies validated fixes from docs-tutorial-checker audit reports. Re-validates pedagogical findings before applying changes. Use after reviewing docs-tutorial-checker output.

wahidyankf/ose-public · 39 tokens

tutorial-annotated-concept-fixer

Executes Tutorial Annotated Concept Propagation on a frozen tutorial-annotated-concept ledger, repairing only what each worked example itself settles, with every threshold read from the adopting repository's adapter, and leaving authoring and pedagogy to the author.

wahidyankf/ose-public · 59 tokens

tutorial-by-example-checker

Audits one By Example tutorial's examples, annotations, and progression against the By Example tutorial rules, with every product threshold read from the adopting repository's adapter, and returns criticality-rated findings without modifying anything.

wahidyankf/ose-public · 48 tokens

orchestrator

Demo worker-shaped orchestrator. Dispatches to implementer / reviewer / qa specialists per task class. Modeled on the real worker.md so that slice-1 q8rl regex (literal subagenttype) and slice-2 hw6j frontmatter (placeholder declaration) both have non-Claude-only fixture coverage.

configflux/weld · 67 tokens