MCP-backed scoped rule harness for team coding agents
Teams using Claude Code or similar agents can turn growing instruction files into scoped rule directories and an MCP server that exposes only the context needed for the current task. The concrete build is a migration and audit tool: scan a large CLAUDE.md, split rules by topic and project path, flag contradictory rules, then publish lookups such as get_context(topic) plus resources for verification status and budget.
The pain is easy to recognize: a single agent config becomes too long to remember, rules apply to projects where they do not belong, and teams have no clean update path for shared defaults. A small pilot can use one active repo, move project-specific rules into path-scoped files, and compare agent mistakes before and after the split. The check should look for rule conflicts, irrelevant context loaded into sessions, and failed verification steps, since the source example reports better behavior after contradictory rules stopped living in one file but gives no benchmark numbers.