Supervertaler - AI Agent Documentation (Compact)
Purpose: Fast, reliable handoff when context is low or chats reset. Last Updated: February 8, 2026 | Version: v1.9.241
⚡ 60-Second Resume Checklist
- Read
CHANGELOG.mdtop entry (latest release context). - Check
git status --short(do not revert unrelated user changes). - Confirm version in
pyproject.toml. - Confirm unified settings in
settings/settings.json. - If deeper context is needed, open:
docs/agent-archive/AGENTS_FULL_REFERENCE_v1.9.240_2026-02-08.md
🎯 Current State
- Current version:
v1.9.241 - Main app:
Supervertaler.py(large monolithic PyQt6 file) - Latest major completed work:
- Unified settings system in
settings/settings.json - Inline API key editing in Settings UI
- One-time migration from legacy settings files (
.migrated) - Custom OpenAI-compatible provider (
custom_openai)
- Unified settings system in
📁 Key Paths (Source of Truth)
- Main app:
Supervertaler.py - Modules:
modules/ - Tests:
tests/ - Changelog:
CHANGELOG.md - Version source:
pyproject.toml - Website version mention:
docs/index.html - Unified settings:
settings/settings.json - Archived full agent reference:
docs/agent-archive/AGENTS_FULL_REFERENCE_v1.9.240_2026-02-08.md
🏗️ Settings Architecture (v1.9.240+)
Primary config:
settings/settings.json
Top-level sections:
api_keysgeneraluifeatures
Satellite files under settings/:
themes.jsonshortcuts.jsonrecent_projects.jsonfind_replace_history.jsonsuperlookup_history.jsonvoice_commands.jsonmodel_version_cache.json
Migration behavior:
- Legacy settings files are migrated at startup and renamed to
.migrated.
🔑 API Keys
Primary storage:
settings/settings.jsonunderapi_keys
Compatibility:
- Legacy
api_keys.txtremains supported as fallback input.
Common key names:
openai,claude,google,gemini,custom_openai,deepl,google_translate,ollama_endpoint
Notes:
googleandgeminiare aliases.custom_openaisupports OpenAI-compatible endpoints (endpoint/model configured in Settings > AI Settings).
🔌 LLM Providers
Supported providers:
openaiclaudegeminiollamacustom_openai
Relevant implementation files:
modules/llm_clients.pySupervertaler.py(settings UI and provider wiring)
🧪 Testing Quick Start
Run:
pytest tests/
Manual smoke test checklist:
- Import DOCX, translate, export
- Save/load
.svproj - TM and termbase behavior
- AI translation with configured keys
- SDLPPX round-trip
📦 Release Checklist
- Update version in
pyproject.toml. - Update release notes in
CHANGELOG.md. - Update version mention in
docs/index.html. - Validate main workflows.
- Build and upload:
python -m build
python -m twine upload dist/supervertaler-<version>*
Windows EXE packaging:
build_windows_release.ps1(core/full)
⚠️ High-Value Pitfalls
Supervertaler.pyis large: read/edit by line range, not full-file stream.- Qt table access: use
cellWidget()for editors anditem()for plain items. - Block signals during programmatic text updates to avoid cascades.
- Style issues can be timing-related (hidden widgets, deferred visibility).
- XML namespace formats (SDLXLIFF): always use namespace dicts.
📌 Active Priorities
- Keep unified settings and migration stable.
- Continue reducing monolith pressure in
Supervertaler.py. - Maintain release reliability (PyPI + Windows core/full artifacts).
- Keep this file short and operationally focused.
📚 Archived Reference
The full historical/long-form agent document is preserved at:
docs/agent-archive/AGENTS_FULL_REFERENCE_v1.9.240_2026-02-08.md
When context is limited, use this compact file first and open the archive only when needed.