Skip to content

docs(python-cli): add Portuguese (pt) agent quickstart guide and discovery link - #14750

Merged
kodjima33 merged 1 commit into
BasedHardware:mainfrom
kduailabs:docs/agent-quickstart-pt
Sep 22, 2026
Merged

kodjima33 merged 1 commit into
BasedHardware:mainfrom
kduailabs:docs/agent-quickstart-pt

Conversation

@kduailabs

@kduailabs kduailabs commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Adds agent_quickstart.pt.md — a native Portuguese translation of the agent guide, matching the structure of agent_quickstart.md and agent_quickstart.zh-CN.md / zh-TW.md:

  • Agent-friendly contract: stable JSON document on stdout, structured {"error", "detail"} on stderr, stable exit codes, no interactive prompts in headless contexts, forgiving retry behavior.
  • One-time human auth (omi auth login / OMI_API_KEY).
  • The five most common agent operations (read/create memories, read conversations, list/complete action items).
  • Local Desktop API workflow, including the structured screenshot failure fields agents can retry on.
  • Worked Python agent loop, rate-limit handling, and operational tips.

The command lines inside the code blocks are unchanged; only the code comments and the example memory string are localized for Portuguese readers. Discovery link added in sdks/python-cli/examples/README.md.

Addresses #14749.

Proposed bounty: US$25.

@Git-on-my-level Git-on-my-level added the i18n Internationalization / localization changes label Sep 19, 2026
@Git-on-my-level

Copy link
Copy Markdown
Member

Thanks @kduailabs — verified against the English guide and the CLI source; this is a clean localization.

Verified:

  • sdks/python-cli/examples/agent_quickstart.pt.md — all 11 code blocks match agent_quickstart.md except translated comments and the localized example string in omi memory create (a nice touch for pt readers). The exit-code contract (0 ok / 1 usage / 2 auth / 3 server / 4 rate limited / 5 not found) matches omi_cli/errors.py exactly, and every URL points at the same destinations as the English guide (app.omi.me and localhost endpoints only — no added links).
  • sdks/python-cli/examples/README.md — the discovery entry slots in right after the zh-CN/zh-TW agent guides with matching style and link format.

One non-blocking nit: the PR description says code blocks are kept identical to the English guide, but the comments inside them are translated (e.g. # limite de taxa). That's fine for the audience — just noting the description slightly overstates it.

Maintainer note: bounty issue #14749 was self-filed and currently sits in the Someday column of the bounties project — whether the US$25 bounty is accepted is a maintainer decision independent of this mergeable docs change. Leaving for human maintainer review.


by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.

@kduailabs

Copy link
Copy Markdown
Contributor Author

Good catch on the description — updated it: command lines are unchanged, only the code comments and the example string are localized. Thanks for the CLI-source verification of the exit-code contract.

@kduailabs
kduailabs force-pushed the docs/agent-quickstart-pt branch from 22c5f65 to 367ef9c Compare September 19, 2026 15:14
@Git-on-my-level

Copy link
Copy Markdown
Member

Thanks @kduailabs — I verified this against the English source before commenting, and it checks out.

sdks/python-cli/examples/agent_quickstart.pt.md (new, 159 lines):

  • Structure matches agent_quickstart.md exactly: same 16 headings and same 11 code blocks in the same order.
  • All 50 non-comment command lines are byte-identical to the English guide — only shell comments, the Python docstring/raise strings, and the example memory string ("O usuário prefere modo escuro") are localized, exactly as the PR description discloses.
  • Endpoints and env vars are unchanged: http://127.0.0.1:47778, http://localhost:8080, https://app.omi.me, OMI_API_KEY, OMI_LOCAL_TOKEN, and OMI_LOCAL_API_URL all appear with the same counts as the English source.
  • Since this is an agent-guidance document (it teaches Claude Code/Cursor-style harnesses how to drive the CLI), I specifically checked for any instruction, URL, or command present in the pt copy but absent from the English source — there are none, so the localized guide teaches the identical contract.

sdks/python-cli/examples/README.md (+2): discovery entry follows the same format as the ja/zh entries and the link target agent_quickstart.pt.md exists in this PR.

One note for maintainers: #15037 also adds a pt guide (among 8 locales), so one of the two becomes redundant once the first lands — flagging it for the dedup and bounty decision rather than blocking anything here.

Nice, clean contribution — thank you!


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 the positive-signal Automation verified a genuine fix/quality contribution label Sep 20, 2026
@kduailabs

Copy link
Copy Markdown
Contributor Author

Dedup data point for the pt choice: this guide was filed 2026-09-19 06:20 UTC; #15037 (which includes pt among 8 locales) was filed 2026-09-19 18:37 UTC — ~12h later. Happy to let maintainers land whichever they prefer for pt; flagging the order only so the decision has the timestamps.

…overy link

Adds agent_quickstart.pt.md matching the structure of agent_quickstart.md and agent_quickstart.zh-CN.md: agent-friendly contract (stable JSON, exit codes, headless auth), the five most common agent operations, the local Desktop API workflow, a worked Python agent loop, rate-limit handling, and tips. Code blocks kept identical to the English guide. Discovery link added in examples/README.
@kduailabs
kduailabs force-pushed the docs/agent-quickstart-pt branch from 367ef9c to 9e8e77e Compare September 20, 2026 14:56

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

Portuguese agent quickstart, commands verified real. Approve-only, translation unverifiable.

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

Labels

i18n Internationalization / localization changes positive-signal Automation verified a genuine fix/quality contribution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants