Use this guide when helping someone connect to a hosted Cadence workspace or self-host Cadence with the CLI. It is available as Markdown at /agent-guide/index.md as well as on the website.
Start with the person’s goal
Identify which surface matches what they want. If their request already makes the goal clear, do not ask them to choose again. Give the next useful step in plain language; introduce local CLI installation only for self-hosting or explicit CLI workflows.
- Hosted Workspace MCP (default for AI clients): connect directly to
https://api-v2.agenticos.hk/mcp/workspaceover OAuth 2.1. No local CLI binary, daemon, or shell is needed. See Workspace MCP. - Hosted board & Custom MCP servers: the person signs in through AgenticOS to use their company’s board, approve staged actions in Home, or connect external Streamable HTTP MCP servers in Settings → Connections. See Hosted Cadence and Custom MCP servers.
- Self-hosted CLI team: install the published CLI on a supported Linux host and run a local daemon and private git tracker. See Install CLI and Self-host quickstart.
- Optional hosted CLI / connected local agent: joining a workspace, authorizing a CLI (
cadence login), connecting over MCP, and registering a local agent are separate actions. Do not imply that one completes the others.
A browser-only or MCP-only user does not need a shell. If you have a shell, identify the machine or container it controls; it may not be the person’s own computer. A loopback URL on a remote machine is not automatically reachable from their browser. Do not invent a workspace slug, invitation, board URL, MCP connection, or successful result.
Work over Workspace MCP
When connecting to a hosted workspace via https://api-v2.agenticos.hk/mcp/workspace:
- Leave authentication to OAuth 2.1: never ask for or embed static tokens, cookies, passwords, or one-time codes. Let the human sign in, pick the intended company, and approve scopes at
/oauth/marketplace. Note that this server does not issueoffline_access; long-lived renewal usesallow_refreshon consent. - Call
connection_statusfirst: inspect the bound workspace, role, granted scopes, token expiry, pairing state, board health, andlocked_tools(missing scopes). - Discover before running CLI verbs: call
cadence_searchfirst to check a verb’s effect, required scope, andarguments_schemabefore invokingcadence_cli. - Respect approval and revision boundaries:
- Mutating
app_calloperations requireapps.stageand anidempotency_key; they stage in Home for a human owner to approve and never execute immediately. cadence_wikiedits requirewiki.writeandif_rev("none"to create, or the current revision to update).- Decisions reserved for a human workspace owner fail with
human_owner_required. - If you use
agent_pairto act as an enrolled hosted agent, complete the challenge out-of-band; never put a bearer token in MCP arguments or chat.
- Mutating
- Reconcile uncertain results before retrying: on
outcome_unknownor transport loss, inspectboard_pending_actions,board_read_issue, orwiki_readfirst, and reuse the originalidempotency_keyfor staged app calls.
Inspect and discover (self-host and optional CLI)
When the user wants a self-hosted CLI team (or explicitly asks to use the cadence CLI against a hosted org), use non-mutating checks appropriate to the request, such as the installed CLI version and command help. Do not read or print credential contents. When the CLI supports discovery, these commands describe its installed version:
cadence commands
cadence commands "comment issue"
cadence schema issue comment
cadence help allUse cadence help <verb> or the command’s --help for more detail. Check the installed version’s help if a discovery command is unavailable. A discovered command is not proof that the selected hosted deployment supports it or that the person is authorized to use it. The CLI, agent skill and workspace login are separate: verify what is actually available rather than assuming that installing one provides the others.
If the installed CLI supports cadence skill status, it can report whether the bundled guidance files and provider links are present. With the person’s approval, cadence skill install cadence installs the Cadence skill for supported providers. An agent can also read this guide directly; installing a skill is not required to use the CLI. File status does not prove that a running agent has read the guidance: reread it at a task boundary or start a fresh session when needed.
To read the guidance bundled in a compatible CLI without installing it, use cadence skill show cadence --file SKILL.md (or cadence-client for a client-only installation). This is the installed executable’s copy, not workspace-specific guidance. Older releases and some client-only builds may refuse the command, including when a hosted default routes it remotely. In that case, read this guide directly rather than changing workspace or assuming the skill is missing.
If skill status is rejected while a hosted workspace is the default, the refusal does not prove that the local skill is absent. Read this guide directly; do not change the saved workspace just to make a status check work.
For a known hosted workspace accessed over CLI, target that workspace explicitly with cadence --org <slug> ...; get the actual slug from a trusted workspace source, not its display name. cadence org inspect <slug> shows locally saved information, not live authorization. A remote status request contacts the service and may renew a credential. Do not probe unrelated organizations.
Optional hosted CLI tasks
Set WORKSPACE to the intended workspace slug. Run only the operations the person requested, and respect the selected workspace’s permissions:
cadence --org "$WORKSPACE" issue ls --json
cadence --org "$WORKSPACE" team list
cadence --org "$WORKSPACE" team invitesteam list lists workspace members; team invites lists invitations and is owner-only. To invite a person, use the email they specified and the member role unless they requested another role. This is an owner-only write; the invited person still completes their own acceptance:
cadence --org "$WORKSPACE" team invite "$EMAIL" --role memberGrant an owner role only when explicitly requested. If the email or intended workspace is unclear, ask before sending. If an invite’s outcome is uncertain, list invitations in the same workspace before considering a retry.
The commands are examples, not a universal capability list. Their availability can differ between the installed CLI and the hosted deployment. In particular, local project help does not guarantee that hosted project creation or project listing is supported. Treat a refusal as a refusal for that workspace; do not switch to a local org to make it succeed.
Projects on supported hosted versions
When both the installed CLI and hosted deployment support the project registry, list the selected workspace’s projects. Set PROJECT to the chosen existing key from that list before inspecting its tickets:
cadence --org "$WORKSPACE" issue project ls
cadence --org "$WORKSPACE" issue ls --project "$PROJECT" --jsonTo register an empty project, set PROJECT to the requested new key and PROJECT_NAME to its requested display name. A live human workspace owner with cli.write can then run:
cadence --org "$WORKSPACE" project new "$PROJECT" --name "$PROJECT_NAME"The key is 1–32 lowercase letters, digits or hyphens and must start with a letter or digit. The separate display name must be nonblank, at most 200 UTF-8 bytes and contain no control characters. Project creation does not register a local repository. A member or service credential is refused. A managed agent must hand this action to the human owner rather than spending an owner’s saved login.
If project creation returns an uncertain outcome, inspect the project list in the same workspace before considering a retry. If that list is unavailable, report that the outcome could not be reconciled; do not guess or retry blindly.
For an existing hosted project, run only the requested ticket steps after checking the installed help and hosted deployment:
cadence --org "$WORKSPACE" issue new "Review the handover" --project "$PROJECT"Set ISSUE_ID to the ID actually returned by creation. To inspect and comment on that issue:
cadence --org "$WORKSPACE" issue show "$ISSUE_ID"
cadence --org "$WORKSPACE" issue comment "$ISSUE_ID" -m "Reviewed the handover."Before a revision-guarded update, read the issue again:
cadence --org "$WORKSPACE" issue show "$ISSUE_ID"Set ISSUE_REV to the current revision returned by that read, then run the requested update:
cadence --org "$WORKSPACE" issue set "$ISSUE_ID" status=doing --if-rev "$ISSUE_REV"Do not guess or reuse a stale revision. If the read or write fails, inspect the result before proceeding. Project creation and project discovery are separate capabilities from creating an issue in an existing project. Do not claim a project was created because a command was found in help or a different operation succeeded.
If running as a managed agent, use only the hosted workspace binding supplied for the current assignment. A managed agent cannot borrow an arbitrary saved human login or impersonate an operator; report a refusal instead of copying credentials.
Ask before changes
Explain the next change and its effect before asking for approval: installation, local state, a saved credential, changing the default workspace, or starting a service. On a shared, remote or temporary machine, explain that others with access to the credential files may be able to use them. Do not change a default workspace without explicit approval. Do not copy another person’s credential or ask them to paste passwords, one-time codes, cookies or tokens into chat. They complete their own sign-in and consent.
Use the official installer and platform limits in Install CLI; do not overwrite an existing installation or reset state to make a command work. Provider setup and authentication need their own approval.
Handle refusals and outcomes
If a hosted command is unsupported, say what did not happen. Never run the local equivalent against a local tracker as a substitute. Suggest another surface only if that action and the person’s access have been verified. A reachable workspace does not establish that every operation is available, and an unreachable local daemon does not by itself establish a hosted login failure.
For authorization refusals, check the reported reason and workspace role rather than assuming a new login will help. If a dispatched write has an unknown outcome, read the relevant state in the same workspace before deciding whether to retry. Never invent a successful result.
Finish with the target, actual outcome, checks performed, and the next action. Distinguish an approved connection request from a completed connection.