Repository navigation
docs(cli): add Chinese (Simplified and Traditional) agent quickstart guides - #14272
Conversation
The examples directory ships localized quickstarts for human users but the agent-facing guide (agent_quickstart.md) had no translation, so Chinese-speaking builders driving omi-cli from Claude Code, Cursor, or their own harnesses had to read the English contract to get the JSON/exit-code semantics right. Constraint: docs-only scope per issue BasedHardware#13477; commands, flags, env vars, exit codes, rate limits, and code blocks stay byte-identical to the English source, only prose and code comments are translated. Rejected: Competing on quickstart.zh-CN.md | already covered by BasedHardware#13058/BasedHardware#14029 and several open PRs; BasedHardware#13477 was retargeted to agent_quickstart.md to avoid the duplicate. Confidence: high Scope-risk: narrow Directive: Keep future edits to this file in lockstep with agent_quickstart.md — structure parity is what reviewers check. Tested: Structure parity verified against agent_quickstart.md (16 headings, 20 code fences, 27 omi command lines, 10 code blocks with only comments differing); all flags, exit codes 0-5, and rate-limit literals (120/25/15, 429, 5xx) present; code-level cross-check of exit codes against omi_cli/errors.py and rate limits against omi_cli/client.py; python .github/scripts/check_agent_doc_references.py and check_agent_doc_claims.py both pass. Not-tested: No CLI execution — the guide is documentation-only and changes no code paths.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
The examples directory shipped a Simplified Chinese translation of agent_quickstart.md but no Traditional Chinese one, so readers in Taiwan, Hong Kong, and Macau had to fall back to either English or a script they do not use. The human-facing quickstart already ships both (quickstart.zh-CN.md and quickstart.zh-TW.md); this brings the agent-facing guide to the same coverage. Constraint: docs-only, structure parity with agent_quickstart.md; commands, flags, env vars, exit codes, rate limits, and code blocks stay byte-identical to the English source, only prose and code comments are translated. Rejected: Adding the file under a separate PR | the merged precedent BasedHardware#14219 landed French, Portuguese, and Italian quickstarts in one PR; folding zh-TW into the existing zh-CN branch keeps the Chinese pair reviewed together and avoids a second PR racing the same index lines. Confidence: high Scope-risk: narrow Directive: Keep agent_quickstart.zh-TW.md in lockstep with agent_quickstart.md and with the zh-CN sibling - reviewers diff all three for structural drift. Tested: Structure parity against agent_quickstart.md: 16 headings matching one for one (level and order), 20 code fences, 10 code blocks with 6 byte-identical and 4 differing only in translated comments, 27 omi command lines. All flags, exit codes 0-5, and rate-limit literals (120/25/15, 429, 5xx) present. Ran a scripted check that no Simplified-only characters appear in the file. check_agent_doc_references.py and check_agent_doc_claims.py both pass. Not-tested: No CLI execution - documentation-only change touching no code path.
|
Thanks @xyjk0511 — nicely done. I verified the translations mechanically against the English source at ff1feaa:
Also scanned both new files for hidden/zero-width characters and injected URLs — clean. Docs-only, as stated. Two things for maintainers:
Minor, non-blocking: the PR title says "Simplified Chinese" but the PR ships both zh-CN and zh-TW — consider retitling to "Chinese (Simplified & Traditional)". Leaving for human maintainer review on the two items above; the contribution quality itself is excellent. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
kodjima33
left a comment
There was a problem hiding this comment.
Docs-correctness verified: new Chinese agent quickstart guides use accurate CLI commands (auth login, memory list/create, local status/tools/search-screen), consistent with the real CLI surface. Merging.
Overview
Adds a Traditional Chinese translation of the agent-facing guide,
sdks/python-cli/examples/agent_quickstart.zh-TW.md, and an index entry insdks/python-cli/examples/README.md.The examples directory shipped a Simplified Chinese translation of
agent_quickstart.mdbut no Traditional Chinese one, so readers in Taiwan, Hong Kong, and Macau had to fall back to English or to a script they do not use. The human-facing quickstart already ships both (quickstart.zh-CN.md,quickstart.zh-TW.md); this brings the agent-facing guide to the same coverage.Closes #13477. Documentation only — no CLI, API, or behavior changes.
What changed
sdks/python-cli/examples/agent_quickstart.zh-TW.mdsdks/python-cli/examples/README.md— one index entry beside the Simplified Chinese guide.Both commits on this branch are the Chinese pair for the same issue:
bebf832added zh-CN,ff1feaaadds zh-TW. The merged precedent #14219 landed French, Portuguese, and Italian quickstarts in a single PR, so folding zh-TW in here keeps the Chinese pair reviewed together instead of racing the same index lines from a second PR.Translation contract
Everything an agent parses stays byte-identical to the English source; only prose and code comments are translated:
--json,--limit,--yes/-y,--api-key,--profile,--api-base,--verbose,--text -,--text-source,--args-json,--output,--include-completed,OMI_API_KEY,OMI_LOCAL_API_URL,OMI_LOCAL_TOKEN0–5and the{"error": ..., "detail": ...}stderr shape120/25/15per hour,429,5xxomi_dev_...,127.0.0.1:47778,a1b2c3d4,task_123, and the example SQLVerification
Structure parity checked mechanically against
agent_quickstart.md:omicommand linesHeading levels and order match the English source one for one; the four differing blocks differ only in translated comments, matching how the existing
quickstart.zh-CN.mdhandles comments.Cross-checks against the code so neither guide can drift from the real contract:
sdks/python-cli/omi_cli/errors.py(EXIT_OK=0 …EXIT_NOT_FOUND=5)sdks/python-cli/omi_cli/client.py(dev:memories120/hr,dev:conversations25/hr,dev:memories_batch15/hr)Repo checks run locally:
A scripted pass confirms no Simplified-only characters appear in the zh-TW file, and that Traditional forms are used throughout (
記錄,這個,讀取,錯誤,驗證,網路,檔案…).Bounty
Proposed as a US$25 documentation bounty under issue #13477, covering both Chinese variants.