-
Notifications
You must be signed in to change notification settings - Fork 231
[FEATURE] Support handoffs: frontmatter in .agent.md files #1300
Copy link
Copy link
Closed
Labels
area/cliCLI command surface, flags, help text (cross-cutting).CLI command surface, flags, help text (cross-cutting).priority/highShips in current or next milestoneShips in current or next milestonestatus/acceptedDirection approved, safe to start work.Direction approved, safe to start work.status/triagedInitial agentic triage complete; pending maintainer ratification (silence = approval).Initial agentic triage complete; pending maintainer ratification (silence = approval).theme/portabilityOne manifest, every target. Multi-target deploy, marketplace, packaging, install.One manifest, every target. Multi-target deploy, marketplace, packaging, install.type/featureNew capability, new flag, new primitive.New capability, new flag, new primitive.
Metadata
Metadata
Assignees
Labels
area/cliCLI command surface, flags, help text (cross-cutting).CLI command surface, flags, help text (cross-cutting).priority/highShips in current or next milestoneShips in current or next milestonestatus/acceptedDirection approved, safe to start work.Direction approved, safe to start work.status/triagedInitial agentic triage complete; pending maintainer ratification (silence = approval).Initial agentic triage complete; pending maintainer ratification (silence = approval).theme/portabilityOne manifest, every target. Multi-target deploy, marketplace, packaging, install.One manifest, every target. Multi-target deploy, marketplace, packaging, install.type/featureNew capability, new flag, new primitive.New capability, new flag, new primitive.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
StatusShow more project fields
Done
Feature Request: Support
handoffs:frontmatter in.agent.mdfilesSummary
apm compilecrashes with'list' object has no attribute 'startswith'when an.agent.mdfile contains ahandoffs:block in its YAML frontmatter. APM 0.13.0 does not recognize this field and fails trying to call.startswith()on the list value.Context
handoffs:is a VS Code Copilot Chat feature (introduced in VS Code 1.106) that enables guided sequential workflows between custom agents. It is defined in the VS Code custom agents documentation and follows this schema:Steps to Reproduce
handoffs:block to any.agent.mdfile in agentsapm compileResult:
Expected: APM passes through the
handoffs:field unchanged, the same way it handles other VS Code-specific frontmatter fields likeargument-hintandmodel.Workaround
Remove the
handoffs:block from the frontmatter before compiling, then restore it after.Requested Behavior
APM should treat
handoffs:as a pass-through frontmatter field — preserve it in the compiled output without attempting to parse or transform it, consistent with how other unrecognized agent frontmatter fields are handled.Environment
0.13.0copilotdistributedRelated
applyTo: ['*'](list instead of glob string) andexcludeAgent: ["..."](list instead of string) in.instructions.mdfrontmatter — same root cause, same crash.