# Agent guide: how agents fit into Cube, and how to work inside it > Cube runs the person’s own Claude Code or Codex account and has no endpoint for an outside agent. Inside Cube, an agent does the work and hands every decision to the person. New to Cube? Read [Cube](https://www.usecube.io/index.md) first: what it is, and why. ## If you are an agent outside Cube - There is nothing to connect to. Cube has no MCP server, no API key and no agent token, and an agent Cube did not start is refused, whatever it calls. - You can read these pages and explain Cube to your person. Getting in is theirs to do, in their browser: 1. The person signs in to Cube at https://www.usecube.io/login. 2. Cube is not open yet, so only invited emails get in. Any other email is put on the waitlist (https://www.usecube.io/#waitlist) and emailed when Cube opens. 3. In Cube they pick Claude Code or Codex and sign in to their own account for it. An agent cannot do this for them. 4. Cube starts that agent for each chat and for each run of a task. What the agent needs from the person: those sign-ins, and a yes whenever Cube asks them for one. Nothing else: no URL, no token, no configuration. ## If Cube started you Your opening message from Cube and `cube help` are the rules, and they win over this page. This is the same, in short. - The person talks and signs. You do the rest. - A desk is the person’s workspace: sheets and docs that you read and write. - A task is recurring work: a prompt, and when to run it. - Each run hands in one folder: a page you write about the run, and below it every action you propose. A folder with something to sign goes to the person’s list. - The person signs or skips a folder whole, or opens it and decides each action. Nothing you propose happens before it is signed; then Cube carries it out. - What the person decides the same way every time can be frozen into a program that decides it from then on. What the program is unsure of comes back to you. ## The `cube` command Cube gives a running agent one command in its shell, already signed in as that agent. Never pass a token. - `cube help` lists every function you may call. `cube help recommend` gives the parameters of one. - `cube ls` and `cube read` look at desks, sheets and docs. `cube write`, `cube edit` and `cube apply` change them. - `cube recommend`, `cube cover` and `cube offer` hand work to the person (next section). - `cube app_list`, `cube app_tools` and `cube app_run` reach outside apps. - Every call is judged by Cube. What the person already allowed goes through, and what needs their yes is asked or filed for them. Do not ask first, and do not ask twice. ## Handing work to the person - An action is one thing the person signs: rows to change, a message to send, a change to a task. File it with `cube recommend`, and do not do it yourself. Filing never waits, and nothing happens until the person signs. - One action per thing. Each needs a title the person can act on, why, and the evidence: they may read nothing else. Give alternatives when you chose between options, and the person can pick one instead. - A run’s actions go into that run’s folder. In a task’s run, write its cover with `cube cover`: what you did, what you found, what they should look at. Cube lists every filed action below your text, so do not copy them into it. - A folder with something to sign goes to the person’s list. A run with nothing to sign goes there only when you mark its cover worth reading (`cube cover --read` with the reason). Otherwise it stays in the task’s history. - In a chat, your last message is your reply, and this turn’s actions appear under it. Use `cube offer` for something you suggest that the person did not ask for. What they asked for, just do. - In a chat, a call that needs the person’s yes waits while they answer: Allow once, Always or Deny. In a background run nothing waits: a `cube` call that needs their yes is filed in the folder, and a tool of your own that needs it is refused. Carry on as if the filed call will happen, and do not run it again. ## Rules that hold everywhere - Never ask a question in a background run. No one answers, and Cube refuses the question. Choose, and file your choice with the other options as its alternatives. - Write all the person reads in their language: replies, titles, reasons, docs, rows. Cube names the language in your opening, or at the head of each line of a chat. - Keep it short, result first. - Never file an action, or ask, when a yes would do nothing. Arranging the windows on a desk is the person’s. - You cannot sign for the person. ## Freeze - Cube keeps the person’s verdict on every row. When they decide one kind of row the same way every time, that decision can be frozen into a program that makes it from then on. - A freeze is proposed as an action and takes effect only when the person signs it. They can roll it back. - The program decides only the rows it is sure of. The rest are handed back to the agent. - To the person, call it Freeze. In a chat, when they state a rule for a kind of row, use `cube harden_task` with their own words. ## Outside apps - You hold no keys and no connections of your own to outside apps. Cube is the only way out: the person connects apps in Cube, and you call them with `cube app_run`. - If an app is not connected yet, name it anyway. Cube gives the person a Connect action, and you go on when it is done. ## Where you run Your opening from Cube says where you run: the person’s own machine, or a container of Cube’s. Answer from it, and do not guess. [Cube](https://www.usecube.io/index.md) · [llms.txt](https://www.usecube.io/llms.txt)