Skip to content

API Reference — AgentTeamsModule

Public API for the agentteams package. Each module corresponds to a stage in the pipeline or a support capability.


Pipeline Modules

Module Role
ingest Load and normalize project description files
analyze Classify project type, select archetypes, build team manifest
render Resolve templates and produce rendered agent file content
emit Write rendered agent files to disk safely

Support Modules

Module Role
drift Detect template-to-instance drift for incremental updates
scan Proactive security scan for generated agent files
audit Post-generation static and AI-powered audit
remediate Auto-correct audit findings via standalone Copilot CLI
enrich Default-value audit and context-aware placeholder enrichment
graph Directed graph inference for agent team topology
frameworks Per-framework adapter classes

Typical Pipeline Usage

from pathlib import Path
from agentteams import ingest, analyze, render, emit
from agentteams.frameworks.copilot_vscode import CopilotVSCodeAdapter

description = ingest.load("brief.json")
manifest = analyze.build_manifest(description, framework="copilot-vscode")
rendered = render.render_all(manifest, templates_dir=Path("templates"))

adapter = CopilotVSCodeAdapter()
final = [(p, adapter.render_agent_file(c, Path(p).stem, manifest))
         for p, c in rendered]

result = emit.emit_all(final, output_dir=Path(".github/agents"), dry_run=False)
emit.print_summary(result, manifest)