docs: add contextInjection config key to reference

This commit is contained in:
Vincent Koc 2026-04-06 05:28:56 +01:00
parent a896d5df0c
commit b2cc5ab636
1 changed files with 12 additions and 0 deletions

View File

@ -901,6 +901,18 @@ Disables automatic creation of workspace bootstrap files (`AGENTS.md`, `SOUL.md`
}
```
### `agents.defaults.contextInjection`
Controls when workspace bootstrap files are injected into the system prompt. Default: `"always"`.
- `"continuation-skip"`: safe continuation turns (after a completed assistant response) skip workspace bootstrap re-injection, reducing prompt size. Heartbeat runs and post-compaction retries still rebuild context.
```json5
{
agents: { defaults: { contextInjection: "continuation-skip" } },
}
```
### `agents.defaults.bootstrapMaxChars`
Max characters per workspace bootstrap file before truncation. Default: `20000`.