With several projects in one workspace, an agent loading its project context gets one picked by clear rules and is told how it was chosen. Only a real tie stops it, with a ready-to-run command for each candidate.
With several projects declared and no --project, rig context work-install picks the project whose rigs: list names the agent's rig, then the deepest project root containing the working folder, then the only unclaimed project, and reports how it chose. It stops with project_required only when more than one still matches, printing a ready-to-run command for each candidate.
rig context work-install- Release
- OpenRig 0.6.6 release notes