Session state: detect layout first. V2: read docs/state.md, then this file, then conventions; V1: read docs/handoff.md, then this file, then conventions.
Full conventions reference: docs/conventions.md - LLM-targeted pattern library. Every convention follows the six-field schema (Applies-when / Rule / Code / Why / Sources / Related) with a Quick Reference table at the top for O(1) lookup. Do not introduce new patterns without checking conventions first.
Detailed review workflows: AGENTS.reviews.md - read this only for review-related tasks (review planning, review sweeps, code/security/test/etc. reviews). The verbose per-review routing, defaults, and orchestrator notes live there.
PySide6 desktop app for text processing on Linux. Uses MVVM with Qt Designer .ui files.
- Run
.agents/branch_protection.pybefore file modifications. - Work on
testing, notmain.
pytest tests/
mypy src/
black src/ tests/
isort src/ tests/- MVVM separation is strict: models and services stay Qt-free, views stay thin, viewmodels never reach directly into widgets.
- UI structure comes from Qt Designer
.uifiles; object names are part of the contract with the view layer. - Each viewmodel defines its
ServiceProtocolin the same file as the viewmodel. - Use signals for cross-layer communication. Long-running work must not block the UI thread.