Skip to content

[Story] AF1. Host coding agents through the Agent Client Protocol #266

Backlog

Description

@aMonteSl

As a developer who already pays for Claude, ChatGPT or Gemini, I want the IDE to run the official Claude Code, Codex and Gemini CLI agents, so that I use my subscription (or my API key) inside Code-XR without paying twice.

Acceptance criteria

  • The main process spawns an ACP agent over stdio (@agentclientprotocol/sdk, protocol v1) with no shell, a minimal environment, and the open folder as cwd.
  • initialize, session/new, session/prompt, session/cancel and session/load work; session/update events (message and thought chunks, tool calls and updates with diffs, plan, available commands, modes and config options) reach the renderer through a typed IPC contract.
  • fs/read_text_file is served from the editor's unsaved buffers when the file is open; fs/write_text_file writes through the IDE and records the original for review (AF5).
  • terminal/* runs commands for the agent; output is shown in the tool card.
  • session/request_permission shows the approval card (allow once / always / reject); "always" is remembered per agent and tool kind.
  • Authentication: methods are shown with the vendor's wording; terminal logins run in the IDE terminal; the IDE never reads or stores vendor OAuth tokens; API keys go to the OS keychain.
  • No agent starts in Restricted Mode ([Story] Workspace trust before running anything from a folder #177).
  • Unit tests with an in-process fake agent; the smoke run starts nothing.
  • Plugin 1.3.0: the ACP client core has no Electron or vscode imports, so the extension can reuse it.

Epic: #265

Activity

  1. added
    tfm
    user-story
    on Nov 27, 2026
  2. added
    area: ide
    area: extension
    on Nov 27, 2026
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

    area: ai-agentsarea: extensionarea: idestream: ide-agent-firsttfmuser-story

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions