Skip to content

docs(subagents): demo built-in agents, agent switching and agent teams - #1937

Merged
edenreich merged 2 commits into
mainfrom
fix/issue-1934
Nov 22, 2026
Merged

edenreich merged 2 commits into
mainfrom
fix/issue-1934

Conversation

@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

Resolves #1934

Summary

examples/subagents now 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

  • examples/subagents/Taskfile.yml: hermetic demo HOME pattern (like examples/scheduling) with inline mock env per command, build/clean tasks, the new builtins task (infer agents list, infer debug agent system_prompt with env prompt overrides dropped, explore shadow copy + source flip to project) and the new team task
  • examples/subagents/scenarios.yaml: the team lead scenario fanning out two labeled teammates, beta-task calling Agent with to: "lead", lead-note matching the [Message from beta] relay, and explore-write (a Write call that the switched read-only agent refuses) for the chat-switching demo
  • examples/subagents/explore-shadow.md: the project explore.md the builtins task copies into .agents/agents/ and removes afterwards
  • examples/subagents/README.md: task table and expected output for list/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.txt note about running it un-switched, plus seeding/override notes for built-ins
  • docs/examples.md subagents row and the README Subagents feature line now name the built-in agents, main-agent switching and teams

Validated against the tokenless mock: task list, task builtins, task fanout, task fanout:name, task team, task all and the explore-write scenario all ran clean, plus task precommit:run passes.

no docs ticket: all changed docs are this repository's README, the example README and docs/examples.md

…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
# Conflicts:
#	examples/subagents/README.md
#	examples/subagents/Taskfile.yml
@edenreich
edenreich merged commit f3837ff into main Nov 22, 2026
14 checks passed
@edenreich
edenreich deleted the fix/issue-1934 branch November 22, 2026 22:07
@edenreich edenreich moved this from Todo to Done in 2026 Nov 22, 2026
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.266.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[FEATURE] docs: add runnable examples for built-in agents, main-agent switching and agent teams

1 participant