feat: symlink settings.json globally, update bootstrap and readme

This commit is contained in:
2026-03-26 21:24:24 -05:00
parent 02c2c2fabb
commit d93820415f
3 changed files with 164 additions and 11 deletions

View File

@@ -54,11 +54,17 @@ memory/cog-meta/self-observations.md merge=union
If two machines both append observations on the same day, git merges them as a union (keeps both) instead of raising a conflict.
### Global CLAUDE.md
### Global Symlinks
`~/.claude/CLAUDE.md` is a symlink to `/home/artanis/.cog/CLAUDE.md`. This makes Cog's instructions and memory active in every Claude Code session, regardless of working directory. Skills are similarly symlinked from `~/.cog/.claude/commands/` into `~/.claude/commands/`.
Three files are symlinked globally so Cog is active in every Claude Code session regardless of working directory:
The `CLAUDE.md` includes an explicit base path declaration so memory reads resolve correctly from any working directory:
| Symlink | Points to |
|---------|-----------|
| `~/.claude/CLAUDE.md` | `/home/artanis/.cog/CLAUDE.md` |
| `~/.claude/settings.json` | `/home/artanis/.cog/.claude/settings.json` |
| `~/.claude/commands/*.md` | `/home/artanis/.cog/.claude/commands/*.md` |
Symlinking `settings.json` globally is what makes the hooks fire in every session — not just when working inside `~/.cog`. The `CLAUDE.md` includes an explicit base path declaration so memory reads resolve correctly from any working directory:
> **Base path**: `/home/artanis/.cog/` — all `memory/` references resolve relative to this directory.
### Git Remotes