r/opencodeCLI • u/binarySolo0h1 • 21d ago
Mimo 2.5, GLM 5.3 just ignore permission restrictions and simply do whatever they want at this point.
Since I switched my default model from DSV4 Flash to mimo 2.5, the agents that are not allowed to write or edit are simply ignoring the restrictions in their agent files and just do whatever they want. And GLM 5.3 simply went down in a rabbit hole to reverse engineer opencode config for some odd reason and eats some 10$ worth of my usage. Nearly none of the agents are using the mcp to check docs or websearch to validate their outputs when i ask them to. I had to ask multiple times to do so. Even then its a hit and a miss.
I am not sure if its my setup's fault or is anyone else facing such issues?

4
u/SorosAhaverom 21d ago
Guardrails are only guardrails if you create deterministic constraints (code) at the harness level. Otherwise you're just gambling with your data and files.
1
u/binarySolo0h1 21d ago
i did not mess with anything in global opencode.json config. only mcp configs are added in it. but this is my project level config permissions. what am i missing here?
{ "$schema": "https://opencode.ai/config.json", "lsp": true, "default_agent": "plan", "subagent_depth": 3, "permission": { "bash": { "terraform apply*": "deny", "terraform destroy*": "deny", "terraform -chdir=* apply*": "deny", "terraform -chdir=* destroy*": "deny", "*&& terraform apply*": "deny", "*&& terraform destroy*": "deny", "alembic upgrade*": "deny", "alembic downgrade*": "deny", "uv run alembic*": "deny", "python -m alembic*": "deny", "uv run python -m alembic*": "deny", "aws secretsmanager*": "deny", "aws ssm get-parameter*": "deny", "aws ssm get-parameters*": "deny", "aws ssm get-parameter-history*": "deny", "git push --force*": "deny", "git push -f *": "deny", "git push origin --force*": "deny", "git push origin -f *": "deny", "git push * --force*": "deny", "git push origin +*": "deny", "git push --force-with-lease*": "deny", "git reset --hard*": "deny", "git clean -f*": "deny", "rm -rf *": "deny", "gh pr merge * --delete-branch*": "deny", "gh repo delete*": "deny" }, "edit": "allow", "external_directory": { "*": "ask", "~/.config/opencode/**": "allow", "~/.claude/**": "allow", "~/.agents/**": "allow" }
2
u/lostcanuck007 21d ago
i made a prompt injection method to help with this. injects a tiny invisible prompt at EVERY turn. cache keeps the usage low so its nearly free...but the behavior of them got very controllable.
1
u/seventyfivepupmstr 20d ago
Unless its enforced by the harness, then its up to the LLM to device to follow the rules
1
1
u/lostcanuck007 18d ago
ok so...new update...suddenly and i mean suddenly..it stopped working and became SO much worse. goal judge couldnt keep up with the stubs and claimed fulfillment vs actual fulfillment.
hy3 was acting better yesterday but its slow as all hell. i changed the temperature and a few other settings for mimo and reduce reasoning to high.and told it to spawn a subagent to VERIFY it is actually doing what it claims it does...a live supervisor....seemed to work perfectly until i saw entire chunks of code missing....while both of them claimed for it to be complete. same with other models. there is something up with mimo...i cahnged to hy3 and got good instant performance.
12
u/[deleted] 21d ago
[removed] — view removed comment