
























@@ -166,7 +166,8 @@ PR.
166166167167## Workspace bootstrap injection
168168169-Bootstrap files are trimmed and appended under **Project Context** so the model sees identity and profile context without needing explicit reads:
169+Bootstrap files are resolved from the active workspace, then routed to the
170+prompt surface that matches their lifetime:
170171171172- `AGENTS.md`
172173- `SOUL.md`
@@ -177,23 +178,24 @@ Bootstrap files are trimmed and appended under **Project Context** so the model
177178- `BOOTSTRAP.md` (only on brand-new workspaces)
178179- `MEMORY.md` when present
179180180-All of these files are **injected into the context window** on every turn unless
181-a file-specific gate applies. `HEARTBEAT.md` is omitted on normal runs when
182-heartbeats are disabled for the default agent or
181+On the native Codex harness, OpenClaw avoids repeating stable workspace files
182+in every user turn. Codex loads `AGENTS.md` through its own project-doc
183+discovery. `SOUL.md`, `IDENTITY.md`, `TOOLS.md`, and `USER.md` are forwarded as
184+Codex developer instructions. `HEARTBEAT.md` content is not injected; heartbeat
185+turns get a collaboration-mode note pointing to the file when it exists and is
186+non-empty. `MEMORY.md` and active `BOOTSTRAP.md` content keep the normal
187+turn-context role for now.
188+189+On non-Codex harnesses, bootstrap files continue to be composed into the
190+OpenClaw prompt according to their existing gates. `HEARTBEAT.md` is omitted on
191+normal runs when heartbeats are disabled for the default agent or
183192`agents.defaults.heartbeat.includeSystemPromptSection` is false. Keep injected
184-files concise, especially `MEMORY.md`. `MEMORY.md` is intended to stay a
185-curated long-term summary; detailed daily notes belong in `memory/*.md` where
193+files concise, especially `MEMORY.md`. `MEMORY.md` is intended to stay a curated
194+long-term summary; detailed daily notes belong in `memory/*.md` where
186195`memory_search` and `memory_get` can retrieve them on demand. Oversized
187196`MEMORY.md` files increase prompt usage and can be partially injected because of
188197the bootstrap file limits below.
189198190-When a session runs on the native Codex harness, Codex loads `AGENTS.md`
191-through its own project-doc discovery. OpenClaw still resolves the remaining
192-bootstrap files and forwards them as Codex config instructions, so `SOUL.md`,
193-`TOOLS.md`, `IDENTITY.md`, `USER.md`, `HEARTBEAT.md`, `BOOTSTRAP.md`, and
194-`MEMORY.md` keep the same workspace-context role without duplicating
195-`AGENTS.md`.
196-197199<Note>
198200`memory/*.md` daily files are **not** part of the normal bootstrap Project Context. On ordinary turns they are accessed on demand via the `memory_search` and `memory_get` tools, so they do not count against the context window unless the model explicitly reads them. Bare `/new` and `/reset` turns are the exception: the runtime can prepend recent daily memory as a one-shot startup-context block for that first turn.
199201</Note>
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。