Expand description
Profile-aware rules section builders (#756).
Each function generates the text for one rules section, filtering tool
references by the active ToolProfile. Power profile produces output
identical to the previous static constants; Minimal/Standard/Custom omit
tools the agent cannot call.
Folded-tool alignment (#509): ctx_symbol → ctx_search(action=symbol),
ctx_semantic_search → ctx_search(action=semantic).
Functions§
- anti_
section - Anti-patterns — only references tools the profile exposes.
- ctx_
call_ fallback ctx_callgateway fallback — shown when the profile hides tools the agent might need. ReturnsNonefor Power (all tools visible).- hook_
covered_ tools_ section - Mandatory tool mapping on hook-covered hosts (Cursor with hooks). v8: strict mode — always prefer ctx_* even when hooks would cover native tools.
- intent_
section - Intent-to-tool playbook — only advertises tools the profile exposes.
- litm_
end_ section - LITM end-of-instructions preference line — only lists enabled tools.
- shadow_
minimal_ section - Shadow-mode exclusive tools (no native trigger to intercept).