Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(cli): add dynamic completions for ssh command#20171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
matifali wants to merge3 commits intomain
base:main
Choose a base branch
Loading
fromcli/ssh-dynamic-completions

Conversation

matifali
Copy link
Member

@matifalimatifali commentedOct 4, 2025
edited
Loading

Adds CompletionHandler to the ssh command that dynamically suggests workspace and agent targets based on the user's running workspaces.

Features:

  • Suggests workspace name for single-agent workspaces
  • Suggests agent.workspace format for all agents in multi-agent workspaces
  • Only shows running workspaces (matches immediate availability)
  • Alphabetically sorted completions for better UX
  • Graceful error handling (returns error strings for debugging)

Tests cover single-agent, multi-agent, and network error scenarios.

Amp-Thread-ID:https://ampcode.com/threads/T-d137d343-53f3-4ece-be5a-584249bbd9e8

closes#20158

Adds CompletionHandler to the ssh command that dynamically suggestsworkspace and agent targets based on the user's running workspaces.Features:- Suggests workspace name for single-agent workspaces- Suggests agent.workspace format for all agents in multi-agent workspaces- Only shows running workspaces (matches immediate availability)- Alphabetically sorted completions for better UX- Graceful error handling (returns error strings for debugging)Tests cover single-agent, multi-agent, and network error scenarios.Amp-Thread-ID:https://ampcode.com/threads/T-d137d343-53f3-4ece-be5a-584249bbd9e8Co-authored-by: Amp <amp@ampcode.com>
Verify that multi-agent workspaces do not suggest the bare workspacename (only agent.workspace format should be suggested).Amp-Thread-ID:https://ampcode.com/threads/T-d137d343-53f3-4ece-be5a-584249bbd9e8Co-authored-by: Amp <amp@ampcode.com>
@matifalimatifali changed the titlecli: add dynamic completions for ssh commandfeat(cli): add dynamic completions for ssh commandOct 4, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ethanndicksonethanndicksonAwaiting requested review from ethanndickson

At least 1 approving review is required to merge this pull request.

Assignees

@matifalimatifali

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Add tab completions tocoder ssh
1 participant
@matifali

[8]ページ先頭

©2009-2025 Movatter.jp