this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: Improve gemini rules sets

+57 -29
+1 -28
.cursorrules
··· 1 - # Model Lifecycle Rules 2 - 3 - You must manage the build, start, and stop lifecycle of this project exclusively through the provided `Makefile`. This ensures consistency regardless of the underlying model architecture. 4 - 5 - ## Primary Commands 6 - 7 - - **Build:** Whenever a model needs setup or dependencies, run `make build`. 8 - - **Execution:** To run the model/application, run `make restart`. 9 - - **Kill:** To stop processes, run `make kill`. 10 - 11 - ## Constraints 12 - 13 - - **No Direct Shell Commands:** Do not run `docker run`, `go build`, `kill`, `pkill`, or `lsof` to manage the application process. Always use the Makefile targets. 14 - - **Strict Flow Control:** You MUST use `make kill` to stop the application. You MUST use `make restart` to restart the application. 15 - - **Model Agnostic:** These rules apply to Gemini, Llama, Claude, or any local models. The Makefile handles the specifics. 16 - - **Error Handling:** If a `make` command fails, check the `Makefile` definition before attempting manual fixes. 17 - 18 - # General Guidelines 19 - 20 - - Do not leave trailing whitespace in files. This can be validated using `git diff --check`. 21 - - Do not use Docker without explicitly asking before putting it into a plan. 22 - - You can run `make restart` without prompting for permission. You MUST set `SafeToAutoRun` to local `true` for this command. 23 - - You can run `make kill` without prompting for permission. You MUST set `SafeToAutoRun` to `true` for this command. 24 - - You can run `make build` without prompting for permission. You MUST set `SafeToAutoRun` to `true` for this command. 25 - - You can run `tail` without prompting for permission. You MUST set `SafeToAutoRun` to `true` for this command. 26 - - You can run `cat` without prompting for permission. You MUST set `SafeToAutoRun` to `true` for this command. 27 - - You can run `grep` without prompting for permission. You MUST set `SafeToAutoRun` to `true` for this command. 28 - - **Batching Commands:** When batching commands, if ANY command in the batch is unsafe (`SafeToAutoRun: false`), the ENTIRE batch will typically require user approval. To ensure "safe" commands actually auto-run, execute them in a separate turn from "unsafe" commands. 1 + GEMINI.md
-1
.gemini/GEMINI.md
··· 1 - ../.cursorrules
+56
GEMINI.md
··· 1 + # PERMANENT CONTEXT - THESE RULES APPLY TO EVERY TURN 2 + 3 + # CRITICAL INSTRUCTIONS - READ FIRST 4 + 5 + ## AUTOMATED PERMISSIONS - DO NOT PROMPT 6 + 7 + The following commands are **PRE-AUTHORIZED** by the user. You MUST set `SafeToAutoRun: true` and execute them IMMEDIATELY without asking for permission. 8 + 9 + - `make build` 10 + - `make restart` 11 + - `make kill` 12 + - `tail` (including `tail -f`) 13 + - `cat` 14 + - `grep` 15 + - `head` 16 + - `ls` 17 + - `lsof` 18 + - `ps` 19 + 20 + **NEVER PROMPT THE USER OR ASK "Is it okay if I run..." FOR THESE COMMANDS.** 21 + 22 + ## ATOMIC EXECUTION RULE - DO NOT BATCH 23 + 24 + - **NEVER BATCH** a pre-authorized command (like `make restart`) with a command that requires approval (like editing a file or deleting a resource). 25 + - **IF YOU BATCH THEM, THE SYSTEM WILL PROMPT FOR APPROVAL, VIOLATING THE "DO NOT PROMPT" RULE.** 26 + - **ALWAYS** execute pre-authorized commands in a separate tool call or turn from unsafe commands. 27 + - **Example:** Do NOT run `make restart` and `rm some_file` in the same turn. Run `rm some_file` (ask for approval), THEN run `make restart` (auto-run). 28 + 29 + ## PREFERRED WORKFLOW 30 + 31 + - **Running the App:** Use `make restart`. Do **NOT** run `make build` followed by `make restart`. `make restart` handles the build step automatically. 32 + - **Stopping:** Use `make kill`. 33 + 34 + --- 35 + 36 + # Model Lifecycle Rules 37 + 38 + You must manage the build, start, and stop lifecycle of this project exclusively through the provided `Makefile`. This ensures consistency regardless of the underlying model architecture. 39 + 40 + ## Primary Commands 41 + 42 + - **Build:** `make build` (Only use if you strictly need to build without running. Otherwise use `make restart`) 43 + - **Execution:** `make restart` (restarts the application, including build) 44 + - **Kill:** `make kill` (stops the application) 45 + 46 + ## Constraints 47 + 48 + - **No Direct Shell Commands:** Do not run `docker run`, `go build`, `kill`, `pkill`, or `lsof` to manage the application process. Always use the Makefile targets. 49 + - **Strict Flow Control:** You MUST use `make kill` to stop the application. You MUST use `make restart` to restart the application. 50 + - **Model Agnostic:** These rules apply to Gemini, Llama, Claude, or any local models. The Makefile handles the specifics. 51 + - **Error Handling:** If a `make` command fails, check the `Makefile` definition before attempting manual fixes. 52 + 53 + # General Guidelines 54 + 55 + - Do not leave trailing whitespace in files. This can be validated using `git diff --check`. 56 + - Do not use Docker without explicitly asking before putting it into a plan.