pub struct SystemPromptSettings {
pub language: Option<String>,
pub global_cache_scope: bool,
pub mcp_tools_present: bool,
pub mcp_instructions: Vec<McpServerInstruction>,
pub memory_walk_up: bool,
pub output_style: Option<String>,
pub todo_v2_enabled: bool,
pub agent_teams_enabled: bool,
}Expand description
System-prompt assembly knobs sub-config.
Fields§
§language: Option<String>Preferred response language. None = use the user’s language/context.
global_cache_scope: boolEnable Anthropic prompt-caching scope: "global" for the static system
prompt prefix. Requires the prompt-caching-scope beta header and may not
be supported by non-Anthropic-compatible endpoints.
mcp_tools_present: boolTrue when at least one connected MCP tool is rendered in the tool list. MCP tools are per-user/session, so system prompt global caching is downgraded to normal org/provider caching in this case.
mcp_instructions: Vec<McpServerInstruction>Instructions returned by connected MCP servers during initialize.
memory_walk_up: bool是否在 cwd 之上向上爬找 AGENTS.md。默认 true。 monorepo 子目录不想吃父级 monorepo 上下文时设 false。
output_style: Option<String>选中的 output style 名称(user/project 级别均可)。
引擎在 collect FrozenContext 时按此名称从
~/.agix/scenes/<scope>/output-styles/<name>.md 或 <cwd>/.agix/output-styles/<name>.md
读取内容,注入 system prompt 末段。None = 不注入额外 style。
todo_v2_enabled: boolWhen true (default), use TaskCreate/Update/List/Get/Stop instead of TodoWrite for task tracking. When false, TodoWrite is used and the V2 Task tools are hidden.
agent_teams_enabled: boolWhen true, register TeamCreate/TeamDelete for multi-agent orchestration. Default false.