Skip to content

Conversation

@tulga-bytes
Copy link

Summary

This PR adds client identification to the ACP initialize request so that when agent-shell connects to an ACP server, it identifies itself properly.

Changes

In the agent-shell--initiate-handshake function, the initialize request now includes a clientInfo object with:

  • name: "agent-shell" - for programmatic/logical use
  • title: "Agent Shell" - for UI/end-user contexts
  • version: dynamically uses the agent-shell--version constant

Protocol Reference

This follows the ACP protocol specification which defines clientInfo as part of the initialize request params.


Pull Request opened by Augment Code with guidance from the PR author

Add client identification to the ACP initialize request so that
when agent-shell connects to an ACP server, it identifies itself
with name 'agent-shell', title 'Agent Shell', and the current
package version.

This follows the ACP protocol specification which includes
clientInfo in the initialize request params.
(cons `(clientInfo . ((name . "agent-shell")
(title . "Agent Shell")
(version . ,agent-shell--version)))
params))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's extend acp-make-initialize-request in acp.el (adding a :client-info param). It would simplify usage from agent-shell.

Mind submitting a PR to https://github.com/xenodium/acp.el first? It would enable agent-shell usage like:

(acp-make-initialize-request
 :protocol-version 1
 :client-info `((name . "agent-shell")
                (title . "Agent Shell")
                (version . ,agent-shell--version))
 :read-text-file-capability agent-shell-text-file-capabilities
 :write-text-file-capability agent-shell-text-file-capabilities)

@xenodium
Copy link
Owner

xenodium commented Jan 9, 2026

Thanks for the PR! We can likely split this PR into two. One in agent-shell and another in acp.el simplify usage between the two. Left a comment with more details.

@xenodium
Copy link
Owner

Hi @tulga-bytes Just checking in here... still keen to get this in?

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.

2 participants