Skip to content

[Epic]: ACP integration #144

Done

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

Separate follow-up

ACP agent mode (exposing MandoCode to editors) has been split into its own feature in #153. It remains open there and is outside this completed integration epic.

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 theissue type on Nov 17, 2026
  4. added
    enhancement
    provider
    on Nov 17, 2026
  5. 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!

  6. 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!

  7. 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.

  8. DevMando commented on Dec 2, 2026

    @DevMando
    Owner

    Folder-change work is completed and merged in #150 😎

    We kept this per ACP agent, since each pane can work in a different project. Changing folders restarts only that agent and keeps the transcript. It attempts to continue the session in the new folder; if the adapter starts fresh, you can carry recent text context or start fresh.

    Before the next request, the agent receives a project-change note so it knows to use the new folder and re-read files. The UI now switches directly and uses the same wording as native Ollama conversations, without repeating the connection card or internal acknowledgment.

    Tested interactively with Claude ACP, including remembering a phrase across the folder change and recognizing the new project. The full Release suite passed with 1,966 tests and one existing symlink test skipped.

    Updated and checked off the folder-change item above to reflect the per-agent behavior. Native ↔ ACP context handoff and the separate session-picker/history work remain open.

  9. DevMando commented on Dec 3, 2026

    @DevMando
    Owner

    Quick update: #151 is merged, so the MCP bridge and native ↔ ACP context handoff items are now checked off! 🎉

    This includes:

    • ACP and Ollama agents finding each other through @ mentions, exchanging questions/messages, and delegating background work.
    • The shared snapshot picker with Alt+C or /context-snapshot; ACP snapshots are generated by the connected ACP agent and its current model.
    • Read-only access to enabled MandoCode skills and their referenced text files, including project overrides and disabled-skill handling.
    • Optional recaps when switching agents, generated by the agent being left and delivered with the next request.
    • Cleaner Request/Reply exchanges, the compatible /acp-agent command spelling, and a fix for commands occasionally going missing during startup.

    Validation: 1,990 tests passed with one existing skip, plus manual testing.

    Still open here: the session chooser and earlier-history replay in #145, terminal/* support, and the separate discussion about exposing MandoCode to editors as an ACP agent. Recaps and snapshots don't replace session-history replay, so #145 stays open. Its documentation reference now points to the README.

  10. self-assigned this
    on Dec 3, 2026
  11. DevMando commented on Dec 3, 2026

    @DevMando
    Owner

    Another one checked off! :) Terminal support is completed and merged in #152.

    ACP agents can now run builds, tests, and scripts in MandoCode-managed terminals, with live output and exit status right in the conversation. They can start a command, read its output, wait for it, stop it, and release it when done. The output stays visible after release.

    This works through the five ACP v1 terminal/* methods and the MandoCode MCP bridge, so we don't have to wait for ACP v2. Commands stay scoped to their ACP session, and cancellation, session resets, folder changes, crashes, and pane closure clean up the owned processes without affecting other panes. Terminal access can also be disabled per agent with clientTerminals: false.

    Validated with 2,038 passing tests (one existing skip), a clean Release build, and a manual Codex test that ran dotnet --version, returned 10.0.401 with exit code 0, and released the terminal successfully.

    The remaining items here are the session picker/history work in #145 and the separate ACP agent mode discussion.

  12. DevMando commented on Dec 4, 2026

    @DevMando
    Owner

    Session selection and history are done and merged in #154! :) This also closes #145.

    We can now use /acp-agent <name> --resume to choose an earlier conversation for the current folder, or pass a session ID directly (including with --new-panel). The picker shows readable titles and local dates, hides the workspace/agent bars while choosing, and keeps the controls in the lower-right corner. Escape leaves the current conversation alone.

    When the adapter supports history loading, earlier messages, completed tool activity, and plans are restored. Replay stays display-only, and anything typed while it loads waits until the history is ready. Agents without listing or history-loading support keep the appropriate remembered-session/resume fallback.

    Validated with 2,069 passing tests and one existing skip before the final layout refinement, followed by 71 passing workspace/layout checks, plus successful manual Claude and Codex testing.

    That leaves editor-facing ACP agent mode, now tracked separately in #153, as the remaining unchecked item here.

  13. DevMando commented on Dec 4, 2026

    @DevMando
    Owner

    Closing this one out! :) The external-agent integration work is now complete, including session selection and history in #154, terminal support in #152, collaboration and context handoffs in #151, per-agent folder changes in #150, image prompts in #148, and agent commands in #147.

    Editor-facing ACP agent mode is a larger feature and now has its own issue, #153, so I've moved it out of this epic's unfinished checklist. That work stays open there.

    Thanks for laying out the integration roadmap—this gave us a clear set of improvements to work through!

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

Metadata

Metadata

Labels

enhancementprovider

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions