Skip to content

docs(cli): add Chinese (Simplified and Traditional) agent quickstart guides - #14272

Merged
kodjima33 merged 2 commits into
BasedHardware:mainfrom
xyjk0511:docs/agent-quickstart-zh-CN
Sep 17, 2026
Merged

kodjima33 merged 2 commits into
BasedHardware:mainfrom
xyjk0511:docs/agent-quickstart-zh-CN

Conversation

@xyjk0511

@xyjk0511 xyjk0511 commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Overview

Adds a Traditional Chinese translation of the agent-facing guide, sdks/python-cli/examples/agent_quickstart.zh-TW.md, and an index entry in sdks/python-cli/examples/README.md.

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 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

  • New: sdks/python-cli/examples/agent_quickstart.zh-TW.md
  • Modified: sdks/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: bebf832 added zh-CN, ff1feaa adds 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:

  • Commands, flags, and env vars: --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_TOKEN
  • Exit codes 0–5 and the {"error": ..., "detail": ...} stderr shape
  • Rate limits 120/25/15 per hour, 429, 5xx
  • Literals such as omi_dev_..., 127.0.0.1:47778, a1b2c3d4, task_123, and the example SQL

Verification

Structure parity checked mechanically against agent_quickstart.md:

Property English zh-CN zh-TW
Headings 16 16 16
Code fences 20 20 20
omi command lines 27 27 27
Code blocks 10 10 10
Blocks byte-identical to EN — 6 6

Heading 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.md handles comments.

Cross-checks against the code so neither guide can drift from the real contract:

  • Exit codes match sdks/python-cli/omi_cli/errors.py (EXIT_OK=0 … EXIT_NOT_FOUND=5)
  • Rate limits match sdks/python-cli/omi_cli/client.py (dev:memories 120/hr, dev:conversations 25/hr, dev:memories_batch 15/hr)

Repo checks run locally:

python .github/scripts/check_agent_doc_references.py  -> agent doc references OK
python .github/scripts/check_agent_doc_claims.py      -> agent doc claims OK
python .github/scripts/pr_preflight.py --lane local   -> 11 checks passed

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.

Tested: structure parity vs agent_quickstart.md (16 headings level-and-order
matched / 20 fences / 27 omi lines / 10 code blocks, 6 byte-identical), flag and
exit-code coverage, code-level cross-check of exit codes and rate limits,
Simplified-character scan, check_agent_doc_references.py,
check_agent_doc_claims.py, pr_preflight.py --lane local (11 checks).
Not-tested: no CLI execution — documentation-only change, no code paths touched.

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.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-16T23:22:21.120610Z bebf832 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

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.
@Git-on-my-level

Copy link
Copy Markdown
Member

Thanks @xyjk0511 — nicely done. I verified the translations mechanically against the English source at ff1feaa:

  • agent_quickstart.zh-CN.md / agent_quickstart.zh-TW.md: structure parity is exact (16 headings at identical levels, 20 code fences, matching table). All 10 code blocks keep every non-comment line byte-identical to agent_quickstart.md — commands, flags, the {"error": ..., "detail": ...} stderr shape, exit codes 0–5, rate limits 120/25/15, and literals like 127.0.0.1:47778, omi_dev_..., a1b2c3d4, task_123 are all untouched; only prose and inline comments (plus one Python docstring) are translated, exactly matching the translation contract in the description. The zh-TW guide reads as a genuine Taiwanese localization (伺服器 / 工作階段 / 速率限制), not a mechanical character conversion.
  • README.md: clean 4-line index insertion right after the English agent guide; no existing entries changed, and the English agent_quickstart.md is untouched vs main.

Also scanned both new files for hidden/zero-width characters and injected URLs — clean. Docs-only, as stated.

Two things for maintainers:

  1. Bounty attribution. This PR closes [Bounty proposal] Simplified Chinese quickstart for omi-cli ($25 proposed) #13477, whose proposal (and US$25 bounty request) was authored by a different account (@jiangchenhuan70-cmd), and I don't see a maintainer confirmation on the issue before this PR opened. The work itself is done and done well — but whether/who to pay on merge is a human call.
  2. Direction. This is the first localization of the agent-facing quickstart (the human-facing quickstart.*.md set has 60+ locales; agent_quickstart.md had none). Given the merged precedent docs(cli): add French, Portuguese and Italian quickstarts + German index links ($75 across bounty proposals) #14219 for human-facing quickstarts this seems reasonable, but confirming that agent-guide localization is a surface Omi wants (and will keep in sync when the English contract changes) is a maintainer decision.

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 need human response.

@Git-on-my-level Git-on-my-level added needs-maintainer-review Needs a human maintainer to sign off before merge i18n Internationalization / localization changes labels Sep 17, 2026
@xyjk0511 xyjk0511 changed the title docs(cli): add Simplified Chinese agent quickstart guide docs(cli): add Chinese (Simplified and Traditional) agent quickstart guides Sep 17, 2026

@kodjima33 kodjima33 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

i18n Internationalization / localization changes needs-maintainer-review Needs a human maintainer to sign off before merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bounty proposal] Simplified Chinese quickstart for omi-cli ($25 proposed)

3 participants