# Uprząż obiektowa

EN: **Object-oriented harness evolution** · id `ooharness` · aliases: OO-Harness, object-oriented harness, hierarchical harness evolution

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) › [Uprząż agenta](https://aiatlasgraph.com/t/agentharness.md) › [Uczenie uprzęży agentów](https://aiatlasgraph.com/t/harnesslearning.md) › Uprząż obiektowa

## Description

- PL: Ewolucja hierarchii klas uprzęży przez dziedziczenie, z routingiem na podstawie śladów wykonania.
- EN: Evolution of a harness class hierarchy via inheritance, with routing from execution traces.

## In one sentence

- PL: Hierarchia programów wokół asystenta: wspólne części dziedziczą, a specjalistyczne podmieniają tylko to, czego potrzebują.
- EN: A hierarchy of programs around an assistant: shared parts are inherited, and specialists override only what they need.

## Problem it solves

- PL: Jedna uprąż działa dobrze na części zadań, ale psuje inne, a osobne uprzęże dublują kod.
- EN: One harness works well on some tasks but breaks others, and separate harnesses duplicate code.

## What it does

- PL: Jak rodzina klas w programie: dziecko bierze kod rodzica i zmienia tylko wybrane metody.
- EN: Like a family of classes in code: a child takes the parent's code and changes only selected methods.

## Everyday example

- PL: Asystent do faktur i do raportów ma wspólną pętlę, ale inny sposób sprawdzania danych; system wybiera odpowiednią wersję na podstawie próby.
- EN: An assistant for invoices and for reports shares the loop but differs in data checks; the system picks the right version from a trial.

## This concerns you if you…

- PL: asystent gubi się na różnych typach zadań w tym samym narzędziu
- PL: chcesz specjalistyczne zachowanie bez kopiowania całego programu
- PL: jedna zmiana uprzęży psuje działanie na innych zadaniach
- EN: the assistant gets lost on different task types in the same tool
- EN: want specialized behavior without copying the whole program
- EN: one harness change breaks other tasks

## Keywords

OO-Harness · object-oriented harness · harness inheritance · harness router · specialized harnesses · execution-trace routing · harness hierarchy

## How it works

- PL: Agent ewolucji klasteryzuje zadania ze śladów, tworzy podklasy dziedziczące od bazy lub istniejących specjalistów i nadpisuje tylko potrzebne metody. Lekcje projektowe i routingu zbierane są z wyników. W teście router wybiera podklasę lub zostawia bazę na podstawie zadania i próby bazowej.
- EN: An evolution agent clusters tasks from traces, creates subclasses inheriting from the base or existing specialists and overrides only needed methods. Design and routing lessons are collected from outcomes. At test time a router selects a subclass or keeps the base from the task and a base trial.

## Limits

- PL: Wymaga wielu wykonań na zestawie odkrywczym i zależy od jakości śladów oraz API środowiska. Na zadaniach spoza dystrybucji może bezpiecznie wrócić do bazy, ale specjalizacja nie przenosi się automatycznie. Dodatkowy koszt routingu i utrzymania hierarchii.
- EN: Requires many executions on a discovery set and depends on trace quality and environment APIs. On out-of-distribution tasks it can safely fall back to the base, but specialization does not transfer automatically. Extra cost for routing and hierarchy maintenance.

## Key terms

- PL: **podklasa uprzęży**: Specjalistyczna wersja programu, która dziedziczy kod i zmienia tylko wybrane części.
- PL: **router uprzęży**: Mechanizm wybierający właściwą wersję programu na podstawie zadania i próby.
- PL: **lekcje routingu**: Notatki z treningu, które mówią, kiedy użyć specjalistycznej wersji.
- EN: **harness subclass**: A specialized version of the program that inherits code and changes only selected parts.
- EN: **harness router**: A mechanism that picks the right program version from the task and a trial.
- EN: **routing lessons**: Notes from training that say when to use a specialized version.

## Know first

- [Prompty i kontekst (Prompting and context engineering)](https://aiatlasgraph.com/t/prompting.md)
- [Zarządzanie oknem kontekstu (Context window management: placement, compaction and context rot)](https://aiatlasgraph.com/t/contextmanagement.md)

## Sources

- [Object-Oriented Harness: Evolving Agent Harnesses through Object-Oriented Design](<https://arxiv.org/abs/2610.28380>) `ooharness-arxiv-2610.28380` · by Gaotang Li et al.

---

AI Atlas revision 124 (2026-10-31) · HTML: https://aiatlasgraph.com/t/ooharness · index: https://aiatlasgraph.com/llms.txt · everything: https://aiatlasgraph.com/llms-full.txt · updated 2026-10-31
