AI news and explainers at 7 AM weekdays, plus a Sunday weekly at 8Get it in your inbox

METAL LAB

primeintellect-ai/prime-agent

18,661TypeScriptMIT

A coding agent that keeps its lessons after the chat window closes and edits its own notes

Prime Agent is an open-source agent for coding and long-running autonomous work, built around a persistent Python REPL (a live, line-by-line code execution environment) that treats context as variables and sub-agent calls as function calls. A '/refine' command reviews the current work trajectory and applies small, evidence-backed updates to durable state such as extra prompts, memories, and skill descriptions, while leaving the base system prompt untouched. Because it runs as a daemon (a background process), sessions keep going after the terminal disconnects and can be reattached later.

What it does

  1. A persistent Python REPL is the built-in tool: file operations, shell commands, tool use, sub-agents, and context management all happen through code
  2. rlm(...) spawns real child agents for parallel or background work and returns their results programmatically
  3. /refine applies only small, evidence-backed updates to the harness (durable supplemental state) and records history so changes can be rolled back
  4. Skills are importable Python packages, and a built-in skill creator turns recurring workflows into reusable skills
  5. Persistent goals (/goal), heartbeats, schedules, and a bounded autonomous mode (/autonomous) keep long tasks progressing across turns and sessions

Why it matters

It lets long research evaluations or repetitive coding workflows continue without a human staying attached, and lets the agent carry forward what it learned into future sessions. The README explicitly warns this is not a security sandbox, since the agent executes model-generated Python and commands with the user's own permissions.

Terms in this repo

  • RLM (Recursive Language Model) · an approach treating context as variables and sub-agent calls as function calls
  • Continual Harness · durable state that stores supplemental prompts, memories, and skill descriptions across sessions
  • REPL · an interactive environment that executes code line by line and shows results immediately
  • daemon · a background process that keeps running after the terminal disconnects
  • skill · a reusable Python package capturing a recurring workflow

Repository description (English)

A self-improving RLM agent for coding workflows and long-running autonomous tasks.

Open on GitHub

Coverage

Trending repos

All repos →

Latest from METAL LAB