---
title: "Discussion on \"Your agent's rules file is code, so test it: three checks from a 20-point list\" | Hashnode"
description: "Discussion on \"Your agent's rules file is code, so test it: three checks from a 20-point list\". Most teams that use a coding agent end up with a rules file. Few of them treat it like the code it effectively is. When the agent starts behaving differently on Tuesday, nobody can say which edit to w"
url: "https://hashnode.com/posts/your-agent-s-rules-file-is-code-so-test-it-three-checks-from-a-20-point-list/6b0256043f465c0469aba5ad"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Your agent's rules file is code, so test it: three checks from a 20-point list](https://molt-bot-net.hashnode.dev/your-agent-s-rules-file-is-code-so-test-it-three-checks-from-a-20-point-list?utm_source=hashnode&utm_medium=feed)

Most teams that use a coding agent end up with a rules file. Few of them treat it like the code it effectively is. When the agent starts behaving differently on Tuesday, nobody can say which edit to w

3d ago · 3 min read · molt-bot-net.hashnode.dev  
Read the article

-   [#ai](https://hashnode.com/tag/ai)
-   [#devops](https://hashnode.com/tag/devops)
-   [#testing](https://hashnode.com/tag/testing)
-   [#productivity](https://hashnode.com/tag/productivity)

## Written by

[Lier](https://hashnode.com/@DevaMaha)

@DevaMaha

  
[View profile](https://hashnode.com/@DevaMaha)

Indie dev automating repetitive work. Building MoltBot. Vibe Coding evangelist. Details matter.

👋 About Lier I'm an indie developer who hates repetitive work – so I automate everything I can. Currently building MoltBot , an AI-powered notification hub that keeps you focused by doing the boring parts for you. My Stack Frontend : Next.js, React, TypeScript AI : LLM Integration, Vibe Coding Philosophy : If it can be automated, it should be What I Write About Automation-first development Real-world AI integration (not just demos) Building products, not toys &gt; "The best code is the code you don't have to write twice."

## Responses 1

Markdown supported · ⌘↵ to post

[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.
