feat(skill): add context mode (fork/isolate) and model frontmatter support#739
Merged
feat(skill): add context mode (fork/isolate) and model frontmatter support#739
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## alpha/08 #739 +/- ##
===========================================
Coverage ? 79.71%
===========================================
Files ? 145
Lines ? 15745
Branches ? 0
===========================================
Hits ? 12551
Misses ? 2218
Partials ? 976 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
07ba94e to
938029f
Compare
8b3de42 to
b1fbde2
Compare
5fd9626 to
c296c36
Compare
…pt and buildSkillResult
…on-streaming messages
7e09f14 to
7a3fd1f
Compare
hi-pender
added a commit
that referenced
this pull request
Feb 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR extends the skill middleware to support new frontmatter fields:
context,agent, andmodel. These fields enable skills to run in different execution modes with configurable agents and models.New Frontmatter Fields
contextforkorisolateagentmodelContext Modes
Inline Mode (default)
When
contextis not specified or has other values, the skill content is returned directly to the parent agent as tool result.Fork Mode (
context: fork)Isolate Mode (
context: isolate)New Config Fields
New Interfaces
Usage Example
SKILL.md with context mode
Configuration
Notes
modelfrontmatter currently only takes effect whencontextmode is specifiedagentis empty,AgentHub.Get("")is called, allowing the hub to return a default agentNewfunction does not support context mode; useNewHandlerinstead