Configuration loading from localcode.toml #26

Open
opened 2026-04-07 20:24:44 +00:00 by austin · 0 comments
Owner

Implement configuration loading and validation.

  • Look for localcode.toml in the project root (or path specified via CLI flag)
  • Parse with tomllib (3.12+) / tomli (3.11)
  • Define the config schema: model settings, generation params, context budgets, verification toggles
  • Sensible defaults for everything — the tool should work with just a model path
  • Validate config on load (e.g., model path exists, context_length is reasonable, budgets don't exceed context)
  • Expose config as a typed dataclass accessible throughout the application

Keep the config surface small for MVP. Users should only need to set model.path to get started.

Implement configuration loading and validation. - Look for `localcode.toml` in the project root (or path specified via CLI flag) - Parse with tomllib (3.12+) / tomli (3.11) - Define the config schema: model settings, generation params, context budgets, verification toggles - Sensible defaults for everything — the tool should work with just a model path - Validate config on load (e.g., model path exists, context_length is reasonable, budgets don't exceed context) - Expose config as a typed dataclass accessible throughout the application Keep the config surface small for MVP. Users should only need to set `model.path` to get started.
Sign in to join this conversation.
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
austin/localcode#26
No description provided.