The control station of the AIMsight diagnostic: see, analyze, launch. The Data page shows the curves, the camera images, the labels and the detectors' events; its Analysis and Support tabs launch, by `claude -p`, processes whose code lives in the other repositories:
- **"Analyze the range"**: the `analyst` of the agents repository, on a chosen range, with the app's instructions (`instructions/analyst.md`) and without the detectors (`DETECTORS: no`): labels, submitted to `labeling/auto/`, and a diagnostic report;
- **"Optimize the detectors"**, on a finished analysis: `/optimize` in Optimizer, on the analysis: it improves the detectors on the range of the analysis, its labels as truth, without overfitting; then it brings the analyst's scripts into the reading harness (tools repository);
- **"Ask the support"** (Support tab): the `support` of the agents repository, on a chosen range, with a question and the app's instructions (`instructions/support.md`): it answers as it judges best, itself or through the analyst it launches; its answer and its work in `labeling/auto/support/`, its analyst's labels submitted nowhere.
The **Conversations** page pumps the LibreDesk conversations (the thread, its images and attachments), read-only, through `~/aimsight-libredesk` (`conversations/`), into `labeling/auto/conversations/<reference>/`: for the support, and as training data. Nothing is ever written to LibreDesk.
-`instructions/analyst.md`: what the app asks of the analyst (output folder, report, dialogue); `instructions/support.md`, of the support (how free it is, its answer, dialogue).
| `libredesk/` | `~/aimsight-libredesk` | pumps the LibreDesk conversations (`conversations/pulling.py`, its key in its `.env`) into `labeling/auto/conversations/` |
Each thing is committed in its own repository: the labels in `~/aimsight-labeling`, the detectors in `~/aimsight-detectors` (the optimization session does it, without pushing), the tools in `~/aimsight-tools` (the same session, through the upgrader).
Without VS Code, the app runs as a systemd user service of WSL (`app/aimsight-app.service`, with `systemd=true` in `/etc/wsl.conf`), started with WSL; the page stays on `http://127.0.0.1:8770`. Once:
After a change of the code, a restart rebuilds the page and relaunches the server: `systemctl --user restart aimsight-app`. The log: `journalctl --user -u aimsight-app -f`. Stop it before launching the VS Code task **Run app** (same port).
The pumping is in the `~/aimsight-data` repository (`extraction/`, VS Code tasks **pump** and **pump a range**); user guide `~/aimsight-data/extraction/README.md`.
- the labels: `python3 labeling/scripts/validate.py` (the labels submitted by the app do not have `review` yet, which it requires: as many expected errors);