Connecting from an AI agent
An AI agent gets into your teamspace when you log in and press Allow on Cactus’ approval page, or when you give it your teamspace with the six-digit code it shows you.
On this page
Approve an agent in your browser
Your agent sends you to Cactus’ approval page, where you decide whether it may come in.
Read the heading. It reads “Your agent wants to set up Cactus for you. Shall I let it in?” when the agent asks to set up, and “Your agent wants to use Cactus as you. Shall I let it in?” otherwise.
Read the line under it. It says what the agent may do, then where it came from: “It’s from {host}” or “It’s on this computer”, followed by the name the agent gives itself.
If you are not logged in, the page offers Log in with GitHub or Log in with Google, whichever is set up, and brings you back to this same request afterwards. If neither is set up, it offers Log in.
Read the teamspace line, explained in the next section, then select Allow or Deny.
Pressing Allow while logged out takes you through logging in and back to the same request.
Pressing Deny sends the answer back to the agent as denied, and nothing is connected.
You can take an agent back at any time, under AI clients in Connect.
Your teamspace on the approval page
The teamspace line says which teamspace the agent will work in, and what Allow does with it. The agent acts with your access.
What the page says | When it shows | What Allow does |
|---|---|---|
“It will work in {name}, with your access.” | When it shows You are already on a teamspace. | What Allow does The agent connects to that teamspace. |
“When you allow, I’ll make {name}, with Pro free until {day}. No card.” | When it shows Your email has no teamspace yet. | What Allow does Allow makes the teamspace with a Pro trial of 14 days. |
“Your team, {name}, is already on Cactus”, with Join {name} | When it shows Your email domain or an invitation matches a teamspace you are not on. | What Allow does Allow takes you to join that teamspace, then brings you back to this page. To join, see joining a team. |
Logging in through a help site, not the Cactus site, must already have a teamspace. With none, Allow stops with “Join a teamspace before connecting an AI client.”
What the agent may do
The approval page names only the permissions the agent asked for, one sentence each.
The approval page says | The claim page says |
|---|---|
“set up your product, help site, and Messenger” | The claim page says “Set up Cactus for your team: create products, connect GitHub and choose which repositories Cactus reads” |
“read your pages” | The claim page says “Read your team’s help pages, what Cactus has learned about your product from its code, and past conversations with your customers” |
“ask me questions” | The claim page says “Ask Cactus questions and start investigations. Each one starts a new conversation” |
The claim page lists every permission Cactus supports, whatever the agent asked for, and a grant made through a claim carries all of them.
Give an agent with no browser your teamspace
An agent with no browser, such as a command-line tool or a server job, shows you a six-digit code and a link. The link names the claim and never the code, so the code goes only from the agent to you and from you into the page.
Open the link the agent gave you. The page needs you to be logged in.
Read the page. It asks “Give this agent your team?”, shows the address the agent logged in through and how long ago it asked, such as “just now” or “3 minutes ago”, and names the teamspace it will act on. It says “It calls itself “{name}”” when the agent gave a name.
Check the list under “What it will be able to do”, which shows the same permissions as above.
Type the code into The code the agent showed you. The field shows
000000as its placeholder.Select Give it my team. While it works, the button reads “Claiming…”.
When the claim is recorded, the page reads “The agent has your team” and “It logged in through {host} and will connect in a moment. You can close this tab.”
Only type a code from an agent you started yourself. The page shows the account you are logged in as beside that line. Only the person the agent named can claim it, and any other account is refused.
If you have no teamspace yet, the claim makes one for you, as Allow does in the browser.
Connected agents and how to disconnect them
The clients and agents you have let in are listed on the AI clients page, under Connect.
- “Logged in as you” lists each client you let in through the browser, with what it allows: “Sets up, reads, and asks”, “Reads only”, and so on.
- “Agents you’ve claimed” lists each agent you gave your team with a code, with its name, the address it logged in through, when it was claimed, and “Logged in until” a date.
- “Connected” lists the clients that have reached the product, each with Forget.
Each row in the first two lists has Disconnect. Pressing it shows Undo for 4 seconds before the disconnect takes effect, and Undo stops it. After disconnecting, the client has to log in again.
An agent that was disconnected has to be claimed again.
A claimed agent has to be claimed again when its log-in runs out, and its row shows that date.
Forget removes only that row from Connected, and pressing it shows Undo for 4 seconds before it takes effect. The client keeps what it was given and writes a new row the next time it connects, so logging it out is done in the client itself.
If the approval page won’t go through
What you see | What it means | What to do |
|---|---|---|
“I can’t verify this request”, with “Start again from your agent. Nothing was shared.” | What it means The approval link is not signed by Cactus, so the page cannot check it. | What to do Start again from your agent. |
“This approval link is incomplete. Start again from your agent.” | What it means The link is missing part of its request. | What to do Start again from your agent. |
“Couldn’t verify this approval link. Start again from your agent.” | What it means The signature on the link does not match it. | What to do Start again from your agent. |
“Your login timed out while this page was open.” | What it means Your log-in ran out before you pressed Allow. | What to do Select Log in again. |
“It acts on a Cactus teamspace, and you’re not on one yet.” and “Join a teamspace before connecting an AI client.” | What it means You logged in through a help site, and you are not on a teamspace. | What to do Join a teamspace first, see joining a team, then start again from your agent. |
If the claim code won’t work
What you see | What it means | What to do |
|---|---|---|
“This code has expired”, with “A code lasts 10 minutes. Ask the agent to start again. Nothing was shared.” | What it means The code is older than 10 minutes. | What to do Ask the agent to start again. |
“That isn’t the code”, with “Check the 6 digits the agent showed you and type them again.” | What it means The digits do not match the code the agent showed. | What to do Type the 6 digits again. |
“Too many wrong codes”, with “This link is closed. Ask the agent to start again. Nothing was shared.” | What it means Too many wrong codes were typed, so this link is closed. | What to do Ask the agent to start again. |
“This agent asked for somebody else”, with “It said it acts for {email}. Log in as {email} to give it a team. Nothing was shared.” | What it means You are logged in as a different person than the one the agent named. | What to do Log in as the person the agent named. |
“This agent already has a team”, with “Somebody typed its code already. If that wasn’t you, tell your team.” | What it means The claim was already recorded. | What to do If that wasn’t you, tell your team. |
“This claim link can’t be verified”, with “Ask the agent to start again. Nothing was shared.” | What it means Cactus does not know the link, or cannot verify it. | What to do Ask the agent to start again. |
“Join your teamspace first”, with “Your team is already on Cactus. Open Cactus to join it, then type the code again.” | What it means A teamspace you can join is waiting for your email, so no new team is made. | What to do Join it, see joining a team, then type the code again. |
“Couldn’t give this agent your team”, with “Log in again to claim this agent.” | What it means Your log-in ended before the claim was sent. | What to do Log in again, then type the code again. |
If the GitHub connection doesn’t finish
When an agent sets up GitHub for you, the browser comes back to a page that says how it went. It names the agent by the name it gave itself, or as “your agent” when it gave none.
What you see | What it means | What to do |
|---|---|---|
“GitHub is connected”, with “Go back to {agent}. If it’s waiting on you, tell it you’re done.” | What it means The GitHub connection worked. | What to do Go back to your agent. |
“An admin needs to approve it”, with “Your GitHub organization asks an admin to approve Cactus. Once they do, ask {agent} to set up Cactus again.” | What it means Your GitHub organization must approve Cactus first. | What to do Ask an admin to approve it, then ask your agent to set up Cactus again. |
“GitHub didn’t confirm the install”, with “If you finished on GitHub, go back to {agent} and tell it you’re done. If you didn’t, ask it for a new link and try again.” | What it means GitHub did not confirm access to that installation. | What to do If you finished on GitHub, tell your agent. If you didn’t, ask it for a new link and try again. |
“GitHub didn’t connect”, with “Something went wrong on the way back. Nothing changed. Ask {agent} for a new link and try again.” | What it means The connection failed on the way back, and nothing changed. | What to do Ask your agent for a new link and try again. |
The page offers no retry of its own, because a new link always comes from the agent.