You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE] docs: add runnable examples for built-in agents, main-agent switching and agent teams #1934
Domain: subagents and agents. The last two releases added three user-facing features that no runnable example demonstrates. They are described only in prose in docs/subagents.md (sections "Built-in Agents", "Switching the Main Agent" and "Teams"), and the README feature list still reads "fan out parallel infer headless runs" only.
Built-in agents - the binary embeds main, explore, plan and general-purpose (internal/tools/builtin_agents/), infer init seeds them into ~/.infer/agents/, and a project file of the same name shadows a built-in. main is now the default system prompt source unless prompts.agent.system_prompt overrides it.
Switching the main agent - the Agent: <name> status bar indicator (chat.status_bar.indicators.agent) opens a dropdown, the picked agent answers the next message, and its tool policy (tools, disallowedTools, mcpServers) is enforced at execution time.
Agent teams - the Agent tool's message form (to, message, plus keys/submit for interactive panes) lets a lead and its subagents message each other (to: "lead", a teammate label), replacing the removed SendSubagentInput tool.
examples/subagents covers only a Markdown preset and a fan-out, so a user cannot see any of these wired up end to end.
Acceptance Criteria
examples/subagents gains a task builtins scenario (or a new examples/builtin-agents/) that runs infer agents list and infer debug agent system_prompt to show the four built-ins, then shadows explore with a project .agents/agents/explore.md and shows the source change
examples/subagents gains a task team scenario with a scenarios.yaml entry where the mock lead fans out two teammates and one teammate calls Agent with to: "lead" and a message, showing the [Message from <name>] relay in the headless output
examples/subagents/README.md documents switching the main agent in infer chat (the Agent: main indicator, picking explore, and a Write being refused under the read-only agent) with the exact task chat steps against the tokenless mock gateway
docs/examples.md subagents row and the README "Subagents" feature line name built-in agents, main-agent switching and teams
Every new task runs as written against the tokenless mock gateway
Done. Issue #1934 is implemented, validated, and PR #1937 is open and ready for review on branch fix/issue-1934 (commit 222307df); the Roadmap board item is at QA.
What changed
examples/subagents/Taskfile.yml - reworked to the hermetic demo-HOME pattern (like examples/scheduling): a demo .home/, inline mock env per command (beats runner-exported INFER_AGENT_MODEL), a build/clean task, plus two new tasks: builtins and team.
examples/subagents/scenarios.yaml - new entries: team (the lead fans out two labeled teammates), alpha-task, beta-task (teammate calls Agent with to: "lead"), lead-note (matches the [Message from beta] relay), and explore-write (mock calls Write, refused under the read-only agent) powering the switch demo.
examples/subagents/explore-shadow.md - the project explore.md that task builtins copies into .agents/agents/ and removes afterwards to show the source flip from built-in to project.
examples/subagents/README.md - task table and expected output for list/builtins/fanout/team, plus a "Switch the agent a chat runs as in task chat" section with the exact steps (press down to the Agent: main indicator, enter, pick explore, ask write a note to explore-notes.txt, see the refusal tool not allowed: Write is not available to agent "explore" ...).
docs/examples.md subagents row and the README.md "Subagents" feature line now name the built-in agents, main-agent switching and teams.
Validation
Every task ran as written against the tokenless mock gateway: task list, task builtins, task fanout, task fanout:name, task team, task all, and the explore-write scenario (the Write executes only un-switched as main; switched to explore it is refused). task precommit:run (mod tidy, mocks, fmt, lint incl. markdownlint) passes, and the tree is clean and pushed.
No docs ticket opened: all changed docs are this repository's README, the example README and docs/examples.md; no downstream repos are affected.
Activity
edenreich commentedon Nov 22, 2026
@infer can you work on this?
inference-gateway-maintainer commentedon Nov 22, 2026
Model:
ollama_cloud/glm-5.3-flash· Action:v0.59.12· CLI:v0.266.0· Gateway:v0.68.0· View JobTodos
Pull Request
#1937
✅ Infer Result: Success
Done. Issue #1934 is implemented, validated, and PR #1937 is open and ready for review on branch
fix/issue-1934(commit222307df); the Roadmap board item is at QA.What changed
examples/scheduling): a demo.home/, inline mock env per command (beats runner-exportedINFER_AGENT_MODEL), abuild/cleantask, plus two new tasks:builtinsandteam.team(the lead fans out two labeled teammates),alpha-task,beta-task(teammate callsAgentwithto: "lead"),lead-note(matches the[Message from beta]relay), andexplore-write(mock callsWrite, refused under the read-only agent) powering the switch demo.explore.mdthattask builtinscopies into.agents/agents/and removes afterwards to show the source flip frombuilt-intoproject.list/builtins/fanout/team, plus a "Switch the agent a chat runs as intask chat" section with the exact steps (press down to theAgent: mainindicator, enter, pickexplore, askwrite a note to explore-notes.txt, see the refusaltool not allowed: Write is not available to agent "explore" ...).Validation
Every task ran as written against the tokenless mock gateway:
task list,task builtins,task fanout,task fanout:name,task team,task all, and theexplore-writescenario (the Write executes only un-switched asmain; switched toexploreit is refused).task precommit:run(mod tidy, mocks, fmt, lint incl. markdownlint) passes, and the tree is clean and pushed.No docs ticket opened: all changed docs are this repository's README, the example README and docs/examples.md; no downstream repos are affected.
Model:
ollama_cloud/glm-5.3-flash· Action:v0.59.12· CLI:v0.266.0· Gateway:v0.68.0· Exit Code:0· Duration: 9m 42sTokens: 9,100,297 in · 58,317 out · 9,158,614 total (90 requests)
Tool calls: 107 total · 100% success rate
Traces
Stats
Triggered by edenreich · Infer Action · OSS
docs(subagents): make the built-in agents, agent switching and teams …
inference-gateway-releaser commentedon Nov 22, 2026
🎉 This issue has been resolved in version 0.266.2 🎉
The release is available on:
Your semantic-release bot 📦🚀