Skip to content

Glossary and references

源码版本v2026.6.11

Core terms

TermNotes
gatewayResident process that receives channel messages, schedules the agent, and broadcasts events. src/gateway/server.impl.ts
agent loopThe while(true) turn loop inside embedded-agent-runner. src/agents/embedded-agent-runner/run.ts
attemptOne LLM call plus tool_use / tool_result pairing. run/attempt.ts
sessionState container for a conversation, managed by SessionManager. src/agents/sessions/session-manager.ts
toolA function the agent can call, registered in a Map. src/agents/sessions/agent-session.ts
skillMarkdown instructions that the model decides when to read. src/skills/
pluginExtension package discovered by directory convention such as .codex-plugin/plugin.json. src/plugins/
channelAdapter for a messaging platform such as WhatsApp / Telegram / Slack. src/channels/
providerLLM vendor adapter such as Anthropic / OpenAI / Google. src/llm/providers/
Context EngineAbstraction layer over context compaction. src/context-engine/
cronScheduled job that runs inside an isolated agent session. src/cron/
ACPAgent Client Protocol — bridges an IDE such as Zed to the gateway. src/acp/
MCPModel Context Protocol — bidirectional: as a server it exposes capabilities, as a client it consumes external servers. src/mcp/ + src/agents/
daemonWraps the gateway as a system service via launchd / schtasks / systemd. src/daemon/

Directory conventions

  • Source: the openclaw/openclaw repo. src/ is the main code; packages/ holds 21 independently publishable packages; skills/ (repo root) is the example skill library.
  • User data: ~/.openclaw/ — config (openclaw.json), workspace, agents, logs, memory, and so on.
  • Config file: ~/.openclaw/openclaw.json (or $OPENCLAW_STATE_DIR/openclaw.json).

Official references

Source version

Every SrcLink on this site points to github.com/openclaw/openclaw/blob/v2026.6.11/<path>#Lxx-Lyy. To bump the version, edit OPENCLAW_TAG in docs/.vitepress/site.ts and run npm run check:refs.