Skip to content

[DOCS] Document list_files and @path expansion for daemon clients #1106

Closed

Description

@edenreich

Summary

The infer daemon AG-UI binding gained a list_files request and worker-side @<path> file expansion in inference-gateway/cli#1717. Daemon clients (browser extension, desktop app) can now offer the @ file autocomplete and send file references like the chat TUI. The docs site does not cover either yet.

  • list_files (optional project_dir) is answered with a files frame: {"type": "files", "files": ["cmd/infer/main.go", "README.md", "~/.infer/config.yaml"]}. Paths are relative to the worker's project dir, followed by the user's ~/.infer files as ~/.infer/<path>. The list is empty when the project dir cannot be walked.
  • An @<path> token in a run_agent_input text part is expanded by the worker before the run: a text file is inlined as a fenced block, a Markdown file as its ## Summary section when it has one, and an image becomes a note naming its path. A path that does not resolve to a readable file within the size limits stays in place as the raw token.

Affected pages: the CLI AG-UI output and daemon / browser extension protocol pages.

Source: inference-gateway/cli#1717

Acceptance Criteria

  • The list_files request and files reply are documented with a JSON example and the empty-list case
  • The @<path> expansion in run_agent_input is documented, including the Markdown summary rule, the image path note and the raw-token fallback
  • list_files is listed among the project-scoped requests

Activity

  1. added
    documentation
    on Nov 6, 2026
  2. added theissue type on Nov 6, 2026
  3. moved this to Todo in 2026on Nov 6, 2026
  4. edenreich commented on Nov 6, 2026

    @edenreich
    ContributorAuthor

    @claude can you document this? use /ponytail:ponytail

  5. inference-gateway-maintainer commented on Nov 6, 2026

    @inference-gateway-maintainer
    Contributor

    Claude finished @edenreich's task in 3m 9s —— View job • docs/issue-1106-20261106-1801 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-1106-20261106-1801?quick_pull=1&title=Issue%20%231106%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%231106%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Documented list_files and @<path> expansion

    • Gather context (found the list_issues / #N commit as an exact template)
    • Pull the real behavior from the CLI's own docs/browser-extension-protocol.md instead of paraphrasing the issue
    • Document list_files request + files reply + empty-list case
    • Document @<path> expansion (Markdown summary, image note, raw-token fallback)
    • List list_files among the project-scoped request frames
    • Validate (lint:md, format:check, build - all pass)
    • Commit and open PR

    PR: #1109

    What changed

    33 lines added, nothing rewritten:

    • opentask.md - new ### Project file references section, placed right after the ### GitHub issue references section and mirroring its shape: the list_files request with optional project_dir, the files reply as a JSON example, the empty-list case when the project dir cannot be walked, plus the four @<path> expansion rules (text file inlined as a fenced block, Markdown file's ## Summary when it has one, image as a note naming its path, unresolvable path left as the raw token).
    • opentask.md - list_files and files rows in the browser-extension frame table.
    • cli.md - one list_files row in the AG-UI "App frames in" table, linking to the new section.

    I took the wording from the CLI repo's docs/browser-extension-protocol.md rather than from the issue summary, so the size-limit and hidden-file caveats match what the worker actually does.

    Skipped

    The chat TUI's @ autocomplete has no prose section on the docs site (unlike #, which has /cli/#github-issue-references), so there was no TUI section to extend the way the # commit did - the new section stands alone and cli.md links into it. Writing a TUI-side @ menu section for cli.md is a bigger separate piece and I left it out; say the word if you want it. I did not run bun run preview (no nav or theme change here).
    | Branch

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

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.24 🎉

    The release is available on GitHub release

    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