Repository navigation
docs(subagents): demo built-in agents, agent switching and agent teams - #1937
Merged
Merged
Conversation
…runnable examples Resolves #1934. - task builtins runs infer agents list and infer debug agent system_prompt, then shadows the built-in explore with a project .agents/agents/explore.md copied from explore-shadow.md and shows the source flip to project - task team and new scenarios: the lead fans out two teammates, beta messages its lead mid-run with Agent(to: lead) and the [Message from beta] note shows in the headless output - the example README documents switching the main agent in task chat (Agent: main indicator, explore picked, Write refused) with exact steps against the tokenless mock - docs/examples.md and the README Subagents feature line name the three demos
inference-gateway-maintainer
Bot
marked this pull request as ready for review
November 22, 2026 21:16
inference-gateway-maintainer
Bot
requested a review
from a team
as a code owner
November 22, 2026 21:16
5 tasks
# Conflicts: # examples/subagents/README.md # examples/subagents/Taskfile.yml
Contributor
|
🎉 This PR is included in version 0.266.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
Resolves #1934
Summary
examples/subagentsnow demos the three agent features the last two releases shipped and that only had prose docs: the four built-in agents with a project file shadowing one, switching the agent a chat runs as from the status bar, and a team whose members message each other (and their lead) mid-run. Every task in the example runs offline against the tokenless mock gateway, and all scripted tasks were run as written in this session.Changes
build/cleantasks, the newbuiltinstask (infer agents list,infer debug agent system_promptwith env prompt overrides dropped,exploreshadow copy + source flip toproject) and the newteamtaskteamlead scenario fanning out two labeled teammates,beta-taskcallingAgentwithto: "lead",lead-notematching the[Message from beta]relay, andexplore-write(aWritecall that the switched read-only agent refuses) for the chat-switching demoexplore.mdthebuiltinstask copies into.agents/agents/and removes afterwardslist/builtins/fanout/team, a "Switch the agent a chat runs as in task chat" section with exact steps, the indicator, the refusal text and the/tmp/explore-notes.txtnote about running it un-switched, plus seeding/override notes for built-insValidated against the tokenless mock:
task list,task builtins,task fanout,task fanout:name,task team,task alland theexplore-writescenario all ran clean, plustask precommit:runpasses.no docs ticket: all changed docs are this repository's README, the example README and docs/examples.md