Skip to content

A self-organizing Obsidian vault that gives AI coding agents persistent memory.

fix: address review — VAULT_PATH, PreCompact table, printf in Stop hooks

Brenno Ferrari7d2e04bc3192
diff --git a/.claude/scripts/session-start.sh b/.claude/scripts/session-start.sh
index 444e262..a5e2ec5 100755
--- a/.claude/scripts/session-start.sh
+++ b/.claude/scripts/session-start.sh
@@ -4,7 +4,7 @@ cd "${CLAUDE_PROJECT_DIR:-${CODEX_PROJECT_DIR:-${GEMINI_PROJECT_DIR:-$(pwd)}}}"
# Persist vault path for the session
if [ -n "${CLAUDE_ENV_FILE:-}" ]; then
- echo "export VAULT_PATH=\"$CLAUDE_PROJECT_DIR\"" >> "$CLAUDE_ENV_FILE"
+ echo "export VAULT_PATH=\"$(pwd)\"" >> "$CLAUDE_ENV_FILE"
fi
# Incremental QMD re-index (fast, non-blocking if qmd not installed)
diff --git a/.codex/hooks.json b/.codex/hooks.json
index e240509..abd74a7 100644
--- a/.codex/hooks.json
+++ b/.codex/hooks.json
@@ -40,7 +40,7 @@
"hooks": [
{
"type": "command",
- "command": "bash -c 'echo \"Session end checklist:\n- Archive completed projects?\n- Update indexes?\n- New notes linked? (orphans are bugs)\"'",
+ "command": "bash -c 'printf \"Session end checklist:\\n- Archive completed projects?\\n- Update indexes?\\n- New notes linked? (orphans are bugs)\\n\"'",
"timeout": 5
}
]
diff --git a/.gemini/settings.json b/.gemini/settings.json
index bfe3211..c7c91d0 100644
--- a/.gemini/settings.json
+++ b/.gemini/settings.json
@@ -51,7 +51,7 @@
"hooks": [
{
"type": "command",
- "command": "bash -c 'echo \"Session end checklist:\n- Archive completed projects?\n- Update indexes?\n- New notes linked? (orphans are bugs)\"'",
+ "command": "bash -c 'printf \"Session end checklist:\\n- Archive completed projects?\\n- Update indexes?\\n- New notes linked? (orphans are bugs)\\n\"'",
"timeout": 5
}
]
diff --git a/AGENTS.md b/AGENTS.md
index 3633b84..8e6ad19 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -19,7 +19,7 @@ The hook scripts in `.claude/scripts/` are agent-agnostic Python and shell — n
| `session-start.sh` | Inject vault context at startup | SessionStart | SessionStart |
| `classify-message.py` | Classify messages, inject routing hints | UserPromptSubmit | BeforeAgent |
| `validate-write.py` | Validate frontmatter and wikilinks | PostToolUse | AfterTool |
-| `pre-compact.sh` | Back up transcript before compaction | PreCompact | PreCompress |
+| `pre-compact.sh` | Back up transcript before compaction | PreCompact (Codex: —) | PreCompress |
## Commands
diff --git a/GEMINI.md b/GEMINI.md
index 3633b84..8e6ad19 100644
--- a/GEMINI.md
+++ b/GEMINI.md
@@ -19,7 +19,7 @@ The hook scripts in `.claude/scripts/` are agent-agnostic Python and shell — n
| `session-start.sh` | Inject vault context at startup | SessionStart | SessionStart |
| `classify-message.py` | Classify messages, inject routing hints | UserPromptSubmit | BeforeAgent |
| `validate-write.py` | Validate frontmatter and wikilinks | PostToolUse | AfterTool |
-| `pre-compact.sh` | Back up transcript before compaction | PreCompact | PreCompress |
+| `pre-compact.sh` | Back up transcript before compaction | PreCompact (Codex: —) | PreCompress |
## Commands