On this page

Configuration Reference

Docs home · Configuration · Permissions and sandbox · Appearance · Advanced configuration · 简体中文

This page is a lookup reference for the public sigil.toml surface. Start with the focused guides when choosing a behavior; use this page to confirm a field name, accepted value, or default.

Workspace, Storage, And Session

Section / fieldDefaultPurpose
[workspace].rootrequired in manual configWorkspace directory. "." follows the directory where sigil starts.
[storage].state_root"auto"Per-user durable Sigil state. SIGIL_STATE_HOME overrides it.
[storage].cache_root"auto"Rebuildable per-user cache. SIGIL_CACHE_HOME overrides it.
[session].log_dirworkspace state sessions childSession-log location. A relative value resolves under workspace state.
[session.retention].max_sessions500Maximum retained ready sessions after an explicit cleanup.
[session.retention].max_bytes2147483648Maximum bytes retained across ready sessions after explicit cleanup.
[session.retention].expire_older_than_ms15552000000Select unprotected sessions older than 180 days during explicit cleanup.

Use Configuration for path choices and the explicit-only retention boundary.

Agent And Providers

Section / fieldDefaultPurpose
[agent].providersetup choicedeepseek, openai_compat, openai_responses, anthropic, or gemini.
[agent].modelprovider setup choiceDefault chat model.
[agent].tool_timeout_secs30Tool timeout in seconds.
[agent].max_turnsdisabledOptional limit for an unfinished tool loop.

Provider blocks and credentials are documented in the Provider guide.

Execution

Section / fieldDefaultPurpose
[execution].strategy"local"local or sandbox.
[execution.sandbox].backendrequired for sandboxmacos_seatbelt, linux_bubblewrap, or docker.
[execution.sandbox].profilebackend-specificRequested sandbox profile.
[execution.sandbox].fallback"deny" recommendedBehavior if the selected sandbox cannot be used.
[execution.sandbox].container_imagerequired only for DockerImage for the Docker backend.

See Permissions and sandbox before changing these fields.

Verification

Section / fieldDefaultPurpose
[verification.scope].profile"auto"Coarse verification scope preset.
[verification.scope].extra_excludes[]Extra excluded globs.
[verification.scope].generated_roots[]Generated directories that should not become verification evidence.
[[verification.checks]].idrequiredStable check name.
[[verification.checks]].commandrequiredExecutable name.
[[verification.checks]].args[]Command arguments.
[[verification.checks]].cwdworkspace rootWorkspace-relative working directory.
[[verification.checks]].effectrequiredExpected effect; use read_only for ordinary checks.

Appearance

Section / fieldDefaultPurpose
[appearance].theme"sigil_dark"TUI palette.
[appearance].syntax_theme"auto"Code-highlight palette.
[appearance].usage_cost_currency"auto"auto, usd, or cny display currency.
[appearance.colors].<token>built-in themeA #RRGGBB semantic color override.

Color-token groups are surfaces, borders, text, accents, selection/buttons, status, diff, approval/risk, markdown, modal/overlay, and config/setup. See Appearance for readable override guidance.

Task

Section / fieldDefaultPurpose
[task].enabledtrueEnables task planning.
[task].default_mode"chat"Default composer behavior.
[task].max_plan_steps12Plan-step limit.
[task].max_replans2Replanning limit.
[task].max_subagents8Active child-agent limit.
[task].multi_agent_mode"explicit_request_only"none, explicit_request_only, or proactive.
[task].allow_write_subagentstrueWhether an eligible child may request file-changing work.
[task.<role>].provider / .model / .reasoning_effortinherits [agent]Optional role-specific model choice.
[task.<role>.tools].names / .prefixes / .allow_allrole defaultOptional visible-tool restriction.

Roles are planner, executor, subagent_read, and subagent_write.

Permission

Section / fieldDefaultPurpose
[permission].mode"manual"read-only, manual, auto-edit, or danger-full-access.
[permission.commands].allow / .ask / .deny[]Shell-command patterns.
[permission.external_directory].enabledfalseEnables consideration of workspace-external paths.
[permission.external_directory].default_mode"ask"Fallback action for an enabled external path.
[permission.external_directory].rules[]Narrow external-path rules.

See Permissions and sandbox for the effective safety behavior.

Web, Memory, Skills, And Compaction

Section / fieldDefaultPurpose
[web].enabledtrueEnables configured web tools.
[web].network_mode"allow"allow, ask, or deny.
[web].search_route"auto"auto, provider_hosted, mcp, bundled, or disabled.
[web].max_results8Search-result limit.
[web].max_query_chars / .max_query_bytes512 / 2048Query limits.
[web.bundled_search].enabledtrueEnables the bundled search route.
[web.search_mcp].server / .toolunsetYour compatible MCP search binding.
[memory].enabledtrueLoads workspace instruction files.
[skills].enabled / .user_skills / .user_agentstrueEnables discovered reusable resources.
[skills].compatibility_sources[]Optional claude or reasonix imports.
[compaction].enabledtrueEnables conversation compaction.
[compaction].soft_threshold_ratio / .hard_threshold_ratio0.5 / 0.8Warning and limited idle-auto threshold; automatic apply still requires local target admission.
[compaction].fallback_context_window_tokensunsetFallback model-window value.
[compaction].tail_messages6Recent messages retained verbatim.

Code Intelligence, Terminal, Plugins, And MCP

Section / fieldDefaultPurpose
[code_intelligence].enabledfalseEnables code navigation and reviewed edit suggestions.
[code_intelligence].server_startup"lazy"When configured language servers start.
[code_intelligence].default_timeout_ms5000Per-request timeout.
[code_intelligence].max_results / .max_payload_bytes100 / 65536Result limits.
[code_intelligence].auto_discover / .report_missingtrueDiscovery and readiness reporting.
[[code_intelligence.servers]].name / .languages / .commandrequired for explicit serverLanguage-server identity and command.
[[code_intelligence.servers]].root_markers / .file_extensions[]Workspace and file matching.
[[code_intelligence.servers]].startup_timeout_ms5000Startup timeout.
[[code_intelligence.servers]].trust_requiredtrueRequires a matching workspace-trust decision.
[terminal].keyboard_enhancement"auto"auto, on, or off.
[terminal].mouse_capture / .osc52_clipboardtrueMouse and OSC52 clipboard behavior.
[terminal].scroll_sensitivity3Rows per mouse-wheel tick.
[terminal.notifications].enabledfalseEnables privacy-bounded attention signals in the interactive TUI.
[terminal.notifications].method"auto"auto, osc9, osc777, or bell.
[terminal.notifications].minimum_run_duration_ms10000Long-run completion threshold, from 1000 through 3600000.
[[mcp_servers]].inherit_env[]Root-only list of credential names to pass to a local MCP server.

See Advanced configuration and the MCP guide for setup examples.