Skip to content

Appendix G · Bilingual Glossary

Canonical EN ↔ ZH terms used in this guide. If you find a translation that doesn't match this table, file an issue — consistency matters when teams speak both languages.

G.1 Core concepts

English中文Definition
Agent智能体 / AgentThe LLM-driven loop that calls tools and returns text. In this guide, an instance of Agentao
Harness框架 / 运行容器The reusable runtime that wraps an agent — Agentao itself
Embedded Harness Contract嵌入式 Harness 合约 / 前向兼容宿主合约The stable host-facing API at agentao.host (since 0.3.1): Pydantic-modeled events, policy snapshot, and capability protocols whose wire form is schema-snapshotted and CI-enforced. Hosts that target only this surface stay forward-compatible across releases. See 4.7.
Harness eventHarness 事件One of ToolLifecycleEvent / SubagentLifecycleEvent / PermissionDecisionEvent — the schema-stable projection consumed via agent.events() (distinct from internal AgentEvent)
Active permissions snapshot策略快照 / 当前权限快照The ActivePermissions value returned by agent.active_permissions()mode + rules + loaded_sources, JSON-safe and pinnable into audit logs
Capability protocol能力协议FileSystem / ShellExecutor runtime-checkable Protocols at agentao.host.protocols, injected at construction time to route IO through Docker / virtual FS / audit proxies
Schema snapshotSchema 快照The checked-in JSON schema files (docs/schema/host.events.v1.json, host.acp.v1.json) re-generated from the Pydantic models and CI-asserted byte-equal — the wire-form contract
Session会话One agent instance's lifetime of conversation, bound to a working_directory
Turn一轮 / 一次One chat() call; may fire many tool calls internally
Iteration迭代Each LLM round within a single turn, capped by max_iterations
Working directory工作目录The filesystem root pinned at construction time; tool calls and memory DBs are scoped under it
Tool工具A unit of capability the LLM can call — subclass of Tool ABC
Skill技能A SKILL.md bundle injected into the system prompt when activated
System prompt系统提示The composed header (AGENTAO.md + date + skills + memory) prepended to every turn

G.2 Extension points

