Skip to content

Agent ​

Overview
What it isAn agent definition, plus the identity and binding that let it take part in conversations
CLIagt agent; bindings through agt tool call
Agent toolsresource_* with kind: "agent", principal_create, agent_bind, agent_set_enabled, agent_unbind, binding_list
Web consoleAgent team (Agent 团队)
Fileagents/<category>/<name>/agent.yaml
Crateagt-agent, agt-service

What it does ​

An agent definition combines an engine (a model or a harness) with a prompt, skills, MCP servers and built-in capabilities.

A definition alone does nothing. To chat, an agent also needs an identity (a participant in conversations) and a binding that connects the identity to the definition and holds its running settings. Several identities can be bound to the same definition and run in parallel.

How to use it ​

Web console: Agent team → Create agent creates the definition, the identity and the binding in one step. Use Edit role to change the definition and Configure for the binding.

CLI:

bash
agt agent create reviewer --model fast --prompt reviewer --skill code-review --mcp github
agt tool call --principal me --manager principal_create --args '{"id":"reviewer","name":"Reviewer","kind":"agent"}'
agt tool call --principal me --manager agent_bind --args '{"principal":"reviewer","agent":"reviewer"}'
agt agent update reviewer --add-builtin-tool task_collaboration

Agent tools: resource_write (definition), principal_create (identity), agent_bind (binding). resource_write returns an activation summary that says whether the agent is bound and enabled, and what to do next.

Common parameters ​

ParameterMeaning
--model or --harnessThe engine (exactly one)
--promptRole prompt
--builtin-toolresource_management, task_collaboration, local_execution
policy (binding)When it replies: mentioned, all, manual

All parameters ​

agt agent create <name> ​

OptionRepeatableMeaning
--model <ref>Native engine with this model (or --harness)
--harness <ref>Codex engine with this harness (or --model)
--prompt <ref>Role prompt
--skill <ref>yesAttach a skill
--mcp <ref>yesAttach an MCP server (native only)
--builtin-tool <capability>yesGrant a capability
--description <text>Shown in the console and to other agents
--category <c>Category (default default)

agt agent update <name> ​

OptionMeaning
--model <ref> / --harness <ref>Switch the engine
--prompt <ref>Change the prompt
--description <text>Change the description
--add-skill, --remove-skill <ref>Add or remove one skill (repeatable)
--add-mcp, --remove-mcp <ref>Add or remove one MCP server (repeatable)
--add-builtin-tool, --remove-builtin-tool <capability>Grant or revoke a capability (repeatable)
--category <c>Category of the agent to update

Changes apply from the agent's next run. A run in progress keeps its configuration, except that an agent's own MCP and skill changes load after its current batch of tool calls.

agt agent run <name> ​

Runs the agent once outside any conversation.

OptionDefaultMeaning
--input <text> / --stdinThe request (exactly one)
--request-key <key>generatedRepeating the same key with the same request returns the earlier result instead of running again
--cwd <dir>.Working directory for the run
--delegate <ref>Agents this run may hand work to (repeatable). Delegated agents cannot delegate further.

Results are recorded as runs. A non-completed status exits with a non-zero code.

list, info, delete and category are described in Resources.

File: agent.yaml ​

yaml
name: reviewer
description: Reviews code changes
model: { category: default, name: fast }
harness: null
prompt: { category: default, name: reviewer }
skills: [code-review]
mcps:
  - { category: default, name: github }
builtin_tools: [task_collaboration]
FieldMeaning
model / harnessExactly one is set
promptRole prompt reference
skillsSkill packages
mcpsMCP server references
builtin_toolsGranted capabilities
descriptionFree text

Tool fields (resource_write, kind: "agent") ​

FieldMeaning
model or harnessExactly one on create
prompt, skills, mcps, builtin_tools, descriptionOptional. Lists replace the current list; an empty list removes everything.

Use add / remove (for skills, mcps, builtin_tools) to change single items, and clear to reset description, skills, mcps or builtin_tools.

Built-in capabilities ​

CapabilityWeb labelGives the agent
resource_management资源管理All resource tools, agent identities and bindings, Codex session tools
task_collaboration任务协作The task tools
local_execution本机命令The local command tool (native only; also needs execution.enabled)

Capabilities are not inherited by agents an agent creates. Messaging and memory tools are always available.

Identities and bindings ​

ToolParametersMeaning
principal_createid, name, kindCreate an identity. Agents with resource_management can only create kind: "agent".
agent_bindprincipal, agent, working_directory?, policy?Bind an identity to a definition. New bindings start enabled. Rebinding an existing identity updates it and keeps a disabled binding disabled.
agent_set_enabledprincipal, enabledEnable or disable the agent in all conversations, keeping its settings and history. Enabling may process pending messages.
agent_unbindprincipalRemove the binding. Required before deleting a bound agent.
binding_listAll bindings and whether they are enabled

Binding settings:

SettingDefaultMeaning
working_directorythe homeDefault directory for local commands. Codex agents always use the harness directory.
policymentionedmentioned: direct chats and mentions. all: considers every message. manual: never replies automatically. Codex agents save all as mentioned.

These tools need --manager from the CLI, or resource_management for agents.

Released under the MIT License.