---
title: "Comment by Anas Alkhatib on \"Your agent's rules file is code, so test it: three checks from a 20-point list\" | Hashnode"
description: "The tiny check example is my favorite part, does the agent still run the test command before finishing. I would add one next to it: did the test files themselve"
url: "https://hashnode.com/posts/your-agent-s-rules-file-is-code-so-test-it-three-checks-from-a-20-point-list/6b0256043f465c0469aba5ad/comment/6b02ad79bb6840db255edbea"
---

[Discussion](https://hashnode.com/posts/your-agent-s-rules-file-is-code-so-test-it-three-checks-from-a-20-point-list/6b0256043f465c0469aba5ad)

Comment [Your agent's rules file is code, so test it: three checks from a 20-point list](https://hashnode.com/posts/your-agent-s-rules-file-is-code-so-test-it-three-checks-from-a-20-point-list/6b0256043f465c0469aba5ad)

[Anas Alkhatib](https://hashnode.com/@anasalkhatib)

[3d ago](https://hashnode.com/posts/your-agent-s-rules-file-is-code-so-test-it-three-checks-from-a-20-point-list/6b0256043f465c0469aba5ad/comment/6b02ad79bb6840db255edbea)

The tiny check example is my favorite part, does the agent still run the test command before finishing. I would add one next to it: did the test files themselves change in that run. I have seen agents run the tests every time and still pass by editing the expected value. A rule that says run the tests does not catch that, so it helps to look at the test diff on its own.
