Skip to content

[DOCS] examples/subagents shows agents list output from before the built-in agents shipped #1933

Closed

Description

Summary

The examples/subagents README shows infer agents list output with only the example's own researcher agent (Markdown Agents (1)). Since built-in agents shipped, the loader always appends the four embedded agents (main, explore, plan, general-purpose) after the project and user agent dirs (loadMarkdownAgentsWithBuiltins in internal/tools/builtin_agents.go, used by Registry.LoadMarkdownAgents in internal/tools/registry.go). printMarkdownAgents in cmd/agents/agents.go prints the count of every loaded agent, so task list now prints Markdown Agents (5) and four more rows - with source built-in before infer init, or user once infer init has seeded them into ~/.infer/agents/. A reader following the example sees output that does not match the README.

Acceptance Criteria

  • examples/subagents/README.md "What to expect" block for task list shows the current output: Markdown Agents (5) with researcher (source project) plus the built-in main, explore, plan and general-purpose rows, and notes that their source reads built-in before infer init and user after it
  • examples/subagents/README.md run table row for task list and the Taskfile.yml list task description mention that the built-in agents are listed next to researcher
  • docs/examples.md subagents row still matches what the example demonstrates after the update
  • The updated output is verified by running task list in examples/subagents against the tokenless mock gateway

