HOW-TO GUIDE
How to write agent rules that hold by keeping a violation log
Based on a guide by Debashish Ghosal on DEV Community · Nov 29, 2026
You'll end with: A set of agent rules rewritten to be exact, enforced by the harness, and tracked in a violation log the agent writes itself.
Why it's worth having: A rule that keeps showing up in the log is a rule in the wrong shape, and the log turns scattered misses into a count you can fix one rule at a time.
At a glance
WHO IT'S FOR
Engineering managers, operations leads, and engineers who write rules for AI agents.
COST
Free. The method needs only a rules file and one log file.
YOU NEED
An AI agent with a rules file · One violation log file · A harness that can deny commands
The method, in short
- 1Replace vague rules with exact ones, such as run only the failing test, so anyone can check compliance in five seconds.
- 2Move dangerous actions, such as force-pushing a shared branch, into a harness denial instead of a polite request.
- 3Have the agent write a dated entry in one violation log whenever it breaks a rule, and read the log before each session.
- 4Rewrite any rule that shows up in the log again, instead of adding emphasis to it.
Read the full guide from Debashish Ghosal on DEV Community
The post has the three laws and three before-and-after rule rewrites.
More from The Feed
HOW-TO GUIDE
You'll end with: A Grok Bot team built from the COO template, with a chief of staff that routes each ask, one job per bot, and one bot that audits the rest.
WHO IT'S FOR
Executives, plant managers, and operations leads who want several bots working without overlap.
COST
Free to read. The prompts are in a linked article, and the bots run in Grok Bot on your plan.
YOU NEED
Grok Bot · The COO template · Notion
Read the full guide from @ducksays on X
Based on a post by duck says (@ducksays) on X · Nov 27, 2026
HOW-TO GUIDE
You'll end with: A ranked list of your top 5 time sinks by hours a week, each with a drafted bot or routine, after 7 days of logging.
WHO IT'S FOR
Plant managers, operations leads, and engineers who are not sure what to automate first.
COST
Free. The prompt runs in Grok Bot on your own plan.
YOU NEED
Grok Bot · Connected apps · A never-touch list
Read the full guide from @BotDirectoryAI on X
Based on a post by Bot Directory AI (@BotDirectoryAI) on X · Nov 27, 2026
HOW-TO GUIDE
You'll end with: A folder with raw, wiki, and output folders, one wiki page per project, person, tool, and decision, an index, and a short brief after each compile.
WHO IT'S FOR
Engineers, document controllers, and operations staff who keep project notes and source files in one folder.
COST
Free. The prompt runs in Claude Code on your own plan.
YOU NEED
Claude Code · A folder of notes and source files
Read the full guide from @0xkurt on X
Based on a post by Kurt (@0xkurt) on X · Nov 28, 2026