From d25bf19613b4d216e9c833103d0db36d29a0910a Mon Sep 17 00:00:00 2001 From: Emma King <35500807+emmax86@users.noreply.github.com> Date: Fri, 3 Jul 2026 17:45:25 -0700 Subject: [PATCH] fix: point workspace agent shim at .grove/instructions.md Agents that cannot run grove previously had no discoverable path to the workspace instruction file, so the generated CLAUDE.md and AGENTS.md now name .grove/instructions.md directly. Co-Authored-By: Claude Fable 5 --- src/__tests__/commands/workspace.test.ts | 2 ++ src/__tests__/lib/agent-files.test.ts | 2 ++ src/lib/agent-files.ts | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/__tests__/commands/workspace.test.ts b/src/__tests__/commands/workspace.test.ts index 589a2a8..a3f9243 100644 --- a/src/__tests__/commands/workspace.test.ts +++ b/src/__tests__/commands/workspace.test.ts @@ -16,6 +16,8 @@ import { cleanup, createTestDir, createTestGitRepo, GIT_ENV, spawnProc } from ". const WORKSPACE_AGENT_BOOTSTRAP_SHIM = `# Generated by grove - do not edit manually Grove workspace. Instruction context is served on demand: call the \`context_touch\` MCP tool (or \`grove ws context touch \`) for the paths you work on. + +Workspace instructions live at \`.grove/instructions.md\` - read that file directly if you cannot run grove (it is the same content grove context serves at workspace scope). `; describe("workspace commands", () => { diff --git a/src/__tests__/lib/agent-files.test.ts b/src/__tests__/lib/agent-files.test.ts index 729be11..2353d86 100644 --- a/src/__tests__/lib/agent-files.test.ts +++ b/src/__tests__/lib/agent-files.test.ts @@ -16,6 +16,8 @@ import { const WORKSPACE_AGENT_BOOTSTRAP_SHIM = `# Generated by grove - do not edit manually Grove workspace. Instruction context is served on demand: call the \`context_touch\` MCP tool (or \`grove ws context touch \`) for the paths you work on. + +Workspace instructions live at \`.grove/instructions.md\` - read that file directly if you cannot run grove (it is the same content grove context serves at workspace scope). `; describe("generateAgentFiles", () => { diff --git a/src/lib/agent-files.ts b/src/lib/agent-files.ts index 70782fe..c079d9c 100644 --- a/src/lib/agent-files.ts +++ b/src/lib/agent-files.ts @@ -36,6 +36,8 @@ export interface GenerateAgentFilesResult { const WORKSPACE_AGENT_BOOTSTRAP_SHIM = `# Generated by grove - do not edit manually Grove workspace. Instruction context is served on demand: call the \`context_touch\` MCP tool (or \`grove ws context touch \`) for the paths you work on. + +Workspace instructions live at \`.grove/instructions.md\` - read that file directly if you cannot run grove (it is the same content grove context serves at workspace scope). `; const WORKSPACE_MCP_JSON = `${JSON.stringify(