How nanmicoder/dsh-agent-teams works
AgentTeams is a DeepSeek Harness plugin for turning a conversation into a durable, captain-led multi-agent team. The principal workflow stages a roster and dependency-aware task plan, lets the captain approve execution, then schedules member work and supports messaging, quality review, and result consolidation. The host plugin entry point registers tools and web routes; durable team state underpins coordination, while the client presents planning and live activity. Relationships among unsampled modules are included only where the source index or README documents them; the web routes and navigation details reflect sampled excerpts.
Main entry points: tools.ts Team tools · index.ts Plugin entry · state.ts Team state · ActivityPanel.tsx Activity panel
Components 22
Harness integration
- Plugin entry
src/index.ts - Team tools
src/tools.ts - Web routes
src/web-routes.ts - Team protocol
src/capabilities.ts
Team coordination
- Member lifecycle
src/members.ts - Task scheduler
src/scheduler.ts - Direct messaging
src/mailbox.ts - Team events
src/events.ts - Quality gates
src/quality-gates.ts
State and policies
- Team state
src/state.ts - Team profiles
src/profiles.ts - Activity snapshots
src/snapshot.ts - Domain types
src/types.ts
Workspace interface
- Client plugin
src/client/index.tsx - Activity panel
src/client/ActivityPanel.tsx - Plan editor
src/client/StagingPlanEditor.tsx - Conversation card
src/client/AgentTeamsCard.tsx - Activity model
src/client/activity-model.ts - Activity monitor
src/client/activity-monitor.ts - Member navigation
src/client/session-navigation.ts - Workspace bridge
src/client/WorkspaceActivity.tsx
Other components
- Harness user
Connections 28
- Harness user → Plugin entry: requests teamwork
README.md - Plugin entry → Team tools: registers tools
src/index.ts - Plugin entry → Team protocol: installs protocol
src/index.ts - Plugin entry → Activity snapshots: collects activity
src/index.ts - Plugin entry → Team state: looks up teams
src/index.ts - Plugin entry → Web routes: registers routes
src/index.ts - Team tools → Team state: reads and writes
src/tools.ts - Team tools → Member lifecycle: coordinates members
src/tools.ts - Team tools → Task scheduler: uses scheduler
src/tools.ts - Team tools → Direct messaging: uses mailbox
src/tools.ts - Team tools → Team profiles: loads profiles
src/tools.ts - Team tools → Quality gates: applies gates
src/tools.ts - Team tools → Team events: emits events
src/tools.ts - Team state → Quality gates: uses gate logic
src/state.ts - Team profiles → Team state: reads state
src/profiles.ts - Client plugin → Workspace bridge: creates bridge
src/client/index.tsx - Client plugin → Member navigation: opens members
src/client/index.tsx - Client plugin → Conversation card: registers card
src/client/index.tsx - Activity panel → Activity model: uses model
src/client/ActivityPanel.tsx - Activity panel → Activity monitor: uses monitor
src/client/ActivityPanel.tsx - Activity panel → Plan editor: renders editor
src/client/ActivityPanel.tsx - Conversation card → Activity monitor: reads activity
src/client/AgentTeamsCard.tsx - Web routes → Activity snapshots: serves snapshots
src/index.ts - Activity panel → Plugin entry: fetches team activity
README.md - Task scheduler → Member lifecycle: assigns ready tasks
README.md - Direct messaging → Member lifecycle: delivers messages
README.md - Quality gates → Task scheduler: gates completion
README.md - Domain types → Team state: defines records
src/types.ts