Pular para o conteúdo
ReferênciaCLI

jiraya agent

Referência do comando jiraya agent da CLI do Jiraya: subcomandos, uso, flags e exemplos, gerados a partir da ajuda.

Work with agents

Subcomandos

ComandoDescrição
jiraya agent archiveArchive an agent
jiraya agent avatarUpload an avatar image for an agent
jiraya agent copyCopy an existing agent into a new one (optionally on a different runtime)
jiraya agent createCreate a new agent
jiraya agent envRead and update an agent's custom environment variables (audited)
jiraya agent getGet agent details
jiraya agent listList agents in the workspace
jiraya agent mcpManage which workspace MCP servers an agent uses
jiraya agent restoreRestore an archived agent
jiraya agent skillsManage agent skill assignments
jiraya agent tasksList runs for an agent
jiraya agent updateUpdate an agent

jiraya agent archive

Archive an agent

Uso

jiraya agent archive <id> [flags]

Flags

FlagDescriçãoPadrão
--output stringOutput format: table or jsonjson

jiraya agent avatar

Upload an avatar image for an agent

Uso

jiraya agent avatar <id> [flags]

Flags

FlagDescriçãoPadrão
--file stringPath to the avatar image file (required)
--output stringOutput format: table or jsonjson

jiraya agent copy

Copy an existing agent into a new one (optionally on a different runtime)

Copy an existing agent's portable configuration into a brand-new agent.

The source agent is left untouched. By default the copy lands on the same runtime as the source; pass --runtime-id to fork it onto a different runtime.

Copied by default without a dedicated override flag: conversation starters.

Copied by default, each overridable with the matching flag: name (suffixed " (copy)"), description, instructions, avatar, custom_args, max_concurrent_tasks, invocation permission (permission_mode + allow-list), assigned workspace skills, and — only when the target runtime is unchanged — model, thinking_level and service_tier.

Secret and machine-local fields are never copied: custom_env, mcp_config and runtime_config. Supply fresh values for the copy with the same secret-safe flags as 'agent create' when the target machine needs them.

