Docs

dillie / Guide for AI agents

Guide for AI agents

How an AI sets up dillie for a user. Choose the path by where the user wants to use dillie: to use it in a chat app (ChatGPT, Claude, and others), connect the connector as in Connect from a chat app; to use it from a terminal (Claude Code, Codex, and others), follow the CLI install steps below it. Even a chat app that can run commands needs the connector to use dillie in that conversation. The CLI must be installed on the computer the user works on, where the user’s own terminals can find it, and the user approves the sign-in.

Connect from a chat app

In a chat app the AI can’t click for the user, so tell the user briefly where to click and check in after each step. Never ask for the user’s password or verification code.

  • ChatGPT: dillie is available as a ChatGPT plugin. Open Plugins in the sidebar (or chatgpt.com/plugins), find dillie, select Install plugin (or Connect if asked), and approve on the dillie approval screen that opens. Then start a new chat and ask something like “Show my projects in dillie” to check the connection.
  • Claude: Open the connectors screen from Plugins in the sidebar (formerly Customize) and select Add custom connector. Add it with a name (dillie), the server URL https://mcp.gravity8.com/mcp, and Sign in now as the sign-in option, select Connect on dillie, and approve on the dillie approval screen that opens. Finally, check that dillie is turned on in this conversation under + › Connectors at the lower left of the message box. On Team and Enterprise plans, an organization owner adds it first from the organization’s connectors settings, and members select Connect on dillie in their own connectors screen to approve.

The available tools and requested permissions are in Connect from an MCP client.

Check where you are running

An install stays only on the machine where the command ran. Before installing, work out where your commands run.

Where commands run Where the install stays What to do
A cloud session (Claude Code web session, Codex cloud task) The session’s remote VM or container Nothing is installed on the user’s computer. Hand the install command to the user to run in their own terminal
The user’s computer, inside a sandbox Only where the sandbox allows writes Follow Install outside the sandbox
The user’s computer, no sandbox The user’s computer Follow Install the CLI as written

Cloud sessions run in a managed remote environment, not on the user’s computer. Each Claude Code cloud session is an isolated VM (Claude Code on the web), and a Codex cloud task runs in a container that checks out the repository (Cloud environments).

Install outside the sandbox

A local agent’s sandbox limits where it can write and what it can reach on the network.

  • Claude Code: The sandbox is off by default; turn it on with /sandbox. When it is on, commands can write only to the working directory, a temporary directory, and directories you added, and network traffic goes only to allowed domains (Sandboxing).
  • Codex: In the default mode (workspace-write), writes are limited to the workspace (the current directory and temporary directories) and network access is off. Commands that write outside the workspace or need the network ask for approval (Agent approvals & security).

So an install run inside the sandbox is either blocked when it downloads or writes to ~/.local/bin, or, if it is not blocked, it ends up somewhere the user’s other terminals cannot find.

Don’t:

  • Don’t point DILLIE_INSTALL_DIR at the working directory or a temporary directory to get past the sandbox. That executable is not on the PATH of the user’s terminals.

Do:

  • Show the install command to the user and have them run it in their own terminal.

    curl -fsSL https://dillie.work/download/cli/install.sh | sh

    On Windows it is npm install -g @gravity8/dillie-cli (Install the CLI).

  • In Claude Code, the user can run a command directly by prefixing it with ! in the prompt. A command the user types this way runs outside the sandbox even when sandboxing is on (except in strict sandbox mode) (Interactive mode).

    ! curl -fsSL https://dillie.work/download/cli/install.sh | sh
  • If you must run it yourself, get the user’s approval to run it outside the sandbox through that tool’s approval flow.

Verify the install

After installing, check that the executable is visible from the user’s shell.

command -v dillie
dillie --version
  • With the install script, it should print ~/.local/bin/dillie.
  • If command -v dillie prints nothing, the install directory is not on PATH. Have the user add the PATH line the install script printed to their shell startup file (~/.zshrc or ~/.bashrc).
  • Claude Code’s Bash tool runs each command in a separate process, so an export PATH=… in one command does not carry over to the next. Shell startup files are read when the session starts (Tools reference). In the current session, run it by its full path (~/.local/bin/dillie).

Hand the sign-in to the user

dillie login opens the dillie approval screen in a browser, and the user chooses the workspace and approves.

  • Have the user run dillie login in their own terminal.
  • Where no browser can open, run dillie login --device and pass the printed URL and code to the user as they are. The user enters the code in a browser on another device.
  • Don’t take the user’s password or verification code to sign in for them.

The session is stored on the machine that signed in, at ~/.config/dillie/cli-dillie/credentials. A session signed in inside a sandbox or a cloud session does not reach the user’s computer, and a session signed in on the user’s computer does not reach a cloud session.

Check whether you are signed in like this. If you are not, it exits with code 1.

dillie --agent whoami

Use the CLI as an agent

  • Add --agent to every command. A successful response is a single JSON value on stdout, errors go to stderr as { "error": { … } }, and update notices go to stderr as { "advisory": { … } }.
  • At the start of each session, read the commands, options, and CLI version with dillie --agent describe. With a project (dillie --agent describe <project>), the project’s fields, statuses, and hierarchy rules are included.
  • Choose the workspace with --workspace <tenantId> or DILLIE_WORKSPACE.

The full usage rules are in Working with the dillie CLI.

Wait for a person’s reply in a chatroom

To ask a room from the session you are working in and continue once you get a reply, run chat wait --after-seq with the waitAfterSeq from the chat send result. Exit code 0 means a new message, 124 means the wait timed out (wait again with the same nextAfterSeq), and 1 means an error. After that, always wait again with the previous chat wait’s nextAfterSeq, even if you sent another message with chat send in between — your own messages never end the wait, and switching to the newer messageSeq would skip what others said while you were working. The default --timeout of 100 seconds is set to fit within the tool’s command time limit. To wait longer, raise the tool’s time limit or run the command in the background, and increase --timeout. The steps are in Set up a chatroom for your AI agent.

Troubleshooting

dillie tools don’t appear in the chat after connecting

In ChatGPT, start a new chat after installing. In Claude, turn on dillie under + › Connectors at the lower left of that conversation’s message box. If they still don’t appear, disconnect, then connect and approve again.

dillie: command not found in the user’s terminal after installing

The install ran inside a sandbox or a cloud session, or the install directory is not on PATH. In the user’s terminal, check whether the file exists with ls ~/.local/bin/dillie. If it does not, have the user install again from their own terminal.

The download fails during install

The sandbox is blocking the network. Hand the install command to the user.

Not signed in. Run `dillie login`.

There is no session on this machine. Have the user run dillie login.