本页内容

配置字段参考

文档首页 · 配置指南 · 权限与沙箱 · 外观 · 高级配置 · English

本文是公开 sigil.toml 表面的查阅参考。选择行为时请先阅读对应指南;在确认字段名、可接受的值或默认值时再回到本文。

Workspace、Storage 与 Session

区块 / 字段默认值用途
[workspace].root手写配置时必填workspace 目录。"." 跟随启动 sigil 的目录。
[storage].state_root"auto"每用户的持久 Sigil state。SIGIL_STATE_HOME 可覆盖。
[storage].cache_root"auto"可重建的每用户 cache。SIGIL_CACHE_HOME 可覆盖。
[session].log_dirworkspace state 下的 sessionssession log 位置。相对值在 workspace state 下解析。
[session.retention].max_sessions500显式 cleanup 后最多保留的 ready session 数。
[session.retention].max_bytes2147483648显式 cleanup 后 ready session 的最大总字节数。
[session.retention].expire_older_than_ms15552000000显式 cleanup 时选择早于 180 天且未受保护的 session。

路径选择与 retention 只允许显式执行的边界见配置指南

Agent 与 Providers

区块 / 字段默认值用途
[agent].providersetup 选择deepseekopenai_compatopenai_responsesanthropicgemini
[agent].modelprovider setup 选择默认 chat model。
[agent].tool_timeout_secs30工具超时秒数。
[agent].max_turns禁用未收敛工具循环的可选上限。

Provider 区块与凭据见Provider 指南

Execution

区块 / 字段默认值用途
[execution].strategy"local"localsandbox
[execution.sandbox].backend使用 sandbox 时必填macos_seatbeltlinux_bubblewrapdocker
[execution.sandbox].profile取决于 backend请求的 sandbox profile。
[execution.sandbox].fallback推荐 "deny"所选 sandbox 不可用时的行为。
[execution.sandbox].container_image仅 Docker 必填Docker backend 使用的 image。

修改前请阅读权限与沙箱

Verification

区块 / 字段默认值用途
[verification.scope].profile"auto"粗粒度 verification scope preset。
[verification.scope].extra_excludes[]额外排除 glob。
[verification.scope].generated_roots[]不应成为验证证据的 generated 目录。
[[verification.checks]].id必填稳定检查名称。
[[verification.checks]].command必填可执行文件名。
[[verification.checks]].args[]命令参数。
[[verification.checks]].cwdworkspace rootworkspace 相对工作目录。
[[verification.checks]].effect必填预期影响;普通检查使用 read_only

Appearance

区块 / 字段默认值用途
[appearance].theme"sigil_dark"TUI palette。
[appearance].syntax_theme"auto"代码高亮 palette。
[appearance].usage_cost_currency"auto"autousdcny 的显示货币。
[appearance.colors].<token>内置主题#RRGGBB 语义颜色覆盖。

颜色 token group 包括 surfaces、borders、text、accents、selection/buttons、status、diff、approval/risk、markdown、modal/overlay 和 config/setup。可读性建议见外观

Task

区块 / 字段默认值用途
[task].enabledtrue开启 task planning。
[task].default_mode"chat"composer 默认行为。
[task].max_plan_steps12plan step 上限。
[task].max_replans2replan 上限。
[task].max_subagents8活跃 child agent 上限。
[task].multi_agent_mode"explicit_request_only"noneexplicit_request_onlyproactive
[task].allow_write_subagentstrue符合资格的 child 是否可请求文件修改工作。
[task.<role>].provider / .model / .reasoning_effort继承 [agent]可选 role 专用 model 选择。
[task.<role>.tools].names / .prefixes / .allow_allrole 默认值可选可见工具限制。

Role 包括 plannerexecutorsubagent_readsubagent_write

Permission

区块 / 字段默认值用途
[permission].mode"manual"read-onlymanualauto-editdanger-full-access
[permission.commands].allow / .ask / .deny[]Shell 命令 pattern。
[permission.external_directory].enabledfalse开启对 workspace 外路径的考虑。
[permission.external_directory].default_mode"ask"已启用外部路径的默认动作。
[permission.external_directory].rules[]收窄的外部路径规则。

有效安全行为见权限与沙箱

Web、Memory、Skills 与 Compaction

区块 / 字段默认值用途
[web].enabledtrue开启已配置的 Web 工具。
[web].network_mode"allow"allowaskdeny
[web].search_route"auto"autoprovider_hostedmcpbundleddisabled
[web].max_results8搜索结果上限。
[web].max_query_chars / .max_query_bytes512 / 2048查询限制。
[web.bundled_search].enabledtrue开启 bundled search route。
[web.search_mcp].server / .tool未设置你的兼容 MCP search binding。
[memory].enabledtrue加载 workspace 指令文件。
[skills].enabled / .user_skills / .user_agentstrue开启发现到的可复用资源。
[skills].compatibility_sources[]可选 claudereasonix 导入。
[compaction].enabledtrue开启对话 compaction。
[compaction].soft_threshold_ratio / .hard_threshold_ratio0.5 / 0.8提醒与有限 idle 自动阈值;自动应用仍要求本地 target admission。
[compaction].fallback_context_window_tokens未设置后备 model window 值。
[compaction].tail_messages6原样保留的最近消息数。

代码智能、Terminal、Plugins 与 MCP

区块 / 字段默认值用途
[code_intelligence].enabledfalse开启代码导航和经过审查的编辑建议。
[code_intelligence].server_startup"lazy"配置的 language server 何时启动。
[code_intelligence].default_timeout_ms5000单次请求超时。
[code_intelligence].max_results / .max_payload_bytes100 / 65536结果限制。
[code_intelligence].auto_discover / .report_missingtrue自动发现与 readiness 报告。
[[code_intelligence.servers]].name / .languages / .command显式 server 时必填Language server 标识与命令。
[[code_intelligence.servers]].root_markers / .file_extensions[]Workspace 与文件匹配。
[[code_intelligence.servers]].startup_timeout_ms5000启动超时。
[[code_intelligence.servers]].trust_requiredtrue需要匹配 workspace trust decision。
[terminal].keyboard_enhancement"auto"autoonoff
[terminal].mouse_capture / .osc52_clipboardtrue鼠标与 OSC52 剪贴板行为。
[terminal].scroll_sensitivity3每次滚轮滚动的行数。
[terminal.notifications].enabledfalse在交互式 TUI 中启用有明确隐私边界的 attention signal。
[terminal.notifications].method"auto"autoosc9osc777bell
[terminal.notifications].minimum_run_duration_ms10000长任务完成阈值,范围为 10003600000
[[mcp_servers]].inherit_env[]传递给本地 MCP server 的仅根配置凭据名列表。

设置示例见高级配置MCP 指南