Manuscript Offprint

arXiv:2610.31789

Phronix: The Capability-Centric Learning Paradigm for Agents

Hariharan Devarajan, Neeraj Rajesh, Aniruddha Marathe, Nikoli Dryden, Kin Ng, Michela Taufer

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Hariharan Devarajan 1^{1}, Neeraj Rajesh 2^{2}, Aniruddha Marathe 1^{1}, Nikoli Dryden 1^{1}, Kin Ng 3^{3}, and Michela Taufer 3^{3}

1^{1}Lawrence Livermore National Laboratory, 2^{2}Illinois Institute of Technology, and 3^{3}University of Tennessee, Knoxville

hariharandev1@llnl.gov, nrajesh@hawk.iit.edu, marathe1@llnl.gov, dryden1@llnl.gov, kng2@utk.edu, and taufer@utk.edu

Abstract—Scientific computing increasingly relies on large language model-based agents for performance engineering tasks such as instrumentation, analysis, and workflow porting. However, agent effectiveness depends heavily on the surrounding harness, which typically relies on manually written skills and curated memory. This limits autonomous learning, forcing agents to repeatedly rediscover solutions rather than retain and reuse knowledge from prior executions. We introduce Phronix, a capability-centric learning paradigm that enables agentic harnesses to acquire, validate, and refine reusable capabilities from its own executions. Phronix operates through a predictor–validator–corrector loop: MCP tools and associated skills propose solutions, tool executions validate them, and observed outcomes refine the stored capabilities. It distills every observed interaction into a capability store and researches a failing task rather than abandoning it. First, such learned capabilities solve a recurring task on the first attempt in 93–95% of cases across every model, significantly reducing solution non-determinism and reliability. Second, Phronix turns an agent's own execution into 7.6–30.8 durable capabilities per task without user instruction, and creation falls below two once the needed capability exists. Third, a warm-start runs consume only 0.38–0.40 million tokens per task which is three to four times less than a single baseline attempt, while a cold-start costs no more than the baseline. On the 1000 Genome Pegasus workflow, instrumenting a production application for I/O performance analysis, Phronix passes all 11 correctness checks against six for the baseline harness, and also lifts the task solving rates of two cheaper models from 29% and 27% of SWE-bench tasks solved to 91% and 87%, respectively, matching the performance of the most expensive evaluated model.

Index Terms—LLM agents, agent harness, capability learning, Model Context Protocol, agent skills, agent memory, scientific workflows, HPC I/O instrumentation

I. INTRODUCTION

Scientific computing has begun to delegate its routine engineering to large language model (LLM) agents, which autotune HPC code on production supercomputers [1], diagnose parallel I/O performance [2], and work on the repositories and pipelines behind published results [3], [4]. The work delegated there is repetitive rather than novel, such as instrumenting an application, characterizing where a run spends its time, and repeating that for the next application, input scale, and system. An agent, however, is more than a model which operates withing a harness [5], where the LLM proposes each step and observes its result [6], tools exposed through interfaces such as the Model Context Protocol (MCP) [7], [8] let it touch the world, skills accumulate how a class of task is done [9], [10], memory carries what earlier sessions learned past the context window [11], and the harness orchestrates them into the loop the agent runs. An agent that is good at such a task once should be good at it every time, and it is the harness, not the model, that determines whether it is, because the harness governs how much human steering a task requires and how many tokens and retries it consumes. Improving agent effectiveness is consequently as much a harness problem as it is a model problem.

Traditionally, LLMs were accessed through web chat interfaces such as Open WebUI [12], ChatGPT [13], and Claude [14], which wrap a model in a conversation backed by a fixed set of tools [7], [15], [16]. As these interfaces matured, developers built more complex and capable command-line harnesses such as Codex [17] and OpenCode [18], which let users plug in different skills and agents for each task. State-of-the-art harnesses such as Claude Code [10] and Stakpak [19] add memory that persists across sessions, together with rulebooks that curate the standard operating procedure for a class of task. Along this timeline, each harness has become more adaptable than the last, and that adaptation is increasingly carried by skills and memory rather than by the interface itself [9], [11], [20], [21]. All of them are driven primarily by human, who writes the skill or rulebook that a complex task needs before it is assigned.

Despite support for skills and persistent memory, existing harnesses often rely on users to decide what knowledge to retain and reuse, limiting their ability to learn autonomously from completed tasks. For an agent to learn from its own work instead, the harness must overcome three challenges that each keep the user in the learning loop. First, solution non-determinism prevents an agent from reproducing a solution it has already found, because the skills and models of the harness keep changing how they solve the same problem, so a task solved once may be solved differently or not at all when it recurs. Second, manual tracking requires users to identify and preserve useful information from agent executions, so the experience a task produced is lost before it can be reused. Third, manual learning leaves the conversion of that experience into reusable knowledge to a user who must ask for a skill by name, so an agent that repeats a task never becomes better at it. These challenges are particularly significant in scientific computing, where the same instrumentation, performance analysis, and workflow porting recur across applications and systems. Addressing them requires a learning paradigm in which agents organically build, correct, and learn capabilities without waiting for a user to do so on their behalf.

We present Phronix, a learning paradigm that makes building capabilities the first-class citizen of the harness and runs every one of them as a predictor–validator–corrector loop, where a capability generates an artifact, tool-based validation deterministically rules on its correctness, and the findings of that ruling correct the capability for future use rather than working around it. Phronix addresses the three challenges through complementary mechanisms. First, deterministic but intelligent capabilities combine an MCP tool for reproducible execution with a skill that provides contextual judgment and handles corner cases, reducing solution non-determinism. Second, automatic tracking and knowledge creation, captures the inputs, execution steps, and outputs of harness–model interactions and distills them into reusable knowledge without user intervention. Third, continual-learning-based research, investigates failed tasks, incorporates findings into the capability store, and adapts retry effort based on the progress toward a solution. To ensure reliability, a validator admits a capability only if it compiles and is not a duplicate, groups a distilled observation arithmetically rather than asking the model what it meant, and marks a researched approach working only by measurement on held-out instances, while the improvement a task shows between attempts is the convergence criterion that decides whether it continues. Together, these three concepts make Phronix self-learning because it continuously builds, corrects, and reuses capabilities without a user in the loop. This paper makes the following contributions:

  1. We introduce a capability-centric learning paradigm that enables agentic harnesses to autonomously build, validate, refine, and reuse executable capabilities through a predictor–validator–corrector loop, replacing reliance on user-curated memory with learning from execution.

  2. We design deterministic and intelligent capabilities that pair an MCP tool with the skills that provide the contextual judgment and handles corner cases that cannot be coded.

  3. We design automatic tracking that records the input, execution, and output of every harness–model interaction and distills them into skills and MCP tools without user instruction.

  4. We design continual-learning-based research that turns a failing task into research whose outcome, solved or failed, feeds back into the capability store, with an attempt budget that follows measured progress.

  5. We evaluate Phronix on SWE-bench and on an HPC use case, instrumenting the 1000 Genome Pegasus workflow [22], [23] with DFTracer [24] for I/O performance analysis, showing that a warm-start run costs 3.2–3.9× fewer tokens per task than one baseline attempt while lifting the solve rate from 27–65% to 87–91%.

References (31)