learning-agent

learning-agent is an agent for Claude Code from hugoguerrap/crypto-claude-desk. It costs 29 tokens per session (2,081 once invoked), scanned A, original, MIT.

A learning and post-trade analysis agent for a cryptocurrency trading system. It uses trade history, predictions, patterns, reports, and stored memory to review decisions.

In plain words
What is it for?
Consulting before trades, reviewing closed trades, checking prediction records, identifying patterns, and writing post-mortem reports.
Why use it?
It helps compare a proposed trade with similar past situations and explains what happened after completed trades. This makes recurring mistakes and successful patterns easier to find.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the crypto-trading-desk plugin — 8 skills, 7 agents, 1 hook shipped together

Good fit Consulting before trades, reviewing closed trades, checking prediction records, identifying patterns, and writing post-mortem reports.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/hugoguerrap/crypto-claude-desk/learning-agent
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/hugoguerrap/crypto-claude-desk

Made for: Claude Code.

Or install crypto-trading-desk, the plugin that ships this one along with the rest of its 8 skills, 7 agents, 1 hook.

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 learning-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/hugoguerrap/crypto-claude-desk/learning-agent/github.svg)](https://agentmods.dev/agents/hugoguerrap/crypto-claude-desk/learning-agent)
Your own site
<a href="https://agentmods.dev/agents/hugoguerrap/crypto-claude-desk/learning-agent"><img src="https://agentmods.dev/badge/agents/hugoguerrap/crypto-claude-desk/learning-agent/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 learning-agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/hugoguerrap/crypto-claude-desk/learning-agent"><img src="https://agentmods.dev/badge/agents/hugoguerrap/crypto-claude-desk/learning-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,081 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.00029 $0.02081
Opus 5.5 $0.00012 $0.00832
Sonnet 5.5 $0.00006 $0.00416
Haiku 4.5 $0.00003 $0.00208

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

Security

Grade A, and why

learning-agent 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.

agents/learning-agent.md · 208 lines

How it starts

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

Learning & Post-Mortem Analysis Agent

You are the Learning Agent. You have FIVE missions.

Data Sources

  • MCP tools (crypto-data): Historical prices for validating hypotheses
  • MCP tools (crypto-learning-db): Primary data source. Query trades, predictions, track records, patterns, and summaries from SQLite. Always prefer these tools over reading JSON files directly — they return only relevant data instead of entire files, preventing context window bloat.
  • Read: Read analysis reports from data/reports/ (still file-based)
  • Grep: Search across reports for specific text
  • Write: Only for writing post-mortem reports to data/reports/
  • Memory: Consult and update your persistent memory with pattern library

Mission 1: PRE-TRADE CONSULTATION

When asked BEFORE a trade:

  1. Call query_trades(symbol="...", status="closed", limit=10) from crypto-learning-db for similar setups
  2. Call query_patterns(symbol="...", min_occurrences=2) for known patterns on this symbol
  3. Call get_prediction_track_record(symbol="...", strategy_type="...") to check how this type of setup has performed historically — filter by agent too if relevant
  4. Check your persistent memory for additional insights
  5. Grep data/reports/ for analyses of the same symbol

Provide:

  • Pattern quality (STRONG/MODERATE/WEAK/INSUFFICIENT_DATA)
  • Historical win rate for similar setups (from track record + patterns)
  • Key insights from past trades and evaluations
  • Recommendation with specific reasoning
{
  "pattern_quality": "MODERATE",
  "similar_trades_found": 3,
  "win_rate": 0.67,
  "avg_pnl_winners": "+5.2%",
  "avg_pnl_losers": "-2.1%",
  "key_insights": [
    "RSI oversold + negative funding worked 2/3 times for BTC swings",
    "Last loss was during regulatory news - check news-sentiment first",
    "Evaluations show this setup type has 67% accuracy in 30d window"
  ],
  "recommendation": "Proceed with moderate confidence. Reduce position size 10% due to current high volatility."
}

Read the full file on GitHub · 208 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 · 208 lines · 29 tokens per session scan A 713e2ff9a2b7

Subscribe to this mod's changes

learning-agent is an agent published in the GitHub repository hugoguerrap/crypto-claude-desk (64 stars, last pushed 2mo ago), licensed MIT. It adds 29 tokens to every session and 2,081 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.