Skip to content

Comments

feat: inject agents XML block (0.2.2)#12

Merged
sbroenne merged 5 commits intomainfrom
feat/agents-block-injection
Feb 19, 2026
Merged

feat: inject agents XML block (0.2.2)#12
sbroenne merged 5 commits intomainfrom
feat/agents-block-injection

Conversation

@sbroenne
Copy link
Owner

Mirrors VS Code computeAutomaticInstructions.ts: inject XML block when custom_agents is set. Bumps to 0.2.2.

Stefan Broenner and others added 5 commits February 19, 2026 11:56
- Rewrite test_optimizer.py using patch('...PydanticAgent', ...) cleanly
- Add TestAzureEntraModel class (3 tests covering default gpt-5.2-chat deployment)
- Update test_optimizer_integration.py to use azure_entra_model() (gpt-5.2-chat)
  instead of OPENAI_API_KEY skip guard -- all 3 now pass against real Azure
- Verified full test->optimize->test loop end-to-end: 3/3 passed in 64s

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Introduces a Persona concept that simulates each IDE's native tool
environment during testing:

- VSCodePersona (default): polyfills runSubagent + auto-loads
  .github/copilot-instructions.md from working_directory
- CopilotCLIPersona: task+skill already native; auto-loads
  .github/copilot-instructions.md
- ClaudeCodePersona: polyfills task-dispatch + auto-loads CLAUDE.md
- HeadlessPersona: raw SDK baseline, no polyfills, no file loading

Also:
- from_copilot_config() now discovers agents recursively (rglob) so
  agents under subagents/ subdirectories are found automatically
- EventMapper gains record_subagent_start/complete/failed public methods
- runSubagent injection moved from runner.py into personas.py

Bumps version to 0.2.1.

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

When an agent has custom_agents configured, VSCodePersona and ClaudeCodePersona
now inject an <agents> XML block listing available subagents by name/description.
This mirrors the behavior of computeAutomaticInstructions.ts in microsoft/vscode,
which guides the model to use runSubagent/task for delegation rather than
implementing directly.

Bump version to 0.2.2.

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

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@sbroenne sbroenne merged commit e56d4c8 into main Feb 19, 2026
9 checks passed
@sbroenne sbroenne deleted the feat/agents-block-injection branch February 19, 2026 17:51
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.

1 participant