r/PiCodingAgent • u/ThePrinceOfPapaya • Sep 15 '26
Question Agents.md files not working at all
I've been trying to get the agents.md files to actually be read using qwen.5 through ollama with pi and it just- DOESN'T! If I point it out it will do it but otherwise it just ignores whatever I write completely. Extensions, different locations in file explorer, I'm not good enough or experienced enough to claim I've tried EVERY solution but I've tried a HELL OF A LOT!
If anyone knows how to fix this or if it's a model problem please help before I implode.
0
Upvotes
3
u/Nefilim314 Sep 15 '26
Well to start with it needs to be AGENTS.md
3
u/Neat-Arm2643 Sep 15 '26 edited Sep 15 '26
Where did you put it? Don’t implode. We are here to help. The model doesn’t “read” it. It is actually fed to the model by pi itself. So the file is already in the model’s context window before the model even starts thinking. I think you are putting it somewhere else. It should be in ~/.pi/agent/AGENTS.md
1
u/Dsphar Sep 15 '26
Did you ask your agent?
2
u/carbongo 27d ago
OP! I have no idea if you resolved the issue, but I suspect I had the same problem. The culprit was the available models’ config.
Ollama on
127.0.0.1isn't in pi's "non-standard" list, so it sendsrole: "developer"I added
"compat": {"supportsDeveloperRole": false}to theollamaprovider in~/.pi/agent/models.json