René's URL Explorer Experiment


Title: feat: add --agents to run Code's agent host by 1000ch · Pull Request #7943 · coder/code-server · GitHub

Open Graph Title: feat: add --agents to run Code's agent host by 1000ch · Pull Request #7943 · coder/code-server

X Title: feat: add --agents to run Code's agent host by 1000ch · Pull Request #7943 · coder/code-server

Description: What Adds --agents, which starts Code's agent host so agent sessions can run on the server. Why VS Code 1.132 added the Agents Window, opened on the desktop with code --agents. code-server cannot serve that window yet, but the piece underneath it — the agent host — already ships in the server build and is simply never started. Three facts from the submodule at df53daa (1.132.0), all still true on main (1.134.0): The Agents Window workbench is vs/sessions, a layer parallel to vs/workbench. A web build of it exists (vs/sessions/sessions.web.main.internal.ts), but build/gulpfile.reh.ts lists only buildfile.codeWeb in webEntryPoints, so vscode-reh-web — the build we package — has no Agents Window bundle. Only gulpfile.vscode.web.ts (the vscode-web build behind vscode.dev) includes buildfile.sessionsWeb. The agent host itself is in our build: buildfile.codeServer includes vs/platform/agentHost/node/agentHostMain, and both reh and reh-web use it. serverServices.ts spawns the agent host only when --agent-host-port or --agent-host-path is set, and registers the agentHostProxy IPC channel at the same time. With neither flag it registers UnavailableAgentHostChannel and logs no --agent-host-bridge-port / --agent-host-bridge-path set. The browser side is already wired up. workbench.web.main.ts registers EditorRemoteAgentHostServiceClient for IAgentHostService, which proxies the agent host protocol over the remote agent connection, and WebAgentHostEnablementService treats the agent host as available whenever there is a remote authority — which for code-server is always. So the workbench believes agent sessions are available and then has nothing to connect to. This is the same topology Code already uses for tunnels. From serverServices.ts: the caller (the CLI code tunnel flow) is expected to capture the bound port from the AH's readiness line and pass it back as --agent-host-bridge-port on the renderer-serving servers A browser renderer talking to an agent host over the remote connection is an intended configuration; nobody has connected the self-hosted server to it. How --agents makes toCodeArgs pass agent-host-path pointing at agent-host.sock in the user data directory (a named pipe on Windows, which has no Unix sockets). That is enough for Code to spawn the agent host and register the channel the browser uses. Code binds the socket but never unlinks it, so a socket left behind by a killed instance would make the agent host fail to listen on the next start. code-server removes a stale one before Code can load. Named after Code's own flag so the two line up if we can serve the Agents Window later. Limitations No Agents Window. Agent sessions surface in the regular chat UI. Serving the real window needs buildfile.sessionsWeb added to the reh-web entry points, plus an HTML entry point and a route to serve it — a patch against lib/vscode, which this PR deliberately does not add. Claude and Codex agents are unavailable. Code resolves their SDKs from product.agentSdks, and its build pipeline stamps that only into reh, not reh-web ("REH-web skips it because the agent host is node-only", microsoft/vscode#321012). Pointing Code at a local SDK root via its dev-override env vars is the only way around it today. Socket permissions. Anyone who can read the socket can talk to the agent host. It lives in the user data directory and is not exposed over HTTP. The Agents Window is a Preview feature upstream. Testing npm run test:unit — added coverage for parsing --agents and for the agent-host-path that toCodeArgs produces, including that concurrent instances get separate sockets. Not verified at runtime. I could not build lib/vscode in this environment, so the agent host actually spawning and a session connecting through it has not been exercised. Happy to hold this until someone can confirm on a real build. 🤖 Generated with Claude Code

Open Graph Description: What Adds --agents, which starts Code's agent host so agent sessions can run on the server. Why VS Code 1.132 added the Agents Window, opened on the desktop with code --agents. code-server cann...

X Description: What Adds --agents, which starts Code's agent host so agent sessions can run on the server. Why VS Code 1.132 added the Agents Window, opened on the desktop with code --agents. code-server ...

