Skip to content

Prime Agent chat support #359

Done
Done

Description

@praveng

Problem

Prime Agent works in the terminal view, but it does not have native chat support. A structured conversation view would make longer sessions easier to read, especially on a phone.

Proposal

Would you be open to a PR adding a transcript adapter for Prime Agent?

The first version could:

  • Show user messages and assistant replies, with tool calls and results grouped into the existing chat layout.
  • Follow new messages in the active session.
  • Resolve the transcript for the selected pane.
  • Keep the terminal available as a fallback.

Prime Agent is based on pi, so its session format may be close enough to reuse or adapt the existing pi adapter rather than build one from scratch. The exact record and session-binding differences would need checking first.

Prime saves its sessions locally as JSONL. The adapter would read those files without changing how the agent runs. Approval cards and other interactive features could come later.

Is this scope a good fit, and is there an existing adapter you'd recommend as a reference?

Where

Chat and prompt cards

Workarounds and alternatives

Use Prime's TUI in the terminal view.

Activity

  1. added
    enhancement
    on Oct 17, 2026
  2. devswha commented on Nov 28, 2026

    @devswha
    Owner

    Thanks for proposing this, @praveng, and sorry for the slow reply. We are picking it up ourselves now.

    We looked at Prime Agent 0.10.5: its session files under ~/.prime/agent/sessions/<id>.jsonl use the same v3 JSONL entries as pi (plus a few extra types such as tool_started and the harness_digest custom message), so the existing pi reader can be reused, much as we did for Command Code.

    The work is split in two:

    1. feat(agent-tools): add Prime Agent to the catalog and open it as an ACP child #4939: Prime Agent in the agent catalog (install, version, /login), and agents that may call other agents can start it as an ACP child (prime-agent --mode acp). Prime Agent never asks before it runs code, so it is not selected by default and Settings says so.
    2. Next: the chat view for Prime Agent panes started from a terminal. The open part is proving which session a pane shows, since the conversation lives in the background daemon rather than the pane's own process. Where that cannot be proven, the pane stays a terminal rather than risk showing another pane's chat.

    Thanks again for the pointer to pi's format, which made this much smaller.

  3. devswha commented on Nov 28, 2026

    @devswha
    Owner

    Both parts are in:

    • feat(agent-tools): add Prime Agent to the catalog and open it as an ACP child #4939: Prime Agent is in Settings → Agents (Prime Intellect's install scripts, version, /login), and agents that may call other agents can start it on this PC as an ACP child. Prime Agent never asks before it runs code, so it is not selected by default and Settings says so. Each child gets a background service of its own, stopped when it ends.
    • feat(chat): show a terminal-started Prime Agent's conversation in Chat #4946: on Linux, a Prime Agent started from a terminal shows its conversation in Chat, read with the pi reader. A pane is bound only to the session its Prime Agent window is proven to be connected to, so two panes in one folder each show their own and a session switched with /new, /resume or /fork is followed. Anything unproven, macOS and Windows for now, stays in Terminal.

    Thanks again, @praveng, for the proposal and the pointer to pi's format. Closing; please open a new issue if something does not work with your setup.

  4. devswha commented on Nov 28, 2026

    @devswha
    Owner

    Follow-up: #4947 adds Prime Agent to scripts/harness-drift.ts, so a Prime Agent release past 0.10 (the daemon protocol both parts were measured on) shows up in the drift report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions