What goes into the image
The agent reads two folders under/opt/agentops/agent/ at startup:
Skills
A skill in the image uses the same format as any other skill: aSKILL.md with a name and a description in its frontmatter, and the procedure in the body. The
agent reports the skills it loads to the Komodor Agentic Operation Platform (KAOP). They appear in
the account’s Skills library, marked as self-reported.
Python tools
Each function decorated with the Claude Agent SDK’s@tool becomes a tool the agent can call. The
decorator takes the tool’s name, the description the model reads to decide when to call it, and its
parameters:
tools/time_tools.py
custom MCP server, so
the agent calls this one as mcp__custom__get_current_time. A call runs that function with the
arguments the model passed and returns its result; the model cannot change the code it runs.
- A file in
tools/can import another file in the same folder by its plain module name, so shared helpers can live beside the tools. - Files whose names start with
_or.are not scanned for tools. - The agent does not start if two tools share a name, or if a file’s name matches a module already
installed in the image (a
json.py, for example). Rename the file. - A
tools/folder with no@toolfunctions logs a warning and adds no tools.
Build and deploy the image
1
Write the Dockerfile
Start from the agent base image and copy your folders in:Use base image
Dockerfile
0.1.3401 or later. Earlier tags do not read these folders.If a tool needs a Python package the image does not have, install it into the agent’s
environment:2
Build and push it in CI
Build the image and push it to a registry your cluster pulls from. Tag each build, for example
with the commit SHA. The tag is the version of the agent’s skills and tools.
3
Point the chart at the image
Set the image in the agent’s Install or upgrade with Helm, or let Argo CD or Flux sync the change, the same as any
self-hosted agent. To roll back, set
the previous tag.
values.yaml:values.yaml
4
Confirm it
When the new replica comes online, the agent page’s Skills and tools card lists the baked
skills, marked as self-reported, and
mcp__custom for the Python tools. A run that calls a
Python tool shows it by name in the run’s trace, with its server and its duration.custom in the values file replaces the baked
tools. To read the folders from another path, set AGENTOPS_AGENT_IMAGE_DIR in the chart’s env.
To move to a newer agent base, raise the tag in the FROM line, rebuild and redeploy. The agent page
shows Update available when a newer base is out.
Choose the built-in tools
Besides its MCP and Python tools, the agent has built-in tools for files, search and the shell. With nothing set, it getsRead, Glob, Grep, Edit, Write, NotebookEdit, WebSearch and
TodoWrite, and its file tools work only inside its own working directory. It has no shell: Bash,
PowerShell and WebFetch are off until you grant them.
To set the list, add AGENTOPS_BUILTIN_TOOLS to the chart’s env, comma-separated. The list
replaces the default:
- Read only
- With a shell
values.yaml
AgentandTask, which start sub-agents, are never granted, even when listed.- Keep
Readin the list: the agent opens its skills’ files with it. - The agent page’s Skills and tools card lists the built-in tools the agent has, so you can see whether it has a shell.
tools/ and leave Bash out.
Next steps
Deploy a self-hosted agent
Install the agent base chart with Helm.
Skills
How skills are versioned, approved and attached.
Upgrade a self-hosted agent
Move an installed agent to the newest release.
Using your own image registry
Pull images from a registry you run.