Prime Agent: A Self-Improving RLM Harness

Seth Karten, Alex L. Zhang, Kevin Thomas, Sebastian Müller, Elie Bakouch, Daniel Auras, Mika Senghaas, Fares Obeid, Konstantin Dunas, Johannes Hagemann, Sami Jaghouar

arXiv:2608.23552 · 2026-08-25 공개 · arXiv · PDF

long-horizon coding-agent subagent arc-agi-3 resource-accounting rhae nanogpt recursive-language-model

Abstract

Language models are sequential processors, but long-horizon agency requires external information and computation beyond model weights and active context. Prime Agent is an open-source harness for long-horizon evaluation and coding-agent workflows. A persistent IPython REPL follows the Recursive Language Model abstraction for programmatic context processing and test-time compute, while Continual Harness preserves histories, memories, skills, prompts, and subagent specifications across trajectories. Recursive subagents coordinate through direct agent-to-agent communication, and the Agents View lets humans inspect and manage daemon-backed sessions. Prime Agent standardizes execution, recovery, verification, and resource accounting while leaving strategy construction to the model. This low-friction, expressive membrane prevents harness failures from becoming model failures and pushes measurement toward the model's true maximal underlying capability. Prime Agent raises ARC-AGI-3 RHAE Best@1 from 30% to 95.5% and matches or exceeds native and popular harnesses across long-context coding, GPU-kernel generation, emulator construction, and autonomous nanoGPT speedruns. On Factorio, we find refinement allows for continuous technology progression and dedicated subagents enable parallelized work. Code is available at https://github.com/PrimeIntellect-ai/prime-agent.

한국어 요약

한 줄 요약

Prime Agent는 장기적 작업을 위한 RLM 기반 오픈소스 에이전트 허브로, ARC-AGI-3 성능을 30%에서 95.5%까지 향상시킨다.

핵심 기여도

핵심 아이디어

Prime Agent는 순차적 처리에 제한된 언어 모델의 한계를 극복하기 위해 외부 정보와 계산을 통합하는 새로운 허브 구조를 제시한다. 이는 **L0 (모델 가중치)**, **L1 (활성 컨텍스트)**, **L2 (지속적 REPL 및 재귀 서브에이전트)**, **L3 (디스크 기반 히스토리, 메모리, 스킬)**의 계층적 정보 관리 체계를 통해 가능하다. 모델은 이 구조를 통해 외부 상태를 읽고, 변환하고, 쓸 수 있어 **von Neumann 구조**에 가까운 동작이 가능해진다.

**Recursive Language Model (RLM)** 추상화를 통해 모델은 프로그래밍 컨텍스트 처리와 테스트 시간 계산을 수행할 수 있으며, **Continual Harness**는 프롬프트, 서브에이전트, 스킬, 메모리 등을 트레젝토리 내에서 수정 가능하게 한다. 이는 모델이 테스트 시간 계산과 정보 관리를 통해 전략 집합을 확장할 수 있도록 한다.

기술적 접근법

주요 결과

의의 및 한계

Prime Agent는 장기적 작업을 위한 표준화된 허브를 제공하며, 모델의 진정한 최대 성능을 측정하는 데 기여한다. 특히, **RLM**과 **Continual Harness**를 통한 정보 및 계산 관리는 모델이 복잡한 작업을 해결하는 데 유리하다. 그러나 현재 모델은 허브 기능을 충분히 활용하지 못하며, **서브에이전트 할당**, **보존 정보 관리**, **재사용 상태 정제** 등에서 여전히 제약이 있다. 향후 모델-허브 공동 학습이 필요하다.

실용적 활용

Prime Agent는 **시스템 구축**, **자율 연구**, **장기적 환경 탐색**, **GPU 커널 생성** 등 다양한 연구 및 산업 분야에서 활용 가능하다. 특히, **Factorio**와 같은 복잡한 시뮬레이션 환경에서 병렬화 작업을 지원하며, **nanoGPT**와 같은 자율 학습 시스템에서도 장기적 실험을 지속적으로 수행할 수 있다.