English | 简体中文
- Harness configuration
agent/config.yml— Does: the machine harness config applied to~/.omp/agent: model-role labels (modelTags), subagent model bindings (task.agentModelOverrides), worktree isolation (task.isolation), the compaction method order, thebashInterceptorpatterns that reroute shell commands to built-in tools,edit.mode: hashline,retry.fallbackChains.weband the other session settings. When: read by OMP on every start after the updater applies it. Example:task.agentModelOverridesbindstask:midtocommandcode/deepseek/deepseek-v4.1-flash:high,compaction.methodOrderisremote → soft → snapcompact → handoff → shakewithasyncEnabled: false, and an interceptor pattern sendscat/head/tailcalls toreadwith the message "Use thereadtool instead of cat/head/tail/less/more."- Model-role tags — Does: names the
/modelpicker entries the extensions' helper roles bind to. When: resolved whenever an extension asks for its@<extension>role. Example:modelTags.input-polish.name: Input polish,modelTags.task-completion-judge.name: Task completion judge. agent/config-light.yml— Does: light-mode override that replaces theextensionslist withextensions-last/system-prompt-replace, drops the eight interactive/judge extensions viadisabledExtensions, setstask.eager: "default"and turnsbashInterceptoroff. When: loaded instead ofconfig.ymlwhenomp-lightlaunches OMP. Example:disabledExtensions: extension-module:turn-judge, extension-module:tool-policy-nag, extension-module:watchdog-agent.agent/omp-light.ts— Does: a Bun launcher that spawnsompwithOMOMP_MODE=lightandconfig-light.yml, passing the machineconfig.yml's own extension paths (non-extensions-lastentries like~/.claude) back through-eso light mode keeps them. When: run by the user as theomp-lightcommand installed besideomp. Example: child spawned withenv: { ...process.env, OMOMP_MODE: "light" }.
- Prompt layer files
agent/SYSTEM_TEMPLATE.md— Does: the base system-prompt template OMP renders ({{personality}},{% if renderMermaid %},{% if skills or alwaysApplyRules or rules %}slots), edited down so tool-specific prose lives elsewhere. When: rendered into every session's base system prompt. Example:{% if personality %}# Personality\n{{personality}}{% endif %}.agent/PERSONALITY.md— Does: the personality-slot text injected through{{personality}}. When: rendered into the base prompt of every session. Example:Evidence-first terse engineer: every sentence fact, decision, or risk.agent/APPEND_SYSTEM.md/APPEND_SYSTEM_LIGHT.md— Does: the unconditional appendix OMP appends after the template (user-instruction precedence, final-reply style, document-context rules); the light-mode variant is a placeholder. When: appended to the system prompt of every session (full and light respectively). Example:# User instructions take precedence — Every rule in this appendix is a default for when the user has said nothing else.
- tool-topics (
agent/extensions/tool-topics/)- Description rewrite — Does: replaces each covered built-in tool's rendered description with its
SURFACE-*.mdsurface plus an index of its topics, found by tool name inside OMP's rendered prompt layouts. When: at everybefore_agent_start, main and sub sessions, when the session hasread; returned as the result'ssystemPrompt. Example:SURFACE-read.mdreplaces thereaddescription and the prompt then listshelp://read/jsonas a topic. - Unified
help://handler — Does: augments OMP's nativehelpscheme on the internal-URL router to serveTOPIC-*.md, shared plugin topics, and nativedocTopics()together:help://lists tools,help://<tool>lists its topics,help://<tool>/<topic>returns one body. When: resolved whenever the model reads ahelp://URL. Example:read help://edit/hashline-movesreturns that topic's markdown. - Topic injection — Does:
TOPIC-*.mdfrontmatterinject:rules{id, tool, parameter, pattern}deliver the topic body once per context as trustedadditionalContextunder markeromp-config/tool-topic-injectionwhen a tool result's named string argument matches the pattern. When: after atool_result, including failed results. Example:TOPIC-read-json.mdinjects when areadcall'spathends in.json, so the model gets the jq-query instructions right after the call.
- Description rewrite — Does: replaces each covered built-in tool's rendered description with its
- system-prompt-replace (
agent/extensions-last/system-prompt-replace/)- Wording edits — Does:
REPLACE-SYSTEM-*.ymlrules rewrite passages of the rendered system prompt (literalverbatim,regexwith$1substitution, conditioned bytarget/cwd/model/provider/mode/delegation/exclude.*), returned as the editedsystemPromptitself. When: re-read and re-matched at everybefore_agent_start; loaded as the lastextensionsentry ofconfig.ymlso it runs after every other extension. Example:REPLACE-SYSTEM-default.ymltargetssubagentsto blank out "No TODO tracking, no progress updates." and adjusts eval guidance underdelegation: eager.
- Wording edits — Does:
- append-system-model (
agent/extensions/append-system-model/)- Conditional prompt fragments — Does: every applying
APPEND-SYSTEM-*.md(frontmatter keysenabled,target,cwd,model,provider,mode,delegation,exclude.*; discovered beside the extension and from cwd up to the git root including each.omp/) is appended as one hidden delta message with sourceomp-config/append-system-model. When: re-read and matched at everybefore_agent_startandtool_resultin main and subagent sessions. Example:APPEND-SYSTEM-decision-support.mdwithtarget: main,exclude.model: ^claude-opus-5-5$injects "For a consequential decision, consult bothdiscuss:steadyanddiscuss:divergent".
- Conditional prompt fragments — Does: every applying
- repo-rules (
agent/extensions/repo-rules/)- Context files — Does: delivers
AGENTS.md/CLAUDE.mdfrom cwd up to the repo root (config.ymldisables the nativeagents-md/claude-mdproviders that would render them into the prompt under absolute paths) as messages, paths written relative to the repo root so worktrees get identical bytes. When: at everybefore_agent_startand after everytool_result, only when the delta changed. Example: this repo's rootAGENTS.mdreaches the model as part of theomp-config/repo-rulesdelta. - Unscoped and unlisted rule files — Does: scans
.claude/rules,.agents/rulesand.pi/rulesfrom cwd up to the repo root for rule files OMP's native discovery skips (noalwaysApply, nodescription, unknown directory) and delivers their bodies, or lists frontmatter files byname/description/path. When: same delta points as above. Example: a.pi/rules/foo.mdwithout frontmatter is delivered verbatim. - Path-scoped rules — Does: a rule whose frontmatter has
paths:globs (project, user, plugin and extension-rootrules/all included) is delivered astool_resultadditionalContextthe first time aread/write/edit(or a plaincat/head/tailbashcall) touches a matching file, once per context; native rules withpathskeep their prompt presence but are re-scoped. When: after the tool call that touches a matching path. Example: this repo's.claude/rules/judge-prompts.mdarrives whenagent/extensions/turn-judge/**or anINTENT-*.mdfile is touched.
- Context files — Does: delivers
- Subagent roster (
agent/agents/)task:high— Does: the only worker tier that can delegate further (spawns: task:mid, task:low, task:free, task:high, discuss:steady, discuss:divergent, mentor:default); its description forbids dispatch without explicit user permission. When: spawned by thetasktool; bound bytask.agentModelOverridestoanthropic/claude-opus-5-5:high. Example:task-high.mddescription: "FORBIDDEN without explicit user permission".task:mid— Does: the default worker tier for bounded slices outside design and core work;completionJudge: trueandsplitCheck: truefrontmatter opt it into the judge extensions. When: spawned by thetasktool; bound tocommandcode/deepseek/deepseek-v4.1-flash:high. Example:spawns: mentor:defaultonly, so it executes its slice itself.task:low— Does: routine-tier worker on DeepSeek V4.1 Flash and the validator for free-tier results. When: spawned by thetasktool; bound tocommandcode/deepseek/deepseek-v4.1-flash:high. Example:task-low.mddescription names it "the validator for free-tier work".task:free— Does: low-trust probe tier for leads and candidates whose errors are harmless. When: spawned by thetasktool; bound tocommandcode/deepseek/deepseek-v4.1-flash:low. Example:task-free.mdfrontmattercompletionJudge: true, splitCheck: true.discuss:divergent/discuss:steady— Does: read-only discussion partners (tools: read, grep, glob), expansive vs. conservative stance, for arguing plans and decisions through. When: spawned throughtaskor messaged during a task; bound toanthropic/claude-opus-5-5:mediumandcommandcode/deepseek/deepseek-v4.1-flash:high. Example:discuss-steady"stress-tests a plan, design, or diagnosis against the actual code and evidence".mentor:default— Does: tool-less mentor consulted before long investigations and debriefed before delivery; stays reachable bywrite agent://<id>. When: spawned per task; bound tocommandcode/deepseek/deepseek-v4.1-flash:high. Example: frontmattertools: []; the shippedPROMPT-INJECT-user-goal.mdfeeds it the user's verbatim requests.reviewer— Does: code-review specialist kept bound to the@slowrole. When: spawned bytaskwithagent: "reviewer". Example:task.agentModelOverrides.reviewer: "@slow".- Disabled bundled agents — Does:
task.disabledAgentshides OMP's bundledtask,scout,sonicandsecurity-reviewerso spawns resolve to this roster. When: at everytaskcall's preflight. Example:disabledAgents: [task, scout, sonic, security-reviewer]. agents/README.txt(+README.zh-CN.txt) — Does: repo-shipped authoring notes recording observed subagent-definition pitfalls (deadtasktool withoutspawns,disabledAgentsblocking allowlisted names, why this file is.txt). When: read by whoever edits these definitions; never shipped to the prompt. Example: item 1 documents the refusalCannot spawn 'mentor:default'. Allowed: none (spawns disabled for this agent).
- Dispatch gates
- task-split-check — Does: judges
taskcall items with yes/no questions before dispatch:split(main session; items whose agent declaressplitCheck: true— does the item cover more than one topic) andreport-limit(every session; everytask:*/unset-agent item — does the dispatch cap the report length); any flag blocks the whole call with the reasons, and prompts are remembered per process by content hash. When: attool_callontask, model from the@task-split-checkrole thendefault, under a 25 s deadline. Example: re-dispatching the samesplit-flagged prompt unchanged passes as arepeat, while a capped report must instead write long output to a file. - isolation-nudge — Does: blocks a
taskcall that would leave two or more write-capable agents sharing the session's working directory withoutisolated: true, once per unseen prompt text; an agent is write-capable unless its definition limits it to OMP's read-only tools (an omittedagent,task:*,dispatch-ownerand session-defined agents count,discuss:*,mentor:defaultandscoutdo not), andisolated: falseis a deliberate choice that never triggers. It stays silent while thetasktool offers noisolatedparameter (isolation off, plan mode). When: attool_call, counting shared writers of earlier calls in the same turn (cleared atturn_start) and running shared writer jobs recorded attool_result. Example: the block reason lists`task:mid #1` (dispatched earlier in this message)and tells the model to "Re-dispatch the writers withisolated: true". - task-completion-judge — Does: inside a subagent whose definition declares
completionJudge: true, a fast model compares the assignment, the subagent's recent calls and itsyieldpayload, and blocks the first terminalyieldjudgedNOT_DONE(or aDONEyield while itsomp-todo-ng:readprojection still has open items), each at most once per session. When: attool_callon the yield tool in judged subagent sessions, model from@task-completion-judgethendefaultunder a 25 s deadline. Example: the verdict is "the reply's leading first-line token:DONE,NOT_DONEorNOT DONE". - user-prompt-inject — Does: renders
PROMPT-INJECT-*.mdtemplates ({{user_prompt[i]}},{{user_prompt[a:e]}},{{ask_answers}}from the root session's prompts andaskanswers) into a request-only developer message placed first for the targeted subagents. When: on everycontextevent (each model call, including IRC wakes) in a targeted subagent. Example:PROMPT-INJECT-user-goal.mdtargetsmentor:default, discuss:steady, discuss:divergentwith "These are the human user's own requests to the root session, verbatim and in order".
- task-split-check — Does: judges
- Deletion boundary
- delete-guard guard lane — Does: parses every
bashcall in the pi-shell dialect and everyevalcell with its own py/js readers, and blocks deletion commands (rm,unlink,rmdir,shred,find -delete, PowerShellRemove-Item, cmddel/rd, interpreter calls likeshutil.rmtree/fs.rmSync) and non-literal command text (expansion-built names, nested shells from stdin,eval/trapbodies) before anything runs — failing closed on unparseable input. When: attool_callonbashandeval; independent oftools.approvalModeandbashInterceptor. Example:bash rm -rf build/is refused and the reason points to thedeletetool. deletetool — Does: the only sanctioned deletion path: literal paths only (no~, env or globs), defaultmode: "trash"moves to the system trash,mode: "permanent"needs interactive confirmation and refuses root/home/session-cwd and their ancestors. When: registered on supported platforms; called by the model instead of shell deletion. Example:delete({paths: ["dist/"]})reports "delete (trash): all 1 done".
- delete-guard guard lane — Does: parses every
- tool-policy-nag (
agent/extensions/tool-policy-nag/)- pty lane — Does: refuses non-PTY
bashcalls andevalcells that start passthrough, terminal or open-ended commands before any process starts, in main and sub sessions, with ahelp://bash/terminalpointer (pty: truecalls pass). When: attool_call, whentool-policy-nag.pty.enabledis on and the session haswrite_stdin. Example:bash ssh hostorbash htopwithoutpty: trueis refused withhelp://bash/terminal. - form lane (
heuristic) — Does: deterministically counts operations a built-in tool covers (shell-parser/shell-command/shell-programsclassify each program; a traced run'sdetails.tracesupplies the commands that actually ran) and reminds withform.promptonce hits exceedform.afterHits, at mostform.maxNagsper context; while this detector runs it also overridesbashInterceptor.enabled = falseon the live settings. When: judged attool_resultin the main session; reminder ridesadditionalContext. Example: repeatedcat/ls/grepshell calls produce a reminder to useread/glob/grep. - intent lane (
jev) — Does: asks the JUDGE backend onechoicequestion per watched call — what the call accomplishes and which built-in tool owns that intent — using theINTENT-*.mdspec's options, and reminds naming intent and required tool when the verdict passesintent.threshold. When: the question starts attool_call, the reminder lands attool_result; main session. Example:INTENT-policy.mdoptionreadhastitle: 读文件内容,tool: "`read`", coveringcat package.jsonandtar -xO -f b.tar x. - risk lane — Does: reminds about calls whose outcome the agent cannot read off the result: a traced step that failed silently (non-zero status nothing tested, no output), or text-judged calls exceeding
risk.minCommands/risk.minChars/risk.minPrograms. When: attool_result, main session, whentool-policy-nag.risk.enabled. Example: a chained command whose middle step exits non-zero with no output gets a silent-failure reminder. tool-policy-nag.*plugin settings — Does: all lane behavior is configured throughomp-configplugin settings read at every watched call (project.omp/plugin-overrides.jsonwins over machine values). When: on each watched call; editable via/settings → Plugins → omp-configoromp plugin config. Example: keystool-policy-nag.detector,tool-policy-nag.form.afterHits,tool-policy-nag.intent.threshold,tool-policy-nag.risk.minPrograms,tool-policy-nag.pty.enabled.
- pty lane — Does: refuses non-PTY
- Session-move and restart tools
wt— Does: queues the human's own/wtthroughexecuteBuiltinSlashCommandto create a git worktree (branchwt/<yyyymmdd-hhmmss>by default) and move the session into it after the turn ends; an already-worktree session gets a report plus aconfirmhash instead. When: armed onagent_end, executed once the session is idle; TUI main session only, refused in vibe mode. Example:wt({branch: "fix-x"})returns a queued acknowledgement and the outcome arrives as the next message.wt_remove— Does: two-call removal of the session's worktree: the first call dry-runs and returns what would be deleted, blockers (running jobs, subagents inside) and aconfirmfingerprint of the worktree state; the second call with a matching fingerprint queues/moveback to the main checkout plus a forcedgit worktree removethat keeps the branch. When: same queue/arm timing aswt; TUI main only. Example:wt_remove({})thenwt_remove({confirm: "<hash>"}).harness_restart— Does: queues the human's/restart(same launch flags, session resumed from disk), records the request as a durablecustomsession entry, and after the restart delivers an attributed restart-completed message with thereason. When: queued at the call, armed onagent_end, run once idle; TUI main only. Example:harness_restart({reason: "load new extension"}).
- Reviewer and judge monitors
- watchdog-agent — Does:
WATCHDOG-<label>.mdfiles (extension dir plus repo walk) declare per-target reviewers withtarget/cwd/watchModel/watchProviderscope filters, a chat reviewer (model:) or JUDGE options (option.<label>), cadenceevery: 30,scope: full|window,delivery: aside|steer|nextTurn|followUp,inject: system|user|none(none= observer that runs a background task with its tools and never messages the watched session; itsenv: [NAME=value]list is exported before everybashcommand it runs); each watched action (tool call or text reply of a matching message) advances a counter that triggers the review mid-run or atagent_end, and the cursor persists as a session entry. When:session_start/switch/branch/tree/compact/shutdown,tool_result,input,before_agent_start,message_end,agent_end; main and sub. Example: a file withtarget: task:mid,every: 30,option.halt: …reviews that tier's sessions every 30 actions. /watchdogcommand — Does: lists discovered watchdogs, toggles them per session or globally (on|off <name> [session|global]rewrites the file'senabled:), andadd/edit/rmmanage spec files. When: on/watchdogin the TUI. Example:usage: /watchdog [list] | on|off <name> [session|global] | add <requirement> | edit <name> [change] | rm <name>.- turn-judge — Does:
TURN-JUDGE-<label>.mdfiles (same discovery, plusskipTools,inject: system|user,maxBytesstate budget) putquestion.<id>yes/no questions toopenJudgeabout the judged turn's{ 时间线, 本轮回复 }state, and send the file'sprompt:when awhen.<name>probability expression holds. When: atmessage_endfor a turn that endedstopReason: "stop"with nonempty text, in files'target/cwd/model/providerscope; main and sub. Example: shippedTURN-JUDGE-gpt-talk-only.md(target: main,model: (^|/)[Gg][Pp][Tt],skipTools: wt, harness_restart) sends its Chinese resume-work prompt whensays_remaining >= 0.6 & announces_future >= 0.3holds. - lang-nag — Does: judges the last paragraph outside fenced code blocks of the main session's terminal reply (last
agent_endtext,stopReason: "stop", first 200 code points) against the configured language and prepends the configured instruction (e.g.说中文) to the next user message on a mismatch; a pending verdict is aborted when the next message is sent. When: detection starts atagent_end, injection atinput; main session only; settingslang-nag.language/lang-nag.instruction. Example:lang-nag.language: 中文+lang-nag.instruction: 说中文.
- watchdog-agent — Does:
- Conditional model handling
- model-compaction — Does: the
ruleslist ofmodel-compaction.json(provider/modelregexes +thresholdTokens, discovered beside the extension and cwd→git-root including.omp/) write the matched models' nativecompaction.modelThresholdsentries ("provider/id": "f<threshold>") into the runtime settings layer, never a config file; a rule that would change a model's context-window tier or does not fit below its largest window is refused. When: main-sessionsession_start,session_switchandbefore_agent_start; restored onsession_shutdown. Example: a rule{ "provider": "^anthropic$", "model": "opus", "thresholdTokens": 150000 }. - ast-top-level — Does: writes
ast_grepandast_editinto the host's process-wideTOOL_COMMAND_KEEP_TOP_LEVELtable so they stay function tools instead of bash tool commands, then re-applies the session's active tool set so the partition takes effect. When: at extension load and onsession_start. Example:TOOL_COMMAND_KEEP_TOP_LEVEL["ast_grep"] = truekeepsast_grepcallable directly whileast_edit's preview is still applied with theresolvecommand.
- model-compaction — Does: the
- TUI and language
- omomp-lang — Does: exports the
omomp-lang.languageplugin setting asprocess.env.OMOMP_LANGonce per process so every omomp plugin and extension resolves its person-facing text (_shared/i18n.ts,omomp-shared/i18n.ts); anOMOMP_LANGalready in the launch environment wins. When: at module load, before the extension factories of the same batch; reports an invalid setting at the first mainsession_start. Example:omomp-lang.language: zhmakestr("Subagent Usage", "子代理用量")return the Chinese label. - input-polish — Does: binds a chord (
input-polish.key:ctrl+enteroralt+enter) so pressing it instead of Enter starts a@input-polish-role model rewrite of the input draft in an overlay; Enter accepts the polished draft into the editor and submits, Esc/Ctrl+C aborts; drafts starting with/,!or$pass through. When: raw terminal-input listener in the main TUI session (session_start/session_switchattach); instruction frominput-polish.instruction. Example: chordctrl+enter, overlay shows the streaming rewrite while the editor keeps the original draft. - child-memory-warning — Does: a process-shared monitor warns the UI and the agent when an owned descendant OS child process's macOS phys_footprint exceeds
child-memory-warning.thresholdGiB(2 s scans via libproc, PID+birth ownership retained after reparenting; no kills). When: started at mainsession_start, refreshed onsession_switch, cleared atsession_shutdown; setting read every scan. Example:child-memory-warning.thresholdGiBplugin setting, a positive number in GiB. - task-result-guard — Does: shallow-projects non-snapshot
tasktool resultdetails(such as{}fromtool_callblocks or synthetic error/abort placeholders, keeping validTaskToolDetailsandinterrupt_skipped) toundefinedat OMP's TUI replay, plain-terminal/rewindand/copyselectors, live event, pending-result and Agent Hub transcript boundaries without mutating persisted session entries, and registers a namespaced message renderer so startup deferral keeps it eager beforerenderInitialMessages. When: at extension load in full and light mode. Example: resuming a session whereisolation-nudgeblockedtaskrenders a plain error card instead of crashingorderResults.
- omomp-lang — Does: exports the
- Usage and release surface
subagent_usagetool — Does: estimates how many more dispatches each available subagent can make before its first bound model's provider quota runs out, using per-dispatch averages and USD-per-quota constants calibrated from this machine's last 21 days of session transcripts (<agentDir>/cache/subagent-usage/,calibration.json); prints pools grouped by provider where counts inside a pool are alternatives. When: callable once consent is granted via/subagent-usage on;defaultInactiveuntilsession_start/session_switchactivates it. Example: output groups agents intoPOOLs that share one quota./subagent-usagecommand — Does:status|on|off|recalibrate|reset— the human's consent switch (subagent-usage.enabled, machine scope only) plus recalibration and data deletion; withoutonno transcripts are read and the tool stays inactive. When: on/subagent-usage. Example:/subagent-usage on"consents to reading this machine's sessions and usage history".- omomp-changelog — Does: discovers installed omomp members (packages with top-level
omomp.changeloginpackage.json, plusomp-configitself via_shared/package.json), diffs each member'sCHANGELOG.mdagainst<agentDir>/omomp-changelog/seen.jsonand shows the new sections as a widget above the editor (startup.changelogModesummary/expanded/hidden);/omomp-changelog [full|last [N]]prints release days without touching the marker. When: widget at mainsession_startwith a UI, dismissed by the first user message; command on/omomp-changelog. Example:/omomp-changelogdefaults to the latest 3 release days grouped by date. - omp-config-autoupdate — Does: applies the omp-config repo to
~/.omp/agent: atsession_startfrom GitHubreleasewhenomp-config-autoupdate.enabledis on, or on demand; runsagent/extensions/omp-config-autoupdate/omp-config-update.tswhich does preflight, three-way customization merge, plugin install/upgrade perinstall-plugins.sh, retirements,_sharedplugin linking andomomp.*settings migration;excludeentries are never written; a run that changed something shows a 5 s widget. When: automatically per start (opt-in) or via the command; conflicts followomp-config-autoupdate.conflicts(notifyoragent, which starts the adaptation in the session). Example:/omp-config-autoupdate [status|on|off|run|adapt|conflicts notify|agent].
- Plugin list and audit
install-plugins.sh— Does: the one-way declaration of omomp plugins the updater and onboarding install:omp installfor each entry ofplugins=(…), withomp-dispatch,omp-playbooksandomp-remote-buildcommented out as optional entries that a new machine does not install. When: run manually by the user, or read by the updater's apply. Example: entrieshttps://github.com/oh-my-omp/omp-actual-terminal#release,omp-todo-ng#release,omp-thinking-translator#release,omp-ask-ng#release,omp-peers#release,omp-sessions#release,omp-subagent-ng#release, plushttps://github.com/mouriya-s-lab/pi-bansos.plugin-audit.sh— Does: diffs the plugin namesinstall-plugins.shever required (from commitBASE=5974c4fa…to HEAD) againstomp plugin list --jsonand classifies them:[安装]missing,[卸载候选]removed-but-still-installed,[保留]self-installed or optional,[已同步]. When: run manually inside the repo, and by/update-omp check. Example: sections[安装] 脚本要求但本机缺失 -> 跑 ./install-plugins.shand[卸载候选] … -> 询问用户后 omp plugin uninstall <name>.
- Test sandbox (
sandbox/)sandbox/sandbox.ts— Does: builds a throwaway OrbStack network + container (omp-sandbox-<run>,oven/bun:latest) holding a copy of~/.ompconfig and credentials plus the working tree at/repo, runs realompsessions in it, and removes and ledgers everything by theomp-sandbox.runlabel. When: run manually,bun sandbox/sandbox.ts hold|run|matrix|cache|down; never in CI. Example:bun sandbox/sandbox.ts run sandbox/scenarios/echo-hi.json futureppo-pool/gpt-6.2-sol.sandbox/recorder.ts— Does: gives everymodels.ymlprovider with abaseUrla loopback recorder port, forwards each request unchanged upstream, and appends{"seq","provider","tools","body"}to the scenario's<name>.requests.jsonlevidence file (headers never recorded; unwritable evidence fails the request with 500). When: for every model request inside a sandbox run. Example:toolslists eachtools[]entry'sname, or[]when the body has none.sandbox/driver.ts+scenarios/*.json— Does: drives one freshomp --mode rpc --no-ui --model <model>session per model with the scenario'sinit/finalAssertionin/runs/<provider>_<model>/<name>-<ms>, and exports prompt-cache hits per model. When: underrun/matrix. Example: shipped scenariosecho-hi.json,image-gen.json,pty-remote-quotes.json,task-completion-judge.json,discovery-futureppo-pool.json.- Credential handling — Does: copies
agent.dbinside one SQLite read transaction (serialized image verified row-by-row on the host), deletes theauth_credentialsrows of providers without a recorder target inside the container, and keepsmodels.ymlfields otherwise byte-identical. When: during sandbox build; build fails if a remaining provider has no target. Example:sandbox/autoupdate-off.tsthen setsomp-config-autoupdate.enabledtofalseinside the container only.
- CI (
ci/,.github/workflows/)ci/check.ts+config-check.yml— Does: the config check: in a throwaway HOME it installs the latest omp, applies the repo's own updater, registers the anonymous Kiloci-freemodel plus shadow proxies for every referencedprovider/model, runs real sessions and reports deduplicated diagnostics (config/environment/provider) with stable 12-hex finding ids. When: push tomain, PRs, dailycron: "17 3 * * *", andworkflow_dispatch; report-only, no merge gate. Example:bun ci/check.ts.ci/windows-guard.ts+delete-guard-windows.yml— Does: Windows acceptance for the delete guard on awindows-latestrunner. When:workflow_dispatchand same-repo PRs. Example:bun ci/windows-guard.ts.ci/windows-accept.ts+windows-accept.yml— Does: dispatches arbitrary Bun script text againstowner/repo@shacheckouts under%RUNNER_TEMP%\srcon a Windows runner, found by a run id. When:workflow_dispatchand same-repo PRs. Example: inputsrepos("owner/repo@<40-hex sha>") andscript.omomp-check.yml— Does: checks out this repository with full history (for the tests'git showfixtures) andoh-my-omp/sharedon the branch named like the pull request's base branch (the run's own branch outside pull requests) when shared has one, otherwisemain, then runsdeps.ts check, bun install, the@oh-my-piupgrade,bun run check(Biome,tsc --noEmit),bun run testoverci/*.test.ts, the shared gatedeps.ts gate(deterministic host-export checks over production TypeScript inagent/extensions/andagent/extensions-last/, plus AST gates for cross-extension isolation and chained-cast SAFETY markers) and the shared copy comparisonverify.ts. Push and pull request runs print the result to the step summary only; the daily run and a dispatch withreport_issuealso maintain this repository'srepo-scope tracking issue. When: push tomain, pull requests, dailycron: "0 18 * * *", andworkflow_dispatchwith thereport_issueinput.omomp-release.yml— Does: runsrelease.tsfromoh-my-omp/sharedmain: version bump fromCHANGELOG.md## [Unreleased]categories, tagvX.Y.Z,releasebranch fast-forward, GitHub Release. When: dailycron: "0 17 * * *"(02:00 GMT+9) andworkflow_dispatch.ci/*.test.ts— Does: bun unit tests for the extensions and updater (bun test --isolate ci). When: viabun run testlocally and inomomp-check. Example:ci/delete-guard-tool.test.ts,ci/omp-config-update.test.ts,ci/tool-topics-catalog.test.ts.package.jsonscripts — Does:bun run check(Biome +tsc --noEmit -p tsconfig.json),bun run format,bun run test. When: local development and CI. Example:"test": "bun test --isolate ci".
- Shared extension runtime (
agent/extensions/_shared/)omp-configplugin manifest — Does:_shared/package.jsonis the local plugin the updater links asomp-config; itsomp.settingsdeclares every extension setting key, type and default (lang-nag.*,input-polish.*,tool-policy-nag.*,child-memory-warning.thresholdGiB,omp-config-autoupdate.*,subagent-usage.enabled), and its top-levelomomp.changelogmakes the config itself a What's-New member. When: read by/settings → Plugins,omp plugin configandgetPluginSettings. Example:"omomp": { "changelog": "CHANGELOG.md" }plus"omp-config-autoupdate.enabled"defaulting off.omomp-shared/copies — Does: byte-level copies ofoh-my-omp/shareddeclared byomomp-shared.json:active-tools.ts(canonical tool order),context-delta.ts(<system-reminder source=…>delta streams),i18n.ts(OMOMP_LANG→ locale → English),internal-url.ts(scheme registration with owner arbitration),todo-read.ts(omp-todo-ng:readwire protocol),tool-entry.ts(omompTool(definition)shared tool registration and empty-argument normalization, plusverbatim(schema)for literal string fields). When: imported by the extensions at load; kept in sync by the shared repo's sync PRs and the check workflow. Example:omomp-shared.jsonlistsactive-tools.ts, biome.base.json, context-delta.ts, i18n.ts, internal-url.ts, todo-read.ts, tool-entry.ts.- Spec-file and session-filter helpers — Does:
spec-files.tsdiscovers spec files by name pattern (<KIND>-*.md,model-compaction.json; extension dir, then cwd→git-root including.omp/),session-filter.ts/prompt-conditions.tsparse the sharedtarget/cwd/model/provider/mode/delegationcondition grammar,context-delivery.tsdedupes once-per-actual-contextadditionalContext. When: used by append-system-model, system-prompt-replace, model-compaction, turn-judge, watchdog-agent, user-prompt-inject on every delivery point. Example: discovery order "the extension's own directory first, then every directory betweencwdand the first of: a directory holding.git, or the home directory". - Judge and helper sessions — Does:
judge.ts(openJudgefor the@<extension>role → JUDGE role chain → fallback prompted judge),role-chain.ts/roles.ts(role resolution and chained completions),helper-session.ts(tool-less in-memory helper sessions like input-polish's). When: inside the judging extensions whenever a verdict or rewrite is needed. Example: turn-judge'sopenJudgepurposeturn-judge; input-polish'srunHelperPrompt. - Plumbing — Does:
interactive-mode.tscaptures the liveInteractiveModeforwt/harness_restart;plugin-settings.tsreads/writes the manifest-declared settings;caller-session.ts/settings.tsresolve the live session;eval-py-launches.ts/eval-js-launches.tsparse eval cells like the kernels run them;agent-definition.tsreads agent frontmatter flags;ask-answers.tsextractsaskanswers;messages.ts/tool-calls.ts/errors.ts/models.ts/i18n.tsare the text/call/error helpers. When: imported by the extensions that need them. Example:captureInteractiveModeswapsInteractiveMode'ssetToolsExpandedduringctx.ui.setToolsExpandedto grab the live instance forexecuteBuiltinSlashCommand("/wt …").
- Repo-local omp config (
.omp/, applies while working in this repo).omp/commands/*.md— Does: project slash commands for omomp maintenance:/onboard-omp(guided onboarding/customization),/update-omp(repo → machine apply incl.checkdry run),/sync-omp-config(machine → repo snapshot),/migrate-omp-keys(SSH copy ofauth_credentials). When: on/<command>in a session rooted here. Example:/update-omp checkrunsbun agent/extensions/omp-config-autoupdate/omp-config-update.ts apply --source . --checkplus./plugin-audit.sh..omp/RULES.md— Does: project context file documenting theg16proWindows test machine and theomptestsandbox launcher contract. When: loaded as repo context in sessions rooted here. Example: test rootD:\omp-test, sessions underruns\<name>..omp/mcp.json— Does: declares thewindows-mcpHTTP MCP server for theg16protest box. When: connected when a session opens in this repo. Example:http://g16pro.mouriya.lan:8000/mcpexposingmcp__windows_mcp_*tools..claude/rules/judge-prompts.md— Does: path-scoped authoring rules for judge question files, delivered via the repo-rules extension. When: when aTURN-JUDGE-*/INTENT-*/WATCHDOG-*/lang-nag/judge.tspath underagent/extensions/is touched. Example:paths: agent/extensions/turn-judge/**, agent/extensions/tool-policy-nag/INTENT-*.md.docs/— Does: developer documentation set (prompts-and-context,agents,extensions,plugins-and-modes,operations, each en+zh) referenced byAGENTS.md's "read the matching one before changing it" table. When: read by maintainers and the agent working on the matching subsystem; never loaded into the prompt. Example:docs/extensions.mdis the per-extension index the README defers to.