Skip to content

Commit d1624e5

Browse files
committed
Add rule for non-interactive command execution
- Add Command Execution Rules section to Agent Workflow - Prohibit interactive commands that require user input - Require non-interactive flags or file-based input for all commands
1 parent c36e79e commit d1624e5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

AGENTS.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,20 @@ npm run lint # Run oxlint
251251

252252
## Agent Workflow
253253

254+
### Command Execution Rules
255+
256+
**CRITICAL:** Never use interactive commands that require user input or interaction.
257+
258+
**Rules:**
259+
260+
- Always use non-interactive flags or parameters for all commands
261+
- Never open editors or interactive prompts that require user input
262+
- Prefer file-based input over interactive prompts
263+
- Use appropriate flags (`--yes`, `--no-interaction`, `--force`) to avoid prompts
264+
- Provide all required parameters directly via command-line arguments or input files
265+
266+
**General principle:** If a command might open an editor, prompt for confirmation, or wait for user input, it must be made non-interactive using appropriate flags or alternative methods.
267+
254268
### Development Process
255269

256270
**Order of operations** (priority: functionality → correctness → style):

0 commit comments

Comments
 (0)