Skip to content

Create Stellar CLI for Agents docs section ahead of developer preview - #2869

Open
oceans404 wants to merge 2 commits into
mainfrom
agent-cli-docs
Open

oceans404 wants to merge 2 commits into
mainfrom
agent-cli-docs

Conversation

@oceans404

@oceans404 oceans404 commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Adds a "Stellar CLI for Agents" section at docs/tools/cli/agent-cli/ covering how to use the Stellar CLI and CLI Skills as an agent wallet. It includes a quickstart, the skills overview, seven cookbook guides (send tokens, balances and metadata, delegated spending, message signing, build and submit, x402 payments, USDT0 on mainnet), and four reference pages (architecture, authority model, output and errors, troubleshooting).

The section sits in the Tools sidebar under Stellar CLI, directly below the Stellar CLI Manual, and in the Tools navbar dropdown directly below Stellar CLI. Subsections are collapsed by default.

Copilot AI lite review requested due to automatic review settings September 22, 2026 22:51
@github-actions github-actions Bot added the preview Preview builds for PRs by SDF employees. label Sep 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

@oceans404
oceans404 requested a review from fnando September 22, 2026 22:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Unresolved issues affect executable quickstarts, transaction workflows, factual guidance, and sidebar ordering.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 High severity · 10 Medium severity · 2 Low severity

Open (13)
What changed in this PR

Adds a developer-preview Stellar CLI for Agents documentation section covering agent-wallet workflows and integrating it into Tools navigation.

Changes:

  • Adds quickstart, skills, seven cookbook guides, and four reference pages.
  • Adds sidebar/navbar integration and 14 routes.
  • Updates Stellar CLI manual sidebar metadata.
File Reviewed change
routes.txt Adds agent CLI documentation routes.
docs/​tools/​cli/​stellar-cli.mdx Adds sidebar ordering metadata.
docs/​tools/​cli/​agent-cli/​skills.mdx Documents CLI skills.
docs/​tools/​cli/​agent-cli/​reference/​troubleshooting.mdx Adds troubleshooting guidance.
docs/​tools/​cli/​agent-cli/​reference/​output-and-errors.mdx Documents outputs and errors.
docs/​tools/​cli/​agent-cli/​reference/​authority-model.mdx Documents authority and security controls.
docs/​tools/​cli/​agent-cli/​reference/​architecture.mdx Documents CLI architecture.
docs/​tools/​cli/​agent-cli/​reference/​_category_.json Configures reference navigation.
docs/​tools/​cli/​agent-cli/​README.mdx Adds the section overview.
docs/​tools/​cli/​agent-cli/​quickstart.mdx Adds installation and transfer workflows.
docs/​tools/​cli/​agent-cli/​guides/​usdt0-on-mainnet.mdx Documents USDT0 mainnet usage.
docs/​tools/​cli/​agent-cli/​guides/​sign-messages.mdx Documents message signing.
docs/​tools/​cli/​agent-cli/​guides/​send-tokens.mdx Documents token transfers.
docs/​tools/​cli/​agent-cli/​guides/​pay-for-apis-x402.mdx Documents x402 payments.
docs/​tools/​cli/​agent-cli/​guides/​delegate-spending.mdx Documents delegated spending.
docs/​tools/​cli/​agent-cli/​guides/​check-balances-and-metadata.mdx Documents balances and metadata.
docs/​tools/​cli/​agent-cli/​guides/​build-and-submit-transactions.mdx Documents transaction handoffs.
docs/​tools/​cli/​agent-cli/​guides/​_category_.json Configures guide navigation.
docs/​tools/​cli/​agent-cli/​_category_.json Configures the section navigation.
config/​theme/​navbar.ts Adds the agent CLI navbar entry.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs/tools/cli/agent-cli/quickstart.mdx
Comment thread docs/tools/cli/agent-cli/README.mdx Outdated
Comment thread docs/tools/cli/agent-cli/README.mdx Outdated
Comment thread docs/tools/cli/agent-cli/guides/build-and-submit-transactions.mdx Outdated
Comment thread docs/tools/cli/agent-cli/guides/delegate-spending.mdx Outdated
Comment thread docs/tools/cli/agent-cli/quickstart.mdx Outdated
Comment thread docs/tools/cli/agent-cli/reference/architecture.mdx Outdated
Comment thread docs/tools/cli/stellar-cli.mdx Outdated
Comment thread docs/tools/cli/agent-cli/guides/usdt0-on-mainnet.mdx Outdated
Comment thread docs/tools/cli/agent-cli/reference/troubleshooting.mdx Outdated
Copilot AI review requested due to automatic review settings September 22, 2026 23:44
@github-actions github-actions Bot removed the preview Preview builds for PRs by SDF employees. label Sep 22, 2026
@oceans404

