From a21988ea912905e1850982ac66bd207dde313426 Mon Sep 17 00:00:00 2001 From: rakadu1 Date: Wed, 15 Apr 2026 16:39:31 +0530 Subject: [PATCH] adding gemini.md rules. --- gemini.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/gemini.md b/gemini.md index 31423a2..7862b94 100644 --- a/gemini.md +++ b/gemini.md @@ -89,9 +89,22 @@ This document is the consolidated source of truth for AI agents working on the F ## 🚀 6. Execution Commands -- **Run Scenario:** `./run.bat --frames --params "KEY=VAL" --weather ` -- **List Scenarios:** `./run.bat --list-scenarios` -- **Manual Python Run:** `python src/main.py --scenario ` +- **Run Scenario:** `cmd /c run.bat --frames --params "KEY=VAL" --weather ` +- **List Scenarios:** `cmd /c run.bat --list-scenarios` +- **Run Testbench:** `cmd /c "call C:\ProgramData\miniconda3\Scripts\activate.bat carla312 && python scripts/test_shenron.py --iter "` + +## 🤖 7. Agent Execution Rules + +- **Shell Environment:** This repository is hosted on **Windows**. All commands MUST use **PowerShell** syntax for general file operations and directory management. +- **Python Execution:** All simulation and scenario commands MUST be launched via the `run.bat` orchestrator using the `cmd /c` prefix. +- **Standalone Scripts:** Scripts like `test_shenron.py` or diagnostic tools must also use `cmd /c` with explicit environment activation to ensure compatibility: + - **Correct:** `cmd /c "call C:\ProgramData\miniconda3\Scripts\activate.bat carla312 && python scripts/test_shenron.py --iter test"` + - **Incorrect:** `python scripts/test_shenron.py --iter test` +- **Cmdlet Preference:** Prioritize native PowerShell cmdlets or robust Windows utilities: + - Use `Select-String` or `ripgrep` instead of `grep`. + - Use `;` to chain commands instead of `&&`. + - Use `move`/`Copy-Item` instead of `mv`/`cp`. + - Use `tree /f` for recursive directory visualization. ---