#13825: feat: add agents.defaults.responseUsage config option
stale
Cluster:
Compaction Enhancements and Features
# Human written summary:
The intent of this change is, as written by a human:
> Add a config option agents.defaults.responseUsage so users can set token display to 'full' by default instead of typing /usage full every session.
_The rest of this PR was written by Kimi K2.5, running in the OpenClaw harness. Full environment + prompt history appear at the end._
# Changes
- Added `responseUsage` field to `AgentDefaultsSchema` in `zod-schema.agent-defaults.ts` (accepts: "off" | "tokens" | "full")
- Updated `agent-runner.ts` to check `cfg.agents?.defaults?.responseUsage` when resolving usage display mode
# Tests
- Manual verification: Set `agents.defaults.responseUsage: "full"` in config, verified new sessions default to full usage display without running `/usage full`
# Risks
- None: Simple additive change, existing behavior unchanged when config option is not set (still defaults to "off")
# Follow-ups
- Documentation update to reference/config.md to document the new option
# Prompt History
## Environment
Harness: OpenClaw
Model: venice/kimi-k2-5
Thinking level: high
Terminal: telegram
System: Linux 6.14.0-37-generic (x64)
## Prompts
| ISO-8601 | Prompt |
| --- | --- |
| 2026-02-10T23:40:00-03:00 | `For some reason I'm not able to see token usage on telegram, even tho I run /usage and select "full". Can you look into it? Should also be as default` |
| 2026-02-10T23:41:00-03:00 | `what is a PR, should i do that?` |
| 2026-02-10T23:43:00-03:00 | `"Add a config option agents.defaults.responseUsage so users can set token display to 'full' by default instead of typing /usage full every session." Do it.` |
Most Similar PRs
#22140: feat(config): add usageDefault to agent defaults for persistent /us...
by Mellowambience · 2026-02-20
73.5%
#22089: feat: persist default /usage mode via agents.defaults.usage
by AIflow-Labs · 2026-02-20
68.6%
#19329: feat: add per-agent compaction and context pruning overrides
by curtismercier · 2026-02-17
65.5%
#17221: fix(agents): prevent agents from using exec for gateway management
by CornBrother0x · 2026-02-15
64.7%
#21547: feat: add compaction.announce config to notify users of compaction ...
by jlwestsr · 2026-02-20
64.2%
#23736: fix(system-prompt): improve prompt cache locality with unique agent ID
by mrx-arafat · 2026-02-22
64.1%
#14274: feat: add collapseReplyPayloads to collapse multi-message replies
by Henry-Roff-AI · 2026-02-11
63.1%
#19251: CLI: emit diagnostics for embedded Slack-context runs
by gg2uah · 2026-02-17
62.5%
#14640: feat(agents): support per-agent temperature and maxTokens in agents...
by lailoo · 2026-02-12
62.4%
#18708: feat(messages): add suppressToolErrorWarnings config option
by codexGW · 2026-02-17
62.4%