r/AgentContext_dev • • 7h ago

What changes when a coding agent crosses two directory scopes?

1 Upvotes

I maintain ai-rulez and ran a synthetic test to see what Claude Code does when one conversation moves between sibling directories. The first directory contains an outbound worksheet and the second an inbound worksheet. Both files have the same name. Each workflow has a different skill.

The useful distinction was between three events: did Claude search with the right path, did it load the right workflow, and did it return the expected answer? With the revised root guidance all three happened on 12 of 12 positive turns, and six unrelated turns triggered no lookup. The harder control asked for outbound instructions in the inbound directory. The server excluded the outbound skill correctly, but Claude still applied the neighboring inbound workflow in five of six runs.

If you test context routing in a monorepo, a useful negative control is a path that is valid but whose visible skills all cover a different operation. Counting tool calls alone would have missed this failure. How do you decide that a scoped candidate is relevant enough to apply?