English中文Definition
Transport传输层The UI-facing event/confirmation protocol (Transport Protocol)
Event事件One AgentEvent emitted during a turn (TURN_START, TOOL_START, LLM_TEXT, …)
Permission engine权限引擎PermissionEngine — decides allow / deny / ask per tool call
Permission mode权限模式READ_ONLY / WORKSPACE_WRITE / FULL_ACCESS / PLAN presets
Memory记忆Persistent notes stored in SQLite (project + user scopes)
Memory scope记忆作用域project (inside working_directory) vs user (~/.agentao/)
MCPMCP / Model Context ProtocolThird-party tool server protocol (stdio / SSE)
Sandbox沙箱macOS sandbox-exec profile wrapping the shell tool
Skill activation激活技能Turning a skill on for the current agent so its prompt text is injected
Plugin Hook插件 HookControl-plane extension: intercept, inject, or continue at agent lifecycle points (UserPromptSubmit / PreToolUse / Stop, …) — see §5.7
Hook RuleHook 规则A single ParsedHookRule in hooks.json (event + type + `command

G.3 ACP terms

English中文Definition
ACPACP / Agent Client ProtocolThe stdio + NDJSON JSON-RPC 2.0 protocol Agentao speaks when run with --acp --stdio
ACP serverACP 服务器The Agentao subprocess in an ACP connection
ACP clientACP 客户端The host process that spawns and drives the ACP server
initialize初始化The first RPC call — negotiates protocolVersion and capabilities
session/new新建会话Creates a fresh session bound to a cwd
session/load加载会话Resumes a previously saved session by id (only when agent advertises loadSession: true)
session/prompt发起提示One user turn, bounded — returns when the agent stops
session/cancel取消会话Abort the current turn and all pending permission requests
session/update会话更新(通知)Streaming updates emitted during a turn (message chunks, tool starts, …)
session/request_permission请求权限(通知)Server asks the client to confirm a tool call
Capability negotiation能力协商Exchange of clientCapabilities / agentCapabilities at init time

G.4 Integration patterns

English中文Definition
In-process SDK进程内 SDKImporting agentao as a Python library — same process as the host
ACP stdioACP stdio 集成Running Agentao as a subprocess and speaking JSON-RPC over stdio
Session pool会话池Cache of long-lived Agentao instances keyed by session_id
TTL evictionTTL 驱逐Removing pool entries idle beyond a time-to-live
LRU evictionLRU 驱逐Removing the least-recently-used pool entry when capacity is hit
prompt_once一次性提示ACPManager.prompt_once() — single-turn fire-and-forget API
Headless runtime无头运行时Running Agentao as a non-interactive embedding target — ACPManager driving ACP servers with typed get_status() snapshots and no human in the loop. See docs/guides/headless-runtime.md.
Tenant租户The top-level isolation unit in multi-tenant SaaS — each tenant has its own working directory + memory
Canary灰度Rolling out a change to a small traffic % before full deployment

G.5 Security vocabulary

English中文Definition
Defense in depth多层防御 / 纵深防御Stacked, independent security layers; each assumes the one above failed
SSRFSSRF(服务端请求伪造)Server-Side Request Forgery — agent used to probe internal network
Prompt injection提示词注入Malicious content in tool output / user input that hijacks the LLM
Tool confirmation工具确认User approval before a dangerous tool runs
Allowlist白名单Explicit set of permitted items; default-deny
Blocklist黑名单Explicit set of forbidden items; default-allow
Fail-closed失败即禁用On config error, block the action rather than allow it
Scrubbing脱敏 / 擦除Removing secrets from logs before writing
Working-directory trap工作目录陷阱Sharing working_directory across tenants → cross-tenant data leak

G.6 Event types (quick reference)

Full reference in Part 4.2. This table fixes the translations.

EventType中文
TURN_START轮开始
TOOL_CONFIRMATION工具确认
TOOL_START工具开始
TOOL_OUTPUT工具输出
TOOL_COMPLETE工具完成
TOOL_RESULT工具结果
THINKING思考
LLM_TEXTLLM 文本(流式)
LLM_CALL_STARTED / LLM_CALL_COMPLETEDLLM 调用开始 / 完成
LLM_CALL_DELTA / LLM_CALL_IOLLM 调用增量 / 完整 IO
ERROR错误
AGENT_START / AGENT_ENDAgent 启动 / 结束
ASK_USER_REQUESTED / ASK_USER_ANSWERED用户询问发起 / 已回答
BACKGROUND_NOTIFICATION_INJECTED后台通知注入
CONTEXT_COMPRESSED上下文压缩
SESSION_SUMMARY_WRITTEN会话摘要写入
SKILL_ACTIVATED / SKILL_DEACTIVATEDSkill 激活 / 停用
MEMORY_WRITE / MEMORY_DELETE / MEMORY_CLEAREDMemory 写入 / 删除 / 清空
MODEL_CHANGED模型切换
PERMISSION_MODE_CHANGED / READONLY_MODE_CHANGED权限模式切换 / 只读模式切换
PLUGIN_HOOK_FIREDPlugin hook 触发

G.7 Translation rules of thumb

  • Keep English for protocols and APIs: initialize, session/prompt, AgentEvent, PermissionEngine. Do not translate symbol names.
  • Translate concepts, not classes: "session" → "会话" is fine when the word appears in prose; session_id stays English.
  • "Agent" and "智能体" coexist. In Chinese prose prefer "Agent" when referring to this codebase (avoids confusion with broader Chinese "智能体" usage); use "智能体" when contrasting with non-agentic systems.
  • Sandbox profiles keep English names (workspace-write, readonly) because they're config literals.

End of Appendix G. Appendices A / C / E / F remain to be written — see the main guide for API surface (Parts 2–3) and ACP message details (Part 3) in the meantime.