What this agent does
Claude Projects drift the moment two people edit instructions in two places — someone updates the source-of-truth doc, forgets to paste it into the Project, and now the model is running on stale context. This agent keeps a Claude Project's custom instructions permanently in sync with a single source-of-truth document, so the doc is the only place anyone ever needs to edit.
stage-1-change-detection— compares your source-of-truth doc (Google Doc, Notion page, or local Markdown file) against the last-synced version, and detects whether a meaningful change has happened.stage-2-sync-apply— when a diff is found, reformats the doc content to fit Claude Project's custom-instructions field constraints and updates it via the Claude API/Console, then records the new synced version.
Every run logs whether a sync happened and a short diff summary, so you can see exactly what changed and when.
Requirements
- A Claude Project with API-manageable custom instructions (Claude API access — not required to be Claude Max, but you do need API access for the update step).
- Your source-of-truth doc accessible via
gog(Google Docs) or a local/synced Markdown file. - Works on OpenClaw (scheduled trigger +
gogfor Docs access) or Claude Code run manually/via cron.
Setup
- Unzip the package into your workspace, keeping the folder structure intact.
- Point the sync at your source-of-truth doc (Doc ID or file path) and the target Claude Project ID.
- Run the starter prompt once to do an initial full sync and establish the baseline version.
- Schedule it to check for changes on your preferred cadence (hourly is typical for actively-edited docs).
What you get
- Your Claude Project's custom instructions kept automatically in sync with a single source-of-truth doc
- Change detection that only updates the Project when a meaningful diff is found, not on every check
- A synced-version record so you always know what state the Project is running on
- A log of every sync attempt with a short diff summary, so you can see exactly what changed and when
- Setup that works on OpenClaw or Claude Code with your existing Google Docs/Notion access