Skip to content

Commit 963dabc

Browse files
committed
Merge remote-tracking branch 'upstream/main' into docs/fix-anthropic-prompt-caching-url
2 parents abceb5e + a8e52b4 commit 963dabc

155 files changed

Lines changed: 4584 additions & 2830 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ Details: [Release channels](https://docs.openclaw.ai/install/development-channel
273273
## Agent workspace + skills
274274

275275
- Workspace root: `~/.openclaw/workspace` (configurable via `agents.defaults.workspace`).
276-
- Injected prompt files: `AGENTS.md`, `SOUL.md`, `TOOLS.md`.
276+
- Injected prompt files: `AGENTS.md`, `SOUL.md`, and other workspace context files.
277277
- Skills: `~/.openclaw/workspace/skills/<skill>/SKILL.md`.
278278

279279
## Configuration

‎docs/.generated/plugin-sdk-api-baseline.sha256‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
7a8753532854ff6f6d2a0c8e6386653adce285f9f6a9b5e56e88c9ea49e79cc2 module/account-core
2-
e7519fd1b7ff7003a6c8b9b640ffedd443a3754a10efc82877d48cd98cc6ba28 module/account-helpers
1+
cada1ccdba113c813b6c012d4e119e2a67e23cf7015ebfd62403ed8e74d83cbd module/account-core
2+
4c7a44c538a6856a0861300f05a5df16cb7805fbf1b22c5b772c0a6ad71c45ef module/account-helpers
33
cbf4e2c3088f8886a7c9ea91325a66e0f0846cea21f0b2891f36399b4811306c module/account-id
4-
6b674e7aa4006240227c16eb5c74360f1d67639e8f5580ad72499d6ed28283c4 module/account-resolution
4+
8e985f345f21a1c9a2b0e94304aaaad6a326bec1c1ce3b26027d2862804a366e module/account-resolution
55
e5e67ddf3cab38fcbf9220bc3160715897e2709d9a9ff6ff36f1ecc9453c2367 module/agent-config-primitives
66
74daa746deb548379d3f0d6eac3c4d082df1034c4360cc03bf51fee0f10a2e4d module/agent-harness
77
b80e26a4dcf2c246d01755b8da4bee272637f11ced1689fa561397c1979613e5 module/agent-harness-runtime
@@ -119,7 +119,7 @@ e576b537880f63b3a91f3608f7e84c873bce6c6a3d9a0ba98c247f46de788d25 module/secret-
119119
c81b9702c192d574413fc1df9a57c73128652a25de205eec55d6b47549349283 module/security-runtime
120120
31b785e74f1f8f56241b7756ef6a5d86199c5ce177cbb1c234a261866972f270 module/session-discussion
121121
32fb6d253abf22440bc76c7a68d1f35fc0ef369b0ad738aedba9c3054a76e48e module/session-store-runtime
122-
23cc02cbfb0a0bfa41adc8f02f5f22738781495250c8cee06c18f18bfd283afe module/setup
122+
36affbe151431a6141664b6838e20f2d121ff210d57a3c1b4b41a8818b5c81d8 module/setup
123123
21071e8c2ef020685aba09b5661e37e7415938ff6602053fa831ac9d58673248 module/setup-runtime
124124
cd431f6ba8327b81438b7a63b1963120f200f5abd145fb6aa7c5c561339cb0b1 module/setup-tools
125125
18e384ec43d9eaee52c8e286e127bda2048370e2337964a754d94b236724ca9e module/skill-commands-runtime

‎docs/.i18n/glossary.zh-CN.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1662,5 +1662,9 @@
16621662
{
16631663
"source": "Cron CLI",
16641664
"target": "Cron CLI"
1665+
},
1666+
{
1667+
"source": "TOOLS.md retired",
1668+
"target": "TOOLS.md 已弃用"
16651669
}
16661670
]

‎docs/automation/hooks.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,15 +251,17 @@ Extracts the last user/assistant messages (default 15, configurable with `hooks.
251251
"entries": {
252252
"bootstrap-extra-files": {
253253
"enabled": true,
254-
"paths": ["packages/*/AGENTS.md", "packages/*/TOOLS.md"]
254+
"paths": ["packages/*/AGENTS.md"]
255255
}
256256
}
257257
}
258258
}
259259
}
260260
```
261261

262-
`patterns` and `files` are accepted as aliases of `paths`. Paths resolve relative to the workspace and must stay inside it. Only recognized bootstrap basenames are loaded (`AGENTS.md`, `SOUL.md`, `TOOLS.md`, `IDENTITY.md`, `USER.md`, `BOOTSTRAP.md`, `MEMORY.md`).
262+
`patterns` and `files` are accepted as aliases of `paths`. Paths resolve relative to the workspace and must stay inside it. Only recognized bootstrap basenames are loaded (`AGENTS.md`, `SOUL.md`, `IDENTITY.md`, `USER.md`, `BOOTSTRAP.md`, `MEMORY.md`).
263+
264+
`TOOLS.md` is no longer a recognized bootstrap basename and is not loaded into runtime context. `openclaw doctor --fix` migrates the workspace-root `TOOLS.md` into the `## Tools` section of `AGENTS.md`; patterns that name other `TOOLS.md` files are not migrated and should be repointed at `AGENTS.md`.
263265

264266
<a id="command-logger"></a>
265267

‎docs/automation/standing-orders.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Each program specifies:
3131
The agent loads these instructions every session via the workspace bootstrap files (see [Agent Workspace](/concepts/agent-workspace) for the full list of auto-injected files) and executes against them, combined with [cron jobs](/automation/cron-jobs) for time-based enforcement.
3232

3333
<Tip>
34-
Put standing orders in `AGENTS.md` to guarantee they're loaded every session. The workspace bootstrap automatically injects `AGENTS.md`, `SOUL.md`, `TOOLS.md`, `IDENTITY.md`, `USER.md`, `BOOTSTRAP.md`, and `MEMORY.md` - but not arbitrary files in subdirectories.
34+
Put standing orders in `AGENTS.md` to guarantee they're loaded every session. The workspace bootstrap automatically injects `AGENTS.md`, `SOUL.md`, `IDENTITY.md`, `USER.md`, `BOOTSTRAP.md`, and `MEMORY.md` - but not arbitrary files in subdirectories.
3535
</Tip>
3636

3737
## Anatomy of a standing order

‎docs/cli/hooks.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,13 @@ Hook packs install through the unified plugins installer/updater; `openclaw hook
9696

9797
## Bundled hooks
9898

99-
| Hook | Events | What it does |
100-
| --------------------- | ------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
101-
| boot-md | `gateway:startup` | Runs `BOOT.md` at gateway startup for each configured agent scope |
102-
| bootstrap-extra-files | `agent:bootstrap` | Injects extra bootstrap files (for example monorepo `AGENTS.md`/`TOOLS.md`) during agent bootstrap |
103-
| command-logger | `command` | Logs command events to `~/.openclaw/logs/commands.log` |
104-
| compaction-notifier | `session:compact:before`, `session:compact:after` | Sends visible chat notices when session compaction starts and finishes |
105-
| session-memory | `command:new`, `command:reset` | Saves session context to memory on `/new` or `/reset` |
99+
| Hook | Events | What it does |
100+
| --------------------- | ------------------------------------------------- | --------------------------------------------------------------------------------------- |
101+
| boot-md | `gateway:startup` | Runs `BOOT.md` at gateway startup for each configured agent scope |
102+
| bootstrap-extra-files | `agent:bootstrap` | Injects extra bootstrap files (for example monorepo `AGENTS.md`) during agent bootstrap |
103+
| command-logger | `command` | Logs command events to `~/.openclaw/logs/commands.log` |
104+
| compaction-notifier | `session:compact:before`, `session:compact:after` | Sends visible chat notices when session compaction starts and finishes |
105+
| session-memory | `command:new`, `command:reset` | Saves session context to memory on `/new` or `/reset` |
106106

107107
Enable any bundled hook with `openclaw hooks enable <hook-name>`. Full details, config keys, and defaults: [Bundled hooks](/automation/hooks#bundled-hooks).
108108

‎docs/cli/models.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ openclaw models auth list [--provider <id>] [--json]
149149
openclaw models auth login --provider <id>
150150
openclaw models auth login --provider openai --profile-id openai:work
151151
openclaw models auth login-github-copilot
152+
openclaw models auth logout <profileId> [--yes]
152153
openclaw models auth paste-api-key --provider <id>
153154
openclaw models auth setup-token --provider <id>
154155
openclaw models auth paste-token --provider <id>
@@ -163,9 +164,11 @@ openclaw models auth order clear --provider <id>
163164

164165
`models auth login` runs a provider plugin's auth flow (OAuth/API key). Use `openclaw plugins list` to see which providers are installed. `login` accepts `--profile-id <id>` for providers that support named profiles during login (use this to keep multiple logins for the same provider separate), `--method <id>` to pick a specific auth method, `--device-code` as a shortcut for `--method device-code`, `--set-default` to apply the provider's recommended default model, and `--force` to remove existing profiles for that provider first (use when a cached OAuth profile is stuck or you want to switch accounts).
165166

167+
`models auth logout <profileId>` removes one saved auth profile from the selected agent auth store. Use the profile id shown by `models auth list`. It also drops that profile from `auth.profiles` and from every `auth.order` list in your config, so no stale reference is left behind, and it deletes an `auth.order.<provider>` entry that would otherwise be emptied (an authored empty order means "select no profiles" and would disable the provider). It prompts for confirmation on a TTY; pass `--yes` for scripts and agents. Logout refuses when the profile is not in the store, or when a `models.providers.<id>.apiKey` entry names it — change that config value first.
168+
166169
`models auth login-github-copilot` is a shortcut for `models auth login --provider github-copilot --method device` (GitHub device flow); it accepts `--yes` to overwrite an existing profile without prompting.
167170

168-
Use `openclaw models auth --agent <id> <subcommand>` to write auth results to a specific configured agent store. The parent `--agent` flag is honored by `add`, `list`, `login`, `paste-api-key`, `setup-token`, `paste-token`, `login-github-copilot`, and `order get`/`set`/`clear`.
171+
Use `openclaw models auth --agent <id> <subcommand>` to write auth results to a specific configured agent store. The parent `--agent` flag is honored by `add`, `list`, `login`, `logout`, `paste-api-key`, `setup-token`, `paste-token`, `login-github-copilot`, and `order get`/`set`/`clear`.
169172

170173
For OpenAI models, `--provider openai` defaults to ChatGPT/Codex account login. Use `--method api-key` only when you want to add an OpenAI API-key profile, usually as a backup for Codex subscription limits. Run `openclaw doctor --fix` to migrate older legacy OpenAI Codex prefix auth/profile state to `openai`.
171174

@@ -176,6 +179,7 @@ openclaw models auth login --provider openai --set-default
176179
openclaw models auth login --provider openai --method api-key
177180
openclaw models auth paste-api-key --provider openai
178181
openclaw models auth list --provider openai
182+
openclaw models auth logout openai:manual --yes
179183
```
180184

181185
Notes:

‎docs/cli/onboard.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ openclaw onboard --non-interactive \
291291
- Unless you pass `--skip-health`, onboarding waits for a reachable local gateway before exiting successfully.
292292
- `--install-daemon` starts the managed gateway install path first. Without it, a local gateway must already be running (for example `openclaw gateway run`).
293293
- `--skip-health` skips the wait if you only want config/workspace/bootstrap writes in automation.
294-
- `--skip-bootstrap` sets `agents.defaults.skipBootstrap: true` and skips creating `AGENTS.md`, `SOUL.md`, `TOOLS.md`, `IDENTITY.md`, `USER.md`, and `BOOTSTRAP.md`.
294+
- `--skip-bootstrap` sets `agents.defaults.skipBootstrap: true` and skips creating `AGENTS.md`, `SOUL.md`, `IDENTITY.md`, `USER.md`, and `BOOTSTRAP.md`.
295295
- On native Windows, `--install-daemon` tries Scheduled Tasks first and falls back to a per-user Startup-folder login item if task creation is denied.
296296

297297
### Interactive ref mode

‎docs/cli/policy.md‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Policy checks configured channels, MCP servers, model providers, network SSRF
2020
posture, ingress/channel access, Gateway exposure and node command posture,
2121
authored message-routing probes,
2222
agent workspace access, sandbox posture, data-handling posture, secret
23-
provider/auth profile posture, and governed tool metadata (`TOOLS.md`). Use it
23+
provider/auth profile posture, and governed tool metadata (the `## Tools` section of `AGENTS.md`). Use it
2424
when a workspace needs a durable, checkable statement such as "Telegram must
2525
not be enabled" or "governed tools must declare risk and owner metadata." If
2626
you only need local behavior with no attestation or drift detection, plain
@@ -500,9 +500,9 @@ only reviewed exec approval posture for selected agents.
500500

501501
#### Tool metadata
502502

503-
| Policy field | Observed state | Use when |
504-
| ----------------------- | -------------------------------- | ------------------------------------------------------------------------------------------ |
505-
| `tools.requireMetadata` | Governed `TOOLS.md` declarations | Require governed tools to declare metadata keys such as `risk`, `sensitivity`, or `owner`. |
503+
| Policy field | Observed state | Use when |
504+
| ----------------------- | -------------------------------------- | ------------------------------------------------------------------------------------------ |
505+
| `tools.requireMetadata` | Governed `AGENTS.md` tool declarations | Require governed tools to declare metadata keys such as `risk`, `sensitivity`, or `owner`. |
506506

507507
#### Tool posture
508508

@@ -741,7 +741,7 @@ Example JSON output:
741741
"tools": [
742742
{
743743
"id": "deploy",
744-
"source": "oc://TOOLS.md/tools/deploy",
744+
"source": "oc://AGENTS.md/tools/deploy",
745745
"line": 12,
746746
"risk": "critical",
747747
"sensitivity": "restricted",
@@ -897,12 +897,12 @@ Example findings:
897897
{
898898
"checkId": "policy/tools-missing-risk-level",
899899
"severity": "error",
900-
"message": "TOOLS.md tool 'deploy' has no explicit risk classification.",
900+
"message": "AGENTS.md tool 'deploy' has no explicit risk classification.",
901901
"source": "policy",
902-
"path": "TOOLS.md",
902+
"path": "AGENTS.md",
903903
"line": 12,
904-
"ocPath": "oc://TOOLS.md/tools/deploy",
905-
"target": "oc://TOOLS.md/tools/deploy",
904+
"ocPath": "oc://AGENTS.md/tools/deploy",
905+
"target": "oc://AGENTS.md/tools/deploy",
906906
"requirement": "oc://policy.jsonc/tools/requireMetadata"
907907
}
908908
```

‎docs/concepts/agent-workspace.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ Standard files OpenClaw expects inside the workspace:
7676
<Accordion title="IDENTITY.md - name, vibe, emoji">
7777
The agent's name, vibe, and emoji. Created/updated during the bootstrap ritual.
7878
</Accordion>
79-
<Accordion title="TOOLS.md - local tool conventions">
80-
Notes about your local tools and conventions. Does not control tool availability; it is only guidance.
79+
<Accordion title="AGENTS.md Tools section - local tool conventions">
80+
The `## Tools` section holds local environment notes and conventions. It does not control tool availability; it is only guidance.
8181
</Accordion>
8282
<Accordion title="BOOT.md - startup checklist">
8383
Optional startup checklist run automatically on gateway restart (when [internal hooks](/automation/hooks) are enabled). Keep it short; use the message tool for outbound sends.
@@ -137,7 +137,7 @@ Run these steps on the machine where the Gateway runs (that is where the workspa
137137
```bash
138138
cd ~/.openclaw/workspace
139139
git init
140-
git add AGENTS.md SOUL.md TOOLS.md IDENTITY.md USER.md memory/
140+
git add AGENTS.md SOUL.md IDENTITY.md USER.md memory/
141141
git commit -m "Add agent workspace"
142142
```
143143

0 commit comments

Comments
 (0)