From 7a27cf71a24a64e5023b3328056e8d9d197ac060 Mon Sep 17 00:00:00 2001 From: mathias Date: Mon, 22 Jun 2026 09:00:55 +0000 Subject: [PATCH] chore(context): drop cursor + aider adapters from generator Cursor and Aider are not supported harnesses. Remove generate_cursor and generate_aider, their no-arg calls, and their case arms. The active adapters are claude (CLAUDE.md), agents (AGENTS.md), and system-prompt (.context/system-prompt.txt). --- scripts/context-sync.sh | 35 +++-------------------------------- 1 file changed, 3 insertions(+), 32 deletions(-) diff --git a/scripts/context-sync.sh b/scripts/context-sync.sh index bdf38ee..8caaa84 100755 --- a/scripts/context-sync.sh +++ b/scripts/context-sync.sh @@ -40,10 +40,9 @@ if [ -n "$ROOT_CONTEXT" ] && [ -f "$ROOT_CONTEXT" ]; then echo " Root context: $ROOT_CONTEXT" else # No reachable root AGENT.md — common in CI's clean checkout. The root+project - # adapters (AGENTS.md, .cursorrules, .aider.conventions.md, system-prompt.txt) - # require the root context to regenerate correctly, so we skip them entirely - # and only regenerate CLAUDE.md (which is project-only and inherits root via - # tree walk in Claude Code itself). + # adapters (AGENTS.md, system-prompt.txt) require the root context to + # regenerate correctly, so we skip them entirely and only regenerate CLAUDE.md + # (which is project-only and inherits root via tree walk in Claude Code itself). echo " No root AGENT.md found — regenerating CLAUDE.md only" echo "Syncing project context from $PROJECT_FILE..." cat "$PROJECT_FILE" > CLAUDE.md @@ -78,30 +77,6 @@ generate_agents() { echo " → AGENTS.md (root + project; Crush, Pi, Antigravity)" } -# ── Cursor ─────────────────────────────────────────────────── -generate_cursor() { - { - echo "# Cursor rules — auto-generated" - echo "# Do not edit. Run: task context:sync" - echo "" - root_block - cat "$PROJECT_FILE" - } > .cursorrules - echo " → .cursorrules (root + project)" -} - -# ── Aider ──────────────────────────────────────────────────── -generate_aider() { - { root_block; cat "$PROJECT_FILE"; } > .aider.conventions.md - if [ ! -f .aider.conf.yml ]; then - cat > .aider.conf.yml << 'YAML' -read: .aider.conventions.md -auto-commits: false -YAML - fi - echo " → .aider.conventions.md (root + project)" -} - # ── Generic system prompt (Open WebUI, Mods, etc.) ────────── generate_system_prompt() { { @@ -142,8 +117,6 @@ echo "Syncing project context from $PROJECT_FILE..." if [ $# -eq 0 ]; then generate_claude generate_agents - generate_cursor - generate_aider generate_system_prompt generate_mcp else @@ -151,8 +124,6 @@ else case "$adapter" in claude) generate_claude ;; agents) generate_agents ;; - cursor) generate_cursor ;; - aider) generate_aider ;; prompt|system|openwebui|owui|generic) generate_system_prompt ;; mcp) generate_mcp ;; *) echo "Unknown adapter: $adapter" ;;