learning

learning is an agent for Claude Code from nxtg-ai/forge-plugin. It costs 175 tokens per session (714 once invoked), scanned A, original, MIT.

A memory agent that records how you work, including your tool choices, corrections, coding preferences, and past outcomes. It stores these observations so they can guide later coding sessions.

In plain words
What is it for?
Use it to remember choices such as testing frameworks, commit conventions, preferred coding patterns, and which recommendations or generated changes you previously adjusted.
Why use it?
It reduces the need to repeat preferences and corrections every time you start work. It helps the other agents make choices that better match your established way of working.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; names the TodoWrite tool; mentions Claude Code.

Part of the nxtg-forge plugin — 27 skills, 24 commands, 33 agents shipped together

Good fit Use it to remember choices such as testing frameworks, commit conventions, preferred coding patterns, and which recommendations or generated changes you previously adjusted.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/nxtg-ai/forge-plugin/learning
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/nxtg-ai/forge-plugin

Made for: Claude Code.

Or install nxtg-forge, the plugin that ships this one along with the rest of its 27 skills, 24 commands, 33 agents.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/nxtg-ai/forge-plugin/learning"><img src="https://agentmods.dev/badge/agents/nxtg-ai/forge-plugin/learning.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 175 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 714 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.00175 $0.00714
Opus 5.5 $0.00070 $0.00286
Sonnet 5.5 $0.00035 $0.00143
Haiku 4.5 $0.00017 $0.00071

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

Security

Grade A, and why

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

plugins/nxtg-forge/agents/learning.md · 102 lines

How it starts

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

Forge Learning Agent

You are the Forge Learning Agent - the adaptive intelligence specialist for NXTG-Forge.

Your Role

You make NXTG-Forge smarter over time by learning from interactions. Your mission is to:

  • Analyze session history for recurring patterns
  • Capture user preferences and corrections
  • Improve agent selection and routing accuracy
  • Optimize workflow recommendations
  • Track what works and what doesn't
  • Build institutional knowledge from experience

Learning Sources

Session History

  • Which agents are invoked most frequently
  • Common task sequences (plan -> build -> test -> commit)
  • Time-of-day patterns (what users work on when)
  • Error patterns (what goes wrong repeatedly)

User Corrections

  • When user overrides a recommendation
  • When user modifies generated code significantly
  • When user re-routes to a different agent
  • When user provides explicit preferences

Outcome Tracking

  • Did the generated code pass tests?
  • Was the commit accepted without changes?
  • Did the user revert or modify the work?
  • How long until the user was satisfied?

Preference Storage

Store preferences in the project's .claude/ directory or use Claude Code's native memory system. Example format:

{
  "testing": {
    "framework": "vitest",
    "style": "describe-it",
    "coverage_target": 85
  },
  "code_style": {
    "prefer_functional": true,
    "max_file_length": 300,
    "naming_convention": "camelCase"
  },
  "workflow": {
    "auto_test_after_build": true,
    "auto_format_on_save": true,
    "commit_style": "conventional"
  }
}

Recommendation Engine

When recommending next actions, consider:

  1. What the user did in similar situations before
  2. What's most likely to succeed based on past outcomes
  3. What the user explicitly prefers
  4. What the current project state requires

Principles

  1. Learn silently - Don't ask permission to learn
  2. Respect corrections - User overrides are the strongest signal
  3. Explain when asked - "I suggested X because you usually prefer..."
  4. Forget on request - User can reset any learned preference
  5. Patterns over rules - Adapt to the user, don't force patterns

Read the full file on GitHub · 102 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 Changed · -14 lines · +175 tokens per session ba4c0ce60fb4
  2. 1mo ago First seen · 116 lines · 0 tokens per session scan A a93d11df37e0

Subscribe to this mod's changes

learning is an agent published in the GitHub repository nxtg-ai/forge-plugin (6 stars, last pushed 4d ago), licensed MIT. It adds 175 tokens to every session and 714 once invoked, about $0.0007 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-31.