Skip to main content
A coding agent can run totebot commands for you: “update the delivery FAQ on every agent”, “triage unassigned tickets”, “clone the SLO agent for Croatia”.

Set up

1

Install and sign in

When approving, turn on only the write scopes the agent needs. You can change them later under Team settings → API keys → Edit access.
2

Teach the agent the CLI

totebot ai-guide prints a guide written for agents: the rules (JSON output, exit codes, dry runs, when to use --yes), recipes and the full command map.
  • Claude Code: copy the skill into your project:
    Claude Code then picks the skill whenever you ask for a Totebot change.
  • Codex and other agents: add the guide to your AGENTS.md:
3

In CI or a sandbox

Set TOTEBOT_API_KEY instead of logging in. Use a key with the smallest scopes that work.

Recipes

Update an FAQ on every agent

Sync a folder of FAQs

Keep a document in sync

Test, preview, then change instructions

Roll back a bad change

totebot ai-guide has the full “Optimize my agents” recipe: analyse, propose, test before applying, apply, verify, roll back. Optimize your agents with Claude Code walks through it step by step.

Gate a deploy on test questions

Clone an agent for a new market

Fix failed knowledge

Triage the help desk

A session in Claude Code

You: Our delivery time is now 2-3 days. Update every agent. Claude Code runs totebot whoami --json, then totebot bulk qa --all-agents --question "How long does delivery take?" --answer "2-3 working days." --dry-run --json, shows you the planned change, runs it without --dry-run and with --train, and reports that both agents now have the new answer.
If a command fails with exit code 3 and missingScopes, the agent tells you which scope to turn on. It cannot widen its own access.