Activity

  1. added
    documentation
    on Nov 22, 2026
  2. edenreich commented on Nov 22, 2026

    @edenreich
    Contributor

    @infer can you work on this?

  3. inference-gateway-maintainer commented on Nov 22, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Model: ollama_cloud/glm-5.3-flash · Action: v0.59.12 · CLI: v0.266.0 · View Job

    Todos

    • Add issue to Roadmap board and set In progress
    • Create and push fix/issue-1933 branch
    • Read examples/subagents README, Taskfile, and loadMarkdownAgentsWithBuiltins
    • Run task list against hermetic HOME, capture real output
    • Update examples/subagents/README.md What to expect + run table
    • Update examples/subagents/Taskfile.yml list task description
    • Lint changed files and verify docs/examples.md row
    • Commit, push, open draft PR, set board to QA

    Pull Request

    #1936

    ✅ Infer Result: Success

    Done. Issue #1933 is resolved in PR #1936 (ready for review), tracked on the Roadmap board and set to QA.

    What I changed

    • examples/subagents/README.md - the "What to expect" block for task list now shows the current output, Markdown Agents (5): researcher (source project) followed by the built-in explore, general-purpose, main and plan rows in the order the loader emits them, each with its real tools, model, mode and source columns. A note after the block explains that the four built-ins ship with the binary with source built-in, and read user once infer init seeds them into ~/.infer/agents/ (a same-name Markdown file shadows a built-in either way). The run table row for task list now says it lists researcher next to the four built-in agents.
    • examples/subagents/Taskfile.yml - the list task description now says it shows researcher and the four built-in agents.
    • docs/examples.md - the subagents row still matches what the example demonstrates, so I left it unchanged (noted in the PR body).

    Verification

    • I ran the example's own task list with a fresh local build (task build) against a hermetic HOME with the Taskfile's mock-gateway env, and copied the captured Markdown Agents (5) output into the README, preserving the existing abbreviated-description style.
    • markdownlint passes on the changed files, and the pre-commit hook (mod:tidy, fmt, lint:imports, golangci-lint, markdownlint) passed on the commit before pushing.

    One deviation worth knowing: I ran the verification under a redirected HOME rather than the runner's own, which is exactly the pre-infer init state the README now describes.

    Model: ollama_cloud/glm-5.3-flash · Action: v0.59.12 · CLI: v0.266.0 · Exit Code: 0 · Duration: 4m 12s

    Tokens: 1,575,719 in · 17,944 out · 1,593,663 total (26 requests)

    Tool calls: 44 total · 100% success rate

    Traces
    Session: 1795381625-b95f1f48
    
    session (headless, success)                                                                         4m5s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.5s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.5s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.5s
    ├── execute_tool TodoWrite call_e2rt7d3p                                                            74µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.4s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.4s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.4s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.4s
    ├── execute_tool Bash call_c9jvtl5l                                                                203ms
    ├── execute_tool Bash call_shzlhxsa                                                                 1.3s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.3s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.3s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.3s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.3s
    ├── execute_tool Bash call_gqg2gvox                                                                837ms
    ├── execute_tool Bash call_as5cln3k                                                                  6ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.5s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.5s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.5s
    ├── execute_tool Bash call_f617d5yb                                                                 1.2s
    ├── execute_tool Read call_vlwid9jl                                                                340µs
    ├── execute_tool Read call_8zcv4nz4                                                                299µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.7s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.7s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.7s
    ├── execute_tool Memory call_qdswsqea                                                              124µs
    ├── execute_tool Read call_3c0kz883                                                                230µs
    ├── execute_tool Read call_v63cgdeg                                                                531µs
    ├── execute_tool Read call_8am0052l                                                                341µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                19.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      19.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    19.6s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       19.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                19.6s
    ├── execute_tool TodoWrite call_iunv5crv                                                            53µs
    ├── execute_tool Bash call_cozn47pq                                                                  2ms
    ├── execute_tool Read call_qr1l1eaq                                                                511µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 9.4s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       9.4s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     9.4s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        9.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 9.4s
    ├── execute_tool Tree call_394uft3m                                                                456µs
    ├── execute_tool Write call_lw4ozrho                                                                 3ms
    ├── execute_tool Bash call_9ep2yx52                                                                 10ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.6s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.6s
    ├── execute_tool Wait call_m4t2z0pp                                                                54.0s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.1s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        3.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.1s
    ├── execute_tool Bash call_xxai1c46                                                                 99ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                12.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      12.2s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    12.2s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       12.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                12.2s
    ├── execute_tool Grep call_bysjdtx0                                                                  1ms
    ├── execute_tool Tree call_0qpzv6bc                                                                474µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.5s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.5s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.5s
    ├── execute_tool Read call_jjhmcd0d                                                                251µs
    ├── execute_tool Read call_064jyfxg                                                                219µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                12.9s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      12.8s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    12.8s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       12.8s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                12.8s
    ├── execute_tool MultiEdit call_x4cngzva                                                           728µs
    ├── execute_tool Edit call_bm96khf9                                                                370µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.3s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.3s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.3s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.3s
    ├── execute_tool Read call_nsoxwrx6                                                                257µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.8s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.8s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.8s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.8s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.8s
    ├── execute_tool TodoWrite call_27ghuozw                                                            67µs
    ├── execute_tool Bash call_qfhdzi7k                                                                214ms [error: tool_error]
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.8s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.8s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.8s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.8s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.8s
    ├── execute_tool Edit call_coyzd5f8                                                                454µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.0s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.0s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.0s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.0s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.0s
    ├── execute_tool Bash call_f96er8hi                                                                210ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 6.3s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.3s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.3s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        6.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.3s
    ├── execute_tool Grep call_w7ogkndm                                                                444ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.8s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.7s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.7s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.7s
    ├── execute_tool Bash call_b6emkgo4                                                                  6ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.0s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.0s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    996ms
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       995ms
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                995ms
    ├── execute_tool Bash call_1gcet51u                                                                  6ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                914ms
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      903ms
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    896ms
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       896ms
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                896ms
    ├── execute_tool Bash call_zaqrp0jz                                                                1m18s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.8s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.7s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.7s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.7s
    ├── execute_tool Bash call_3txzhfcw                                                                 1.3s
    ├── execute_tool Write call_cbrlxops                                                               698µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.1s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.1s
    ├── execute_tool Bash call_gqcjafv7                                                                 3.2s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.3s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.3s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.3s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.3s
    ├── execute_tool Bash call_z29q8u7p                                                                974ms
    ├── execute_tool Bash call_bovsjkyh                                                                  7ms
    ├── execute_tool Bash call_rx02u4lf                                                                706ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.2s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.2s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.2s
    ├── execute_tool Bash call_0ygtmkuw                                                                893ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.2s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.2s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.2s
    ├── execute_tool TodoWrite call_5hnvw4xo                                                            58µs
    ╰── chat ollama_cloud/glm-5.3-flash                                                                 2.3s
        ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.3s
            ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.3s
                ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.3s
                    ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.3s
    
    Stats
    Tool Calls
    
    ╭───────────┬───────┬───────┬─────────╮
    │ Tool      │ Calls │ Fail% │ Avg     │
    ├───────────┼───────┼───────┼─────────┤
    │ Bash      │ 19    │ 5%    │ 4671ms  │
    │ Read      │ 9     │ 0%    │ 341µs   │
    │ TodoWrite │ 4     │ 0%    │ 56µs    │
    │ Write     │ 2     │ 0%    │ 2ms     │
    │ Edit      │ 2     │ 0%    │ 419µs   │
    │ Tree      │ 2     │ 0%    │ 463µs   │
    │ Grep      │ 2     │ 0%    │ 223ms   │
    │ Wait      │ 1     │ 0%    │ 54001ms │
    │ MultiEdit │ 1     │ 0%    │ 722µs   │
    │ Memory    │ 1     │ 0%    │ 118µs   │
    ╰───────────┴───────┴───────┴─────────╯
    
    Token Usage
    
    ╭────────────────────────────┬─────────┬─────────┬────────────┬─────────┬──────╮
    │ Model                      │ Prompt  │ Cached  │ Completion │ Total   │ Cost │
    ├────────────────────────────┼─────────┼─────────┼────────────┼─────────┼──────┤
    │ ollama_cloud/glm-5.3-flash │ 1575719 │ 1146880 │ 17944      │ 1593663 │ -    │
    ╰────────────────────────────┴─────────┴─────────┴────────────┴─────────┴──────╯
    
    Sessions
    
    ╭───────────┬──────────┬──────────╮
    │ Execution │ Mode     │ Sessions │
    ├───────────┼──────────┼──────────┤
    │ headless  │ headless │ 1        │
    ╰───────────┴──────────┴──────────╯
    

    Triggered by edenreich · Infer Action · OSS

  4. moved this from Todo to In progress in 2026on Nov 22, 2026
  5. moved this from In progress to QA in 2026on Nov 22, 2026
  6. moved this from QA to Done in 2026on Nov 22, 2026
  7. inference-gateway-releaser commented on Nov 22, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.266.2 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions