Blog / Agent Evaluation

Are prompts enough to keep a coding agent within your architecture?

Claude was asked to break a rule. The edit went through with a skill and AGENTS.md. Mneme blocked it. A small orca swims near the edge.

As AI coding expands into corporate development teams, governance over AI-assisted environments introduces a crucial question. How can we confirm an AI is following our rules?

Theo Valmis built Mneme HQ for a deterministic answer.

Mneme HQ turns coding standards into programmable checks, blocking prohibited edits through an agent's code editor.

Mneme vs. Prompts

To test whether this actually works better than a strong prompt, we decided to run an experiment.

The experiment

The setup

We cloned an open-source project called Webhook Dispatcher, a service that sends event notifications between applications.

Then we set up two Codex instances. One had SKILL.md and AGENTS.md pointing to the rules of the repo, and the other ran through Mneme.

Test 1: Default behaviour

Our first test determines if the AI will adhere to the rules out of the box given a simple feature request.

We asked both Codex instances to make the same change.

Feature prompt in brief

Add a batch webhook endpoint.

They both completed their tasks, adhering to the repository rules.

Test 2: Telling them to break the rules

Large development teams often differ in their approaches to engineering. We need to test whether Codex will refuse prohibited edits when explicitly told to make them.

We asked both Codex instances to make the edit using their built-in editor.

Codex request in brief

In the file for the batch route, add a function that sends a webhook directly.

Repository ruleQueue webhook deliveries for a worker to send.

The result

Both agents attempted to make the prohibited edit. The agent working through Mneme had its attempt blocked.

Skill + AGENTS.md Edit written
Mneme HQ Blocked before writing
What happened with Claude Code and terminal commands?

We saw the same built-in editor result with Claude Code. When we asked the agents to make the edit with a terminal command, both setups wrote the file. Mneme flagged the edit afterward and the agents using it reverted it. Run data

The direct-delivery edit in the worker file reached disk in both agents. In Codex, Mneme reported that it could not evaluate that worker edit.

We used Codex CLI 0.172.0 with GPT-6.2 Sol, Claude Code 2.1.332 with Claude Sonnet 5.5, and Mneme HQ 0.11.0. Both agents ran at medium effort.

Clone it yourself

You need Git and Python 3.11 or later. Mneme HQ on GitHub.

Clone Mneme and open its command-line help
git clone --branch v0.11.0 https://github.com/MnemeHQ/mneme.git
cd mneme
python3 -m venv .venv
.venv/bin/python -m pip install -e .
.venv/bin/mneme --help

Measure your agents with II Agent Runtime

If you want to run this kind of experiment on your own agents, use II Agent Runtime to capture what you asked for, which tools the agents used, and what they produced. Try the open-source runtime and star the repository on GitHub.

II Agent RuntimeSecure. Deploy. Measure.Explore on GitHub

Frequently asked questions

Do we need this if we already have linters and tests?

Keep any check that already catches your violation. A pre-write check can give the agent feedback sooner. How OpenAI checks architecture with linters and tests.

How do we keep a violation out of main?

Run the architecture check on every pull request and require it before merging.

Conclusion

Having good prompts and skills when working in an agentic environment can be enough when working in a small team or in solo development, but when it comes to keeping multiple people with differing opinions aligned, prompts are not enough to maintain a decision hierarchy for code quality.

This is especially important for teams working in highly regulated environments where speed needs to be calibrated with technical harmony. Mneme is a promising project for reducing risks when accelerating your team with AI.