Changes are grouped by software version. Entries under Unreleased describe work awaiting a tagged release.
-
The adapter layout changed: a learner may change every file of an adapter except
.git/and the metadata, and every other limit comes from the template (structure,check) or the Evolver. The metadata moved into.hermit/(adapter.yaml,EVOLVER.md,CARD.md, the template's check file), the exports moved from the manifest'sexportssection intoexports.yamlat the adapter root, learnable unless the template fixes it, and theoriginsection is gone. Hermit no longer loads an adapter in the 0.1 layout (adapter.yamlat the root), including the one a 0.1hermit convertplugin embeds; it names the layout and the steps instead. Migrate with the steps in Migrating from Hermit 0.1, then rebuild converted plugins. The built-in templates'contractis"2". -
One acting agent per coding-agent CLI: the
codexandclaude-codeagents (hermit/agent/acting/workspace.py) take a task's functions (prepare,prompt,answer,collect, asfile.py:function), a container per session (isolation: container;docker/codex/builds the image and the egress proxy), a ChatGPT login (login: chatgpt), retries of runs the provider could not serve, and a fixed record:RunOutput.logis the run'slog/(the host's event stream unchanged, the prompt, the last message, the deployment), the workspace iswork/beside it, andRunOutput.extrahas the same keys for every task (timed_out, notsession_timed_out). A Codex session has a home of its own, so the user's Codex settings no longer apply, and its commands see only Codex's core variables (noPYTHONPATH, no proxy, no keys) unlessshell_env: all; the generic CLI agent passed every variable before. OfficeQA's two Codex wrappers are gone:agent.params.harness: codex(SkillOpt's own Codex harness: the skill asSKILL.md, 180 s sessions, up to 24) andutils/agent/codex_agent.py, withcodex_sandbox.pyandcodex_session.py; every OfficeQA Codex config is the Codex agent withutils/task.py's task functions, one session of up to 3,600 s with the skill asAGENTS.md. The Codex-harness numbers published for no skill, the initial skill, GEPA and SkillOpt were made with SkillOpt's harness (the recipe says which harness made each row). TheOFFICEQA_CODEX_*variables areagent.codex.container(orHERMIT_CODEX_IMAGE,HERMIT_CODEX_NETWORK,HERMIT_CODEX_PROXY). -
Agents are built from three layers (Agent layers): the model (
hermit/agent/model/), a Base Agent (hermit/agent/base/:direct,react,codex,claude) and the Acting or Evolver Agent (hermit/agent/acting/,hermit/agent/evolver/, the methods inhermit/agent/evolver/methods/); the adapter templates are inhermit/adapter/templates/.hermit.backends,hermit.llm,hermit.trajectory,hermit.agentsandhermit.evolverforward to the new modules for one release and warn;hermit.algorithmsandhermit.tools_mcpare gone. -
The Codex and Claude Code agent Evolvers get their tools from the framework's tool server over MCP (streamable HTTP, a token in the URL), no longer from a stdio server that forwarded to the Trainer's endpoint; with
toolsset, the task message names no endpoint URL. Codex runs with aconfig.tomlof the run's own in its home (no--ignore-user-config), and an Evolver's copied sign-in is removed after each call rather than at the end. -
The
claude-codeacting agent runs with a Claude Code home of its own (CLAUDE_CONFIG_DIR, the user's.credentials.jsoncopied in for the session), so the user's Claude Code settings no longer apply, as for Codex. -
The
codexandclaude-codeacting agents and the agent Evolvers refuse to run withoutweb_searchset totrueorfalse(it was off when absent); the built-in Evolvers' defaults set it. -
A ChatGPT login (
login: chatgpt) has one shared copy for every session,~/.cache/hermit/codex-login/, instead of one per run's workspaces; sessions in the rollout sandbox get it from outside and hand their refreshed token back (also when the call was stopped), so a rotated refresh token reaches the next session. The copy takes only a later refresh of a login: a file with alast_refreshahead of now, or no login at all, is left out. -
OfficeQA configs that use the Codex agent are written in the per-layer form; a command-line override of the flat
agent.params.model,login,effort,web_search,timeout_s,isolationorcontaineron them is refused as set twice. Overrideagent.model.*andagent.codex.*instead. -
One deployment for every acting agent: the
codexandclaude-codeagents deploy an adapter ashermit deploydoes, andagent.params.deploy: treeandfilesare gone (a config that sets them is refused; remove the line), withagent.params.reservedandhermit/agent/acting/deploy.py. Each export goes to the host's own place when the host has one; an export it has none for stays a file of the adapter's copy underhermit/<id>/and the context names it (Pi's roles and hooks, which--host piused to refuse), and the context lists the copy's other files, so nothing an adapter holds is out of the agent's reach. An adapter whose context is per task (acontext_tool) is deployed with the task's context; the session calls the deployment's tools without approvals and may start its sub-agents. Paths change with it: the adapter's files are underhermit/<id>/rather than at the workspace root (the context says so), Codex finds skills in.codex/skills/and roles in.codex/agents/, and Continual Harness's memory ishermit/continual-harness/memory/NOTES.md. OfficeQA's Codex numbers published before this were made with the old deployments.exports.yamltakesinternal: the harness's own files (ReHarness's bank and retrieval), neither copied nor named. Thecontinual-harness,harness2-codexandreharnesstemplates are 1.1 (their fixed files changed): a tree made from 1.0 refuses them, so a new run of these templates needs a newtrainer.tree_dir(oroutput_dir). -
The Codex deployment refuses an
AGENTS.mdlonger than Codex reads (project_doc_max_bytes, 32 KiB unless set), which Codex would cut without a word;hermit deploy --context-limitand the agent'sproject_doc_max_bytesset the limit, and the OfficeQA Codex configs set 64 KiB.
-
A ChatGPT login's plan, for every Codex session on it (
hermit/agent/base/login.py): files under~/.cache/hermit/codex-login/plan/pause new sessions (PAUSE), hold them past a usage threshold (MAX_USED) and cap the sessions at once on the machine (SLOTS); each session's report of the plan's usage is kept (plan.json); a session the plan refused is run again once the window resets, never scored; "model is at capacity" is a session the provider could not serve. A session on the login also runs without apps, plugins or browsers. Each window that has not reset counts on its own; a session takes a slot and then checks the plan again; one held back pastplan_max_wait_s(12 h) is unavailable rather than waiting on; the plan directory is the machine's one (plan_dir), shared into the rollout sandbox. -
llm: {cli: codex, isolation: container, ...}: the run's model reached through Codex, for a model only it serves (a ChatGPT login). The Trainer answers each chat call with one session of that Base Agent behind aChatEndpoint(hermit/agent/base/endpoint.py: system messages as instructions, the rest on stdin, the last message as the reply with its usage). A container session takes its prompt on stdin too. -
Harness²'s editors on Codex:
evolver.params.backend: codex(withlogin: chatgptfor a model on the login); the editors are sessions of thecodexBase Agent (Claude Code's effortmaxis Codex'sxhigh), andclaude_binpins either CLI. Codex instructions too long for one command-line argument go at the top of the prompt. -
The OfficeQA Flash row with GPT-5.6-Luna: the seven methods with Codex 0.164.0 and GPT-5.6-Luna acting and learning on a ChatGPT login, a second column of the results table in
examples/officeqa/README.mdand a section of the recipe. Each method'srun_codex_luna.yaml/stream_codex_luna.yamlis its Flash-row config with the models changed;docker/codex/Dockerfile.standalonebuilds the image with a machine's standalone Codex;harness2_stream/launch.shtakesCONFIG=run_codex_luna.yaml. (Ported from PR #54 onto the agent layers.) -
The Base Agent API (
hermit.agent.base.interface):make(name, settings, model).run(prompt, workspace, tools, limits, session, roles) -> Result,configured(**settings),Tooland the tool server, andLimits, which a Base Agent enforces or refuses (Unsupported). Thereactagent's loop is thereactBase Agent; thecodexandclaude-codeacting agents and the agent Evolvers run thecodexandclaudeBase Agents. -
ctx.agent: the run's model as adirectBase Agent, metered against the budget, for every Evolver;hermit.agent.evolver.base.ask(ctx.agent, messages, **sampling)replies as thellmtool does. GEPA, SkillOpt, ReHarness and Continual Harness call it; thellmtool calls the same agent. -
The per-layer form of
agentandevolverin the run config:base,modeland a section named after the base (codex: {...}), read into the flat form, which still works. -
Every method and benchmark runs on the layers. CL-Bench's runner and ServeLearnBench's agent reach their model through a local endpoint over
direct(hermit/agent/base/endpoint.py), which relays each request unchanged to the meter or backend it would have reached (a streamed request is asked whole and streamed back; an error keeps its status, whole body and Retry-After, also for a stream that has not started; an upstream that gave no answer leaves none; a client that hangs up has its call given up upstream). MWM's learner is one call of thecodexBase Agent with MWM's native mounts as its sandbox; each Harness² session is one call of theclaudeBase Agent. The tool gate (hermit.agent.evolver.gate) and MWM's stdiolearner_tools.pyare gone: the call's tool server serves the allowed tools over MCP and as JSON (MW_TOOLSRV). -
OfficeQA's direct chat makes each of SkillOpt's model calls through the
directBase Agent, with SkillOpt's own retry waits (ChatClienttakesretry_waitandretry_wait_max). -
hermit deploycopies the whole adapter (every file but.hermit/and.git/) tohermit/<adapter id>/in the workspace, and the context block says so, with paths inADAPTER.mdrelative to that folder; whatexports.yamldeclares is connected to the host as before. A redeployment replaces the copy, and refuses when a copied file was changed or replaced since or another file is in the way. Training with the built-in Codex and Claude Code agents deploys the same way. -
A
hooksexport: a JSON file in Claude Code's hook schema, deployed to.codex/hooks.jsonor thehooksof.claude/settings.json, each command run from the adapter's copy; Pi refuses it. The built-in Codex agent trusts the hooks its task's deployment wrote (codex execskips untrusted project hooks without a word). No plugin carries hooks yet:hermit convertrefuses an adapter that has them, or with--allow-lossylists them underomitted. -
agentsalso reads<name>/AGENT.mdsubagents (named by their directory). Thecontinual-harnessandharness2-codextemplates declare their skills and subagents, andharness2-codexits hooks, so a deployment connects them. -
hermit.agent.base.trajectory(thenhermit.trajectory): the one reader of the hosts' logs (Codex's--jsonevents, Claude Code's stream-json) as steps. SkillOpt builds its Codex trace summary from them and GEPA a text of them; ReHarness and Continual Harness read them instead of parsing Codex's stream each on its own. -
The ReHarness method (Xiao et al., arXiv:2610.12668): the
reharnessEvolver, one step per instance of an ordered stream, revising the retrieved reflections from their source trajectories and writing the instance's reflection through the run'sllmtool, with Qwen3-Embedding-8B or BM25 retrieval;feedback: falsekeeps the judge's verdict out of what the agents read, for a stream on the label-free footing; documented indocs/methods/reharness.md. -
The
reharnessadapter template: a bank of reflections with a reader that retrieves the top-k for each instance as the adapter's per-task context. -
ReHarness on the CL-Bench examples:
examples/clbench_database/reharness/andexamples/clbench_poker/reharness/(host, learner and embedding meters; one run per order); the hosts read the adapter's context per instance, record what the context tool retrieved, and fall back toADAPTER.mdwhen it fails. -
ReHarness on OfficeQA:
examples/officeqa/reharness/(direct chat, and the Flash row'sstream_codex.yamlandrun_codex_flash.yaml); the OfficeQA Codex agent deploys a context adapter as the session'sAGENTS.md, the Session's context for the question, and records what the adapter's context tool retrieved. -
context_toolinexports.yaml: a declared tool the harness calls once per task with{query, task}, whose text is appended to the context (Session.context(query=..., task=...),session.last_context); hidden from the agent's tools, called by the deploy check with an empty query, refused by the CLI agents; thereactagent records its result asRunOutput.extra["context_tool"]. -
plugin-portablein.hermit/adapter.yaml: a template that sets it tofalsekeeps its adapters inside hermit;hermit deployandhermit convertrefuse them, with the reason, before writing anything. A template whose adapters declare acontext_toolmust set it; thereharnesstemplate does. -
UPSTREAM_KEY_ENVfor the wire meter: a request that arrives without anAuthorizationheader is signed with that variable's key, for a sandboxed reader that holds none. -
The Meta-Harness Adapter method: the outer loop of Meta-Harness (Lee et al., arXiv:2603.28052) with the search confined to the adapter (the acting agent is fixed). The
meta_harness_adapterEvolver, one candidate per step, a Codex or Claude Code proposer that reads every earlier candidate's files, scores and trajectories and writes k new adapters per round, andfinalizehanding back the best mean on the search set; documented indocs/methods/meta_harness_adapter.md. -
The
meta-harness-adapteradapter template: every file outside.hermit/is learnable;.hermit/EVOLVER.mdsays only what an adapter is and thatADAPTER.mdalways reaches the acting agent. -
Meta-Harness Adapter on OfficeQA:
examples/officeqa/meta_harness_adapter/(the Flash row, six rounds of two candidates), with the Codex agent'sdeploy: files, which deploysADAPTER.mdas the session'sAGENTS.mdand every other adapter file at the same path in the workspace. -
docs/framework/adapter.mdstates what every adapter can rely on:.hermit/is fixed andADAPTER.mdreaches the acting agent. -
docker/offline.sh: the examples in a container whose only route out is an egress proxy to the model provider.
- Hermit requires Python 3.12+ (was 3.11+): the upstream Harness² package of the
harness2group supports Python 3.12 and 3.13 only, so--group allfailed on Python 3.11. - The optional Evolvers' dependencies are dependency groups in
pyproject.toml(gepa,skillopt,harness2, andallfor every method), with the same Git commit pins. Install them from a checkout withpython -m pip install -e . --group <name>, which needs pip 25.1+. The groups are not package extras:pip install hermit-harnessinstalls only the core. - An Evolver whose dependencies are missing names both the group command and the pinned requirements, so a user without a checkout can install them.
- The wire meter listens on
BIND(default127.0.0.1; it listened on every interface before), and a relay that signs requests refuses any other address.
requirements.txt,requirements-gepa.txt,requirements-skillopt.txtandrequirements-harness2.txt. Replacepython -m pip install -e . -r requirements-<name>.txtwithpython -m pip install -e . --group <name>; the core dependencies ofrequirements.txtare inpyproject.toml.
- A CLI call without a
homesetting gets a fresh home under$HERMIT_HOMES(default~/.cache/hermit/homes), not in the temporary directory: Codex makes no helper programs for its sandbox in a home there, and no command of such a session ran. - A resumed Codex session (the
codexEvolver withevolver.resume: true) was charged its earlier steps again: Codex reports a thread's running total, which was counted as the step's usage. Each step now counts only what it added. - The trajectory of a Codex session left out its sub-agent calls (
spawn_agent,wait): they aretool_callsteps now, with the prompt the sub-agent was given and its state. packagingis a core dependency. Without it, the sandbox's dependency closure dropped the packages a requirement's extras bring (cryptographythrough mcp'spyjwt[crypto]), so in an environment with only the core installed,hermit.tools_mcpandhermit.runtime.mcp_serverfailed to import inside the sandbox: the Codex and Claude Evolvers' tool server and a sandboxedSession's adapter server did not start.- The sandbox failed to bind uv's version-alias link when the managed interpreter lives inside a granted checkout.
- The sandboxed adapter server lost its channel on a tool result over asyncio's 64 KiB line default.
The first release: the framework as described in the documentation, with the Harness² and Continual Harness reproductions and the OfficeQA Flash row.
- Harness² under the paper's protocol by the upstream code (
harness2_upstream,harness2-codex@1.0,examples/officeqa/harness2_stream/), with Codex as the acting agent. - Continual Harness (
continual_harness,continual-harness@1.0,examples/officeqa/continual_harness/): the paper's four components on Codex's tree, refined from trajectories; a memory file for Codex sessions. - The OfficeQA Flash row: every method on one row of settings, with GEPA and SkillOpt as means of four trainings.
- The developer guide for reproducing a published method.
requirements-gepa.txt,requirements-skillopt.txtandrequirements-harness2.txt: the Git-pinned packages of the optional Evolvers, formerly thegepa,skilloptandharness2extras (PyPI does not accept direct references).- A PyPI description (
README-pypi.md); the package ships the templates' dot-directories.
- The repository is
Infini-AI-Lab/hermit. - The Codex session of the OfficeQA harness runs as the host user (Codex 0.162).
- Require setuptools 77+ for the SPDX license metadata and declared license files.
- Exclude Python bytecode caches from packaged adapter templates and Evolvers.
- Include repository, documentation, issue, and changelog links in package metadata.
- Exclude local design drafts from default documentation builds while retaining them in the local preview.
- Describe MWM bootstrap as step 0 before the first rollout, matching the implementation.
- Contribution and security-reporting guides, software citation metadata, Issue and PR templates, and optional pre-commit file checks.
- Adapter templates and specifications, task execution, an Evolver interface, and a Trainer with learning records, version history, budgets, and recovery.
- GEPA, SkillOpt, MWM, and agent-based learning integrations.
- Workspace deployment and native plugin export for supported hosts and adapter contents.
- Offline and real-model tutorials, benchmark recipes, and a finished Lean collaboration adapter example.
Consult each recipe and adapter card for its evaluation protocol and observed results.