Agent-readable docs
Prime Agent Documentation
Technical reference for the Prime Agent monorepo: RLM control plane, continual harness, sessions, skills, daemon and ACP modes, multi-provider auth, and the coding-agent SDK surface.
Pages
- OverviewWhat Prime Agent exposes, primary entry points (CLI, SDK, modes), runtime assumptions, and the first docs routes to follow.
- InstallationStable install command, release checksum flow, prime-agent binary placement, IPython runtime prep, and first-launch success signals.
- QuickstartStart prime-agent in a project directory, complete onboarding, run a first task, and verify interactive session health.
- Authentication and providersLogin and API-key paths, multi-provider selection, OAuth examples, auth error recovery, and BYOK provider boundaries.
- RLM control planeRecursive Language Model model: persistent IPython as the control tool, prompt-as-variable context, and rlm(...) subagent calls.
- Continual HarnessDurable harness state (prompts, memories, skill specs, subagent specs), refine boundaries, immutable base prompt, and rollback snapshots.
- Sessions and runtimeAgent session lifecycle, session services, runtime events, queueing, tree navigation, and session-scoped vs durable state.
- Skills modelSkills as importable Python packages, SKILL.md frontmatter constraints, collision precedence, and project vs personal skill scope.
- Subagents and messagingrlm-spawned child agents, agent-message skill surface, direct agent-to-agent communication, and multi-agent orchestration constraints.
- Run daemon-backed sessionsBackground daemon client modes, active session state, detach and reattach, resume selectors, and worker recovery verification.
- Create and install skillsAuthor a skill package with skill-creator, required SKILL.md fields, Python package layout, and load-path verification.
- Refine harness stateRun /refine against the current trajectory, apply evidence-backed harness updates, serialize refine, and use snapshots for rollback.
- Long-running tasksGoals, compaction, heartbeats, autonomous mode, and retained subagents that keep multi-turn work progressing across disconnects.
- Use ACP modeRun the Agent Client Protocol mode, map cold CLI launch, feature flags, stop reasons, and cwd constraints for editor integrations.
- Extensions and custom toolsRegister extensions, custom tools, plan-mode and subagent extension samples, allowlists, and dynamic resource patterns.
- Session configuration referenceAgent session config keys, defaults, reload behavior, in-memory settings, and config surfaces used by runtime services.
- Settings and provider keysProvider registration, model selection, API key and OAuth wiring, dynamic provider updates, and 401 stale-provider recovery.
- Built-in skills referenceCatalog of shipped skills (goal, refine, compact, heartbeat, observe, message, edit, integrations) with entry modules and invocation roles.
- Agent connection modesDaemon, in-process, and snapshot connection paths; agents-view mode; active session state and transfer idempotency constraints.
- ACP protocol referenceACP mode entrypoints, event types, meta fields, stop reasons, kernel features, and protocol-facing constraints from source and tests.
- Minimal SDK agentCopy-paste minimal SDK bootstrap, custom prompt and model wiring, and expected first-run output from examples.
- Skills, tools, and extensionsSDK recipes for loading skills, registering tools, extensions, context files, prompt templates, and subagent extension wiring.
- Sessions and full controlSDK session management, settings injection, session runtime hooks, and the full-control composition example.
- TroubleshootingAuth failures, invalid resume selectors, provider 401s, network retry, worker recovery, and connection-mode failure probes.
- Develop from sourceMonorepo workspaces, build and check scripts, package boundaries (ai, agent, coding-agent, tui), and contributor conventions from AGENTS.md.
Complete Markdown
The complete agent-readable Markdown files are published separately from this HTML page.