Configuration

Settings come from an optional TOML file, the environment, and the options of the ssift command.

Location and precedence

The optional default file is config.toml in the platform's per-user sourcesift configuration directory: $XDG_CONFIG_HOME/sourcesift/ (normally ~/.config/sourcesift/) on Linux, ~/Library/Application Support/sourcesift/ on macOS, and %LOCALAPPDATA%\sourcesift\ on Windows. Use SOURCESIFT_CONFIG or an explicit config path to select a different file. An explicitly selected file must exist. Project directories and .env files are not searched automatically.

Settings resolve from defaults, then TOML, supported environment variables, and command-line options. An explicit config path overrides SOURCESIFT_CONFIG; only that selected file is loaded. Unknown settings are rejected.

[agent]
model = "openai/gpt-6.1-sol"
reasoning_effort = "medium"

[limits]
max_input_bytes = 131072
timeout_seconds = 240
max_output_tokens = 8192

No model is chosen implicitly; a request without one fails with a message saying how to set it. SOURCESIFT_MODEL overrides [agent].model. SOURCESIFT_REASONING_EFFORT overrides [agent].reasoning_effort. Effort is optional; omitting it uses the provider default. Accepted values are none, minimal, low, medium, high, and xhigh; support depends on the selected model. The example uses GPT-6.1 Sol at medium effort. Output token budgets can include reasoning tokens, so increase the cap if the model exhausts it before producing an answer. Set OPENROUTER_API_KEY in the process environment; credentials are not accepted in TOML. Secrets are omitted from settings representations and serialization. SourceSift logs neither credentials nor request text.

Limits on a request

max_input_bytes bounds the request text in UTF-8 bytes; a longer request is rejected, not truncated. The configuration must be a regular file and has a 64 KiB limit. A [context] section, max_context_files, and max_figures from earlier versions are no longer accepted: attached documents and charts were removed in 0.10.

The total timeout covers model calls and retrieval within one run. The output cap applies to each model response. Input bytes are not model tokens: a model may have a smaller context window. Requests and retrieved evidence are sent to the selected model through OpenRouter. Local configuration does not mean offline inference.

Saved conversations

Saved conversations

[sessions]
directory = "sessions" # relative to this TOML file; `~` expands

ssift saves every conversation unless started with --no-save. They go to sessions/ in the platform's per-user sourcesift data directory (~/.local/share/sourcesift/ on Linux, ~/Library/Application Support/sourcesift/ on macOS, %LOCALAPPDATA%\sourcesift\ on Windows) unless directory is set. Each conversation is a folder named by its start time:

sessions/20261125-194036-873c0947/
  conversation.json   prompts, answers, evidence, artifacts
  meta.json           title and counts, for the conversation list
  artifacts/          the conversation's artifact files

A conversation holds the prompts, answers, and retrieved evidence text, so the folder is readable by your user only. Credentials and settings are never saved. Files saved by version 0.6 (one .json file per conversation, directly in the directory) are left in place but are not listed or reopened.

Sources and freshness

[sources]
timezone = "America/Chicago" # default UTC; explicit IANA zone, not inferred locally
recent_days = 7
disabled = ["wired"]        # registered IDs; misspellings are errors

[[sources.custom]]
id = "example-publication"
name = "Example Publication"
website = "https://example.com/"
feeds = ["https://example.com/feed.xml"] # replace with real public URLs
description = "Research and developments in my field."
topics = ["research"]
geography = "United States"
capabilities = ["feed", "article"]

Add science_feeds = ["https://example.com/science.xml"] to include the publication in the science news list. Custom definitions participate in normal semantic selection. Duplicate IDs, names, or aliases are rejected. Omit feeds to discover declared RSS/Atom links on the website. disabled applies before selection; it is not a prompt keyword filter. See research for exact window and date rules.

Research literature

[literature]
embedding_model = "openai/text-embedding-3-small" # ranks candidate papers
decision_model = "typesafe/jev-1.14"              # decides which to keep

These are OpenRouter models used with OPENROUTER_API_KEY when the research behind a report is looked up. Set either to "" to switch that stage off: without an embedding model the candidates keep their search order, and without a decision model the closest papers are returned unchecked. If your OpenRouter privacy settings block a model, choose another that they allow.

Set OPENALEX_API_KEY in the environment to use a free OpenAlex key. It is optional: without one, OpenAlex allows about 100 searches a day shared by everyone at your network address, and a report uses about five. The key is not accepted in TOML and is never saved or shown.

Research budgets

All are [limits] settings. Existing input limits above remain unchanged.

Setting Default Meaning
timeout_seconds 240 Total wall-clock timeout for model and retrieval
max_output_tokens 8192 Per-model-response output/reasoning budget
max_model_requests 10 All calls, including tool continuations and citation repair
max_tool_calls 14 Total agent tool calls
max_sources 3 Distinct registered sources attempted
max_items 30 Distinct evidence items retained
max_items_per_source 10 Accepted entries per source, most recent dated first
max_articles 6 Article attempts, including failures
max_artifact_chars 40000 Length of one artifact
max_http_requests 40 Requests including robots and redirects
http_timeout_seconds 10 One fetch, including DNS, robots, redirects, and body
max_response_bytes 2097152 Decoded response-body byte limit
max_item_chars 10000 Text per evidence item
max_evidence_chars 60000 Total retained evidence text

HTTP and provider retries are disabled. Tools execute sequentially; the paper indexes are asked together within one tool call. HTTP allows at most four redirects per fetch; parsing examines at most 200 feed entries and discovery retains at most four declared feeds. One model retry can repair missing or unknown citations, within the request limit. Tool/model budget exhaustion is a model error; HTTP/source/evidence limits produce partial-coverage notes.

For longer research or long artifacts, a 180-second total timeout can help; the live evaluation uses 180 seconds and 4096 output tokens. Raising limits increases possible latency and provider cost. Every numeric budget has an upper bound.

Session limits

Change the model or sources by restarting the server or creating a new application. A reset clears a conversation's completed history.

Setting under [limits] Default Meaning
max_session_turns 20 Maximum completed turns before starting fresh
max_session_bytes 524288 Serialized history/evidence budget, also checked with the next request payload
feed_cache_seconds 600 How long a conversation reuses a fetched feed before requesting it again; 0 disables

All research budgets above apply per turn, including newly collected evidence. Within one conversation a feed fetched in the last feed_cache_seconds is reused without a new request, and its evidence keeps the original retrieval time. Articles are always retrieved again. The cache is held in memory and cleared by a reset.

History and retained evidence are separately bounded by max_session_bytes. Bytes are a conservative application guard, not a tokenizer or a guarantee that every provider context window fits. Over-limit turns fail without changing completed history. Sessions are never silently truncated or summarized.