How microsoft/agents works
This repository is the Microsoft 365 Agents SDK landing point: it directs developers to language-specific SDKs and provides samples, agent-assistant plugins, and specifications. Its substantial in-repository runtime is a tool that plans and validates migrations of .NET samples from upstream, then prepares publishable changes. The sync source excerpts show the CLI, planning, guarded agent session, and validation boundaries; other SDK implementation details live in the linked language repositories and are not represented here.
Main entry points: README.md Agents SDK · cli.ts Sync CLI · plan.ts Migration planner · context.ts Evidence context
Components 23
SDK ecosystem
- Agents SDK
README.md - Language SDKs
- SDK samples
samples - Protocol specs
specs
Assistant plugins
- Common skills
agent-plugins/agents-sdk-common/skills - JavaScript skills
agent-plugins/agents-for-js/skills - .NET skills
agent-plugins/agents-for-net/skills - Python skills
agent-plugins/agents-for-python/skills
Sample sync workflow
- Sync CLI
automation/teams-sample-sync/src/cli.ts - Migration planner
automation/teams-sample-sync/src/plan.ts - Evidence context
automation/teams-sample-sync/src/context.ts - Agent session
automation/teams-sample-sync/src/sync-session.ts - Copilot runner
automation/teams-sample-sync/src/agent-runner.ts - Patch publishing
automation/teams-sample-sync/src/publish-pr.ts
Sync foundations
- Sync policy
automation/teams-sample-sync/src/config.ts - Trusted tools
automation/teams-sample-sync/src/agent-tools.ts - Sample validation
automation/teams-sample-sync/src/validate.ts - Git evidence
automation/teams-sample-sync/src/git.ts - SDK version resolver
automation/teams-sample-sync/src/versions.ts - Verified state
automation/teams-sample-sync/src/state.ts - Workflow contracts
automation/teams-sample-sync/src/types.ts
Other components
- Developer
- Workflow operator
Connections 28
- Developer → Agents SDK: build with
README.md - Agents SDK → Language SDKs: implemented in
README.md - Agents SDK → SDK samples: learn from
README.md - Agents SDK → Protocol specs: defines protocols
- Agents SDK → Common skills: offers skills
README.md - Agents SDK → JavaScript skills: offers skills
README.md - Agents SDK → .NET skills: offers skills
README.md - Agents SDK → Python skills: offers skills
README.md - Workflow operator → Sync CLI: runs commands
automation/teams-sample-sync/src/cli.ts - Sync CLI → Migration planner: creates plan
automation/teams-sample-sync/src/cli.ts - Sync CLI → Evidence context: creates context
automation/teams-sample-sync/src/context.ts - Sync CLI → Agent session: runs migration
automation/teams-sample-sync/src/cli.ts - Agent session → Copilot runner: requests session
automation/teams-sample-sync/src/sync-session.ts - Sync CLI → Trusted tools: validates tools
automation/teams-sample-sync/src/cli.ts - Sync CLI → Patch publishing: publishes patch
automation/teams-sample-sync/src/cli.ts - Migration planner → Sync policy: loads policy
automation/teams-sample-sync/src/plan.ts - Migration planner → Git evidence: compares trees
automation/teams-sample-sync/src/plan.ts - Migration planner → Verified state: reads state
automation/teams-sample-sync/src/plan.ts - Migration planner → SDK version resolver: checks version
automation/teams-sample-sync/src/plan.ts - Evidence context → Sync policy: loads targets
automation/teams-sample-sync/src/context.ts - Evidence context → Git evidence: materializes evidence
automation/teams-sample-sync/src/context.ts - Evidence context → Verified state: reads prior state
automation/teams-sample-sync/src/context.ts - Agent session → Sample validation: runs validation
automation/teams-sample-sync/src/sync-session.ts - Trusted tools → Sample validation: validates sample
automation/teams-sample-sync/src/agent-tools.ts - Trusted tools → Git evidence: checks digests
automation/teams-sample-sync/src/agent-tools.ts - Trusted tools → Sync policy: checks boundaries
automation/teams-sample-sync/src/agent-tools.ts - Sync CLI → SDK version resolver: resolves version
automation/teams-sample-sync/src/cli.ts - Sync CLI → Workflow contracts: exchanges results
automation/teams-sample-sync/src/cli.ts