In this article
Access to another directory and loading its project guidance are separate choices, so a cross-repository task should identify both explicitly.
A client and its API may live in separate repositories but still require a coordinated change. Claude Code can work with additional directories, while the memory documentation explains how guidance is loaded for those locations. Understanding the distinction prevents an agent from reading a sibling project while silently applying only the starting repository’s conventions.
Map the repositories and their ownership
For a hypothetical API enum change, identify the server repository that owns the contract and the client repository that consumes it. State which project produces generated code and which has handwritten behavior. This map gives each file change a reason. It also prevents a convenient client workaround from becoming a substitute for fixing the authoritative definition when the server contract is the actual source of the defect.
Distinguish directory access from instructions
The documentation describes additional-directory access and a separate control for loading CLAUDE.md guidance from those directories. Therefore adding a path does not justify assuming every sibling project rule is already in context. Check the active setup and the loaded files. For the enum task, the client’s generation rule can be essential even if the main session started from the server directory.
Keep local conventions attached to their project
A server test command may be meaningless in the client directory, and the client’s formatter may not apply to server code. Preserve each instruction’s scope instead of merging all guidance into an undifferentiated list. If requirements conflict, inspect the actual build ownership and clarify the intended rule. Cross-repository coordination works better when common interface decisions are shared while implementation conventions remain local.
Validate both sides of the contract
For the enum example, confirm that the server emits the supported value and the client handles it as intended. Regenerating the client can establish source-output consistency, while a consumer test establishes behavior. Run commands in their actual repositories. If one environment cannot execute a required check, preserve that limitation rather than treating the other repository’s successful test as a replacement.
Return a coordinated change record
The final result should identify each repository’s diff and the checks that support the combined interface behavior. Include any ordering dependency, such as a client needing compatibility before the server emits a new value. This is workflow advice, not an automatic deployment feature. A clear record lets reviewers assess the coordinated change without assuming that one agent conversation merged the projects into a single execution environment.
Documentation and further study
Related engineering guides: Reproducible inference stacks: preserving a GPU pilot’s result; Choose a local AI stack: desktop chat, shared UI or coding agent.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.