Agent Commands

Commands for managing AI agents in Maitento.

Authentication Required: Yes (all commands)

Common Options: All agent commands support the -ns (namespace) option.


Command Summary

CommandDescription
agent-listList all agents
agent-getGet agent details
agent-createCreate a new agent
agent-updateUpdate an existing agent

agent-list

List all agents, optionally filtered by namespace.

Usage

mt agent-list [OPTIONS]

Options

OptionTypeRequiredDefaultDescription
-ns, --namespacestringNoConfig defaultFilter by namespace

Examples

List all agents in tenant:

$ mt agent-list
Output
Id Name DateCreated DateUpdated
a1b2c3d4-e5f6-7890-abcd-ef12... support-agent 2026-01-01 10:30 2026-01-05 14:30
b2c3d4e5-f6a7-8901-bcde-f234... data-analyzer 2026-01-02 09:15 2026-01-02 09:15
c3d4e5f6-a7b8-9012-cdef-3456... test-agent 2026-01-03 16:45 2026-01-04 11:20

No agents found:

$ mt agent-list -ns empty-namespace
No agents found in namespace 'empty-namespace'

Exit Codes

CodeDescription
0Success
-1Authentication required

agent-get

Get details of a specific agent by name.

Usage

mt agent-get <NAME> [OPTIONS]

Arguments

ArgumentTypeRequiredDescription
namestringYesName of the agent to retrieve

Options

OptionTypeRequiredDefaultDescription
-ns, --namespacestringNoConfig defaultThe namespace containing the agent

Examples

Get agent details:

$ mt agent-get support-agent -ns production
Output
id a1b2c3d4-e5f6-7890-abcd-ef1234567890
name support-agent
namespaceId n1234567-89ab-cdef-0123-456789abcdef
tenantId t1234567-89ab-cdef-0123-456789abcdef
userCreatedById u1234567-89ab-cdef-0123-456789abcdef
dateCreated 2026-01-01 10:30:00
dateUpdated 2026-01-05 14:30:00
versions (1 item)

Agent not found:

$ mt agent-get nonexistent -ns production
Agent 'nonexistent' not found in namespace 'production'

Missing namespace:

$ mt agent-get support-agent
No namespace specified and no default namespace configured

Exit Codes

CodeDescription
0Success
-1Agent not found, missing namespace, or authentication required

agent-create

Create a new agent.

Usage

mt agent-create <NAME> [OPTIONS]

Arguments

ArgumentTypeRequiredDescription
namestringYesName of the agent

Options

OptionTypeRequiredDefaultDescription
--ai-model-idGuidYes-ID of the AI model to use
--system-promptstringYes-System prompt for the agent
--summarystringYes-Summary for other agents
-ns, --namespacestringNoConfig defaultNamespace to create in

Examples

Create a new agent:

$ mt agent-create support-agent \
    --ai-model-id "m1234567-89ab-cdef-0123-456789abcdef" \
    --system-prompt "You are a helpful customer support agent." \
    --summary "Handles customer inquiries" \
    -ns production
Output
Agent 'support-agent' created (a1b2c3d4-e5f6-7890-abcd-ef1234567890)
id a1b2c3d4-e5f6-7890-abcd-ef1234567890
name support-agent
namespaceId n1234567-89ab-cdef-0123-456789abcdef
dateCreated 2026-01-05 15:30:00
versions (1 item)

Exit Codes

CodeDescription
0Success
-1Missing required options, missing namespace, or authentication required

agent-update

Update an existing agent’s configuration.

Usage

mt agent-update <NAME> [OPTIONS]

Arguments

ArgumentTypeRequiredDescription
namestringYesName of the agent to update

Options

OptionTypeRequiredDefaultDescription
--new-namestringNo-New name for the agent
--ai-model-idGuidNo-New AI model ID
--system-promptstringNo-New system prompt
--summarystringNo-New summary
-ns, --namespacestringNoConfig defaultNamespace containing the agent

All update options are optional. Unspecified values are preserved.

Examples

Update system prompt:

$ mt agent-update support-agent \
    --system-prompt "You are an expert support agent." \
    -ns production
Output
Agent 'support-agent' updated (a1b2c3d4-e5f6-7890-abcd-ef1234567890)
id a1b2c3d4-e5f6-7890-abcd-ef1234567890
name support-agent
dateUpdated 2026-01-05 16:00:00

Rename agent:

$ mt agent-update old-name --new-name "new-name" -ns production

Error - Agent not found:

$ mt agent-update nonexistent -ns production
Agent 'nonexistent' not found in namespace 'production'

Exit Codes

CodeDescription
0Success
-1Agent not found, no versions, missing namespace, or authentication required

Output Format

The shell uses table-formatted output by default:

  • Collections (e.g., agent-list): Horizontal table with columns
  • Single objects (e.g., agent-get): Vertical key-value table

In non-interactive mode (piped output), ASCII characters are used instead of Unicode box-drawing characters for compatibility.


See Also