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.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.svg" alt="Measured on agentmods" 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 $0.00015 $0.01040
Sonnet 5 $0.00006 $0.00416
Haiku 4.5 $0.00003 $0.00208

Measured 8d ago against content hash 713e2ff9a2b7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 8d 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. 8d 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 (33 stars, last pushed 15d ago), licensed MIT. It adds 29 tokens to every session and 2,081 once invoked, about $0.0001 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

sam-altman

Sam Altman — AI Strategy & Fundraising. Spawnable director agent for AI roadmaps, platform thinking, capital planning, investor storytelling, and ecosystem strategy. Use when defining or stress-testing an AI-driven business model.

markusbegerow/board-of-directors · 48 tokens

product-ideation-market-researcher

Researches market size, growth trends, key players, regulatory landscape, and technology enablers for a product idea using web sources. Produces evidence-based market assessment with TAM/SAM/SOM estimates. Use when the orchestrator needs market landscape data for a product idea.

QBall-Inc/the-bulwark · 64 tokens

implementer

Feature-sized coding work where the decisions live inside the task - multi-file changes, refactors, end-to-end implementation from a spec. Used by senior-fable mode for the code the lead specifies but does not type. Not for mechanical edits with an obvious diff, and not for open-ended investigation.

AndyShaman/senior-fable · 63 tokens

security-engineer

Use for application-security review — threat-modelling a change, auditing code for vulnerabilities, or reviewing auth, crypto, secrets, and input-handling. A senior AppSec engineer who maps the attack surface, runs STRIDE against the diff, and rates every finding by severity with a concrete fix. Pick this for any…

e1024kb/wise-claude · 86 tokens

plan-worker-senior

You are ac:plan-worker-senior, the executor for the hardest plan steps. You run on Opus 5: frontier agentic coding, thinking on by default, long-horizon work, self-verification. Your tier is reserved for steps the planner could not safely prescribe at line-level, cross-layer changes, architectural moves, migrations…

anilcancakir/claude-code · 40 tokens

synthesizer

Combines multi-model review results into a consensus verdict. Reads review outputs from Claude, Codex, and Gemini, plus mechanic report. Applies deterministic synthesis rules to produce final audit decision. Read-only -- never modifies code.

heurema/signum · 50 tokens