This file is optimized for agent behavior. Read it when the user wants results through OpenCLI and you need a safe default path quickly.
Strong signals:
- "use opencli"
- "check what opencli can do"
- "run this through my browser login"
- "query Bilibili / Zhihu / Xiaohongshu / Weixin / Boss"
- "control Codex / Cursor / ChatGPT / Notion from terminal"
- "download this article/video with opencli"
- "generate an opencli adapter"
Weak but useful signals:
- The task needs deterministic CLI output instead of free-form browsing
- The user already has the site logged in in Chrome
- The task targets a known site repeatedly
Follow this order unless the user already gave an exact command:
opencli doctorif the task is browser-backed and health is unknownopencli list -f yamlif the command surface is unknown- Use read-only commands first
- Use
-f jsonif another tool or model will consume the result - Expand scope only after a small first pass succeeds
opencli doctor
opencli list -f yaml
opencli <site> <read-command> --limit 5 -f jsonopencli <app> --help
opencli <app> read -f json
opencli <app> history -f json
opencli <app> model -f jsonopencli <tool> ...opencli explore <url> --site <name>
opencli synthesize <name>
opencli generate <url> --goal "<goal>"- Start with
--limit 5or--limit 10 - Prefer
jsonfor machine consumption - Prefer
yamlwhen the human will scan raw output - Do not begin with write actions such as
post,reply,publish,greet,send, orfollow - For browser-backed commands, suspect login state before suspecting the adapter
Before any write-capable command:
- Read current state first
- Confirm target identity or content source
- Keep the outbound command explicit in the transcript
Examples:
- Before
boss greet, runboss detail - Before
jike post, inspect timeline or notifications if relevant - Before desktop
sendorask, confirm the app and active context withread,history, ormodel
Do not assume the README equals the installed surface area.
When in doubt:
opencli <adapter> --help
opencli list -f yamlTrust the installed CLI over stale docs.