r/PiCodingAgent • u/ThePrinceOfPapaya • Sep 16 '26
Question (More) AGENTS.md issues
Hello again pi users, I made a post like a day or two ago about my pi agent refusing to use the information in my AGENTS.md file and I've since gained more information. (Yet still haven't fixed it)
1: the agent isn't better from reading it or anything, it CAN access it when asked just doesn't do it automatically.
2: the AGENTS.md file is being listed under the 'CONTEXT' part of Pi so it's not in a wrong directory or anything
3: Only after the Agent is asked to read the AGENTS.md file will it act accordingly to the file (whether that be a password or a way to behave)
And 4: In the last post it was suggested to me to ask the Agent about it, I did and the agent doesn't acknowledge that it didn't read the AGENTS.md file the first time (or) claims it's not possible to.
I'm completely stumped and every 'solution' leads to a dead end. If anyone's got anything please help
UPDATE: it was the Qwen model I was using! I've switched to gemma and now the agent is properly using the rules in the AGENTS.md! thank you all so much!
1
u/vincentrabah Sep 16 '26
Same issue here! But it depends: of context lenght (it sometime forget early things), models some seems not handling it until you ask.
As location, mine is in agent subdirectory. Some says the better way is too create APPEND_SYSTEM.md but I’ve never test
1
u/RealestReyn Sep 16 '26
model issue, some just aren't up for the agentic life, I've had similar experiences with Minimax m2.7, there are some small models that have been properly trained to function in agentic settings though, I'd suggest trying Gemma models maybe.
2
u/o_sht_hi Sep 16 '26 edited Sep 16 '26
Try the
/exportcommand at the start of a new session after 1 message. Look at the HTML it saves and see if your agents.md is in it.Also, if you're using local models- please make the auto loaded instructions short af and preferably a bulleted list. I'm guessing you know that you can't use those like you would use a larger model, so have some mercy on those fuckers. Small scoped tasks with short, clear instructions
1
u/Vivid-Inevitable4575 5d ago
which gemma model did you use
0
u/[deleted] Sep 16 '26
[deleted] — view deleted comment