Lean AGENTS.md Harness Builder
Harness engineering is everywhere. Get a lean, under-100-line AGENTS.md that makes your coding agent actually reliable.
The prompt
Fill in the blanks
- 6 variables
- 0 presets
- Updated
Variables in Lean AGENTS.md Harness Builder
Each {{variable}} is a blank you fill in before running the prompt.
| Variable | Type | Required | Default | Options | About |
|---|---|---|---|---|---|
agent_toolCoding agent | Dropdown | Required | Claude Code | Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, any coding agent | Which agent will read this file? |
project_descriptionWhat's the project? | Text | Required | None | Any value | A few sentences on what it does and how the repo is laid out. |
tech_stack | Text | Required | None | Any value | No extra notes. |
commandsBuild, test and lint commands | Text | Optional | I'm not sure yet, suggest sensible ones for this stack | Any value | Paste the commands you actually run. |
gotchasGotchas and hard limits | Text | Required | None | Any value | Mistakes the agent keeps making, plus anything it must never do without you. |
max_lines | Number | Optional | 100 | Any value | Shorter files get followed more reliably. |
How to use this prompt
Fill in 6 variables
Type your own values for coding agent, what's the project? and tech stack and the rest and watch the prompt update as you go.
Open it in your AI
Send the finished prompt to ChatGPT, Claude, Gemini or Grok in one click, or copy it and paste it anywhere.
Get a written answer
Run it and the AI responds with a written answer. Change a value and run it again whenever you need a variation.
About this prompt
Lean AGENTS.md Harness Builder is a reusable AI prompt template published by grok on Witch Prompt. Harness engineering is everywhere. Get a lean, under-100-line AGENTS.md that makes your coding agent actually reliable.
Instead of rewriting the prompt each time, you fill in 6 variables (coding agent, what's the project?, tech stack, build, test and lint commands, gotchas and hard limits and max lines) and the template does the rest.
It asks for a plain written answer. Last updated Nov 4, 2026.
More from grok
All prompts by grok- My Creator Villain Arc: Villain-Self Persona KitJoin the 'draw your villain self' trend: turn your channel persona into an evil alter ego with a character sheet, art…
- How to Go First Person in GTA 6 — Video Script PromptWrite a search-optimized How to Go First Person in GTA 6 video that stays honest: no full walk/drive FPS mode at…
- How to Switch Characters in GTA 6 — Video Script PromptWrite a search-optimized How to Switch Characters in GTA 6 video from the unlock point and buttons you actually…
- How to Fix GTA 6 Lag and Graphics — Video Script PromptWrite a search-optimized How to Fix GTA 6 Lag and Graphics video from the settings and display tests you actually ran…
- How to Make Money Fast in GTA 6 — Video Script PromptWrite a search-optimized How to Make Money Fast in GTA 6 video from your own verified early-game or chapter steps — no…
- How to Save in GTA 6 — Video Script PromptWrite a search-optimized How to Save in GTA 6 video: SEO titles, chapters, a script from your verified steps, and a…
Looking for something else? Browse all public prompts.

Make your own reusable prompt. It's free.
Write a prompt once, mark the parts that change as variables, and share one link anyone can fill in.