Yes, I wrote multiple different primers that described the canonical plan for where each piece of data would be stored (ledger), which functions were in which steps, which shared code machinery should be re-used across steps, and what the target end state goal was. I then wrote both scripts and prompts that would refresh these so they captured the latest as I updated my codebase or made decisions and to save on cache reads I injected a few of the key documents directly into the system prompt in claude code so every session of the day would share that cache read. This was important because these would grow to be up to 100K tokens at times. Lastly, I wrote prompts to audit and compact my MD files over time which I typically ran after each major feature landed which removed the detail of the features and typically dropped my token injection to around 50K.
The prompt cacheing in claude code automatically loads everything in your claude.md file into the system prompt and if you don't change it you get cache reading on each sequential session. You can also put pointers in the claude.md file that load entire additional files inline the same way. The constraint is you cannot change any of these files between sessions or it resets...
The ledger is a structured canonical reference map of the provenance of every piece of data and which step has authority to write in each place; the goal was to avoid the agents creating duplicate states and also make the pipeline 100% rewindable for sub section testing.