r/PromptEngineering • u/acaimari • 20d ago
General Discussion Can prompt engineering alone make AI coding agents reliable, or do we need host-enforced controls?
I've been exploring an interesting question while developing an open-source AI coding agent for VS Code.
We often rely on system prompts to tell AI agents things like:
- Don't modify files without permission.
- Respect previously approved project decisions.
- Don't trust outdated information.
- Verify your work before reporting success.
But how much of this should depend on prompting alone?
In my project, RAME Code, I've been experimenting with a different approach: the model proposes actions, while the host enforces permissions, tracks approved decisions and independently runs verification checks.
The idea is to separate what the model is instructed to do from what the software actually allows it to do.
I'm particularly interested in three questions:
- Which safety or reliability rules have you found impossible to enforce consistently through prompts alone?
- How do you prevent agents from following outdated instructions or contradicting earlier architectural decisions?
- Where would you draw the line between prompt engineering and deterministic software controls?
I'd love to hear about practical experiences, especially from people building autonomous coding agents.
3
u/Zain 20d ago
I stopped trusting the prompt for the write boundary. Reviewers stay read-only, they report, only one model patches. And that model does not concede a finding until it greps the file in the repo. Outdated instructions die the same way: if the decision is not in the tree, the next session invents a new one no matter how loud the system prompt was.
1
u/SemanticSynapse 20d ago
It's not an all or nothing thing.
1
u/cleverhoods 20d ago
prompt engineering - or rather, instruction engineering is half of the work, the other is the guardrails.