Configuration reference¶
This page is the compact schema reference for steadlith.toml. Read Configuration for examples, selection guidance, and security notes.
File rules¶
Encoding: UTF-8.
Format: TOML.
Default path:
steadlith.toml.Maximum migration-managed config size: 1 MiB.
Relative path base: the configuration file’s parent directory.
Unknown top-level tables, unknown keys, invalid types, and non-finite numbers are rejected.
A pending
<config>.migration.jsonjournal blocks ordinary config loading until explicit recovery.
[chunker]¶
Key |
Type |
Default |
Validation |
|---|---|---|---|
|
string |
|
|
|
integer |
|
at least 2 |
|
integer |
|
greater than 0 and less than |
|
integer |
|
greater than |
|
integer |
|
at least 0 |
|
integer |
|
greater than backup and at most 63 |
|
integer |
|
at least 1 and below primary |
For baseline strategies, the shared size fields are mapped to that strategy’s supported controls. fixed uses max_tokens as its non-overlapping chunk size. recursive and semantic use the configured minimum and maximum.
[embedding]¶
Key |
Type |
Default |
Validation |
|---|---|---|---|
|
string |
|
|
|
string |
|
non-empty |
|
integer |
|
1 through 65,536 |
|
integer |
|
greater than 0 |
|
number |
omitted by API; generated file uses |
finite and at least 0 |
|
string |
omitted |
OpenAI only; exactly |
|
string |
omitted |
custom value rejected |
When price is omitted, plan cost fields are null. A zero value produces a numeric zero estimate.
[store]¶
Key |
Type |
Default |
Validation |
|---|---|---|---|
|
string |
|
non-empty path below config directory; distinct from index database |
[index]¶
Key |
Type |
Default |
Validation |
|---|---|---|---|
|
string |
|
exactly |
|
string |
|
non-empty path below config directory; distinct from cache |
[sources]¶
Key |
Type |
Default |
Validation |
|---|---|---|---|
|
array of strings |
|
non-empty relative patterns without |
|
array of strings |
drafts, |
non-empty relative patterns without |
Patterns beginning with **/ match both the project root and nested directories. Source symlinks are resolved and must remain below the configuration directory.
Supported text suffixes¶
.c .cc .cfg .conf .cpp .css .csv .go .h .hpp .html .ini .java
.js .json .jsx .md .mdx .php .py .rb .rs .rst .sh .sql .tex
.toml .ts .tsx .txt .xml .yaml .yml
Suffix matching is case-insensitive. A supported suffix does not override UTF-8 and binary-content checks.
Programmatic loading¶
from steadlith.config import load_config
config = load_config("steadlith.toml")
print(config.base_dir)
print(config.resolve(config.index.database))
load_config returns a validated frozen SteadlithConfig. Use with_chunker and with_embedding for validated in-memory copies rather than mutating nested objects.