oh-my-pi (omp) harness
Operate the omp coding agent: its configuration layers, model roles, language servers, rules, hooks, skills and sessions. Facts here are checked against omp v18.20.2 (omp --version). Each fact is marked in references/evidence-ledger.md as one of:
- confirmed from files: read from a file on the machine;
- confirmed from help: printed by
omp --helpor a subcommand's--help; - verify with omp --help: not confirmed by either. Check it before relying on it.
Do not invent a flag, key or path that is not in one of those three places.
Critical rules
- Config files can hold credentials. Never print
auth*,*key*orsecret*files, and do not runomp tokenoromp auth(they print or export credentials). Redact anything before it goes into a transcript, an issue or a commit. - Keep a hosted provider from answering silently. Where a local model must answer, pin auxiliary calls with
--offlineormodels.offline, and--no-judgeormodels.noJudge, then test the setup as in procedure 2.--offlineis not a network firewall (help text). - Never stop, restart or interrupt another agent's omp session. New skills and settings are picked up by new sessions; whether a running session reloads them is verify with omp --help. Check which session owns what with
omp session leasebefore touching anything. - Find a session by its working directory. Session storage is keyed by the folder path, so a moved folder hides its sessions. Use procedure 6, not a manual rename of the store.
- Check a peer's claim against git. A message from another omp instance that names a commit, file or test result is a lead. Confirm it with
git -C <repo> show <sha>:<path>orgit log.
Situation to reference
| Situation | Load |
|---|---|
| Which file wins, what to commit, UI changes landing in the project file | references/config-layers.md |
Model roles, models.yml, a local model, stopping a silent hosted fallback | references/model-roles-and-local-models.md |
lsp.json, a server binary not found, TTSR rules, hooks, bash approval patterns | references/lsp-rules-and-hooks.md |
| A new skill is not visible, skill settings, skill registry | references/skills-discovery.md |
| Where sessions live, moving a folder, pack and unpack, crash recovery | references/sessions-and-rehoming.md |
| Resuming in RPC mode, ACP, collab, background processes, peer coordination | references/peers-and-rpc.md |
| Which facts are confirmed and from where | references/evidence-ledger.md |
Procedure 1: audit an omp setup read-only
- Confirm the version and the agent directory: ``
bash omp --version omp config path`` - List the files that exist, names only. Do not
catanything whose name matches*key*,auth*orsecret*: ``bash ls -la "$(omp config path)" ls "$(omp config path)/rules" "$(omp config path)/skills" 2>/dev/null`` - Read merged settings by key, which shows the value after layering: ``
bash omp config list --scope=global omp config list --scope=project # run from inside the repository omp config get modelRoles`` Redact any value that looks like a credential before it is shown or pasted. - Read the project layer directly if it exists:
.omp/config.yml,.omp/hooks/. - List the models the providers offer, to check each role's
provider/model-idstring: ``bash omp models omp models find <pattern>``
Procedure 2: route a role to a local model without a silent hosted fallback
- Define the local provider in
models.yml, using the shape inreferences/model-roles-and-local-models.md. Check itsidwithomp models. - Point the role at it by editing the
modelRolesblock in the file that owns the setting. Writing it withomp config set modelRolesis possible (omp config listshows it as a record); which layer that writes to is verify with omp --help. - Pin auxiliary calls to the active provider for runs that must stay local: ``
bash omp --offline --no-judge -p "reply with the word ready"`Or setmodels.offlineandmodels.noJudgetotrue` for the layer that should always hold. - Test the fallback in a throwaway profile whose local provider points at a closed port, so no other session is touched.
--profile NAMEisolates auth, sessions, settings and caches (help text). Where a profile keeps itsmodels.ymlis verify with omp --help. ``bash omp --profile fallback-test --offline -p "reply with the word ready"`` The run must fail or name the local provider. If it answers from a hosted provider, treat the setup as broken. Whether the main role falls back on its own is verify with omp --help; the test is the evidence, not the documentation. - Remove the throwaway profile once the result is recorded.
Procedure 3: put UI model choices in the project file
- Add this line to the repository's
.omp/config.yml, as the header of the project config describes: ``yaml modelRoleStorage: project`omp config settakes no scope flag in its help, so it is not the route for a project key; where it writes is **verify with omp --help**. Confirm from inside the repository withomp config get modelRoleStorage, which should printproject`. - Only
modelRolesis written to the project file. Other/settingschanges still go to the global file (stated in the project config's own header). - Decide whether the file is shared. A shared file is committed; a personal one is not. The tradeoff is in
references/config-layers.mdsection 4.
Procedure 4: fix a language server that is not found
- Check the exact binary name, which is case-sensitive on Linux: ``
bash command -v OmniSharp || echo "not on PATH"`` - Set
commandin~/.omp/agent/lsp.jsonto that exact name, withargsif needed. Prefer a PATH name over an absolute path, because an absolute path into an editor's extension folder breaks when the extension updates. - Check
fileTypesandrootMarkersfor the project, then start a fresh session in the project. - If the server still does not start, run without it to separate the two faults:
--no-lsp.
Procedure 5: diagnose a skill that does not appear
- Confirm the file is where discovery looks, with the frontmatter parsing as YAML:
name,description, and the directory name matchingname. - Check the skill settings for the layer in use:
omp config list --scope=globaland--scope=project, looking atskills.*keys. Checkskills.ignoredSkillsandskills.includeSkillsfirst. - Confirm the session was started after the file was added. Whether an in-session
/restartexists is verify with omp --help (it is not in the CLI help). - Do not restart another agent's session to make the skill appear. Start a new session for the work instead.
Procedure 6: find, move or resume a session
- List what is resumable from the folder you are in with
omp --resume(no argument opens a picker) oromp --continuefor the most recent session. - After a folder has moved, resume the session by its file path, which the help accepts: ``
bash omp --resume /path/to/session.jsonl --cwd /new/path/to/project`` - To hand a session to another machine, pack it and unpack it there with the new folder: ``
bash omp session pack /path/to/session.jsonl /tmp/session.tar omp session unpack /tmp/session.tar --cwd /new/path/to/project`` - Flag the source copy as moved so that resuming it later forks rather than diverges silently:
omp session moved /path/to/session.jsonl --to OTHER-MACHINE. - For a crash, use
omp --restore <id or path>, which also resumes subagents that were running.
Procedure 7: resume a session in RPC mode
omp --resume SESSION-ID-OR-PREFIX --mode rpc
--mode rpc and --resume are confirmed from help. The message framing on stdin and stdout is verify with omp --help and the omp documentation; do not write a client against a guessed format. Add --no-ui to run extensions headless. Before resuming a session that another process may own, run omp session lease --json -- SESSION-ID to see which session a running omp holds.
Validation checklist
- Every key, flag and path in a change is in the evidence ledger, or is marked verify.
- No credential appears in the diff, the transcript or a commit. Files matching
*key*,auth*orsecret*were not printed. - A local-only run was tested with a deliberately wrong endpoint in a throwaway profile.
- The change was made in the file that owns the layer, and
omp config get KEYshows the merged value you expected. - No other session was stopped, restarted or re-homed without its owner's decision.
Scope
This skill covers the omp CLI, its files in ~/.omp/agent/ and a project's .omp/ folder. It does not cover omp's provider accounts, billing, or building extensions and plugins.