Skip to content

Droid: use native acp client and support default model and mode#446

Open
kohnish wants to merge 1 commit intoxenodium:mainfrom
kohnish:droid-fix
Open

Droid: use native acp client and support default model and mode#446
kohnish wants to merge 1 commit intoxenodium:mainfrom
kohnish:droid-fix

Conversation

@kohnish
Copy link

@kohnish kohnish commented Mar 23, 2026

Thank you for contributing to agent-shell!

Checklist

  • I agree to communicate (PR description and comments) with the author myself (not AI-generated).
  • I've reviewed all code in PR myself and will vouch for its quality.
  • I've read and followed the Contributing guidelines.
  • I've filed a feature request/discussion for a new feature.
  • I've added tests where applicable.
  • I've updated documentation where necessary.
  • I've run M-x checkdoc and M-x byte-compile-file.

Copy link
Owner

@xenodium xenodium left a comment

Choose a reason for hiding this comment

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

Thank you for the PR. Left you some comments to address. Could you please take a look?

Also, more importantly, have you been using this setup for some time? Is it working better for you? I'm not a droid user, so I wouldn't be a good judge of it. I'm justr trying to be mindful of anyone who's been using the current server and may experience a regression in functionality. Could you please share your experience?


(defcustom agent-shell-droid-acp-command
'("droid-acp")
(list "droid" "exec" "--reasoning-effort" agent-shell-droid-default-reasoning-effort "--output-format" "acp")
Copy link
Owner

Choose a reason for hiding this comment

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

Using agent-shell-droid-default-reasoning-effort here will be problematic. Users may change agent-shell-droid-default-reasoning-effort but the new effort does not become active even after creating a new agent-shell session. Also setting to nil will break the command.

Let's leave this defcustom as it was and instead modify agent-shell-droid-make-client with something like:

(agent-shell--make-acp-client :command (seq-first agent-shell-droid-acp-command)
                              :command-params (append (seq-rest agent-shell-droid-acp-command)
                                                      (when agent-shell-droid-default-reasoning-effort
                                                        (list "--reasoning-effort"
                                                              agent-shell-droid-default-reasoning-effort)))
                              :environment-variables (append ...)
                              :context-buffer buffer)

Copy link
Author

Choose a reason for hiding this comment

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

done!

It can be one of the followings.
none, dynamic, off, minimal, low, medium, high, xhigh, max"
:type '(choice (const nil) string)
:group 'agent-shell)
Copy link
Owner

Choose a reason for hiding this comment

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

We should drop none and accept nil (default value), which signals not to include the setting at all (and document what nil does).

Copy link
Author

Choose a reason for hiding this comment

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

done!

@@ -133,13 +133,13 @@ See https://github.com/mistralai/mistral-vibe for details.

*** Factory Droid
Copy link
Owner

Choose a reason for hiding this comment

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

We need to update install instructions also

Copy link
Author

Choose a reason for hiding this comment

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

done!

@kohnish kohnish force-pushed the droid-fix branch 2 times, most recently from 5e3078d to 5c62d37 Compare March 25, 2026 20:24
@xenodium
Copy link
Owner

Thank you for the changes!

Also, more importantly, have you been using this setup for some time? Is it working better for you? I'm not a droid user, so I wouldn't be a good judge of it. I'm justr trying to be mindful of anyone who's been using the current server and may experience a regression in functionality. Could you please share your experience?

Could you comment on this please?

@kohnish
Copy link
Author

kohnish commented Mar 25, 2026

Thank you for the changes!

Also, more importantly, have you been using this setup for some time? Is it working better for you? I'm not a droid user, so I wouldn't be a good judge of it. I'm justr trying to be mindful of anyone who's been using the current server and may experience a regression in functionality. Could you please share your experience?

Could you comment on this please?

Sorry, I missed your original comment.
I've only used the original commit for a few days and ran better than droid-acp which seems to get stuck for whatever reasons.
I'll test drive with reasoning-effort set tomorrow and let you know.

@xenodium
Copy link
Owner

Thank you! I'll wait for your signal to merge.

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