# Trwałe naprawy agentów przez adaptery lekcji

EN: **Persistent agent repair with lesson adapters** · id `selfdirection` · aliases: Self-Direction, self-directed repair, LoRA lesson library

Path: [AI Atlas](https://aiatlasgraph.com/llms.txt) › [Aplikacje LLM i agenci](https://aiatlasgraph.com/t/applications.md) › [Agenci i orkiestracja](https://aiatlasgraph.com/t/agentsnode.md) › Trwałe naprawy agentów przez adaptery lekcji

## Description

- PL: Mechanizm, w którym agent po niepowodzeniu destyluje lekcje z trajektorii do lekkiego adaptera LoRA, zachowując bazowe wagi zamrożone.
- EN: A mechanism in which an agent, after failure, distils a lesson from its trajectory into a lightweight LoRA adapter while keeping base weights frozen.

## In one sentence

- PL: Agent po błędzie wyciąga lekcje i zapisuje ją jako mały adapter, żeby nie powtarzać pomyłki.
- EN: After a failure the agent extracts a lesson and stores it as a small adapter so it does not repeat the mistake.

## Problem it solves

- PL: Asystent naprawia błąd tylko na chwilę, a przy następnym podobnym zadaniu znowu się myli.
- EN: An assistant fixes a mistake only temporarily and repeats it on the next similar task.

## What it does

- PL: Po niepowodzeniu analizuje własną ścieżkę, uczy mały adapter na lekcji i trzyma go w bibliotece do późniejszego użycia.
- EN: After failure it analyses its own path, trains a small adapter on the lesson and keeps it in a library for later use.

## Everyday example

- PL: Agent nie umie paginować wyników wyszukiwania. Po błędzie tworzy adapter, który później pomaga przy podobnych zadaniach zbierania danych.
- EN: An agent fails at paginating search results. After the mistake it creates an adapter that later helps on similar data-gathering tasks.

## This concerns you if you…

- PL: asystent powtarza te same pomyłki w kolejnych sesjach
- PL: chcesz, by doświadczenie z błędów zostawało na dłużej
- PL: masz otwarte modele i możesz trenować małe adaptery
- EN: the assistant repeats the same mistakes across sessions
- EN: want experience from errors to stick longer
- EN: have open models and can train small adapters

## Keywords

Self-Direction · LoRA skill · failure distillation · agent continual learning · adapter library · Qwen agents · GAIA · Terminal-Bench

## How it works

- PL: Po wykryciu błędu agent reflektuje nad trajektorią i generuje przykłady naprawcze. Te przykłady służą do szybkiego treningu adaptera LoRA o niskiej randze (~0,02% parametrów bazy). Adapter trafia do biblioteki i jest routowany do podobnych zadań, a wagi bazowe pozostają nietknięte.
- EN: Upon detecting failure the agent reflects on its trajectory and generates corrective examples. These examples train a low-rank LoRA adapter (~0.02% of base parameters). The adapter joins a library and is routed to similar tasks while base weights stay frozen.

## Limits

- PL: Metoda działa dopiero po wykrytym niepowodzeniu, wymaga treningu i przechowywania osobnego adaptera oraz trafnego routingu lekcji. Publikacja ocenia ją na agentach opartych na otwartych modelach Qwen w trzech zestawach zadań; nie wykazuje jeszcze przenoszenia adapterów między rodzinami modeli.
- EN: The method acts only after a detected failure, requires training and storing a separate adapter, and depends on accurate lesson routing. The paper evaluates Qwen-based open-weight agents on three task suites; it does not yet establish adapter transfer across model families.

## Key terms

- PL: **adapter LoRA**: Mała dodatkowa warstwa, którą dokłada się do modelu bez zmiany głównych wag.
- PL: **biblioteka lekcji**: Zbiór zapisanych adapterów, z których agent wybiera pasujący do zadania.
- PL: **refleksja nad trajektorią**: Analiza własnej ścieżki działań, żeby wyciągnąć, co poszło nie tak.
- EN: **LoRA adapter**: A small extra layer added to the model without changing the main weights.
- EN: **lesson library**: A collection of stored adapters from which the agent selects one matching the task.
- EN: **trajectory reflection**: Analysis of one’s own action path to extract what went wrong.

## Know first

- [Adaptery (małe warstwy wstawiane do modelu) (Adapter modules)](https://aiatlasgraph.com/t/adapters.md)

## Sources

- [Don't Forget What You Just Learned: Self-Directed Repair Turns Agent Mistakes Into Lasting Lessons](<https://arxiv.org/abs/2610.31846>) `kansal-selfdirection-2026` · by Yuval Kansal, Karen Ullrich, Polina Kirichenko, Ilia Kulikov, Niraj K. Jha, Mohammad Pezeshki, Mark Ibrahim

---

AI Atlas revision 122 (2026-10-30) · HTML: https://aiatlasgraph.com/t/selfdirection · index: https://aiatlasgraph.com/llms.txt · everything: https://aiatlasgraph.com/llms-full.txt · updated 2026-10-30
