Coding agents
Ask Claude Code or Codex data questions. They work through the arris CLI: the agent reads your schema, writes the query, and puts it in an Arris console tab where you see the same result.
Install
Run this once in a terminal:
npx arrisIt installs the arris binary to ~/.arris/bin/arris and thearris skill to one folder per agent:
| Agent | Reads the skill from | Invoke it with |
|---|---|---|
| Claude Code | ~/.claude/skills/arris | /arris |
| Codex | ~/.agents/skills/arris | $arris |
Restart your agent after installing. Run npx arris again to upgrade; the previous copy is moved to ~/.arris/skill-backups. npx arris --project installs the skill into the current project's .claude/skills and .agents/skillsinstead. It runs on macOS and Linux.
How it works
The agent never talks to your databases directly. It runs arris commands, which print JSON. The first command starts a small Arris server on your machine (bound to127.0.0.1 and protected by a login token). The same server serves the Arris UI in your browser, and the desktop app follows it too, so whatever the agent does shows up in the Arris window you have open.
Type /arris ($arris in Codex) with an optional first word:
| Command | What it does |
|---|---|
/arris | Opens the project's Arris UI in the browser. |
/arris init-connection | Sets up a new connection. |
/arris <question> | Answers a data question with a query. /arris query <question> is the same. |
/arris dbt, /arris sqlmesh | Works with the project's models, lineage, and commands. |
You can also just ask in plain words, for example "how many orders shipped last week?"; the agent picks up the skill on its own.
Connect a database
/arris init-connection opens the connection form in your browser. You fill it in there, including the password; the agent only learns the connection's name. If you give it a connection URI, the form opens with host, port, user, database, and options filled in, and you type the password yourself. To change a saved connection, ask the agent to edit it: the same form opens with the saved values.
arris can use the Keychain. ClickAlways Allow; the command waits until you do.Ask a question
The agent lists your connections, reads the schema, and writes the query. Every query from one agent session goes to that session's console tab for the connection, under a comment saying what it answers. Ask for a separate tab if you want one. The tab is named after the agent:
- Claude Code and Codex: the agent plus a short session id, such as
Claude 1a2b3c4dorCodex 1a2b3c4d, so two sessions never share a tab. - Anything else running the CLI:
Agent.
- Reads run right away. The tab shows the result, and the agent answers in a short note instead of repeating the rows.
- One Arris tab is enough. If no Arris window is open, the first query opens one; later queries reuse it.
- Only the window you are looking at takes a query. A tab in the background keeps it queued and shows it as soon as you switch to it.
- Large results stay in Arris. The agent reads further pages of an earlier run from its saved result instead of running the query again.
Changing data
The agent does not run INSERT, UPDATE, DELETE, DDL, or MongoDB writes unless you asked for that change:
- You asked for it (for example, "delete the 3 test orders"): it runs, the tab shows the result, and the agent tells you what changed.
- The request is unclear, or the statement would change much more than you described (such as a
DELETEwith noWHERE): the agent shows the SQL and asks first. - Anything else lands in the console without running. Press Run in Arris if you want it.
Arris decides what counts as a read per database. A statement it cannot prove read-only is treated as a write.
Point at what you see
The agent can read what the Arris window shows: the active tab, its text, and your selection. So you can say "explain this query" or "why is the selected part slow?" without pasting anything. It can also list the open tabs and close them, for example "close every tab but this one".
Canvases
Ask for a dashboard, or to put a result on a canvas. The agent runs the query, then adds it to a new or existing board, with a chart when you asked for one. The open Arris tab switches to the board, which runs its read queries and draws the chart. It can also redraw a chart with another type or axes, remove an object, or delete a whole canvas when you ask.
dbt and SQLMesh
In a dbt or SQLMeshproject, the agent reads models, their SQL and columns, and model or column lineage. It runs tool commands as arris dbt cli -- <args> (or arris sqlmesh cli), so each run is logged and shows up in Arris. It asks before commands that write to the warehouse unless you asked for them. To query a model's table without a connection yet, it creates one from the dbt profile target or SQLMesh gateway through the same browser form.
Security
- Passwords and keys are typed only into the browser form and kept in the system keychain. They never appear in the agent's output, in commands, or in what the CLI prints.
- Never paste a password into the chat; the skill tells the agent never to ask for one.
- The server listens only on
127.0.0.1and needs its login token. Some commands print a URL that contains the token: keep it on your machine. - The agent sees the rows its own queries return, as with any tool it runs. Use
--limitor aggregate queries to keep that small.
CLI reference
Every command prints JSON on stdout (--pretty indents it) and takes--project <path>, which defaults to the current directory. History, pins, and canvases are kept per project. <conn> is a connection id or name.
| Command | What it does |
|---|---|
connection list | new | edit | test | remove | Manage saved connections. new and edit open the browser form and wait for it; new --url prefills it from a URI. |
schema <conn> [--schema S] | Databases, schemas, tables, and columns. |
query <conn> --sql SQL | --file PATH | Runs a query (default --limit 1000). --open also puts it in this session's console tab, with --note as the comment above it and--new-tab for a separate tab. With --open, a write waits for Run unless --allow-write is given. |
result <run-id> [--offset N] | Rows of an earlier run, read from its saved result. |
history, pin, unpin, pins | Recent runs and pinned queries, shared with the app. |
canvas new | list | show | add | chart | remove | delete | Build and fix canvases. add --run ID --chart KIND --x COL --y COL adds a query and a chart bound to it. |
context | The UI's active tab, its text, and the selection. |
tab list, tab close <id>... | --all-except <id> | The UI's open tabs, and closing them. |
dbt | sqlmesh models | model | lineage | sync | cli | Models, lineage (--column for column lineage), a connection from the profile or gateway, and logged tool runs. |
ui [--open], serve | Print or open the UI URL; run the server in the foreground to see why it fails to start. |
Exit codes: 0 success, 1 an API error (printed as anerror object with a code and a message), 2 the server could not start, 3 a connection form was cancelled or timed out. dbt cli andsqlmesh cli exit with the tool's own code, or 127 when it is not installed. ARRIS_DATA_DIR moves where Arris keeps its data.