Opengraph URL: https://github.com/coder/code-server/pull/7943

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:f54fd997-ff54-4544-5fb3-79dc4d4214b4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD2A4:28A483:A31D28:D85365:6B01BB34
html-safe-nonce4191b929113d67cae66342934848e642df393123f38445b23d71cbf6dd118641
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkE0OjI4QTQ4MzpBMzFEMjg6RDg1MzY1OjZCMDFCQjM0IiwidmlzaXRvcl9pZCI6IjEzMzcxOTEzNjE2MzU1MzE1NzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1f12e755ed0db31569fba7c30703bdaf0f52ae5740c5d7f6f73da970bdafec73
hovercard-subject-tagpull_request:4267157283
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/code-server/pull/7943/files
twitter:imagehttps://avatars.githubusercontent.com/u/1800018?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1800018?s=400&v=4
og:image:altWhat Adds --agents, which starts Code's agent host so agent sessions can run on the server. Why VS Code 1.132 added the Agents Window, opened on the desktop with code --agents. code-server cann...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/coder/code-server git https://github.com/coder/code-server.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id172953845
octolytics-dimension-repository_nwocoder/code-server
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id172953845
octolytics-dimension-repository_network_root_nwocoder/code-server
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/code-server/pull/7943/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcode-server%2Fpull%2F7943%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%2Fcode-server%2Fpull%2F7943%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%2Fcode-server
Reloadhttps://github.com/coder/code-server/pull/7943/files
Reloadhttps://github.com/coder/code-server/pull/7943/files
Reloadhttps://github.com/coder/code-server/pull/7943/files
coderhttps://github.com/coder
code-serverhttps://github.com/coder/code-server
Codehttps://github.com/coder/code-server
Issues147 (147)https://github.com/coder/code-server/issues
Pull requests17 (17)https://github.com/coder/code-server/pulls
Discussionshttps://github.com/coder/code-server/discussions
Actionshttps://github.com/coder/code-server/actions
Projectshttps://github.com/coder/code-server/projects
Security and quality3 (3)https://github.com/coder/code-server/security
Insightshttps://github.com/coder/code-server/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fcoder%2Fcode-server%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fcoder%2Fcode-server%2Fissues%2Fnew%2Fchoose
1000chhttps://github.com/1000ch
coder:mainhttps://github.com/coder/code-server/tree/main
1000ch:1000ch/add-boot-option-to-enable-agent-windowhttps://github.com/1000ch/code-server/tree/1000ch/add-boot-option-to-enable-agent-window
Conversation 1 https://github.com/coder/code-server/pull/7943
Commits 1 https://github.com/coder/code-server/pull/7943/commits
Checks 2 https://github.com/coder/code-server/pull/7943/checks
Files changed https://github.com/coder/code-server/pull/7943/files
Please reload this pagehttps://github.com/coder/code-server/pull/7943/files
feat: add --agents to run Code's agent host https://github.com/coder/code-server/pull/7943/files#top
Show all changes 1 commit https://github.com/coder/code-server/pull/7943/files
86028e9 feat: add --agents to run Code's agent host 1000ch Aug 13, 2026 https://github.com/coder/code-server/pull/7943/commits/86028e9b4ac8dfe4ad3624df563d5b721dbf0de6
Clear filters https://github.com/coder/code-server/pull/7943/files
Please reload this pagehttps://github.com/coder/code-server/pull/7943/files
Please reload this pagehttps://github.com/coder/code-server/pull/7943/files
CHANGELOG.md https://github.com/coder/code-server/pull/7943/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
FAQ.md https://github.com/coder/code-server/pull/7943/files#diff-0bb42a85d04c8b7c9b659307979fd43e8f6e084283a300bfff959adfcbddfd17
cli.ts https://github.com/coder/code-server/pull/7943/files#diff-e1f89aee8992fa7022cc43adb93042f9bbb4b223f0d6cd0e70719cf4b795afa4
main.ts https://github.com/coder/code-server/pull/7943/files#diff-d50b34386e855c746ccf4a2677f0c271596e178764708ec2ca999dc0eaf4a0f6
cli.test.ts https://github.com/coder/code-server/pull/7943/files#diff-259502f3217ff57aa0efe8405a96d85558f638b6a1a27a3f772f7dda96ddc8f2
https://github.com/coder/code-server/blob/main/.github/CODEOWNERS#L1
CHANGELOG.mdhttps://github.com/coder/code-server/pull/7943/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
View file https://github.com/1000ch/code-server/blob/86028e9b4ac8dfe4ad3624df563d5b721dbf0de6/CHANGELOG.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/code-server/pull/7943/{{ revealButtonHref }}
https://github.com/coder/code-server/pull/7943/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
https://github.com/coder/code-server/pull/7943/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
https://github.com/coder/code-server/blob/main/.github/CODEOWNERS#L1
docs/FAQ.mdhttps://github.com/coder/code-server/pull/7943/files#diff-0bb42a85d04c8b7c9b659307979fd43e8f6e084283a300bfff959adfcbddfd17
View file https://github.com/1000ch/code-server/blob/86028e9b4ac8dfe4ad3624df563d5b721dbf0de6/docs/FAQ.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/code-server/pull/7943/{{ revealButtonHref }}
https://github.com/coder/code-server/pull/7943/files#diff-0bb42a85d04c8b7c9b659307979fd43e8f6e084283a300bfff959adfcbddfd17
https://github.com/coder/code-server/pull/7943/files#diff-0bb42a85d04c8b7c9b659307979fd43e8f6e084283a300bfff959adfcbddfd17
https://github.com/coder/code-server/pull/7943/files#diff-0bb42a85d04c8b7c9b659307979fd43e8f6e084283a300bfff959adfcbddfd17
https://github.com/coder/code-server/pull/7943/files#diff-0bb42a85d04c8b7c9b659307979fd43e8f6e084283a300bfff959adfcbddfd17
https://github.com/coder/code-server/blob/main/.github/CODEOWNERS#L1
src/node/cli.tshttps://github.com/coder/code-server/pull/7943/files#diff-e1f89aee8992fa7022cc43adb93042f9bbb4b223f0d6cd0e70719cf4b795afa4
View file https://github.com/1000ch/code-server/blob/86028e9b4ac8dfe4ad3624df563d5b721dbf0de6/src/node/cli.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/code-server/pull/7943/{{ revealButtonHref }}
https://github.com/coder/code-server/pull/7943/files#diff-e1f89aee8992fa7022cc43adb93042f9bbb4b223f0d6cd0e70719cf4b795afa4
https://github.com/coder/code-server/pull/7943/files#diff-e1f89aee8992fa7022cc43adb93042f9bbb4b223f0d6cd0e70719cf4b795afa4
https://github.com/coder/code-server/pull/7943/files#diff-e1f89aee8992fa7022cc43adb93042f9bbb4b223f0d6cd0e70719cf4b795afa4
https://github.com/coder/code-server/pull/7943/files#diff-e1f89aee8992fa7022cc43adb93042f9bbb4b223f0d6cd0e70719cf4b795afa4
https://github.com/coder/code-server/pull/7943/files#diff-e1f89aee8992fa7022cc43adb93042f9bbb4b223f0d6cd0e70719cf4b795afa4
https://github.com/coder/code-server/pull/7943/files#diff-e1f89aee8992fa7022cc43adb93042f9bbb4b223f0d6cd0e70719cf4b795afa4
https://github.com/coder/code-server/pull/7943/files#diff-e1f89aee8992fa7022cc43adb93042f9bbb4b223f0d6cd0e70719cf4b795afa4
https://github.com/coder/code-server/blob/main/.github/CODEOWNERS#L1
src/node/main.tshttps://github.com/coder/code-server/pull/7943/files#diff-d50b34386e855c746ccf4a2677f0c271596e178764708ec2ca999dc0eaf4a0f6
View file https://github.com/1000ch/code-server/blob/86028e9b4ac8dfe4ad3624df563d5b721dbf0de6/src/node/main.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/code-server/pull/7943/{{ revealButtonHref }}
https://github.com/coder/code-server/pull/7943/files#diff-d50b34386e855c746ccf4a2677f0c271596e178764708ec2ca999dc0eaf4a0f6
https://github.com/coder/code-server/pull/7943/files#diff-d50b34386e855c746ccf4a2677f0c271596e178764708ec2ca999dc0eaf4a0f6
https://github.com/coder/code-server/pull/7943/files#diff-d50b34386e855c746ccf4a2677f0c271596e178764708ec2ca999dc0eaf4a0f6
https://github.com/coder/code-server/pull/7943/files#diff-d50b34386e855c746ccf4a2677f0c271596e178764708ec2ca999dc0eaf4a0f6
https://github.com/coder/code-server/pull/7943/files#diff-d50b34386e855c746ccf4a2677f0c271596e178764708ec2ca999dc0eaf4a0f6
https://github.com/coder/code-server/pull/7943/files#diff-d50b34386e855c746ccf4a2677f0c271596e178764708ec2ca999dc0eaf4a0f6
https://github.com/coder/code-server/blob/main/.github/CODEOWNERS#L1
test/unit/node/cli.test.tshttps://github.com/coder/code-server/pull/7943/files#diff-259502f3217ff57aa0efe8405a96d85558f638b6a1a27a3f772f7dda96ddc8f2
View file https://github.com/1000ch/code-server/blob/86028e9b4ac8dfe4ad3624df563d5b721dbf0de6/test/unit/node/cli.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/code-server/pull/7943/{{ revealButtonHref }}
https://github.com/coder/code-server/pull/7943/files#diff-259502f3217ff57aa0efe8405a96d85558f638b6a1a27a3f772f7dda96ddc8f2
https://github.com/coder/code-server/pull/7943/files#diff-259502f3217ff57aa0efe8405a96d85558f638b6a1a27a3f772f7dda96ddc8f2
https://github.com/coder/code-server/pull/7943/files#diff-259502f3217ff57aa0efe8405a96d85558f638b6a1a27a3f772f7dda96ddc8f2
https://github.com/coder/code-server/pull/7943/files#diff-259502f3217ff57aa0efe8405a96d85558f638b6a1a27a3f772f7dda96ddc8f2
https://github.com/coder/code-server/pull/7943/files#diff-259502f3217ff57aa0efe8405a96d85558f638b6a1a27a3f772f7dda96ddc8f2
https://github.com/coder/code-server/pull/7943/files#diff-259502f3217ff57aa0efe8405a96d85558f638b6a1a27a3f772f7dda96ddc8f2
https://github.com/coder/code-server/pull/7943/files#diff-259502f3217ff57aa0efe8405a96d85558f638b6a1a27a3f772f7dda96ddc8f2
https://github.com/coder/code-server/pull/7943/files#diff-259502f3217ff57aa0efe8405a96d85558f638b6a1a27a3f772f7dda96ddc8f2
https://github.com/coder/code-server/pull/7943/files#diff-259502f3217ff57aa0efe8405a96d85558f638b6a1a27a3f772f7dda96ddc8f2
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.