diff --git a/.cursor/rules/project-overview.mdc b/.cursor/rules/project-overview.mdc index 7019643..aac7a64 100644 --- a/.cursor/rules/project-overview.mdc +++ b/.cursor/rules/project-overview.mdc @@ -37,7 +37,7 @@ src/ ├── utils/ │ ├── settings.ts # User and project settings │ ├── git-root.ts # Resolve git repository root for AGENTS.md discovery -│ └── instructions.ts # AGENTS.md (ecosystem) + .grok/GROK.md +│ └── instructions.ts # AGENTS.md (ecosystem) custom instructions └── types/ └── index.ts # Shared TypeScript types ``` @@ -48,7 +48,7 @@ src/ - **Bash-only tools**: The agent uses bash for everything (file editing, searching, git, builds, etc.). - **X Search & Web Search**: Integrated via the xAI Responses API for real-time information. - **Settings hierarchy**: Environment variables → User-level (`~/.grok/user-settings.json`) → Project-level (`.grok/settings.json`). -- **Custom instructions**: `~/.grok/AGENTS.md`, then `AGENTS.override.md` / `AGENTS.md` per directory from git root through the workspace cwd (Codex-style merge), then `.grok/GROK.md` or `~/.grok/GROK.md` last. +- **Custom instructions**: `~/.grok/AGENTS.md`, then `AGENTS.override.md` / `AGENTS.md` per directory from git root through the workspace cwd (Codex-style merge). - **ESM only**: The project uses `"type": "module"` — all imports use `.js` extensions for compiled output. ## Latest Grok Models diff --git a/README.md b/README.md index d5e28d4..ada3d63 100644 --- a/README.md +++ b/README.md @@ -136,7 +136,6 @@ Treat the bot token like a password. ## Instructions & project brain - **`AGENTS.md`** — merged from git root down to your cwd (Codex-style; see repo docs). **`AGENTS.override.md`** wins per directory when present. -- **`.grok/GROK.md`** or **`~/.grok/GROK.md`** — Grok-only rules, applied last. --- diff --git a/src/utils/instructions.ts b/src/utils/instructions.ts index 7fb03aa..d47faf7 100644 --- a/src/utils/instructions.ts +++ b/src/utils/instructions.ts @@ -29,12 +29,6 @@ function directoryChain(fromRoot: string, toCwd: string): string[] { return chain; } -function loadGrokMd(cwd: string): string | null { - const projectPath = path.join(cwd, ".grok", "GROK.md"); - const globalPath = path.join(os.homedir(), ".grok", "GROK.md"); - return readNonEmptyFile(projectPath) ?? readNonEmptyFile(globalPath); -} - function loadAgentsSegments(canonicalCwd: string): string[] { const segments: string[] = []; @@ -65,8 +59,6 @@ export function loadCustomInstructions(cwd: string): string | null { } const parts: string[] = [...loadAgentsSegments(canonical)]; - const grok = loadGrokMd(canonical); - if (grok) parts.push(grok); if (parts.length === 0) return null; return parts.join("\n\n");