Infini-AI-Lab/hermit
A framework for continual learning and recursive self-improvement through harness adapter evolution.
What it solves
Agents typically consist of a model and a surrounding "harness" — the logic that handles prompts, tool use, memory, and coordination. Both are often black boxes: even open-source harnesses have carefully designed internal interactions that direct modification can break. Hermit solves this by introducing a harness adapter — a trainable external layer that plugs into an existing agent and learns from task feedback, so you can adapt the agent to new scenarios without touching its original model or harness.
How it works
Hermit provides a unified training loop for evolving harness adapters. The acting agent runs tasks, and task feedback is collected and passed to an Evolver — a method that proposes adapter updates. Updates are checked and committed as new adapter versions, and the process repeats. The framework supports multiple harness evolution algorithms (GEPA, SkillOpt, MetaWorld Model, Harness², Continual Harness, ReHarness, Meta-Harness Adapter, and more). You can run everything from the command line (e.g., hermit train, hermit eval, hermit deploy) or customize the loop in Python. A quick-start demo trains an adapter offline with no model account or GPU, and deployed adapters can be converted into native plugins for hosts like Codex, Claude Code, PI, and Hermes.
Who it's for
Hermit is for developers and researchers who want to adapt existing AI agents to new tasks without retraining the underlying model or rewriting the agent's harness. It's also for those who want to deploy pre-trained adapters, train adapters on their own tasks and feedback, or develop and compare new harness-evolution methods on shared task pipelines.
Highlights
- Non-invasive adaptation: evolve an external adapter while leaving both model and harness unchanged, even when they are closed-source black boxes.
- Transferable and trainable: adapters work across compatible models and harnesses, and learn from task feedback.
- Multiple evolution methods: supports GEPA, SkillOpt, MetaWorld Model, Harness², Continual Harness, ReHarness, Meta-Harness Adapter, and more, with ACE coming soon.
- Easy start: an offline quick-start demo (no GPU, no dataset download) verifies the training contract, and a deploy command turns a trained adapter into a plugin for common agent hosts.
Related
- Project
- Project
- Project
- Project