Use Unstoppable Code’s project instructions when a multi-repository desktop project needs to tell agents where shared work belongs. Point agents to the repository that owns the rule. Keep package-specific commands alongside the code so developers can review them, and use a personal setting for preferences you carry between projects.
Use one generated-client change to test the setup
Suppose your team needs to add an optional displayName field to an API response. The schema lives at packages/client/schema/openapi.yaml, generated files live under packages/client/src/generated/, and the repo root exposes make generate-client and make test-client. The admin package differs.
Confirm those paths and commands in your checkout before writing the rule. Put a short pointer to the client instructions at the root if developers typically start there. In the package guidance, spell out the order and working directory.
For API contract changes, edit
packages/client/schema/openapi.yamlfirst. From the repository root, runmake generate-client, review the generated diff, then runmake test-client. Make generated changes through the generator.
Start a fresh session. Ask for a plan. Give it the hypothetical displayName change and see which procedure it picks up before it makes an edit. Read the plan. It should name the schema and give the commands in execution order. Ask the agent to read the schema and check the plan again when the tool loads instructions during exploration, because those rules might not have been available at startup. Repeat with an admin-only change in a separate fresh session. That second check shows whether the client workflow is being applied too broadly.
Set it up in the tool your team uses
Codex CLI works well when developers can start in the package.
- In a Git checkout, put the shared pointer in root
AGENTS.mdand the generator procedure inpackages/client/AGENTS.md. - Start a new Codex session from
packages/client/and ask for the plan. Repeat frompackages/admin/to check the scope. - Check for overrides. Missing guidance can come from an
AGENTS.override.mdon the startup path or from exceeding the combined budget for project instructions, which defaults to 32 KiB. Codex reads one file per directory. A session launched at the root builds its startup chain through the root, so the root pointer matters for work that starts there. Codex instruction discovery
OpenCode can discover package guidance while working from the root.
- Put the pointer in root
AGENTS.mdand the client procedure inpackages/client/AGENTS.md. - Start at the repository root, ask for the initial plan, then ask OpenCode to read the schema and restate the plan. Its documented discovery loads nested instructions when it reads a file or lists a directory in that area.
- After changing a nested rule that the session has already loaded, start a fresh session to verify the revision. OpenCode combines instructions without resolving conflicts, so remove contradictory commands from the root and package files. OpenCode instructions
Claude Code can share the repository rule and add file-scoped guidance.
- Check your version first. Then look for existing
CLAUDE.mdorCLAUDE.local.mdfiles. DirectAGENTS.mdloading requires v2.1.277 or later. Under the default setting, an applicable Claude instruction file can take its place. In a repo that already uses rootCLAUDE.md, put@AGENTS.mdthere to import the shared root guidance. - For Claude-specific package guidance, put a rule under
.claude/rules/withpathsfrontmatter matchingpackages/client/**. Keep the shared procedure in one place. If the Claude rule needs to point to it, use a short reference and have the agent read the package file before planning. - Open a new session and use
/context allto check the root memory files. Ask Claude to read the schema before checking whether the file-scoped guidance appears in its plan. Claude Code project memory
Unstoppable Code can carry the same guidance across worktrees in a multi-repository project.
- In the desktop sidebar, open the project menu, select Project settings, then Instructions. For a multi-repository Code project, enter a short instruction that names the repository containing the schema and points to its versioned procedure. The project instructions page is available for multi-repository Code projects. For a single-repository project, check the selected agent’s repository-file support.
- For a personal preference such as “List the validation commands and their results,” open Settings → Instructions in the Agents group. Choose Chats or Workflows according to where it should apply. For a subset of sessions, add a scoped card and choose Append or Replace. The first matching Replace card supersedes the overall instructions for that section.
- Start a new chat in the intended project with the agent you plan to use, then ask for the plan. Existing chats keep their startup instructions. Unstoppable Code standing instructions
Zed. Check which project file Zed Agent recognizes. Put the pointer in root AGENTS.md and ask Zed Agent to read the package procedure before proposing its plan. Check for a higher-priority project instruction file, such as .rules, because Zed uses the first match from its documented file list. Start a fresh thread to confirm. External agents and terminal sessions have their own loading behavior. Zed Agent instructions
Cursor. Scope the generator procedure to the client files. Use New Cursor Rule and choose Apply to Specific Files for packages/client/**. Keep a short repository-wide pointer if developers need to see the rule before opening a file. In fresh Agent chats, bring the schema and then an admin file into context and check whether the procedure is used in the correct package. Cursor project rules
Amp. Give fresh orb threads the repository procedure. Put the shared pointer in root AGENTS.md and the generation and test commands in packages/client/AGENTS.md. Test both in fresh orb threads. Use the package rule for commands that travel with the checkout. If there is an orb-specific prerequisite, document it separately in the instructions for that environment. Amp orb instructions
In a single repository, keep the generator procedure with the client package and give root-started sessions a pointer. Test the client and admin plans separately so you can see when the package rule takes effect. Add multi-repository project guidance when a second repository also needs to find the schema owner.