Copy link
Copy Markdown
Contributor Author

@copilot review

@github-actions github-actions Bot added the preview Preview builds for PRs by SDF employees. label Sep 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The review identifies unresolved documentation inaccuracies and copy-paste failures that require correction before approval.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Low severity

Open (1)
Resolved since last review (13)
Previously missed (6)

In code that hasn't changed since last review

Low severity Limit simulation claims to contract and SAC reads

docs/​tools/​cli/​agent-cli/​reference/​architecture.mdx:67

This description is too broad: direct RPC reads such as network health, ledger latest, and tx fetch do not simulate a transaction; simulation applies to contract/SAC-style reads. Scope the statement so agents do not infer that every read has simulation semantics.

Low severity Not all state-modifying commands use the five-stage pipeline

docs/​tools/​cli/​agent-cli/​reference/​architecture.mdx:90

Not every state-modifying command goes through these five stages: a classic tx new payment/tx send path does not simulate or authorize Soroban entries. This overstates the write path and conflicts with the later guidance that a custom Soroban pipeline must call tx simulate explicitly.

Low severity Resending the same envelope is not a double spend

docs/​tools/​cli/​agent-cli/​reference/​output-and-errors.mdx:235

The same overstatement appears here: 2>&1 can hide a successful submit, but retrying the exact same signed envelope is not a double spend; only rebuilding a new envelope can repeat the operation. State that distinction so agents do not treat every retry path as equivalent.

Low severity Distinguish rebuilding transactions from resending envelopes

docs/​tools/​cli/​agent-cli/​reference/​troubleshooting.mdx:56

confirmed double-spend is too strong and conflates rebuilding with resending. A parse failure followed by rebuilding the command can submit a second transaction, but resending the same signed envelope is sequence-protected and will not execute it twice.

Low severity Soroban transactions require resource fees beyond the base fee

docs/​tools/​cli/​agent-cli/​reference/​troubleshooting.mdx:80

The base fee is not the whole requirement here. Soroban-backed commands such as token transfer also need a resource fee, so a zero-XLM account can produce this error even when it could cover the 100-stroop classic base fee; describe the required transaction fees instead of only the base fee.

Low severity Restrict simulation claims to Soroban transactions

docs/​tools/​cli/​agent-cli/​reference/​troubleshooting.mdx:304

every tx new command run simulation is incorrect for classic operations such as payment and change-trust; those are built, signed, and submitted without Soroban simulation. Restrict this sentence to Soroban flows, otherwise an agent will look for a simulation result the CLI never produces.

stellar tx fetch result --hash "$TX" --network testnet
```

**Never retry a timed-out write blindly.** On `transaction submission timeout` the RPC accepted the transaction but never reported a final status, so the outcome is unknown. It can still land later. The command exits 1 and `$TX` can be empty, exactly like a real failure. Take the hash from the stderr line `ℹ️ Signing transaction: <HASH>` (text mode only, since JSON mode writes nothing to stderr) and check `stellar tx fetch result --hash <HASH>`. If it is still not found, read both balances and the source account's sequence number before you decide. Only rebuild the payment once you have confirmed the first one did not land.

Copilot AI commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

@copilot review

Reviewed the latest branch state and CI runs for this PR. I don’t see any new actionable issues to change in this branch right now.

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

Labels

preview Preview builds for PRs by SDF employees.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants