From 2937e774137d2e02e7a74c3450ae0cbadd627a01 Mon Sep 17 00:00:00 2001 From: McAmner Date: Mon, 22 Jun 2026 01:28:56 +0200 Subject: [PATCH] chore: remove hardcoded home path from AGENTS.md/CLAUDE.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The generated MQ memory block hardcoded the local vault path (/Users/mansys/mqobsidian) in the read-order section — a home-path leak on the public default branch. Replace with the portable $MQ_OBSIDIAN_DIR, matching mq-agent and the canonical mqobsidian entrypoint examples. Co-Authored-By: Claude Opus 4.8 --- AGENTS.md | 10 +++++----- CLAUDE.md | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 3ac1459..ad972c6 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -9,7 +9,7 @@ repo-specific build, test, safety, or release instructions. Default local vault path: -`/Users/mansys/mqobsidian` +`$MQ_OBSIDIAN_DIR` If `MQ_OBSIDIAN_DIR` is set, prefer that value. @@ -18,10 +18,10 @@ If `MQ_OBSIDIAN_DIR` is set, prefer that value. For work related to `macos-scripts`: 0. Read `.mq/context/task-pack.md` if it exists and matches the task. -1. Read `/Users/mansys/mqobsidian/memory/learn/agent/macos-scripts.md` if it exists. -2. Read `/Users/mansys/mqobsidian/systems/macos-scripts/hot.md` if it exists. -3. Read `/Users/mansys/mqobsidian/systems/macos-scripts/index.md` if it exists. -4. Read `/Users/mansys/mqobsidian/memory/learn/repos/macos-scripts.md` if it exists. +1. Read `$MQ_OBSIDIAN_DIR/memory/learn/agent/macos-scripts.md` if it exists. +2. Read `$MQ_OBSIDIAN_DIR/systems/macos-scripts/hot.md` if it exists. +3. Read `$MQ_OBSIDIAN_DIR/systems/macos-scripts/index.md` if it exists. +4. Read `$MQ_OBSIDIAN_DIR/memory/learn/repos/macos-scripts.md` if it exists. 5. Read individual pattern notes only if the compressed notes are insufficient. Stop reading as soon as the task is grounded. diff --git a/CLAUDE.md b/CLAUDE.md index 449834e..28e5c64 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -9,7 +9,7 @@ repo-specific build, test, safety, or release instructions. Default local vault path: -`/Users/mansys/mqobsidian` +`$MQ_OBSIDIAN_DIR` If `MQ_OBSIDIAN_DIR` is set, prefer that value. @@ -18,10 +18,10 @@ If `MQ_OBSIDIAN_DIR` is set, prefer that value. For work related to `macos-scripts`: 0. Read `.mq/context/task-pack.md` if it exists and matches the task. -1. Read `/Users/mansys/mqobsidian/memory/learn/agent/macos-scripts.md` if it exists. -2. Read `/Users/mansys/mqobsidian/systems/macos-scripts/hot.md` if it exists. -3. Read `/Users/mansys/mqobsidian/systems/macos-scripts/index.md` if it exists. -4. Read `/Users/mansys/mqobsidian/memory/learn/repos/macos-scripts.md` if it exists. +1. Read `$MQ_OBSIDIAN_DIR/memory/learn/agent/macos-scripts.md` if it exists. +2. Read `$MQ_OBSIDIAN_DIR/systems/macos-scripts/hot.md` if it exists. +3. Read `$MQ_OBSIDIAN_DIR/systems/macos-scripts/index.md` if it exists. +4. Read `$MQ_OBSIDIAN_DIR/memory/learn/repos/macos-scripts.md` if it exists. 5. Read individual pattern notes only if the compressed notes are insufficient. Stop reading as soon as the task is grounded.