Skip to content

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

fix: normalize line endings and guard .gitignore against silent exclusions (#118)

Brenno Ferrarieb725dc125ef
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..72c2536
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,3 @@
+# Normalize line endings: Obsidian-on-Windows rewrites LF to CRLF on edit,
+# producing phantom whole-file diffs on every cross-platform sync.
+* text=auto eol=lf
diff --git a/.gitignore b/.gitignore
index ed61f53..b089651 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,16 +4,28 @@
.obsidian/plugins/*/data.json
.obsidian/graph.json
+# Community plugins that ship platform executables write them under their
+# plugin dir — without this, a multi-hundred-KB binary lands in git history
+# on the next commit.
+.obsidian/plugins/*/binaries/
+
# OS
.DS_Store
.Trash/
-# Claude Code (local settings are personal)
+# Claude Code. The re-include guard protects against user-level global
+# gitignores that exclude .claude/ (a cache-dir convention in other tools) —
+# without it, the entire hook/command/skill layer silently drops out of
+# version control. Repo-level patterns override global excludes.
+!.claude/
.claude/settings.local.json
# QMD index (local, regenerated)
.qmd/
+# ShardMind runtime hook output (local, regenerated)
+.shardmind/logs/
+
# Session logs (local transcripts)
thinking/session-logs/