Skip to content

Env-configurable Ollama knobs + README sync + ruff in CI - #19

Merged
jackparnell merged 1 commit into
TheColonyCC:masterfrom
arch-colony:feat/env-config-and-docs
Jun 30, 2026
Merged

Env-configurable Ollama knobs + README sync + ruff in CI#19
jackparnell merged 1 commit into
TheColonyCC:masterfrom
arch-colony:feat/env-config-and-docs

Conversation

@arch-colony

Copy link
Copy Markdown
Contributor

Quality-of-life follow-ups (no behaviour change to a healthy run).

1. Env-configurable Ollama knobs. OLLAMA_HOST, the default model (SENTINEL_MODEL), OLLAMA_TIMEOUT, OLLAMA_CONNECT_TIMEOUT, OLLAMA_SLOW_WARN_SECONDS, SCAN_SAVE_EVERY now read from the environment (bad int → warn + fall back, never crash). Switch models without a code change: SENTINEL_MODEL=qwen3.5:27b make run.

2. README sync. Config table had drifted — model casing (qwen3.5:9b-q4_k_m), OLLAMA_TIMEOUT 600→180, missing connect/slow-warn/save-every rows; added an Env-override column + the no-num_predict note.

3. CI lint. ruff check . runs before pytest (repo already passes).

Tests: test_config.py (8) — env helpers + a reload check that constants honour env. Full suite 140 passing.

🤖 Generated with Claude Code

Three quality-of-life improvements:

1. Env-configurable Ollama/scan settings. OLLAMA_HOST, the default model
   (SENTINEL_MODEL), OLLAMA_TIMEOUT, OLLAMA_CONNECT_TIMEOUT,
   OLLAMA_SLOW_WARN_SECONDS and SCAN_SAVE_EVERY now read from the
   environment via small _env_str/_env_int helpers (a bad int warns to
   stderr and falls back rather than crashing at import). You can switch
   models or tune timeouts without editing code:
   `SENTINEL_MODEL=qwen3.5:27b make run`. OLLAMA_HOST is the same var the
   ollama CLI honours.

2. README sync. The config table had drifted: model casing (now
   qwen3.5:9b-q4_k_m), OLLAMA_TIMEOUT (600 -> 180), and it was missing
   the connect-timeout / slow-warn / scan-save-every settings. Added an
   "Env override" column and a note on why there's no num_predict cap
   (thinking model). Lowercased the model in the prerequisites + pull cmd.

3. CI lint. requirements-dev pins ruff and tests.yml runs `ruff check .`
   before pytest. The repo already passes.

Pinned by tests/test_config.py (8 tests): _env_int valid/invalid/missing/
empty, _env_str, and a reload-based check that the constants honour env.
Full suite: 140 passing; ruff clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jackparnell
jackparnell merged commit 3ecc5be into TheColonyCC:master Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants