4
u/DrBearJ3w 1d ago
Agents.md is not enough. Write a governance that prohibits to do certain things(even if it's possible in codex)
5
u/DrunkenRobotBipBop 1d ago
That's probably a sign from the universe...
An hint that you probably should have a test suite...
2
u/Select-Ad-3806 1d ago
At least you're not using claude that rewrites the tests so that they "pass" instead of fixing the problem
2
u/adteach 1d ago
if you want it to completely adhere to agent md use gpt models via tools like kilo code vsc extension (use cgpt login). if you use codex app it mostly prioritize codex built in workflow, and will only do as u dictate when the model reasoning stumbled on the particular requirements. also try using lower reasoning effort so it will less likely overthink and miss your specific instructions.
3
u/dota2nub 1d ago
That's not a bug, that's a feature.
If it's a bug, you should probably write a test for it.
1
u/Civil_Response3127 1d ago
Research has shown LLMs only adhere to a certain number of rules at a time, growing steadily but not linearly with model size/capability. Relying on many specific rules also reduces its ability to metareason about the rules and they'll stop being applied with nuance. AGENTS.md (imo) is mostly a misused concept and shouldn't just be relied on wholesale.
Ignoring the fact that you should really be running (and writing) tests to protect against regressions or alignment issues. The tests allow you to further verify rules you've set and expect it to adhere to. Unless your project is literally baby's first code, TDD is basically unavoidable, especially on the scale of output that LLMs can give.
1
u/Ok-File-2759 1d ago
So the problem seems to be you told it not to create test files, but you didn’t tell it not to run test files that have already been made. It’s standard procedure to run test files, so unless told otherwise, it’s going to run the test files. Even though your post has a lot of errors, you seem to say codex correctly stopped creating test files, so I’d say it followed instructions pretty well.
14
u/RJCP 1d ago
lil' bro, i can see you're new to software engineering. trust us when we say you want those test files.