[GH-ISSUE #5725] [BUG]: agent skills - creating files, why using windows paths when running on linux? #5258

Closed
opened 2026-06-05 14:52:58 -04:00 by yindo · 4 comments
Owner

Originally created by @PCAssistSoftware on GitHub (May 30, 2026).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5725

How are you running AnythingLLM?

Docker (local)

What happened?

Got AnythingLLM installed on Docker running on Ubuntu 26.04

Why when doing anything related to it writing files is it using a windows style path when running on Linux, and mentioning paths which don't even exist on the linux machine?

e.g.

Agent complete
Assembling Tool Call: filesystem-create-directory({"path":"C:\Users\TaskUser\projects\installer-cleanup-analyzer\repositories"})
@agent is executing filesystem-create-directory tool { "path": "C:\Users\TaskUser\projects\installer-cleanup-analyzer\repositories" }
@agent: Creating directory C:\Users\TaskUser\projects\installer-cleanup-analyzer\repositories
Successfully created directory C:\Users\TaskUser\projects\installer-cleanup-analyzer\repositories

Are there known steps to reproduce?

No response

LLM Provider & Model (if applicable)

Qwen3.6-35B-A3B-MTP-GGUF

Embedder Provider & Model (if applicable)

Lemonade

Originally created by @PCAssistSoftware on GitHub (May 30, 2026). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5725 ### How are you running AnythingLLM? Docker (local) ### What happened? Got AnythingLLM installed on Docker running on Ubuntu 26.04 Why when doing anything related to it writing files is it using a windows style path when running on Linux, and mentioning paths which don't even exist on the linux machine? e.g. Agent complete Assembling Tool Call: filesystem-create-directory({"path":"C:\\Users\\TaskUser\\projects\\installer-cleanup-analyzer\\repositories"}) @agent is executing `filesystem-create-directory` tool { "path": "C:\\Users\\TaskUser\\projects\\installer-cleanup-analyzer\\repositories" } @agent: Creating directory C:\Users\TaskUser\projects\installer-cleanup-analyzer\repositories Successfully created directory C:\Users\TaskUser\projects\installer-cleanup-analyzer\repositories ### Are there known steps to reproduce? _No response_ ### LLM Provider & Model (if applicable) Qwen3.6-35B-A3B-MTP-GGUF ### Embedder Provider & Model (if applicable) Lemonade
yindo added the possible bugneeds info / can't replicate labels 2026-06-05 14:52:58 -04:00
yindo closed this issue 2026-06-05 14:52:58 -04:00
Author
Owner

@PCAssistSoftware commented on GitHub (May 30, 2026):

screenshot - showing it seems to be creating windows style paths in anythingllm-ds directory, but contents are empty:

Image
<!-- gh-comment-id:4583379773 --> @PCAssistSoftware commented on GitHub (May 30, 2026): screenshot - showing it seems to be creating windows style paths in anythingllm-ds directory, but contents are empty: <img width="1107" height="302" alt="Image" src="https://github.com/user-attachments/assets/c97267e8-9a83-452d-8760-4ab4b30b4d89" />
Author
Owner

@timothycarambat commented on GitHub (May 30, 2026):

This seems like a model-level hallucination (and a very weird one at that)
https://github.com/Mintplex-Labs/anything-llm/blob/c0e9414889f618db38e8d98969db905cabedabf7/server/utils/agents/aibitat/plugins/filesystem/create-directory.js#L14-L17

We dont specify any level of instruction as to what the file paths should be or even the OS that the assistant is on. That being said, I think making that specification at the system prompt level would solve that.

Maybe this is something we can add into the skill so when the model does want to use these tools it knows what OS it is on at least?

Before chasing this down - are you able to resolve this via just the prompt? I think the model is just assuming windows (something in history maybe?)

<!-- gh-comment-id:4585568658 --> @timothycarambat commented on GitHub (May 30, 2026): This seems like a model-level hallucination (and a very weird one at that) https://github.com/Mintplex-Labs/anything-llm/blob/c0e9414889f618db38e8d98969db905cabedabf7/server/utils/agents/aibitat/plugins/filesystem/create-directory.js#L14-L17 We dont specify any level of instruction as to what the file paths should be or even the OS that the assistant is on. That being said, I think making that specification at the system prompt level would solve that. Maybe this is something we can add into the skill so when the model does want to use these tools it knows what OS it is on at least? Before chasing this down - are you able to resolve this via just the prompt? I think the model is just assuming windows (something in history maybe?)
Author
Owner

@PCAssistSoftware commented on GitHub (May 31, 2026):

Replicated using multiple models, so if it is a model level hallucination it affects multiple models of varying sizes...

<!-- gh-comment-id:4586643036 --> @PCAssistSoftware commented on GitHub (May 31, 2026): Replicated using multiple models, so if it is a model level hallucination it affects multiple models of varying sizes...
Author
Owner

@PCAssistSoftware commented on GitHub (May 31, 2026):

totally cleared my history etc as did wonder the same thing initially

<!-- gh-comment-id:4586644559 --> @PCAssistSoftware commented on GitHub (May 31, 2026): totally cleared my history etc as did wonder the same thing initially
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#5258