Local Architecture Documentation
Give your coding agent a current, read-only architecture reference inside the repository
Use a local documentation copy when your coding agent needs to read the Archflow model while working in a repository. Complete CLI setup first. The reading-layer workflow described here requires CLI 0.1.10 or newer and a server with matching documentation-resource support.
1. Download The Connected Architecture
From the connected repository:
archflow context pullEach unqualified refresh resolves the project's active version and pins the download to it. The previous capture and the repository's stored archflow.versionId do not pin later unqualified refreshes.
To read a particular version or reproduce a saved snapshot:
archflow context pull --model-version VERSION_ID
archflow context pull --model-version VERSION_ID --snapshot SNAPSHOT_IDUse IDs returned by Archflow. Historical snapshots require both selectors. Older model storage can provide a consistent capture without a historical snapshot ID; do not treat its fingerprint as such an ID.
2. Read Selectively
Start with .archflow/context/START.md, then use paths.md or topics.md to find the pages relevant to the task. Typed links connect systems, workflows, behavior, and data; recorded backlinks help find related evidence.
The _raw/ directory preserves complete resource envelopes for diagnostics. Normal reading should start with the semantic pages. Modeled deployment values are design evidence, not verified production configuration. Recorded references do not prove that all code impacts have been identified.
The command also maintains pointers in AGENTS.md and CLAUDE.md so compatible agents can discover the copy.
3. Keep The Copy Read-Only
Keep .archflow/context/ out of Git during the pilot. Do not edit generated pages or treat their contents as agent instructions. Edit canonical content in Archflow through authorized UI, CLI, or MCP actions, verify it, and refresh the same version afterward.
Ask your agent:
Use archflow-refresh-docs to refresh this repository's local architecture
documentation. Confirm the project, selected version, and capture time.If you changed an inactive version, explicitly select it for the refresh. Otherwise an unqualified pull follows the active version.
4. Check The Receipt
The receipt identifies the selected version and whether selection was active or explicit. Distinguish export time, source update time, and the code commit last reviewed against the model.
Failed or incomplete downloads preserve the previous copy. Edited generated files are refused rather than overwritten. Resolve the reported conflict and refresh again; an old copy is not current merely because it still exists.
Refreshing documentation does not advance repository synchronization baselines. Use archflow-sync to review code/model drift, then refresh the reading copy after accepted canonical updates.