Runtime-specific fields do not travel across a runtime change: when --runtime-id selects a different runtime, --model is required (pass --model "" to accept the target runtime's default), and thinking_level / service_tier are dropped unless set explicitly.

Uso

jiraya agent copy <source-agent-id> [flags]

Flags

FlagDescriçãoPadrão
--custom-args stringOverride custom CLI arguments as a JSON array.
--custom-env stringSet custom_env on the copy as a JSON object (never copied from the source). Prefer --custom-env-stdin/--custom-env-file for secrets. Pass '{}' for an empty map.
--custom-env-file stringRead --custom-env from a file path (suggested mode: 0600). Mutually exclusive with --custom-env and --custom-env-stdin.
--custom-env-stdinRead --custom-env from stdin. Mutually exclusive with --custom-env and --custom-env-file.
--description stringOverride the copied description
--instructions stringOverride the copied instructions
--max-concurrent-tasks int32Override maximum concurrent tasks6
--mcp-config stringSet mcp_config on the copy as a JSON object (never copied from the source). Prefer --mcp-config-stdin/--mcp-config-file for secrets.
--mcp-config-file stringRead --mcp-config from a file path (suggested mode: 0600). Mutually exclusive with --mcp-config and --mcp-config-stdin.
--mcp-config-stdinRead --mcp-config from stdin. Mutually exclusive with --mcp-config and --mcp-config-file.
--model stringModel identifier for the copy. Required when --runtime-id selects a different runtime (pass "" to accept the target runtime default). Empty otherwise = runtime default.
--name stringName for the new agent (default: "<source name> (copy)")
--no-skillsDo not copy the source agent's workspace skill assignments.
--output stringOutput format: table or jsonjson
--permission-mode stringOverride invocation permission mode: private or public_to. Authoritative over --visibility.
--public-to-member stringspublic_to: allow the given member user id(s) to invoke the copy. Repeatable.
--public-to-workspacepublic_to: allow every workspace member to invoke the copy.
--runtime-config stringSet runtime_config on the copy as a JSON string (never copied from the source).
--runtime-id stringTarget runtime ID (default: the source agent's runtime). A different value forks the agent onto that runtime.
--service-tier stringOverride Codex service tier. Not carried across a runtime change unless set here.
--thinking-level stringOverride thinking level. Not carried across a runtime change unless set here.
--visibility stringOverride visibility: private or workspace (legacy; mapped to --permission-mode)

jiraya agent create

Create a new agent

Uso

jiraya agent create [flags]

Flags

FlagDescriçãoPadrão
--conversation-starters stringConversation starters as a JSON array of {"label","prompt"} objects (at most 3; label ≤80, prompt ≤4000). Shown above the Chat composer; selecting one fills the composer and does not start a run. Omit to default to none.
--custom-args stringCustom CLI arguments as JSON array. For model selection prefer --model; some providers (codex app-server, openclaw) reject --model in custom_args.
--custom-env stringCustom environment variables as JSON object, e.g. '{"KEY":"value"}'. Treated as secret material — never logged by the CLI, but values passed on the command line are visible to shell history and 'ps'; prefer --custom-env-stdin or --custom-env-file for real secrets. Pass '{}' to set an empty map.
--custom-env-file stringRead the --custom-env JSON object from a file path (suggested mode: 0600). Mutually exclusive with --custom-env and --custom-env-stdin.
--custom-env-stdinRead the --custom-env JSON object from stdin. Keeps secrets out of shell history and 'ps'. Mutually exclusive with --custom-env and --custom-env-file.
--description stringAgent description
--instructions stringAgent instructions
--max-concurrent-tasks int32Maximum concurrent runs (1-50)6
--mcp-config stringMCP server configuration as a JSON object, e.g. '{"mcpServers":{"shortcut":{...}}}'. Treated as secret material (MCP entries often carry API tokens) — never logged by the CLI, but values passed on the command line are visible to shell history and 'ps'; prefer --mcp-config-stdin or --mcp-config-file for real secrets.
--mcp-config-file stringRead the --mcp-config JSON object from a file path (suggested mode: 0600). Mutually exclusive with --mcp-config and --mcp-config-stdin.
--mcp-config-stdinRead the --mcp-config JSON object from stdin. Keeps secrets out of shell history and 'ps'. Mutually exclusive with --mcp-config and --mcp-config-file.
--model stringModel identifier (e.g. claude-sonnet-4-6, openai/gpt-4o). Prefer this over passing --model in --custom-args.
--name stringAgent name (required)
--output stringOutput format: table or jsonjson
--permission-mode stringInvocation permission mode: private (owner only) or public_to (allow-list via --public-to-*). Authoritative over --visibility when set.
--public-to-member stringspublic_to: allow the given member user id(s) to invoke this agent. Repeatable.
--public-to-workspacepublic_to: allow every workspace member to invoke this agent.
--runtime-config stringRuntime config as JSON string
--runtime-id stringRuntime ID (required)
--service-tier stringCodex execution speed: empty = inherit local Codex configuration; default = explicit Standard when supported by the daemon's installed Codex CLI; a catalog tier such as priority = explicit Fast.
--thinking-level stringReasoning/effort level for the agent's runtime (e.g. Claude: low|medium|high|xhigh|max; Codex values come from the runtime model catalog). The set is runtime/model-specific; malformed values are rejected server-side and the daemon validates the exact model/level pair. Some runtimes (e.g. hermes) expose no reasoning control and reject every value. Empty = runtime default.
--visibility stringVisibility: private or workspace (legacy; mapped to --permission-mode. private->private, workspace->public_to+workspace target)private

jiraya agent env

Read and update an agent's custom environment variables (audited)

jiraya agent env get

Print an agent's custom_env as a JSON map (agent owner or workspace owner/admin; every call is recorded)

Uso

jiraya agent env get <agent-id> [flags]

Flags

FlagDescriçãoPadrão
--output stringOutput format: json or tablejson

jiraya agent env set

Replace an agent's custom_env (agent owner or workspace owner/admin; values equal to **** preserve the existing entry)

Uso

jiraya agent env set <agent-id> [flags]

Flags

FlagDescriçãoPadrão
--custom-env stringReplacement custom_env as a JSON object, e.g. '{"KEY":"value"}'. Values equal to '****' preserve the existing entry. Treated as secret material — values passed on the command line are visible to shell history and 'ps'; prefer --custom-env-stdin or --custom-env-file for real secrets. Pass '{}' to clear all keys.
--custom-env-file stringRead the replacement custom_env JSON object from a file path (suggested mode: 0600). Mutually exclusive with --custom-env and --custom-env-stdin.
--custom-env-stdinRead the replacement custom_env JSON object from stdin. Keeps secrets out of shell history and 'ps'. Mutually exclusive with --custom-env and --custom-env-file.
--output stringOutput format: json or tablejson

jiraya agent get

Get agent details

Uso

jiraya agent get <id> [flags]

Flags

FlagDescriçãoPadrão
--output stringOutput format: table or jsonjson

jiraya agent list

List agents in the workspace

Uso

jiraya agent list [flags]

Flags

FlagDescriçãoPadrão
--include-archivedInclude archived agents
--output stringOutput format: table or jsontable

jiraya agent mcp

Manage which workspace MCP servers an agent uses

Assigns MCP servers from the workspace library to an agent. A library entry does nothing until it is added to an agent here, and each assignment carries its own on/off toggle — the same shape as workspace skills.

This is separate from the agent's OWN mcp_config ('agent update --mcp-config'), which holds servers private to that agent. Both are merged at claim time; the agent's own entry wins on a name collision.

jiraya agent mcp add

Give a workspace MCP server to an agent

Assigns a workspace MCP server to this agent, enabled. Take the server id from 'jiraya workspace mcp list'. Adding one twice is a no-op.

Uso

jiraya agent mcp add <agent-id> <server-id> [flags]

Flags

FlagDescriçãoPadrão
--output stringOutput format: table or jsontable

jiraya agent mcp disable

Turn an assigned MCP server off for this agent

Stops the agent from receiving this server without dropping the assignment, so turning it back on later is one command.

Uso

jiraya agent mcp disable <agent-id> <server-id> [flags]

Flags

FlagDescriçãoPadrão
--output stringOutput format: table or jsontable

jiraya agent mcp enable

Turn an assigned MCP server back on for this agent

Uso

jiraya agent mcp enable <agent-id> <server-id> [flags]

Flags

FlagDescriçãoPadrão
--output stringOutput format: table or jsontable

jiraya agent mcp list

List the workspace MCP servers assigned to an agent

Uso

jiraya agent mcp list <agent-id> [flags]

Flags

FlagDescriçãoPadrão
--output stringOutput format: table or jsontable

jiraya agent mcp remove

Take a workspace MCP server away from an agent

Removes the assignment. The workspace library entry itself is untouched and other agents keep theirs.

Uso

jiraya agent mcp remove <agent-id> <server-id> [flags]

Flags

FlagDescriçãoPadrão
--output stringOutput format: table or jsontable

jiraya agent restore

Restore an archived agent

Uso

jiraya agent restore <id> [flags]

Flags

FlagDescriçãoPadrão
--output stringOutput format: table or jsonjson

jiraya agent skills

Manage agent skill assignments

jiraya agent skills add

Add skills to an agent without replacing existing assignments

Uso

jiraya agent skills add <agent-id> [flags]

Flags

FlagDescriçãoPadrão
--output stringOutput format: table or jsonjson
--skill-ids stringsSkill IDs to add (comma-separated)

jiraya agent skills list

List skills assigned to an agent

Uso

jiraya agent skills list <agent-id> [flags]

Flags

FlagDescriçãoPadrão
--output stringOutput format: table or jsontable

jiraya agent skills set

Set skills for an agent (replaces all current assignments)

Uso

jiraya agent skills set <agent-id> [flags]

Flags

FlagDescriçãoPadrão
--output stringOutput format: table or jsonjson
--skill-ids stringsSkill IDs to assign (comma-separated)

jiraya agent tasks

List runs for an agent

Uso

jiraya agent tasks <id> [flags]

Flags

FlagDescriçãoPadrão
--output stringOutput format: table or jsontable

jiraya agent update

Update an agent

Uso

jiraya agent update <id> [flags]

Flags

FlagDescriçãoPadrão
--conversation-starters stringNew conversation starters as a JSON array of {"label","prompt"} objects (at most 3; label ≤80, prompt ≤4000). Pass '[]' to clear. Omit to leave the stored value unchanged.
--custom-args stringNew custom CLI arguments as JSON array. For model selection prefer --model; some providers (codex app-server, openclaw) reject --model in custom_args.
--description stringNew description
--instructions stringNew instructions
--max-concurrent-tasks int32New max concurrent runs (1-50)
--mcp-config stringNew MCP server configuration as a JSON object, e.g. '{"mcpServers":{...}}'. Pass 'null' to clear. Treated as secret material — never logged by the CLI, but values passed on the command line are visible to shell history and 'ps'; prefer --mcp-config-stdin or --mcp-config-file for real secrets.
--mcp-config-file stringRead the --mcp-config JSON from a file path (suggested mode: 0600). Mutually exclusive with --mcp-config and --mcp-config-stdin.
--mcp-config-stdinRead the --mcp-config JSON from stdin. Keeps secrets out of shell history and 'ps'. Mutually exclusive with --mcp-config and --mcp-config-file.
--model stringNew model identifier. Pass an empty string to clear and fall back to the runtime default.
--name stringNew name
--output stringOutput format: table or jsonjson
--permission-mode stringNew invocation permission mode: private or public_to. Authoritative over --visibility. Owner-only.
--public-to-member stringspublic_to: allow the given member user id(s) to invoke this agent. Repeatable.
--public-to-workspacepublic_to: allow every workspace member to invoke this agent.
--runtime-config stringNew runtime config as JSON string
--runtime-id stringNew runtime ID
--service-tier stringNew Codex execution speed: default = explicit Standard when supported by the daemon's installed Codex CLI; a catalog tier such as priority = explicit Fast. Pass an empty string to clear and inherit local Codex configuration.
--status stringNew status
--thinking-level stringNew reasoning/effort level for the agent's runtime (e.g. Claude: low|medium|high|xhigh|max; Codex values come from the runtime model catalog). The set is runtime/model-specific; malformed values are rejected server-side and the daemon validates the exact model/level pair. Some runtimes (e.g. hermes) expose no reasoning control and reject every value. Pass an empty string to clear and fall back to the runtime default.
--visibility stringNew visibility: private or workspace (legacy; mapped to --permission-mode)

Atualizado em

Nesta página