Skip to content

agentHost: coordinate overlapping sessions - #330289

Draft
Megan Rogge (meganrogge) wants to merge 6 commits into
mainfrom
megrogge/coordinate-overlapping-agent-sessions
Draft

agentHost: coordinate overlapping sessions#330289
Megan Rogge (meganrogge) wants to merge 6 commits into
mainfrom
megrogge/coordinate-overlapping-agent-sessions

Conversation

@meganrogge

@meganrogge Megan Rogge (meganrogge) commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Fixes #330292

Summary

  • prompt Agent Host models to identify the current session, exclude it, and check other active sessions across the same project or repository before changing code or creating another session
  • direct agents to inspect and message potentially overlapping sessions, dividing or sequencing work to avoid duplicate effort, conflicting edits, and unnecessary merge conflicts
  • clarify cross-worktree overlap discovery in list_sessions and keep a short check-first reminder in create_session

Testing

  • npm run transpile-client
  • ./scripts/test.sh --run src/vs/platform/agentHost/test/node/agentHostPromptRegistry.test.ts
  • ./scripts/test.sh --run src/vs/platform/agentHost/test/node/toolInstructions.test.ts
  • ./scripts/test.sh --run src/vs/platform/agentHost/test/node/sessionServerTools.test.ts
  • ./scripts/test.sh --run src/vs/platform/agentHost/test/node/copilotAgent.test.ts --grep "materialization passes VS Code-specific system message to the SDK"
  • ./scripts/test-integration.sh --run src/vs/platform/agentHost/test/node/e2e/providers/copilotPromptsE2E.integrationTest.ts
  • targeted ESLint
  • npm run hygiene

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: aa352131-aed7-4160-a87f-4aa9a424de5c

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds cross-session coordination guidance to prevent overlapping Agent Host work.

Changes:

  • Adds universal session-coordination prompt guidance.
  • Expands session tool descriptions.
  • Updates prompt composition tests.
Show a summary per file
File Description
toolInstructions.test.ts Tests coordination prompt composition.
sessionServerTools.ts Adds overlap checks to session tools.
toolInstructions.ts Registers universal coordination guidance.

Review details

Tip

Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Balanced

Comment thread src/vs/platform/agentHost/node/shared/sessionServerTools.ts Outdated
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: aa352131-aed7-4160-a87f-4aa9a424de5c
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: aa352131-aed7-4160-a87f-4aa9a424de5c
@meganrogge

Megan Rogge (meganrogge) commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator Author

/requires-eval-assessment vscbench gpt-5.5,claude-opus-4.7,claude-opus-4.8

sessionTarget: agent-host-copilotcli

@meganrogge Megan Rogge (meganrogge) added ~requires-eval-assessment Evals will be run and will generate a report upon completion and removed ~requires-eval-assessment Evals will be run and will generate a report upon completion labels Aug 11, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: aa352131-aed7-4160-a87f-4aa9a424de5c
@meganrogge Megan Rogge (meganrogge) added the ~requires-eval-assessment Evals will be run and will generate a report upon completion label Aug 11, 2026
@vs-code-engineering

Copy link
Copy Markdown
Contributor

⏳ Queued vscode build for 635ebb8f6a11f82da5a95b43a0ed68898778baa3 (step 1/2).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: aa352131-aed7-4160-a87f-4aa9a424de5c
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: aa352131-aed7-4160-a87f-4aa9a424de5c
@vs-code-engineering

Copy link
Copy Markdown
Contributor

🚀 Queued eval-assessment publish build for ff9e69f270673cb44bd28ccdab494e0f23e62088 (step 2/2).

@vs-code-engineering

Copy link
Copy Markdown
Contributor

❌ Eval-assessment build did not succeed (result: failed).

@vs-code-engineering vs-code-engineering Bot removed the ~requires-eval-assessment Evals will be run and will generate a report upon completion label Aug 11, 2026
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.

Agent Host should coordinate overlapping sessions

2 participants