zeroclaw/src/config
Argenis d1f7c8a116
fix(agent): add system prompt budgeting for small-context models (#4185)
For models with small context windows (e.g. glm-4.5-air ~8K tokens),
the system prompt alone can exceed the limit. This adds:

- max_system_prompt_chars config option (default 0 = unlimited)
- compact_context now also compacts the system prompt: skips the
  Channel Capabilities section and shows only tool names
- Truncation with marker when prompt exceeds the budget

Users can set `max_system_prompt_chars = 8000` in [agent] config
to cap the system prompt for small-context models.

Closes #4124
2026-03-24 15:32:05 +03:00
..
mod.rs feat(config): add configurable pacing controls for slow/local LLM workloads (#3343) 2026-03-24 15:31:16 +03:00
schema.rs fix(agent): add system prompt budgeting for small-context models (#4185) 2026-03-24 15:32:05 +03:00
traits.rs fix format 2026-02-21 19:38:19 +08:00
workspace.rs feat(workspace): add multi-client workspace isolation 2026-03-24 15:17:10 +03:00