Skip to content

[FEATURE] Load nested AGENTS.md files #1385

Closed

Description

Summary

infer injects only ./AGENTS.md into the system prompt: buildAgentsMDInfo in internal/agent/agent_utils.go reads that single file. The AGENTS.md spec (https://agents.md) recommends nested files for subprojects, where the file closest to the edited code takes precedence. Claude Code (v2.1.277+) loads a subdirectory AGENTS.md on demand when it reads files in that directory, and Codex concatenates the files from the root down to the working directory.

This repository now ships nested agent briefs (internal/tools/AGENTS.md and internal/presentation/AGENTS.md) that infer cannot see, so they only help agents that walk the tree. Loading the nearest ancestors of the files a task touches would make those files useful to infer and to this repository's own bot.

Acceptance Criteria

  • infer discovers an AGENTS.md in a subdirectory of the project and injects it alongside the root ./AGENTS.md.
  • Precedence follows the AGENTS.md spec: the file closest to the edited code takes precedence over the root file.
  • The combined injected instructions stay within DefaultInstructionsMaxChars in config/config.go, with a clear truncation rule when the cap is hit.
  • Discovery is on demand or budgeted, so a large monorepo does not inflate every turn's system prompt.
  • The behaviour is covered by tests, and the agent.agents_md section of the configuration reference documents it.

Activity

  1. edenreich commented on Sep 28, 2026

    @edenreich
    Contributor

    @infer Can you work on this? use /ponytail:ponytail

  2. added theissue type on Sep 28, 2026
  3. inference-gateway-maintainer commented on Sep 28, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Model: ollama_cloud/glm-5.3-flash · View Job

    Todos

    • Add issue [FEATURE] Load nested AGENTS.md files #1385 to Roadmap board, set In progress
    • Create and push fix/issue-1385 branch
    • Read buildAgentsMDInfo, config caps, and existing AGENTS.md files
    • Implement nested AGENTS.md discovery with precedence + truncation
    • Add tests for nested discovery, precedence, truncation
    • Document agent.agents_md in configuration reference
    • Run checks, commit, push, open draft PR, set QA status
    • File [DOCS] issue in inference-gateway/docs

    Pull Request

    #1392

    ✅ Infer Result: Success

    All work is complete and verified. Let me finalize the todo list:

    Done. Issue #1385 is implemented and shipped in PR #1392 (ready for review): #1392

    What changed

    buildAgentsMDInfo in internal/agent/agent_utils.go now injects nested AGENTS.md files alongside the project root one, per the agents.md standard:

    • Discovery: one bounded filepath.WalkDir below the working directory (up to 4 levels; hidden dot-trees and node_modules/vendor skipped), so a large monorepo cannot inflate prompt assembly.
    • Precedence: files are labeled with their directory (internal/tools/AGENTS.md (applies to internal/tools/ and below):) and a one-line note states the file closest to the edited code takes precedence over shallower ones.
    • Truncation rule: each file keeps its existing per-file max_lines cap, then the combined text is budgeted at agent.agents_md.max_chars (default 8000) deepest-file-first - the nearest file keeps its instructions while shallower files are truncated ([truncated at N chars to fit agent.agents_md.max_chars]) or dropped (a note lists the dropped paths).
    • No config schema changes: rides on the existing agent.agents_md.enabled / max_lines / max_chars knobs.
    • Tests: new subtests in TestBuildAgentsMDInfo cover nested injection/order, nearest-first budget truncation, budget-exhausted drop note, and skip rules; all existing subtests pass unchanged.
    • Docs: the agent.agents_md section in docs/configuration-reference.md documents the nested behavior, and the stale "infer injects only this root file" line in the root AGENTS.md was refreshed.

    Verification

    task fmt, task vet, task lint (0 issues) and the full task test suite all pass. Follow-up docs ticket filed in the docs repo: inference-gateway/docs#853.

    Skipped: per-file max_chars config and a session-level walk cache (per-turn bounded walk is ~1ms on this repo) - add only if a giant monorepo shows it in profiles.

    Model: ollama_cloud/glm-5.3-flash · Exit Code: 0 · Duration: 11m 2s

    Tokens: 3,550,851 in · 37,455 out · 3,588,306 total (38 requests)

    Tool calls: 52 total · 100% success rate

    Traces
    Session: 1790631817-4a01deed
    
    session (headless, success)                                                                       10m55s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 4.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.2s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.2s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             4.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.2s
    ├── execute_tool Read call_j1h22kwb                                                                606µs
    ├── execute_tool Read call_xb7zvos6                                                                171µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 9.9s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       9.9s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     9.9s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             9.9s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 9.9s
    ├── execute_tool TodoWrite call_tgkgwvcf                                                            64µs
    ├── execute_tool Bash call_3a2qap5a                                                                412ms
    ├── 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 Bash call_9id0aboj                                                                 1.5s
    ├── execute_tool Bash call_p9z5c6ny                                                                  6ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.9s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.9s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.9s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.9s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.9s
    ├── execute_tool Bash call_nk2ucecy                                                                 1.3s
    ├── execute_tool Bash call_9t5xc26t                                                                 1.5s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.0s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.0s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.0s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.0s
    ├── execute_tool TodoWrite call_6quziefr                                                            81µs
    ├── execute_tool Grep call_c58yrj96                                                                296ms
    ├── 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 Read call_j8n5mzbe                                                                242µs
    ├── execute_tool Read call_p00mihq8                                                                183µs
    ├── execute_tool Grep call_45ez2hud                                                                314µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.9s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.9s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.9s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.9s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.9s
    ├── execute_tool Read call_heq06zua                                                                152µs
    ├── execute_tool Read call_gq22m7yl                                                                111µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                32.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      32.0s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    32.0s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            32.0s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                32.0s
    ├── execute_tool Grep call_vyhcogb3                                                                231ms
    ├── execute_tool Grep call_6zs9dpf7                                                                  4ms
    ├── execute_tool Grep call_vsliuzea                                                                510µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.9s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.9s
    │       ╰── 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 Grep call_rbmmkbov                                                                 12ms
    ├── execute_tool Grep call_x8vpiipn                                                                 10ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1m5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1m5s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1m5s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1m5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1m5s
    ├── execute_tool Grep call_lh832dod                                                                  1ms
    ├── 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
    ├── execute_tool Read call_a1lde59e                                                                136µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                1m23s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      1m23s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    1m23s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            1m23s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                1m23s
    ├── execute_tool Read call_2ge0qq3q                                                                154µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                1m10s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      1m10s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    1m10s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            1m10s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                1m10s
    ├── execute_tool TodoWrite call_12eojo25                                                            60µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                14.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      14.5s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    14.5s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            14.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                14.5s
    ├── execute_tool MultiEdit call_swukazwd                                                           781µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 4.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.7s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.7s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             4.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.7s
    ├── execute_tool Read call_hcamjw6l                                                                175µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.7s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.6s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.6s
    ├── execute_tool Bash call_8odrnbat                                                                54.3s
    ├── chat ollama_cloud/glm-5.3-flash                                                                10.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      10.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    10.1s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            10.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                10.1s
    ├── execute_tool MultiEdit call_fsk5i3xl                                                           535µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.0s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.0s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.0s
    ├── execute_tool Bash call_rs3qnbi3                                                                 9.5s
    ├── 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
    ├── execute_tool Grep call_n8lo2ma4                                                                236µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 8.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       8.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     8.1s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             8.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 8.1s
    ├── execute_tool Edit call_2yhm2qna                                                                769µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 4.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.0s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.0s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             4.0s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.0s
    ├── execute_tool Edit call_zpr8mqgj                                                                337µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.0s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.0s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.0s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.0s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.0s
    ├── execute_tool Bash call_lrp28pyv                                                                 1.9s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 5.3s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.2s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.2s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             5.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.2s
    ├── execute_tool Bash call_ohyvfria                                                                  6ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.4s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.4s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.4s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.4s
    ├── execute_tool Bash call_2ayzhwk5                                                                44.9s
    ├── 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.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_a6p51a2p                                                                40.3s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.6s
    │   ╰── 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 Bash call_ydutqjqv                                                                1m20s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 5.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.6s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             5.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.6s
    ├── execute_tool TodoWrite call_wvn15025                                                            68µs
    ├── execute_tool Bash call_5eqndkgi                                                                 10ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.2s
    │   ╰── 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_3u712d3q                                                                 4.5s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 5.8s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.7s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.7s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             5.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.7s
    ├── execute_tool Bash call_afdqbbus                                                                 1.6s
    ├── execute_tool Write call_w5g49qis                                                               861µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.4s
    │   ╰── 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
    ├── execute_tool Bash call_ikkz0rww                                                                 1.7s
    ├── chat ollama_cloud/glm-5.3-flash                                                                11.0s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      11.0s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    11.0s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            11.0s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                11.0s
    ├── execute_tool Bash call_t5sqn60f                                                                921ms
    ├── execute_tool WebFetch call_bp1zwki8                                                            131ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 6.8s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.8s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.8s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             6.8s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.8s
    ├── execute_tool Write call_6sjdq0nn                                                               667µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.4s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.4s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.4s
    ├── execute_tool Bash call_2xcx445r                                                                994ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.6s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.6s
    ├── execute_tool Bash call_uzza7k6q                                                                942ms
    ├── 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_q0x4fwpt                                                                  6ms
    ├── execute_tool Bash call_aic5cjq7                                                                  6ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.1s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.1s
    ├── execute_tool Bash call_v2s60l6b                                                                333ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.9s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.9s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.9s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.9s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.9s
    ├── execute_tool TodoWrite call_m69ttwow                                                            63µs
    ╰── chat ollama_cloud/glm-5.3-flash                                                                 6.4s
        ╰── 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
    
    Stats
    Tool Calls
    
    ╭───────────┬───────┬───────┬─────────╮
    │ Tool      │ Calls │ Fail% │ Avg     │
    ├───────────┼───────┼───────┼─────────┤
    │ Bash      │ 22    │ 0%    │ 11189ms │
    │ Read      │ 9     │ 0%    │ 214µs   │
    │ Grep      │ 9     │ 0%    │ 62ms    │
    │ TodoWrite │ 5     │ 0%    │ 65µs    │
    │ Write     │ 2     │ 0%    │ 767µs   │
    │ MultiEdit │ 2     │ 0%    │ 655µs   │
    │ Edit      │ 2     │ 0%    │ 552µs   │
    │ WebFetch  │ 1     │ 0%    │ 132ms   │
    ╰───────────┴───────┴───────┴─────────╯
    
    Token Usage
    
    ╭────────────────────────────┬─────────┬─────────┬────────────┬─────────┬──────╮
    │ Model                      │ Prompt  │ Cached  │ Completion │ Total   │ Cost │
    ├────────────────────────────┼─────────┼─────────┼────────────┼─────────┼──────┤
    │ ollama_cloud/glm-5.3-flash │ 3550851 │ 2983680 │ 37455      │ 3588306 │ -    │
    ╰────────────────────────────┴─────────┴─────────┴────────────┴─────────┴──────╯
    
    Sessions
    
    ╭───────────┬──────────┬──────────╮
    │ Execution │ Mode     │ Sessions │
    ├───────────┼──────────┼──────────┤
    │ headless  │ headless │ 1        │
    ╰───────────┴──────────┴──────────╯
    

    Triggered by edenreich · Infer Action · OSS

  4. added a commit that references this issue on Sep 28, 2026
    89cff11
  5. added a commit that references this issue on Sep 28, 2026
    603d2be
  6. added a commit that references this issue on Sep 28, 2026
    1e8e335
  7. inference-gateway-releaser commented on Sep 28, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.218.0 🎉

    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

    enhancementreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions