Skip to main content

domino-agent

domino-agent is the command for an agent folder on the Domino agent service. An agent folder is a folder in git that holds one agent's definition. domino-agent init <name> makes a new one. domino-agent dev tries it as it is on your disk, before you commit it, as your dev copy on Domino, in a conversation in the terminal. domino-agent deploy brings the folder into the agent service: that is a Registration, and the agent is then a registered agent, whose definition has git as its source of truth. domino-agent pull writes the agent folder of an agent that exists. domino-agent chat talks to an agent that is on Domino already, through live chat.

The agent service runs governed agents on Domino. You need its address and a Domino token: see "Sign in" below.

Install

pip install domino-agent

It needs Python 3.10 or later, and the git command for deploy. Each command has its help:

domino-agent --version
domino-agent init --help
domino-agent dev --help
domino-agent deploy --help
domino-agent pull --help
domino-agent chat --help

A small agent folder

governance-agent/       the agent folder
  definition.md         the definition file: the settings, and the instructions below them
  instructions.md       optional: the instructions in their own file, not below the settings
  skills/
    policy-evidence/    an own skill: only this agent has it
      SKILL.md
  subagents/
    reviewer.md         a custom subagent: a helper with its own instructions, and the agent's tools or fewer

The definition file has its settings as YAML between two --- lines, and the instructions below them:

---
name: governance-agent          # the identifier: lowercase letters, numbers and hyphens
title: Governance Agent         # the name that people see
description: Investigates failing policy checks and writes findings.
model: [sonnet, haiku]          # aliases of the LLM Gateway: the first one, then the fallback
---
You are Domino's Governance Agent. You help bundle owners understand why a policy check failed.
  • name, title and model are required. A field that has its default value doesn't have to be in the file.
  • A field that the command doesn't know is refused, with the list of the fields that it knows.
  • deploy uploads only the known paths: definition.md, instructions.md, the files of skills/<name>/, and subagents/<file>.md. Other files, such as a README, stay in git. The folders tools/ and schedules/ are refused: they are kept for later.
  • No secret goes in the folder. deploy refuses any text that looks like a credential.
  • An own skill's SKILL.md has name (the folder's name) and description on top. A store skill of the agent service's skills store goes in the definition file as name@version, such as skills: [domino-governance-review@1.2.0].
  • A custom subagent never has more than its agent: a tool, an access or a model that the agent doesn't have is refused.

The fields

The settings of the definition file. A field that has its default value doesn't have to be in the file, and init writes each other field as a comment line. A field in a group is written below the group's name, indented: tools.shell is shell: under tools:.

Field Values Default What it sets
name lowercase letters, numbers and hyphens, at most 63 characters required The agent's identifier for deploy. It is unique among registered agents.
id an agent's ID, such as agt_0123456789 none The agent that domino-agent pull wrote the folder from.
title text required The name that people see.
description text no description What the agent does, in the agent list.
tags a list of text none The agent's tags.
lane harness harness An agent folder holds only harness agents for now.
project a Domino project's name any project With a name, the agent always runs in that project, and only its collaborators can use it.
model an LLM Gateway alias, or a list of aliases required The model, then the ones to fall back to. With endpoint: the one model ID at the endpoint.
model-access identity, service-account, owner identity Whose LLM Gateway access the model calls use: the identity that the agent acts as, a service account, or the owner.
endpoint url, key, key-from the LLM Gateway A custom endpoint in place of the LLM Gateway. url is its https address. key names the Domino environment variable that holds the key, and key-from is user (default) or project.
environment an Environment's name in Domino the deployment's agent Environment The Environment that the agent's Jobs run on.
hardware-tier a hardware tier's name in Domino the deployment's default tier The hardware tier of the agent's Jobs.
limits.minutes 1 to 480 30 The most minutes of one round.
limits.turns 1 to 500 60 The most turns of one round.
limits.wait-minutes 0 to 120 10 How long a Job waits for an answer to a question or a plan.
identity requester, service-account, owner requester Whose permissions the agent acts with: the person who starts the task, a service account, or the owner.
plan-first true, false false The agent posts a plan and waits for its approval.
check-in-often true, false false The agent says what it found after each step, and asks before it goes on.
completion review, auto review review: a person closes the task. auto: the agent closes it.
on-error pause, fail pause What the agent does after an error that it can't recover from.
start-as job, live live with check-in-often, else job How a new task from the App starts: a background Job, or live chat.
starter-prompts a list of text none Requests that people can pick when they start a task.
notify a list of inbox, email, governance-finding none Where a task's result goes: the App's inbox of the person who started it, an email to them, a governance finding.
tools.shell true, false true The agent runs commands and scripts.
tools.web true, false false The agent fetches pages from the domains of allowed-domains.
tools.subagents true, false true The built-in subagent: the agent hands a part of the work to a helper.
tools.jobs true, false false The agent starts Domino Jobs in the task's project.
tools.push true, false false The agent pushes the task's branch. It needs access.project: write.
access.project read, write write The files of the task's project.
access.datasets none, read, write read The datasets of the task's project that are not inputs.
access.attached read, write read Other resources attached to the task.
access.other none, read none Resources that are not attached to the task.
allowed-domains a list of host names, such as pypi.org or *.example.com none Where the agent's traffic may go besides Domino's services. None: only Domino's services.
inputs a list of inputs none What each task gives the agent.
tool-servers a list of tool server names none The tool servers that the agent may use.
skills a list of name@version none The skills of the skills store that the agent uses.

The instructions are the text below the settings, or the file instructions.md next to definition.md, not both. Each input of inputs is a list item: type (project, bundle, model, dataset, volume or text), and the optional name, required, multiple, description and access (read, the default, or write). An item of tool-servers is a tool server's name, for each of its tools, or server: <name> with tools: [...], the tools that the agent may use.

Sign in

The command calls the agent service as you, with your Domino token. It reads three environment variables:

  • AGENT_SERVICE_URL: the agent service's address, the URL of its Domino App. Always set it. The App runs in a frame of Domino's page, so the browser's address bar shows Domino's URL, not the App's. Copy the App's URL from the App: open any agent, then Triggers, and copy the Endpoint of the "On demand" card, without its /api/... part.
  • DOMINO_TOKEN: your Domino token, such as a personal access token. Set it on a laptop or in a pipeline.
  • DOMINO_API_PROXY: the token sidecar of a Domino workspace. Its default is http://localhost:8899, so you don't set it.

In a Domino workspace, set only the address. The command gets your token from the workspace for each request:

export AGENT_SERVICE_URL=https://apps.<domino host>/apps-internal/<app id>

On a laptop or in a pipeline, set your token too:

export AGENT_SERVICE_URL=https://apps.<domino host>/apps-internal/<app id>
export DOMINO_TOKEN=<your Domino token>

When the token is missing, expired or refused, the output starts with "Sign-in problem, not about the agent folder". A redirect or a login page means that you are not signed in, or that Domino has no consent yet: open the App's URL once in a browser, then try again.

init

init makes a new agent folder in the current folder, with one file: definition.md. It needs no sign-in:

domino-agent init release-checker

The file has name, title and model, then each other field as a comment line at its default, then short example instructions. --model gives the model line. Else, when you are signed in, it is the first alias with tool calling that the LLM Gateway lists for you. Else it is the placeholder <model-alias>: dev and deploy refuse it, and with a sign-in their fix names your aliases. --title gives the title that people see.

dev

dev tries the agent folder as it is on your disk, before you commit it. It needs no git repo, and it writes nothing into the folder:

cd release-checker
domino-agent dev
  1. It checks the folder as deploy does, then sends the known files to your dev copy: a second agent that only you can use. The registered agent with the same name doesn't change.
  2. It opens a conversation in the terminal. Type a message, and the reply streams, with a line for each tool call, skill and subagent, then the time and the tokens. The conversation is a task: it stays, and it opens in the browser.
  3. It watches the folder. A file that you change takes effect on your next message, in the same conversation. A change that the check refuses doesn't reach the dev copy: your messages use its last good definition until you fix the folder.

The rules of a dev copy:

  • There is one dev copy for each person and each name, and each dev uses it again. deploy never touches it.
  • It always acts as you, and its model calls use your own access. When the definition file names a service account or the owner, a notice says so: dev doesn't prove the permissions of that identity, and a task of the registered agent after deploy does.
  • Live chat refuses a call that needs a person's approval, and the approval needs a person other than you, which a dev copy doesn't have. Test such a call after deploy, in a Domino Job of the registered agent.
  • It can't be shared, and it can't have a trigger or a schedule. deploy is the only way to give an agent to other people.
  • domino-agent dev --remove removes it. The agent service removes a dev copy that had no dev and no message for 14 days (the deployment can change the number). Its tasks stay.

In the conversation of dev and of chat:

  • Ctrl+C stops a reply. /quit, an end of input (Ctrl+D) or Ctrl+C at the prompt ends the chat.
  • When the agent waits for a decision on its plan, type /approve, or /decline <what should change>. On its access request, type /retry when the access is sorted out in Domino, or /without to continue without it.

For a script or a coding assistant, -m sends one message, prints the reply's text on standard output (each other line goes to standard error) and exits: 0 when the reply ended, else 1. --task <key> continues the conversation of a task that you started:

domino-agent dev -m "Check the notes of release 2.4."
domino-agent dev --task AGT-109 -m "And the notes of release 2.5?"

--project NAME gives the agent a Domino project to work in.

deploy

deploy registers the agent folder at a path, or in the current folder. Commit the folder first:

domino-agent deploy governance-agent --dry-run
domino-agent deploy governance-agent

In this order, it:

  1. Checks the folder on your side, with no network call. Each refusal names the file, the line and a fix.
  2. Reads git: the repo's URL (with no credential in it), the branch, the folder's path in the repo, and the commit.
  3. Sends the known files with the commit. The agent service checks them again, then creates the agent, updates it, or says "No change".

A new name makes a new agent that you own. A registered name updates that agent, when you can edit it and the folder is in the recorded repo and path. The output:

Created Governance Agent (agt_0123456789)
  Page:    https://agents.example.com/#/agents/agt_0123456789
  Changed: title, description, model, instructions, skills/policy-evidence, subagents
  Source:  3f2a9c1e7b4d on main, governance-agent in https://github.com/acme/agents.git

A refusal:

governance-agent/definition.md:6: `limits.minutes` must be a whole number from 1 to 480, not `900`. Fix: Write `limits.minutes: 1` or another number in that range
The agent folder was refused: 1 problem. Nothing was registered.

The options:

  • --dry-run: run every check, the agent service's too, and say what the deploy would do. Nothing is registered.
  • --allow-dirty: for a test: register the folder with changes that are not committed, or outside a git repo. The agent's record then says that it is not clean: domino-agent deploy governance-agent --allow-dirty
  • --branch NAME: the branch to record when the checkout has none (a detached HEAD, as in a pipeline): domino-agent deploy governance-agent --branch main
  • --move: the agent's name is registered from another repo or path, and the move is intended. The agent's record gets this repo and path: domino-agent deploy governance-agent --move

The exit code is 0 when the deploy is done, 1 when it is refused or fails (the output says why), and 2 for a wrong command line.

pull

pull writes the agent folder of an agent that you can edit. With no --agent, it lists the agents that you can edit, and you select one by its number:

domino-agent pull

In a script, name the agent with its ID, or with a registered agent's name:

domino-agent pull --agent agt_0123456789
domino-agent pull governance-agent --agent governance-agent
  • The folder's default path is a new folder named after the agent's name. Give a path to write it in another place.
  • The definition file has an ID line, id: <the agent's ID>. Nobody types it. After a commit, domino-agent deploy of the folder connects it to the same agent, which keeps its ID, its tasks and its history.
  • A wizard agent (one made in the agent service's UI or with its API) moves to git this way: pull it, commit the folder, then deploy it.
  • pull refuses to write into a folder that has files. --force writes into it: the agent's files replace them, and each known file that the agent doesn't have (instructions.md, a skill's file, a subagent file) is removed, so that an old one doesn't deploy. Other files, such as a README, stay.
  • pull refuses a framework agent: an agent folder holds only harness agents for now.

chat

chat talks to an agent that is on Domino already, through live chat. In an agent folder, it talks to the folder's registered agent. --agent names another agent that you may use: its ID, or a registered agent's name:

domino-agent chat --agent governance-agent

chat sends no file of the folder: it talks to what is deployed. The conversation, -m, --task and --project work as for dev.

Live chat needs a runner

dev and chat run the agent on Domino, on the runner of the deployment: the Domino App that runs live chat. With no runner, the commands refuse with the agent service's reason, and no task starts. With a runner App, open <runner URL>/authorize one time in a browser, so that Domino can ask for your consent. The command says so when it is needed.

Changes

  • 0.2.0: init, dev and chat. init makes a new agent folder. dev tries the folder as your dev copy on Domino, in a conversation in the terminal. chat talks to an agent on Domino through live chat. dev and deploy refuse the placeholder that init writes for the model, and with a sign-in they name your aliases.
  • 0.1.0: the first release. deploy and pull; the definition file; own skills, store skills and custom subagents.

License

Apache-2.0. Copyright 2026 Domino Data Lab, Inc. The LICENSE and NOTICE files are in the package.

Metadata

Release files for domino-agent 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for domino-agent 0.2.0
File Size Uploaded Provenance Actions
domino_agent-0.2.0.tar.gz 80.6 kB Without provenance Details for domino_agent-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for domino-agent 0.2.0
File Interpreter ABI Platform Actions
domino_agent-0.2.0-py3-none-any.whl Python 3 none any Details for domino_agent-0.2.0-py3-none-any.whl

Total release size: 167.2 kB

Release files / domino_agent-0.2.0.tar.gz

Download URL domino_agent-0.2.0.tar.gz
Size 80.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0b9bc1034ff5d6ef58beff81b82c31c5fd28411592b91b695165bf72a4aba3cc
BLAKE2b-256 checksum
How to use checksums
a11f1af8d04e20a643b9b5dc79c0eb0b8e6924925b5bada919ac02209a733a5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / domino_agent-0.2.0-py3-none-any.whl

Download URL domino_agent-0.2.0-py3-none-any.whl
Size 86.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b2a4858684fe610609ea9d58991f4722875637fbfca480f1a988b44d9b54b1c1
BLAKE2b-256 checksum
How to use checksums
8ecfda929400372517b9fd4cea966f881ce0411c7df53a9641dc9e3cba4041e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Security for domino-agent 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page