René's URL Explorer Experiment


Title: feat(cli): add dynamic completions for ssh command by matifali · Pull Request #20171 · coder/coder · GitHub

Open Graph Title: feat(cli): add dynamic completions for ssh command by matifali · Pull Request #20171 · coder/coder

X Title: feat(cli): add dynamic completions for ssh command by matifali · Pull Request #20171 · coder/coder

Description: 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 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 Demo: completiondemo.mov

Open Graph Description: 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 works...

X Description: 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 w...

Opengraph URL: https://github.com/coder/coder/pull/20171

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:c81a429e-8993-986d-4724-aaf1f7a78396
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8EFE:11EACE:21103AE:2C1AC9D:6B0183FC
html-safe-nonce0113ad5f581636be76380588ec5af6b31dbb577de0b746d740b1ae2e0748f6f9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RUZFOjExRUFDRToyMTEwM0FFOjJDMUFDOUQ6NkIwMTgzRkMiLCJ2aXNpdG9yX2lkIjoiNDc2Mzg5MTk2NDYxMTQ5NDkwOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace02d67e6de78589724232929cc61f85b160d9e6adbc1d4d65d9eb1797b5aabe0
hovercard-subject-tagpull_request:2887126942
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/coder/coder/pull/20171/files
twitter:imagehttps://avatars.githubusercontent.com/u/10648092?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/10648092?s=400&v=4
og:image:altAdds 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 works...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/coder/coder git https://github.com/coder/coder.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id440752086
octolytics-dimension-repository_nwocoder/coder
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id440752086
octolytics-dimension-repository_network_root_nwocoder/coder
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/coder/coder/pull/20171/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F20171%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F20171%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=coder%2Fcoder
Reloadhttps://github.com/coder/coder/pull/20171/files
Reloadhttps://github.com/coder/coder/pull/20171/files
Reloadhttps://github.com/coder/coder/pull/20171/files
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests470 (470)https://github.com/coder/coder/pulls
Discussionshttps://github.com/coder/coder/discussions
Actionshttps://github.com/coder/coder/actions
Projectshttps://github.com/coder/coder/projects
Security and quality49 (49)https://github.com/coder/coder/security
Insightshttps://github.com/coder/coder/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fcoder%2Fcoder%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fcoder%2Fcoder%2Fissues%2Fnew%2Fchoose
ethanndicksonhttps://github.com/ethanndickson
mainhttps://github.com/coder/coder/tree/main
cli/ssh-dynamic-completionshttps://github.com/coder/coder/tree/cli/ssh-dynamic-completions
Conversation 15 https://github.com/coder/coder/pull/20171
Commits 6 https://github.com/coder/coder/pull/20171/commits
Checks 0 https://github.com/coder/coder/pull/20171/checks
Files changed https://github.com/coder/coder/pull/20171/files
Please reload this pagehttps://github.com/coder/coder/pull/20171/files
feat(cli): add dynamic completions for ssh command https://github.com/coder/coder/pull/20171/files#top
Show all changes 6 commits https://github.com/coder/coder/pull/20171/files
6e15bbb cli: add dynamic completions for ssh command matifali Oct 4, 2025 https://github.com/coder/coder/pull/20171/commits/6e15bbbe2bece13322cf5c9e72c27c02eb42ec97
fda486a cli: improve multi-agent test assertion matifali Oct 4, 2025 https://github.com/coder/coder/pull/20171/commits/fda486ac6131d3284a50a824cc0b15e2ba6d90ab
99094da cli: fix formatting in ssh completion handler matifali Oct 4, 2025 https://github.com/coder/coder/pull/20171/commits/99094daecbddeae94ec7251237c9b1125ad79982
cb0efd9 Merge branch 'main' into cli/ssh-dynamic-completions matifali Oct 24, 2025 https://github.com/coder/coder/pull/20171/commits/cb0efd9db9f7d781c39f87ba7af77134ed518727
610e760 wip ethanndickson Oct 24, 2025 https://github.com/coder/coder/pull/20171/commits/610e76015400e62535f75a696f80cee93bd7f553
517ce7f wip ethanndickson Oct 24, 2025 https://github.com/coder/coder/pull/20171/commits/517ce7fac289f450b4f5d2a13fd4094dd8541d67
Clear filters https://github.com/coder/coder/pull/20171/files
Please reload this pagehttps://github.com/coder/coder/pull/20171/files
Please reload this pagehttps://github.com/coder/coder/pull/20171/files
ssh.go https://github.com/coder/coder/pull/20171/files#diff-e288cc849ca774d47294f4f6c71c4ec171f6e0b15491e7220a0144dbfc1a43bc
ssh_test.go https://github.com/coder/coder/pull/20171/files#diff-2caee0e73c6bfeed4632d116a45feccdbdb7a4dfd21a7b7aad510cf087873c9e
cli/ssh.gohttps://github.com/coder/coder/pull/20171/files#diff-e288cc849ca774d47294f4f6c71c4ec171f6e0b15491e7220a0144dbfc1a43bc
View file https://github.com/coder/coder/blob/517ce7fac289f450b4f5d2a13fd4094dd8541d67/cli/ssh.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/20171/{{ revealButtonHref }}
https://github.com/coder/coder/pull/20171/files#diff-e288cc849ca774d47294f4f6c71c4ec171f6e0b15491e7220a0144dbfc1a43bc
ethanndicksonhttps://github.com/ethanndickson
Oct 24, 2025https://github.com/coder/coder/pull/20171/files#r2459419672
Please reload this pagehttps://github.com/coder/coder/pull/20171/files
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/20171/files
https://github.com/coder/coder/pull/20171/files#diff-e288cc849ca774d47294f4f6c71c4ec171f6e0b15491e7220a0144dbfc1a43bc
cli/ssh_test.gohttps://github.com/coder/coder/pull/20171/files#diff-2caee0e73c6bfeed4632d116a45feccdbdb7a4dfd21a7b7aad510cf087873c9e
View file https://github.com/coder/coder/blob/517ce7fac289f450b4f5d2a13fd4094dd8541d67/cli/ssh_test.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/20171/{{ revealButtonHref }}
https://github.com/coder/coder/pull/20171/files#diff-2caee0e73c6bfeed4632d116a45feccdbdb7a4dfd21a7b7aad510cf087873c9e
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.