fix: reduce gateway context burn from skills catalog injection - #12015
fix: reduce gateway context burn from skills catalog injection#12015RustColdCalls wants to merge 1 commit into
Conversation
- add skills.system_prompt_mode config (auto/full/minimal/off) - default auto to minimal on gateway platforms, full on CLI - add compact minimal skills prompt builder - add regression tests for gateway auto/minimal + full override - bump config schema to 18 and update version-pinned tests
|
Thanks for targeting a real prompt-cost issue. Current main still unconditionally builds the full skills index whenever skills tooling is available ( Problems
Suggested changes
Automated hermes-sweeper review. |
|
Closing as superseded. This targeted a real problem — the full skills catalog burning gateway context every turn — and the premise was confirmed valid by review. But the branch is now ~17k commits behind: the code it patches moved to The same capability has since been implemented on a current base in #72200 ( Thanks for surfacing this early — you had the right idea well before the ecosystem caught up. |
Summary
skills.system_prompt_modeconfig (auto|full|minimal|off)auto: full skills catalog on CLI, minimal skills guidance on gateway platformsbuild_minimal_skills_system_prompt()to avoid shipping full<available_skills>every turn on gatewaysfulloverride17 -> 18Why
Slack/gateway sessions were burning context budget faster because the full skills catalog was injected each turn. This change cuts baseline prompt overhead on gateways while preserving full behavior on CLI.
Validation
python -m pytest tests/agent/test_prompt_builder.py tests/run_agent/test_run_agent.py tests/hermes_cli/test_config.py tests/tools/test_browser_camofox_state.py -q413 passed, 1 skipped