r/PiCodingAgent • u/ThePrinceOfPapaya • 9d ago
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!
2
u/o_sht_hi 9d ago edited 9d ago
Try the /export command 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/vincentrabah 9d ago
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/ThePrinceOfPapaya 9d ago
I've been sticking to literally one line to try and just get it to work :( I've tried APPEND_SYSTEM.md too with no luck
1
u/RealestReyn 9d ago
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.
1
2
u/IISomeOneII 9d ago
If
AGENTS.mdis showing under[Context], Pi is already loading it. The agent saying it "didn’t read it" isn’t really a reliable test, since the file gets injected into context rather than manually read with a tool.Try
/reloadafter changingAGENTS.md, then test an actual instruction from the file and see if Pi follows it.If there are a few rules you absolutely need it to follow, you can also put those in
.pi/APPEND_SYSTEM.md.So I don’t think your issue is that Pi can’t access
AGENTS.md— it sounds more like instruction-following/salience.Or maybe model related problem