A self-improving RLM agent for coding workflows and long-running autonomous tasks.
Rust
{"scenario": "happy_path", "direction": "out", "frame": {"jsonrpc": "2.0", "id": 1, "method": "initialize", "params": {"protocolVersion": 1, "clientCapabilities": {}, "clientInfo": {"name": "differential-capture", "title": "Differential Capture", "version": "0.0.1"}}}}
{"scenario": "happy_path", "direction": "in", "frame": {"jsonrpc": "2.0", "id": 1, "result": {"protocolVersion": 1, "agentCapabilities": {"loadSession": false, "promptCapabilities": {"image": true, "embeddedContext": true}, "mcpCapabilities": {"http": true}, "sessionCapabilities": {"close": {}}}, "agentInfo": {"name": "prime-agent", "title": "Prime Agent", "version": "0.9.5"}, "_meta": {"ai.primeintellect.prime-agent": {}}}}}
{"scenario": "happy_path", "direction": "out", "frame": {"jsonrpc": "2.0", "id": 2, "method": "session/new", "params": {"cwd": "/tmp/acp-capture-ts", "mcpServers": []}}}
{"scenario": "happy_path", "direction": "in", "frame": {"jsonrpc": "2.0", "id": 2, "result": {"sessionId": "6b1b87ae-91f2-42c1-b87c-5d592474ec56"}}}
{"scenario": "happy_path", "direction": "out", "frame": {"jsonrpc": "2.0", "id": 3, "method": "session/prompt", "params": {"sessionId": "6b1b87ae-91f2-42c1-b87c-5d592474ec56", "prompt": [{"type": "text", "text": "Reply with exactly: ACP-OK"}]}}}
{"scenario": "happy_path", "direction": "in", "frame": {"jsonrpc": "2.0", "method": "session/update", "params": {"sessionId": "6b1b87ae-91f2-42c1-b87c-5d592474ec56", "update": {"sessionUpdate": "agent_thought_chunk", "messageId": "prime-agent-assistant-1", "content": {"type": "text", "text": "The"}, "_meta": {"ai.primeintellect.prime-agent": {"promptTurnId": 1, "eventSequence": 1, "phase": "event"}}}}}}
{"scenario": "happy_path", "direction": "in", "frame": {"jsonrpc": "2.0", "method": "session/update", "params": {"sessionId": "6b1b87ae-91f2-42c1-b87c-5d592474ec56", "update": {"sessionUpdate": "agent_thought_chunk", "messageId": "prime-agent-assistant-1", "content": {"type": "text", "text": " user"}, "_meta": {"ai.primeintellect.prime-agent": {"promptTurnId": 1, "eventSequence": 2, "phase": "event"}}}}}}
{"scenario": "happy_path", "direction": "in", "frame": {"jsonrpc": "2.0", "method": "session/update", "params": {"sessionId": "6b1b87ae-91f2-42c1-b87c-5d592474ec56", "update": {"sessionUpdate": "agent_thought_chunk", "messageId": "prime-agent-assistant-1", "content": {"type": "text", "text": " wants"}, "_meta": {"ai.primeintellect.prime-agent": {"promptTurnId": 1, "eventSequence": 3, "phase": "event"}}}}}}
{"scenario": "happy_path", "direction": "in", "frame": {"jsonrpc": "2.0", "method": "session/update", "params": {"sessionId": "6b1b87ae-91f2-42c1-b87c-5d592474ec56", "update": {"sessionUpdate": "agent_thought_chunk", "messageId": "prime-agent-assistant-1", "content": {"type": "text", "text": " me"}, "_meta": {"ai.primeintellect.prime-agent": {"promptTurnId": 1, "eventSequence": 4, "phase": "event"}}}}}}
{"scenario": "happy_path", "direction": "in", "frame": {"jsonrpc": "2.0", "method": "session/update", "params": {"sessionId": "6b1b87ae-91f2-42c1-b87c-5d592474ec56", "update": {"sessionUpdate": "agent_thought_chunk", "messageId": "prime-agent-assistant-1", "content": {"type": "text", "text": " to"}, "_meta": {"ai.primeintellect.prime-agent": {"promptTurnId": 1, "eventSequence": 5, "phase": "event"}}}}}}
{"scenario": "happy_path", "direction": "in", "frame": {"jsonrpc": "2.0", "method": "session/update", "params": {"sessionId": "6b1b87ae-91f2-42c1-b87c-5d592474ec56", "update": {"sessionUpdate": "agent_thought_chunk", "messageId": "prime-agent-assistant-1", "content": {"type": "text", "text": " reply"}, "_meta": {"ai.primeintellect.prime-agent": {"promptTurnId": 1, "eventSequence": 6, "phase": "event"}}}}}}
{"scenario": "happy_path", "direction": "in", "frame": {"jsonrpc": "2.0", "method": "session/update", "params": {"sessionId": "6b1b87ae-91f2-42c1-b87c-5d592474ec56", "update": {"sessionUpdate": "agent_thought_chunk", "messageId": "prime-agent-assistant-1", "content": {"type": "text", "text": " with"}, "_meta": {"ai.primeintellect.prime-agent": {"promptTurnId": 1, "eventSequence": 7, "phase": "event"}}}}}}
{"scenario": "happy_path", "direction": "in", "frame": {"jsonrpc": "2.0", "method": "session/update", "params": {"sessionId": "6b1b87ae-91f2-42c1-b87c-5d592474ec56", "update": {"sessionUpdate": "agent_thought_chunk", "messageId": "prime-agent-assistant-1", "content": {"type": "text", "text": " exactly"}, "_meta": {"ai.primeintellect.prime-agent": {"promptTurnId": 1, "eventSequence": 8, "phase": "event"}}}}}}
{"scenario": "happy_path", "direction": "in", "frame": {"jsonrpc": "2.0", "method": "session/update", "params": {"sessionId": "6b1b87ae-91f2-42c1-b87c-5d592474ec56", "update": {"sessionUpdate": "agent_thought_chunk", "messageId": "prime-agent-assistant-1", "content": {"type": "text", "text": ":"}, "_meta": {"ai.primeintellect.prime-agent": {"promptTurnId": 1, "eventSequence": 9, "phase": "event"}}}}}}
{"scenario": "happy_path", "direction": "in", "frame": {"jsonrpc": "2.0", "method": "session/update", "params": {"sessionId": "6b1b87ae-91f2-42c1-b87c-5d592474ec56", "update": {"sessionUpdate": "agent_thought_chunk", "messageId": "prime-agent-assistant-1", "content": {"type": "text", "text": " A"}, "_meta": {"ai.primeintellect.prime-agent": {"promptTurnId": 1, "eventSequence": 10, "phase": "event"}}}}}}
{"scenario": "happy_path", "direction": "in", "frame": {"jsonrpc": "2.0", "method": "session/update", "params": {"sessionId": "6b1b87ae-91f2-42c1-b87c-5d592474ec56", "update": {"sessionUpdate": "agent_thought_chunk", "messageId": "prime-agent-assistant-1", "content": {"type": "text", "text": "CP"}, "_meta": {"ai.primeintellect.prime-agent": {"promptTurnId": 1, "eventSequence": 11, "phase": "event"}}}}}}
{"scenario": "happy_path", "direction": "in", "frame": {"jsonrpc": "2.0", "method": "session/update", "params": {"sessionId": "6b1b87ae-91f2-42c1-b87c-5d592474ec56", "update": {"sessionUpdate": "agent_thought_chunk", "messageId": "prime-agent-assistant-1", "content": {"type": "text", "text": "-"}, "_meta": {"ai.primeintellect.prime-agent": {"promptTurnId": 1, "eventSequence": 12, "phase": "event"}}}}}}
{"scenario": "happy_path", "direction": "in", "frame": {"jsonrpc": "2.0", "method": "session/update", "params": {"sessionId": "6b1b87ae-91f2-42c1-b87c-5d592474ec56", "update": {"sessionUpdate": "agent_thought_chunk", "messageId": "prime-agent-assistant-1", "content": {"type": "text", "text": "OK"}, "_meta": {"ai.primeintellect.prime-agent": {"promptTurnId": 1, "eventSequence": 13, "phase": "event"}}}}}}
{"scenario": "happy_path", "direction": "in", "frame": {"jsonrpc": "2.0", "method": "session/update", "params": {"sessionId": "6b1b87ae-91f2-42c1-b87c-5d592474ec56", "update": {"sessionUpdate": "agent_message_chunk", "messageId": "prime-agent-assistant-1", "content": {"type": "text", "text": "ACP"}, "_meta": {"ai.primeintellect.prime-agent": {"promptTurnId": 1, "eventSequence": 14, "phase": "event"}}}}}}
{"scenario": "happy_path", "direction": "in", "frame": {"jsonrpc": "2.0", "method": "session/update", "params": {"sessionId": "6b1b87ae-91f2-42c1-b87c-5d592474ec56", "update": {"sessionUpdate": "agent_message_chunk", "messageId": "prime-agent-assistant-1", "content": {"type": "text", "text": "-OK"}, "_meta": {"ai.primeintellect.prime-agent": {"promptTurnId": 1, "eventSequence": 15, "phase": "event"}}}}}}
{"scenario": "happy_path", "direction": "in", "frame": {"jsonrpc": "2.0", "method": "session/update", "params": {"sessionId": "6b1b87ae-91f2-42c1-b87c-5d592474ec56", "update": {"sessionUpdate": "session_info_update", "_meta": {"ai.primeintellect.prime-agent": {"terminalQuiescenceExpected": true, "promptTurnId": 1, "eventSequence": 16, "phase": "responseBoundary", "outcome": "result"}}}}}}
{"scenario": "happy_path", "direction": "in", "frame": {"jsonrpc": "2.0", "method": "session/update", "params": {"sessionId": "6b1b87ae-91f2-42c1-b87c-5d592474ec56", "update": {"sessionUpdate": "session_info_update", "_meta": {"ai.primeintellect.prime-agent": {"quiescence": {"outstandingSubagents": 0, "remainingAutonomousContinuations": 0}, "promptTurnId": 1, "eventSequence": 17, "phase": "event"}}}}}}
{"scenario": "happy_path", "direction": "in", "frame": {"jsonrpc": "2.0", "method": "session/update", "params": {"sessionId": "6b1b87ae-91f2-42c1-b87c-5d592474ec56", "update": {"sessionUpdate": "session_info_update", "_meta": {"ai.primeintellect.prime-agent": {"quiescence": {"outstandingSubagents": 0, "remainingAutonomousContinuations": 0}, "promptTurnId": 1, "eventSequence": 18, "phase": "terminalQuiescence", "outcome": "result"}}}}}}
{"scenario": "happy_path", "direction": "in", "frame": {"jsonrpc": "2.0", "id": 3, "result": {"stopReason": "end_turn"}}}
{"scenario": "happy_path", "direction": "out", "frame": {"jsonrpc": "2.0", "id": 4, "method": "session/close", "params": {"sessionId": "6b1b87ae-91f2-42c1-b87c-5d592474ec56"}}}
{"scenario": "happy_path", "direction": "in", "frame": {"jsonrpc": "2.0", "id": 4, "result": {}}}
{"scenario": "happy_path", "direction": "meta", "frame": {"exitCode": 0, "stderr": "Warning: (startup session lookup, global settings) ENOTDIR: not a directory, rmdir '/home/ubuntu/.prime/agent/settings.json.lock'\n"}}