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- Outage Status Update Writer (Calm, Clear, No Panic)Email, chat or a vendor just went down? Get a calm status update plus a stopgap plan your people can follow right now.
- Is My Site Agent-Ready? AI Agent Readiness AuditAI agents are now the web's main visitors. Find out if they can read, navigate, and buy from your site, and get a fix…
- Survive the AI Interviewer: Mock Screening PracticeAI bots are screening job candidates now. Rehearse with one first, then get a blunt scorecard on every answer.
- Christmas Gift Shortlist (Beat the Rush)Christmas shopping started early this year. Get a thoughtful, on-budget gift shortlist for anyone on your list in…
- It Looks Done But Doesn't Work: Vibe-Code Fix FinderYour AI-built app looks perfect but nothing actually saves or works? Find the real cause and get a fix plan your AI…
- Dhanteras Gift & Buy PickerHappy Dhanteras! Get auspicious buy and gift ideas for your budget, recipient, and traditions—plus what to skip.
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.