Skip to content

[Epic]: ACP integration #144

Open
Open

Description

@TeseySTD

The first version runs an external ACP agent in a MandoCode pane with a clear boundary from the native agent. This epic tracks the next steps for deeper integration of external agents.

Planned

  • ACP: resume sessions: choose a session and show its history
  • ACP: render markdown (especially links) in agent replies
  • MandoCode MCP server passed to the agent via session/new (mcpServers): expose the agent directory, snapshots and collaboration, which would enable @agent mentions in ACP panes.
  • Context handoff between the native conversation and the ACP conversation.
  • Agent-provided commands (available_commands_update): list them in suggestions with the connected agent’s name (for example [Codex], with [acp-agent] as the fallback) and forward them as prompts. Completed in Feature: discover and run ACP agent commands from autocomplete #147.
  • Image prompts (Alt+V) when the agent advertises promptCapabilities.image. Completed in Feature: paste images into supported ACP agent conversations #148.
  • terminal/* capability (currently not advertised).
  • Restart all ACP panes when the project folder changes (today a pane restarts its own agent).
  • ACP agent mode (exposing MandoCode to editors): separate discussion.

Activity

  1. changed the title [-]Epic: ACP integration[/-] [+][Epic]: ACP integration[/+] on Nov 13, 2026
  2. DevMando commented on Nov 14, 2026

    @DevMando
    Owner

    This is great! 😎

  3. added
    enhancement
    provider
    on Nov 17, 2026
  4. DevMando commented on Nov 19, 2026

    @DevMando
    Owner

    Hey @TeseySTD! I went through this one tonight and checked off the Markdown rendering item 😎

    I pulled latest main (ef602c5) and tested it with Codex ACP on Windows. Headings, bold/italic, bullet and numbered lists, code blocks, blockquotes, and tables all rendered correctly. I also clicked the Markdown link and it opened perfectly in the browser.

    Looking back through the PRs, your original ACP work in #140 already routed completed replies through MandoCode's Markdown renderer. My RazorConsole 0.7.0 update in #141 adapted the formatting and hyperlinks, and #142 added Codex ACP setup, mode controls, the connection card/header improvements, and expandable tool activity. So we already had this covered between those changes!

    This check was for completed replies. If you had a specific issue with the live streaming preview or another rendering case in mind, let me know and we can track that separately. Thanks again for putting this epic together!

  5. DevMando commented on Nov 19, 2026

    @DevMando
    Owner

    Hey @TeseySTD! Another item checked off 😎 Agent-provided command suggestions are now merged in #147.

    Commands announced through available_commands_update show up in autocomplete with their descriptions and input hints, and selecting one forwards it to the connected agent as a prompt with the original arguments preserved. We went with the agent's display name, like [Codex] or [Claude], so it's clear who handles the command; [acp-agent] is the fallback when no name is available.

    The suggestions follow the current session and stay scoped to that pane. MandoCode's own commands keep precedence when names overlap, with /compact keeping its existing ACP behavior.

    I tested it interactively with Codex ACP in Visual Studio, including the labels, and it worked great. Updated the checklist and linked the PR above. Thanks again for laying out the roadmap!

  6. DevMando commented on Nov 19, 2026

    @DevMando
    Owner

    Hey @TeseySTD! Image prompts are now covered too 😎 Merged in #148, and I checked off the item above.

    Alt+V now attaches a clipboard image when the connected ACP agent advertises promptCapabilities.image. Add a question and send it together with the image, or delete its @reference to remove the attachment. The prompt shows the Alt+V hint when image support is available, and agents without support get a clear explanation.

    Images stay in memory within their pane. We check support again at send time, attach duplicate references only once, and explain expired attachments instead of sending a prompt without its image. Limits are 4 MiB per image and 16 MiB total per prompt. Ctrl+V text paste still works for agents without image support.

    I tested this with Codex ACP and it worked great! The selected image, clipboard, and ACP checks also passed on both .NET 10 and .NET 8: 72 passed and one existing symlink test skipped on each. The ACP guides and changelog are updated as well.

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

Metadata

Metadata

Assignees

Labels

enhancementprovider

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions