Prevents scope creep
Limits work to the latest explicit request and the files directly required to complete it.
AGENTS.md / Operating Prompt
A structured operating prompt that tells an AI agent how to interpret requests, control scope, make minimal changes, verify results, and stop at the correct point.
01priorityuser_request > host_rules > project_style
02scopeexplicit_task_only
03inspectiondirectly_related_files
04changeminimum_safe_diff
05verificationproportional_to_risk
06stoprequested_result_complete
07reportfiles + changes + manual_check
Why It Is Used
Without clear operating instructions, an agent may inspect too much, change unrelated files, add unnecessary complexity, or continue after the requested result is complete. This prompt turns broad expectations into explicit execution rules.
Limits work to the latest explicit request and the files directly required to complete it.
Prioritizes surgical edits instead of broad rewrites, refactoring, or unrelated cleanup.
Connects every changed line to a specific requirement, making review faster and clearer.
Defines how to verify the result, report the change, and stop once the task is complete.
Control Parameters
These are operational parameters rather than model-generation settings. They determine how the agent behaves around the work.
user_request_firstResolves conflicts by placing the latest user request above host guidance, project conventions, and general judgment.
explicit_task_onlyPrevents the agent from adding features, fixing adjacent issues, or expanding the task through assumptions.
directly_relatedAllows only the files and sections required to understand and complete the requested change.
minimum_requiredKeeps the implementation simple and preserves existing structure, naming, style, and functionality.
no_new_by_defaultAvoids introducing packages or configuration changes unless the task explicitly requires them.
proportionalMatches the check to the change: manual review for copy, targeted checks for code, and focused proof for bugs.
result_completeEnds execution immediately after the requested outcome is achieved, preventing extra work.
structured_summaryReports changed files, the exact change, its purpose, and what still requires manual review.
Execution Logic
The prompt creates a repeatable decision path instead of leaving each task to unstructured interpretation.
Identify the latest explicit outcome.
Resolve priority and choose the smallest safe reading.
Read only the directly related context.
Make the minimum required implementation.
Use one proportional, targeted check.
State what changed and what to review.
End when the requested result is complete.
Strengths
Tradeoffs
Practical Result
The value comes from translating general expectations into rules that can guide each inspection, edit, verification step, and final report.