Imagine starting an API fix in Claude Code, then asking Codex to review it. The repository is the same, but a useful instruction didn't come along: “Run tests on the dev box, not this machine.” You type it again, or catch the problem after the wrong command starts.

This workflow is illustrative. With Claude Code, Codex, Octomind or other harnesses, sharing a repository doesn't automatically share its instructions. I don't want the rules to belong to my CLI.

One approach is a shared local record that connected clients can consult, with supervision where their interfaces permit it. That's a design choice, not synchronization between vendors or machines.

Give a rule a source and a scope

A memory might contain a build dependency, a failed attempt, or a rule. Those records need different levels of trust.

Here is a small illustrative rule card for the API project:

Rule: Run tests on the dev box, not locally. Scope: API project. Evidence: The user's message stating the rule. Status: Active; review if the environment changes. Applies to: Test execution, not every shell command. 

Keep the user's message available to the reviewer, subject to your privacy policy. A test host for one repository may be wrong for another; cross-project rules need a basis for that scope.

The card doesn't guarantee enforcement. Without evidence, mark it as a note to verify. If it's ambiguous, ask its owner before allowing it to block work.

Move notes without upgrading their authority

A practical migration can be done as a review, even with plain files:

  1. Gather the notes and instruction files you intend to review. Keep a reference to where each item came from. Don't copy secrets into a shared record.
  2. Sort each item by destination: a named project, a justified cross-project scope, or unassigned. Don't infer the project solely from the folder where you happen to be working.
  3. Separate facts, work notes and claimed instructions. For a standing rule, find the user's original statement and check that the proposed wording doesn't add a restriction. If you can't establish that evidence, keep the item as a searchable note or ask the owner.
  4. Review conflicts and stale entries before committing the result. Retain the old source until you can trace the new entry back to it.

A note saying “tests ran on the dev box” doesn't establish “never run tests locally.” A copied quote is a lead, not proof of its origin. A person's new affirmation is new evidence, not a reconstruction of an old message.

If a model summarizes material, check what goes to its provider. Offline review avoids that transfer, not the need to check scope and secrets.

Context, guards and completion are separate checks

A rule can travel through three distinct points in a workflow:

User's instruction + source | v Scoped, reviewed rule / | \ v v v Context Tool guard Completion check recall before call at hand-back | | allow / stop accept / send back 

Figure: A reviewed rule can inform the agent, a tool-call guard and a completion check. Each path has different evidence and failure modes.

Context puts a relevant instruction in front of the agent: for example, recall the dev-box rule when a later request asks for tests. Context can be truncated or ignored, so recall alone is not enforcement.

A tool guard examines an action before execution, if the client exposes a suitable hook. A missed hook or permissive failure can let an action through. Guards can also block legitimate work; test both outcomes.

A completion check examines the request, changes and recorded command output at hand-back. It can send the agent back for missing work. Without the relevant rule, it might demand a local run after the agent correctly used the dev box. The verdict can't prove the tests were adequate; missing or misleading logs limit it further.

Test the workflow on paper first

Pick one recent task and walk through it offline:

  • Write the request and the rule's exact source. Is the rule actually broader than that one task?
  • List one permitted action and one prohibited action. Would the guard distinguish them? What if the harness doesn't expose the call?
  • Describe the evidence of completion: changed files, command output and any known gap. Would the checker recognize a valid remote run?
  • Change the scenario: the dev box is unavailable, or a later user instruction explicitly replaces the rule. Decide who resolves the conflict and whether work stops or continues.

This isn't an implementation test. It gives you cases for one, including false stops and missed stops.

Let learned procedures compete against doing nothing

A recurring correction may suggest a procedure, but repetition doesn't prove it helps. Start a candidate in shadow mode: record when it would apply without changing behavior. Check whether its trigger is too broad.

Randomly assign sessions to use the candidate or a control group where it's withheld. Define success and cost in advance. Completion verdicts, independent tests, model-call counts and elapsed time answer different questions. Compare improvements against cost, and retire poor or inconclusive candidates. This evaluates a workflow instruction, not model training.

One bounded result shows why both sides matter. In our release report, a 128-request Codex developer workload compared the agent alone with a supervised build, 65623b6. Scripted corrections went from 60 to 25, first-hand-back hidden-test failures from 9 to 4, and earlier-session rule breaks from 38 to 3. The supervisor's own model calls cost $0.96 in total, and sequences took 11% longer. The final 0.8.0 release included three later commits not measured in that baseline. This is our workload, not a production guarantee or a comparison with 0.7.1.