Autonomous Lesson Learning logo

Autonomous Lesson Learning

Community
Fmarzochi
autonomous-lesson-learning

Autonomous loop that learns while it runs: recalls stored lessons before each iteration, saves new lessons on failures and wins, and reinforces known lessons instead of repeating mistakes. Orchestrates continuous-agent-loop patterns with the egc-memory lesson tools.

Overview

PublisherFmarzochi
RepositoryEGC
Skill nameautonomous-lesson-learning
Stars
68
Forks
49
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Fmarzochi on GitHub. Read the source before you install it.

Installation

Install the Autonomous Lesson Learning AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Fmarzochi/EGC/tree/main/skills/ai/autonomous-lesson-learning
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Fmarzochi/EGC.git /tmp/EGC
mkdir -p .claude/skills
cp -r /tmp/EGC/skills/ai/autonomous-lesson-learning .claude/skills/autonomous-lesson-learning
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Autonomous Lesson Learning in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Autonomous Lesson Learning on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Autonomous Lesson Learning is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Autonomous Lesson Learning

Run an autonomous work loop that gets smarter every iteration. This skill is pure orchestration: it combines the loop patterns from continuous-agent-loop / autonomous-loops with the lesson_recall, lesson_save, and lesson_reinforce tools from the egc-memory MCP server. It does not reimplement loops and it does not add a new lesson store.

Works in any harness that has the egc-memory MCP server registered (all EGC Tier 1/2/3 targets). Nothing here is platform-specific: the loop is plain instruction-following and the memory calls are standard MCP tool calls.

When to Activate

  • Running a long multi-iteration task autonomously (fix all lint errors, raise coverage, burn down an issue list) where repeating a known mistake is expensive
  • Resuming a class of work that has failed before and the failure modes are worth remembering across sessions
  • Any continuous-agent-loop pattern (Sequential Pipeline, Continuous PR Loop) where you also want cross-session learning

Use a plain loop (/loop-start, continuous-agent-loop) instead when the task is one-off, trivial, or exploratory throwaway work where lessons would be noise.

The Cycle

text
+--------------------------------------------------------+
|  AUTONOMOUS LESSON LEARNING ITERATION                  |
|                                                        |
|  1. RECALL   lesson_recall({ query }) for the current  |
|              step BEFORE acting                        |
|  2. APPLY    adjust the plan using recalled lessons;   |
|              lesson_reinforce({ id }) each lesson that |
|              proved relevant                           |
|  3. ACT      execute one loop iteration (implement,    |
|              test, fix) per continuous-agent-loop      |
|  4. RECORD                                             |
|     - failure -> known lesson matches?                 |
|         yes -> lesson_reinforce({ id })                |
|         no  -> lesson_save({ content, context })       |
|     - new pattern that worked well?                    |
|         -> lesson_save with prescriptive wording       |
|  5. CHECK    stop condition met? done : goto 1         |
+--------------------------------------------------------+

1. Recall before acting

At the start of every iteration, query stored lessons for the area you are about to touch:

lesson_recall({ query: "flaky playwright timeout", limit: 5 })

lesson_recall searches content, context, and tags, and returns lessons ranked by confidence (default floor 0.2). Read the results and adjust the plan before executing. Skipping this step defeats the purpose of the skill.

2. Reinforce what proved relevant

When a recalled lesson applies to the current iteration, or a mistake it describes recurs, reinforce it by the id field returned from lesson_recall:

lesson_reinforce({ id: "<lesson id from lesson_recall>" })

Reinforcement raises confidence by 0.15 (capped at 1.0) and un-archives decayed lessons. Never save a duplicate lesson for a pattern that already exists: recall first, reinforce on match, save only on miss.

3. Save on failure

When an action fails during the loop (a command errors, a test breaks, a fix has to be redone), record what went wrong and why, with a context that says where it applies:

lesson_save({
  content: "npm test hangs when the dashboard watcher is left running; kill the watcher before the suite.",
  context: "test runs in the EGC dashboard package",
  tags: "testing,watcher"
})

Both content and context are required. Keep lessons atomic: one failure mode, one lesson. initial_confidence defaults to 0.7 and only needs overriding for tentative observations.

4. Save wins too

When a new approach works well, save it in positive, prescriptive form so the next loop starts from it:

lesson_save({
  content: "Always regenerate the skill index (scripts/build-skill-index.js) before running the docs tests when a skill was added.",
  context: "adding or renaming skills in the EGC repo",
  tags: "workflow,skills"
})

5. Stop conditions

Inherit the safety rules from continuous-agent-loop: every loop needs an explicit stop condition (max iterations, completion signal, green test suite) and quality gates between iterations. If the same lesson gets reinforced on three consecutive iterations without progress, stop the loop and escalate: that is the "repeated retries with same root cause" failure mode.

Worked Example

Task: "fix every failing test in the suite, autonomously".

  1. lesson_recall({ query: "failing tests <project name>" }) -> a lesson says the fixture DB must be reset between runs (confidence 0.85).
  2. Reset the fixture DB first, then run the suite. The lesson applied: lesson_reinforce({ id }).
  3. Iteration 2: a fix is reverted because it broke an unrelated snapshot. No matching lesson from recall -> lesson_save({ content: "Snapshot tests in pkg X break when locale helpers change; run pkg X snapshots after touching i18n.", context: "test fixing in project Y" }).
  4. Iteration 5: discovered that running the linter before the type checker cuts iteration time in half -> save it as a prescriptive win.
  5. Suite green -> stop condition met -> loop ends.

Division of Labor

SystemMechanismSpeedUse for
autonomous-lesson-learningexplicit MCP calls inside an active loopimmediate, per-iterationmistakes and wins observed while working
continuous-learning-v2passive hook observation, background instinct clusteringslow, cross-sessionbroad behavioral patterns you did not notice yourself
continuous-agent-looploop architecture, gates, recoveryn/athe loop mechanics themselves

autonomous-lesson-learning and continuous-learning-v2 coexist: this skill is the fast, deliberate path (the AI knows it just failed and writes it down); v2 is the slow, passive path (hooks notice patterns the AI missed). Neither replaces the other, and both read from independent stores.

Requirements

  • egc-memory MCP server registered (egc doctor to verify)
  • A loop pattern from continuous-agent-loop with an explicit stop condition

Frequently asked questions

What does the Autonomous Lesson Learning AI skill do?

Autonomous loop that learns while it runs: recalls stored lessons before each iteration, saves new lessons on failures and wins, and reinforces known lessons instead of repeating mistakes. Orchestrates continuous-agent-loop patterns with the egc-memory lesson tools.

Why use Autonomous Lesson Learning on TypingMind?

Because you install it once and use it with any model. Autonomous Lesson Learning is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Autonomous Lesson Learning in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Fmarzochi/EGC/tree/main/skills/ai/autonomous-lesson-learning. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Autonomous Lesson Learning?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Autonomous Lesson Learning?

As many as you like. As long as a model supports skills, you can use Autonomous Lesson Learning with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Autonomous Lesson Learning AI skill free?

Yes. It is published on GitHub by Fmarzochi under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