Skip to content

Feature: discover and run ACP agent commands from autocomplete - #147

Merged
DevMando merged 2 commits into
mainfrom
feature/acp-command-suggestions
Nov 19, 2026
Merged

DevMando merged 2 commits into
mainfrom
feature/acp-command-suggestions

Conversation

@DevMando

@DevMando DevMando commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Summary

Commands offered by an external ACP agent were missing from MandoCode’s suggestions, and typing them produced an “Unknown command” message. Users can now discover and run the commands offered by their connected agent directly from the prompt.

For example, when Codex advertises review, typing / shows /review with a [Codex] label, its description, and any input hint. Selecting it and entering /review focus on error handling sends that request to Codex with the original arguments preserved.

What changes for users

  • Suggestions identify the connected agent by its display name, such as [Codex] or [Claude], with [acp-agent] as a fallback when no name is available.
  • The list follows the current session and updates when the agent announces a new command list. Commands remain scoped to their pane and disappear when the agent is stopped or the pane returns to the native conversation.
  • MandoCode’s own commands keep precedence when names overlap. /compact retains its existing ACP-agent behavior, and unavailable native features remain unavailable.
  • Busy agents reject another command until the current request finishes. Unadvertised commands continue to receive an unknown-command message.
  • Both autocomplete display paths use the session’s descriptions. The ACP guide and Unreleased changelog document the behavior.

Validation

  • The project owner tested the suggestions and agent-name labels interactively with Codex ACP in Visual Studio and confirmed they work.
  • Focused command/input checks passed on .NET 10 (94 tests) and .NET 8 (95 tests). After the label refinement, all 8 catalog and actual-renderer checks passed on .NET 10, including Codex/Claude names, missing-name fallback, and literal bracket rendering.
  • Regression coverage includes session-list replacement, pane isolation, returning to native mode, argument preservation, name collisions, invalid/duplicate names, and unadvertised commands.
  • Final full suites each completed with 1,938 passed, one skipped, and one failed out of 1,940. The .NET 10 failure was an access-denied error in SkillManagementStoreTests.InstallFolderAndZip_PreserveAssetsAndSkipExistingSkills; it passed when rerun alone. The .NET 8 failure was the previously observed timeout in AcpSessionTests.TheAnnouncedCommands_AreKnown_IncludingCompact; it also passed when rerun alone. Full-suite runs are therefore not claimed as green; CI should be checked before merge.
  • Patch whitespace checks passed.

Contributes the agent-provided command suggestions item in #144. Other adapters’ advertised command sets depend on the adapter; interactive verification here used Codex.

@DevMando
DevMando merged commit eea1422 into main Nov 19, 2026
4 checks passed
@DevMando
DevMando deleted the feature/acp-command-suggestions branch November 19, 2026 06:43
@DevMando DevMando mentioned this pull request Nov 19, 2026
3 of 9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant