---
date: 2026-04-14
tags: [daily, setup, obsidian]
---

<< [[2026-04-13]] | [[2026-04-15]] >>

## 🎯 Focus
Set up Obsidian as second brain for all Oliver projects.

## 📋 Session Log

### Obsidian CLI Setup
- Installed Obsidian CLI (v1.12.7) via symlink at `/usr/local/bin/obsidian`
- Vault: `/Users/aimpress/Library/Mobile Documents/iCloud~md~obsidian/Documents/VadymSamoilenko`
- Updated Obsidian installer to 1.12.7 for better CLI support

### Second Brain Setup
Created full project knowledge base:
- `CLAUDE.md` — vault orientation for Claude Code
- `01 Projects/Projects Index.md` — hub note linking all projects
- `Templates/Project Template.md` — reusable template

Created **35 project notes** organized by client:
- 3M (1), AXA Oliver (existing), BAIC (1), Barclays (1), Dow Jones (1)
- Ferrero (1), Ford (2), H&M (2), L'Oréal (2+existing), LUSA (1)
- PIMCO (1), Solventum (1)
- Oliver Internal (17 projects)

## ✅ Done
- [x] Obsidian CLI installed and working
- [x] CLAUDE.md created (vault orientation for Claude Code)
- [x] Projects Index created (hub note with all projects linked)
- [x] All project notes created with tech stack, deployment info, and change logs
- [x] Session log started

## 📝 Notes
- Reddit thread confirmed: Obsidian = markdown folder UI. The real power is CLAUDE.md + structured notes.
- Key insight: only save decisions/insights, not raw logs. Keep notes updated to avoid "context rot".
- Each project note has: Overview, Tech Stack, Deployment, Sessions (reverse-chrono), Change Log, Related links.

## 🔗 Projects Worked On
- [[Projects Index]]

## Update: Structure Redesign + Deep Details

### Flat project structure
Removed client grouping — now 1 folder per project matching disk structure (`/Volumes/SSD/Projects/Oliver/`)

### Detailed project notes
Read CLAUDE.md + git history for all projects. Updated key notes with:
- Full architecture diagrams
- Docker service names and ports
- Environment variable templates
- Dev commands from CLAUDE.md
- Git timeline (all significant commits)
- Server deployment info

**Projects fully detailed:**
- Mod Comms (GCP, REST polling replacing WebSocket)
- Enterprise AI Hub Nexus (Qdrant + Firecrawl + M365)
- Video Accessibility (Celery+MongoDB+Gemini 2.5 Pro)
- Semblance (Quart+Socket.IO, GCP 30s timeout fix)
- Sandbox NotebookLM (optical-web-1 server)
- Cinema Studio Pro (PHP+React, ai-sandbox.oliver.solutions)
- GMAL Scope Builder (Claude Opus 4.6, Azure SSO)
- PDF Accessibility Checker (PHP+Python+Redis+PostgreSQL)
- 3M Portal, BAIC Dashboard, Ford QC (from CLAUDE.md)

### Session command tracking
Created `02 Areas/Pending Commands.md` — tracks all commands given to Vadym for server/local execution.

### CLAUDE.md updated
- Added Haiku model instruction for all logging
- Added mandatory session protocol (start/during/end)
- Updated vault structure to flat layout
- Added "Pending Commands" tracking rule

### Logging rule going forward
- Model for writes: **claude-haiku-4-5-20251001**
- Log every session, no exceptions
- Track all server commands in Pending Commands.md

---

## Session Continuation (context compaction)

### Stop hook added
- Created `/Users/aimpress/.claude/obsidian-session-log.py` — writes a timestamped entry to today's daily note on every session end
- Added as 3rd Stop hook in `~/.claude/settings.json` (alongside time_tracker and cc-collector)
- Fires from ANY directory — global hook

### Answered user questions
1. **Works from any session?** — Stop hook fires globally. Memory auto-loads only from `/Volumes/SSD/Projects/Oliver`. Starting from a sub-project like `/Oliver/modcomms` will NOT load Oliver memory — start from root for full context.
2. **New projects auto-create?** — Not automatically by hook. I will create notes when a new project session starts and I see a new directory or CLAUDE.md. Requires starting from the project directory.
3. **All projects fully detailed?** — 11 projects have full detail (CLAUDE.md + git history). 24 have basic notes. Full: modcomms, enterprise-ai-hub-nexus, video-accessibility, semblance, sandbox-notebookllamalm-nextjs, cinema-studio-pro, gmal-scope-builder, pdf-accessibility, 3m-portal, baic_dashboard, ford_qc.
4. **Record for "this project"?** — All 35 have a note. DevOps_Click_UP_sync has a detailed note (see memory). Projects Index is at `01 Projects/Projects Index.md`.

---

## Automation Architecture (session 3)

### 3-hook pipeline added

| Hook | Script | Does |
|------|--------|------|
| `SessionStart` | `obsidian-session-start.py` | Reads current project's Sessions section + Pending Commands → injects as `additionalContext` before session loads |
| `PostCompact` | `obsidian-postcompact.py` | Receives auto-generated compaction summary → calls Haiku → writes structured entry to project note + daily note |
| `Stop` | `obsidian-session-log.py` | Timestamps daily note |

### Token savings
- Before: Sonnet reads files manually (tokens) + writes long entries (more tokens)
- After: SessionStart pre-loads context BEFORE window starts (0 extra tokens). PostCompact uses Haiku on already-generated summary (~$0.001)

### additionalDirectories
Vault added to global permissions — no prompts for Obsidian reads/writes.

## Sessions

- 18:15 — Claude Code session ended | `Volumes/SSD/Projects/Oliver`

- 18:19 — Compacted | `modcomms` — Context compacted
- 18:20 — Claude Code session ended | `modcomms`
- 18:21 — Claude Code session ended | `modcomms`
- 18:22 — Claude Code session ended | `modcomms`
- 18:34 — Claude Code session ended | `Volumes/SSD/Projects/Oliver`

## Session Log

- 18:51 — Claude Code session ended | `Users/aimpress/Library/Mobile Documents/iCloud~md~obsidian/Documents/VadymSamoilenko`
- 18:54 — Claude Code session ended | `Users/aimpress/Library/Mobile Documents/iCloud~md~obsidian/Documents/VadymSamoilenko`
- 18:57 — Claude Code session ended | `obsidian-vault`
- 18:58 (<1min) — Claude Code session ended | `Oliver (root)`
- 19:03 — Claude Code session ended | `Oliver (root)`
- 19:05 — Claude Code session ended | `Oliver (root)`
- 19:17 — Claude Code session ended | `Oliver (root)`
- 19:22 — Claude Code session ended | `Oliver (root)`
