pub struct PromptSegments {
pub rules: String,
pub system_prompt: String,
pub skills: String,
pub subagents: String,
}Expand description
Per-bucket substrings of an AssembledPrompt. Each field is the
exact text that contributes to that breakdown bucket; join order
matches AssembledPrompt::full.
Empty fields are normal: e.g. rules is "" when neither
AGENTS.md nor CLAUDE.md exists, skills is "" when the
skill index is empty, and subagents is "" when
sub_agent_enabled is false. The breakdown estimator uses the
raw length (chars/4) of each segment to size its bucket.
Fields§
§rules: String# Project context + AGENTS.md + CLAUDE.md (or "" when
neither file exists — prepend_project_context short-circuits).
system_prompt: StringThe base prompt: default_system_prompt() + the six memory
layers + any channel append_system_prompt suffix.
skills: Stringskill_index() output (or "" when no skills are loaded).
subagents: String## Sub-agents enabled + sub-agent usage note (or "" when
sub_agent_enabled is false).