---
title: "Discussion on \"The five correction layers\" | Hashnode"
description: "Discussion on \"The five correction layers\". How I make AI agents write code and docs to my standard without reading every line."
url: "https://hashnode.com/posts/the-five-correction-layers/6b01da632d980e8fdd28bc45"
---

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

Discussion

# [The five correction layers](https://dilbagh.hashnode.dev/the-five-correction-layers?utm_source=hashnode&utm_medium=feed)

How I make AI agents write code and docs to my standard without reading every line.

2d ago · 9 min read · dilbagh.hashnode.dev  
Read the article

-   [#ai](https://hashnode.com/tag/ai)
-   [#agents](https://hashnode.com/tag/agents)
-   [#software-engineering](https://hashnode.com/tag/software-engineering)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#documentation](https://hashnode.com/tag/documentation)

## Written by

[Dilbagh Singh Bakshi](https://hashnode.com/@dsbakshi)

@dsbakshi · Delhi, India

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

## Responses 1

Markdown supported · ⌘↵ to post

[Salman Parvez | ML Systems](https://hashnode.com/@ml-systems)

[1d ago](https://hashnode.com/posts/the-five-correction-layers/6b01da632d980e8fdd28bc45/comment/6b041a86d20c24b8fd3cc3f3)

"The message is written for the next agent" is the part I'll borrow. A lint error that says what the limit is and where the fix lives does the job of a foreman's note on the drawing: the next person doesn't need the history, only the rule and where to look. Coming from carpentry, the strongest correction is the same as your layer 1. A jig that only lets the cut go one way beats any amount of telling people to be careful. I also like that you refused to grandfather the 54 existing violations, since an agent copies what it sees. One question: how do you decide a rule in the guide has earned promotion to a lint rule? The first occurrence, or the second?
