After an inventory found 44 real projects against 11 he had declared, Dimitri AIGLE split his files across GitHub, OneDrive and Obsidian. He encodes the rules in Claude Code's global instructions file so the agent works read-only by default and shows a dry-run plan before touching anything.
Key points
- Code and text docs live on GitHub, binaries and media on OneDrive, decisions and notes in Obsidian, one destination per file type.
- Live code stays off OneDrive because sync can corrupt a .git during editing; secrets and heavy media never reach git.
- Repos carry a segment prefix in the name and a status topic (actif, dormant, archive); client repositories are always private.
- A version number lives in three places — manifest, top CHANGELOG entry and a v-prefixed git tag — updated together by a Claude Code skill.
- Every project keeps a pilotage/ folder with eight documents such as roadmap, work-log and decisions, read by the agent before it acts.
- The agent is read-only by default: moves need a dry-run and approval, deletions go to a reversible archive, and git push or history rewrites are forbidden.
Real-world use
- A developer juggling client work, games and side projects who wants each folder routed to the right destination automatically
- Someone who does not want the agent committing, pushing or deleting on its own but still wants version bumps automated
- Teams keeping decisions and work logs next to the repo so the agent reloads that context at the start of every session
This summary was generated by the agent from the original post on DEV: claudecode. The full text and all rights belong to its author and publisher. Go to original