Skip to content

Commit 245ddd0

Browse files
committed
Merge branch 'feat/cursor-full-support-20260510' into feat/vscode-extension-20260510
2 parents 38d4336 + e705953 commit 245ddd0

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

src/setup/cursor-writers.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,13 @@ Call \`axme_context\` tool with this project's path at the start of every Cursor
129129
This loads: oracle, decisions, safety rules, memories, test plan, active plans.
130130
Do NOT skip — without context you will miss critical project rules.
131131
132+
### NEVER run \`axme-code setup\` yourself
133+
Setup is the user's job. The Cursor extension offers a "Run setup?" toast on
134+
first activation; the user can also run \`AXME: Setup\` from the Command
135+
Palette. **Do not invoke \`axme-code setup\` via Bash autonomously**, even if
136+
\`axme_context\` returns "not initialized" — just relay the message to the
137+
user and wait.
138+
132139
### During Work
133140
- Error pattern or successful approach discovered → call \`axme_save_memory\` immediately.
134141
- Architectural decision made or discovered → call \`axme_save_decision\` immediately.

src/tools/context.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export function getFullContextSections(projectPath: string, workspacePath?: stri
7878
if (pathExists(setupLock)) {
7979
return [parts[0] + "\n\nSetup is already running. Wait for it to finish, then call axme_context again."];
8080
}
81-
return [parts[0] + "\n\nProject not initialized. FIRST tell the user: 'Initializing AXME Code knowledge base for this project. This takes 1-2 minutes on first run.' THEN run `axme-code setup --plugin` via Bash tool. Do NOT ask permission — just inform and run."];
81+
return [parts[0] + "\n\nProject not initialized — `.axme-code/` is missing in this workspace. **Do NOT run `axme-code setup` yourself.** Initialization is the user's job (Cursor: run `AXME: Setup` from Command Palette; Claude Code: run `axme-code setup` in terminal). Tell the user this and stop; once they finish setup, call `axme_context` again and the knowledge base will load."];
8282
}
8383

8484
// Safety rules (small, always inline)
@@ -138,7 +138,7 @@ export function getFullContextSections(projectPath: string, workspacePath?: stri
138138
const files = loadOracleFiles(projectPath);
139139
const oracleIsMinimal = files && files.stack.length < 200 && !files.patterns.includes("CLAUDE.md");
140140
if (oracleIsMinimal) {
141-
parts.push("**WARNING:** This project was initialized with deterministic scan only (no LLM). Run `axme-code setup " + projectPath + "` for deep LLM scan.");
141+
parts.push("**WARNING:** This project was initialized with deterministic scan only (no LLM). Tell the user to re-run `axme-code setup " + projectPath + "` for a deep LLM scan. **Do not run it yourself** — initialization is the user's job.");
142142
}
143143
}
144144

0 commit comments

Comments
 (0)