

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
1# src/cli/ — CLI: install, run, doctor, mcp (oauth), refresh-model-capabilities, get-local-version, version, boulder, cleanup, ulw-loop23**Generated:** 2026-07-0345## OVERVIEW67Commander.js CLI with 10 commands (`sparkshell` removed 2026-07). Entry: `index.ts` → `runCli()` in `cli-program.ts`.89## COMMANDS1011| Command | Purpose | Key Logic |12|---------|---------|-----------|13| `install` | Interactive/non-interactive setup | Provider selection → config gen → plugin registration |14| `run <message>` | Non-interactive session launcher | Agent resolution (flag → env → config → Sisyphus) |15| `doctor` | 4-category health checks | System, Config, Tools, Models |16| `get-local-version` | Version detection | Installed vs npm latest |17| `version` | Print plugin version | Trivial 2-line subcommand |18| `mcp` | MCP management; nested `oauth` group | `mcp oauth login <server-name>` (PKCE), `logout`, `status` |19| `refresh-model-capabilities` | Refresh models.dev cache | Model capabilities refresh |20| `boulder` | Boulder state inspector | Format work-state + tasks from `.omo/boulder-state/` |21| `cleanup` (alias `uninstall`) | Remove Codex Light state | Clean managed Codex cache/marketplace + repair project-local legacy Codex artifacts |22| `ulw-loop` | Codex ulw-loop CLI | Run the Codex LazyCodex ulw-loop CLI |2324`install` accepts `--platform=opencode|codex|both` (default `opencode`). `codex`/`both` route through `install-codex/` to install the Codex CLI Light edition (also `npx lazycodex-ai install`). See `packages/omo-codex/AGENTS.md`.2526## STRUCTURE2728```29cli/30├── index.ts # Entry point → runCli()31├── cli-program.ts # Commander.js program (10 commands)32├── install.ts # Routes to TUI or CLI installer33├── cli-installer.ts # Non-interactive (console output)34├── tui-installer.ts # Interactive (@clack/prompts)35├── model-fallback.ts # Model config gen by provider availability36├── provider-availability.ts # Provider detection37├── fallback-chain-resolution.ts # Fallback chain logic38├── config-manager/ # 20 config utilities39│ ├── plugin registration, provider config40│ ├── JSONC operations, auth plugins41│ └── npm dist-tags, binary detection42├── doctor/43│ ├── runner.ts # Parallel check execution44│ ├── formatter.ts # Output formatting45│ └── checks/ # 15 check files in 4 categories46│ ├── system.ts # Binary, plugin, version47│ ├── config.ts # JSONC validity, Zod schema48│ ├── tools.ts # AST-Grep, LSP, GH CLI, MCP49│ └── model-resolution.ts # Cache, resolution, overrides (6 sub-files)50├── run/ # Session launcher51│ ├── runner.ts # Main orchestration52│ ├── agent-resolver.ts # Flag → env → config → Sisyphus53│ ├── session-resolver.ts # Create/resume sessions54│ ├── event-handlers.ts # Event processing55│ └── poll-for-completion.ts # Wait for todos/background tasks56└── mcp-oauth/ # OAuth token management57```5859## MODEL FALLBACK SYSTEM6061No single global priority. CLI install-time resolution uses per-agent fallback chains from `model-fallback-requirements.ts`.6263Common patterns: Claude/OpenAI/Gemini are preferred when an agent chain includes them, `librarian` follows its fallback chain before GLM providers, `sisyphus` falls back through Kimi then GLM-5, and `hephaestus` requires OpenAI-compatible providers.6465## DOCTOR CHECKS6667| Category | Validates |68|----------|-----------|69| **System** | Binary found, version >=1.0.150, plugin registered, version match |70| **Config** | JSONC validity, Zod schema, model override syntax |71| **Tools** | AST-Grep, comment-checker, LSP servers, GH CLI, MCP servers |72| **Models** | Cache exists, model resolution, agent/category overrides, availability |7374## HOW TO ADD A DOCTOR CHECK75761. Create `src/cli/doctor/checks/{name}.ts`772. Export check function matching `DoctorCheck` interface783. Register in `checks/index.ts`79
One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| code-yeongyu/oh-my-openagentpackages/omo-opencode/src/tools/look-at/AGENTS.md · 68k | AGENTS.md | arch | 68/100 | 13 days ago | |
| code-yeongyu/oh-my-openagentassets/AGENTS.md · 68k | AGENTS.md | buildteststylearch | 88/100 | 13 days ago | |
| code-yeongyu/oh-my-openagentpackages/AGENTS.md · 68k | AGENTS.md | buildtestlint-formatstyle+3 | 83/100 | today | |
| code-yeongyu/oh-my-openagentpackages/omo-codex/plugin/components/ultrawork/AGENTS.md · 68k | AGENTS.md | buildteststylearch+1 | 77/100 | 13 days ago | |
| code-yeongyu/oh-my-openagentpackages/omo-opencode/src/tools/background-task/AGENTS.md · 68k | AGENTS.md | arch | 70/100 | 13 days ago | |
| code-yeongyu/oh-my-openagentpackages/omo-opencode/src/agents/sisyphus/AGENTS.md · 68k | AGENTS.md | arch | 56/100 | 13 days ago | |
| code-yeongyu/oh-my-openagentpackages/omo-opencode/src/hooks/ralph-loop/AGENTS.md · 68k | AGENTS.md | arch | 62/100 | 13 days ago | |
| code-yeongyu/oh-my-openagentpackages/omo-opencode/src/hooks/rules-injector/AGENTS.md · 68k | AGENTS.md | archdo-not | 69/100 | 13 days ago | |
| code-yeongyu/oh-my-openagentpackages/omo-opencode/src/hooks/runtime-fallback/AGENTS.md · 68k | AGENTS.md | stylearchtypes | 70/100 | 13 days ago | |
| code-yeongyu/oh-my-openagent.agents/AGENTS.md · 68k | AGENTS.md | stylearchtesting-strategydatabase | 64/100 | 13 days ago | |
| code-yeongyu/oh-my-openagent.opencode/AGENTS.md · 68k | AGENTS.md | stylearchdo-not | 71/100 | 13 days ago | |
| code-yeongyu/oh-my-openagentAGENTS.md · 68k | AGENTS.md | setupbuildtestlint-format+11 | 84/100 | today | |
| code-yeongyu/oh-my-openagentpackages/agents-md-core/AGENTS.md · 68k | AGENTS.md | archdependenciesapi | 48/100 | 13 days ago | |
| code-yeongyu/oh-my-openagentpackages/ast-grep-mcp/AGENTS.md · 68k | AGENTS.md | buildstylearchdependencies+1 | 78/100 | 7 days ago | |
| code-yeongyu/oh-my-openagentpackages/boulder-state/AGENTS.md · 68k | AGENTS.md | archapi | 48/100 | 13 days ago | |
| code-yeongyu/oh-my-openagentpackages/claude-code-compat-core/AGENTS.md · 68k | AGENTS.md | archagent-behaviour | 56/100 | 13 days ago | |
| code-yeongyu/oh-my-openagentpackages/comment-checker-core/AGENTS.md · 68k | AGENTS.md | archdependenciesapi | 48/100 | 13 days ago | |
| code-yeongyu/oh-my-openagentpackages/delegate-core/AGENTS.md · 68k | AGENTS.md | stylearchdependenciesapi | 60/100 | 13 days ago | |
| code-yeongyu/oh-my-openagentpackages/git-bash-mcp/AGENTS.md · 68k | AGENTS.md | buildtestlint-formatarch+1 | 82/100 | 13 days ago | |
| code-yeongyu/oh-my-openagentpackages/hashline-core/AGENTS.md · 68k | AGENTS.md | archtypesdependenciesapi | 48/100 | 13 days ago |
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| n8n-io/n8npackages/@n8n/agents/AGENTS.md · 201k | AGENTS.md | buildteststylearch+3 | 100/100 | 14 days ago | |
| aaif-goose/gooseAGENTS.md · 53k | AGENTS.md | setupbuildtestlint-format+7 | 100/100 | 8 days ago | |
| duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70 | AGENTS.md | buildteststylearch+3 | 100/100 | 14 days ago | |
| deepseek-ai/deepseek-harnessnative/landlock-run/AGENTS.md · 104k | AGENTS.md | setupteststylearch+3 | 100/100 | today | |
| code-yeongyu/oh-my-openagentpackages/web/AGENTS.md · 68k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 13 days ago | |
| TryGhost/Ghoste2e/AGENTS.md · 55k | AGENTS.md | setupteststylearch+2 | 100/100 | today | |
| mui/material-uiAGENTS.md · 99k | AGENTS.md | setupbuildtestlint-format+9 | 100/100 | 14 days ago | |
| elastic/elasticsearchx-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/AGENTS.md · 78k | AGENTS.md | buildtestlint-formatstyle+2 | 100/100 | 14 days ago |
A badge carrying the measured quality of the strongest agent config file in this repository, out of 100. It reads from this index every time somebody loads your page, so it changes when the measurement changes and there is nothing to keep up to date. Free, no account, and the value is not something you or we can set by hand.
[](https://rulestack.kynth.studio/configs/code-yeongyu-oh-my-openagent-packages-omo-opencode-src-cli-agents)Would rather not hotlink us? Every badge is also served in shields.io’s endpoint schema, so shields renders the image and your readers never talk to our domain:
Published by Toolproof, the masthead over this index and eight others. The method behind the number is at toolproof.kynth.studio/methodology, and the whole thing is readable as JSON with no key at /api.