revigil 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. revigil-0.1.0/.gitignore +31 -0
  2. revigil-0.1.0/CHANGELOG.md +12 -0
  3. revigil-0.1.0/LICENSE +21 -0
  4. revigil-0.1.0/PKG-INFO +373 -0
  5. revigil-0.1.0/README.md +328 -0
  6. revigil-0.1.0/benchmarks/README.md +37 -0
  7. revigil-0.1.0/benchmarks/RESULTS.md +13 -0
  8. revigil-0.1.0/benchmarks/chart.py +114 -0
  9. revigil-0.1.0/benchmarks/gold.json +39 -0
  10. revigil-0.1.0/benchmarks/manuscript_a.txt +40 -0
  11. revigil-0.1.0/benchmarks/manuscript_b.txt +30 -0
  12. revigil-0.1.0/benchmarks/results.json +523 -0
  13. revigil-0.1.0/benchmarks/run.py +128 -0
  14. revigil-0.1.0/packaging/frame_screenshots.py +60 -0
  15. revigil-0.1.0/packaging/icon-source.jpg +0 -0
  16. revigil-0.1.0/packaging/make_icons.py +63 -0
  17. revigil-0.1.0/packaging/revigil.spec +24 -0
  18. revigil-0.1.0/packaging/revigil_entry.py +7 -0
  19. revigil-0.1.0/pyproject.toml +66 -0
  20. revigil-0.1.0/src/revigil/__init__.py +12 -0
  21. revigil-0.1.0/src/revigil/__main__.py +6 -0
  22. revigil-0.1.0/src/revigil/ai.py +194 -0
  23. revigil-0.1.0/src/revigil/aicheck.py +193 -0
  24. revigil-0.1.0/src/revigil/assets/favicon.png +0 -0
  25. revigil-0.1.0/src/revigil/assets/icon-1024.png +0 -0
  26. revigil-0.1.0/src/revigil/assets/icon-256.png +0 -0
  27. revigil-0.1.0/src/revigil/assets/revigil.ico +0 -0
  28. revigil-0.1.0/src/revigil/assets/tray.png +0 -0
  29. revigil-0.1.0/src/revigil/authorcheck.py +108 -0
  30. revigil-0.1.0/src/revigil/cli.py +148 -0
  31. revigil-0.1.0/src/revigil/config.py +205 -0
  32. revigil-0.1.0/src/revigil/data/AGREEMENT.md +41 -0
  33. revigil-0.1.0/src/revigil/data/article_template.json +33 -0
  34. revigil-0.1.0/src/revigil/data/benchmark.json +41 -0
  35. revigil-0.1.0/src/revigil/demo.py +161 -0
  36. revigil-0.1.0/src/revigil/image_forensics.py +305 -0
  37. revigil-0.1.0/src/revigil/intake.py +217 -0
  38. revigil-0.1.0/src/revigil/integrity.py +280 -0
  39. revigil-0.1.0/src/revigil/lookup.py +49 -0
  40. revigil-0.1.0/src/revigil/mailwatch.py +913 -0
  41. revigil-0.1.0/src/revigil/prepare.py +310 -0
  42. revigil-0.1.0/src/revigil/refcheck.py +207 -0
  43. revigil-0.1.0/src/revigil/server.py +386 -0
  44. revigil-0.1.0/src/revigil/shortcuts.py +56 -0
  45. revigil-0.1.0/src/revigil/store.py +275 -0
  46. revigil-0.1.0/src/revigil/tray.py +136 -0
  47. revigil-0.1.0/src/revigil/web/app.js +593 -0
  48. revigil-0.1.0/src/revigil/web/help/article.png +0 -0
  49. revigil-0.1.0/src/revigil/web/help/mail.png +0 -0
  50. revigil-0.1.0/src/revigil/web/help/overview.png +0 -0
  51. revigil-0.1.0/src/revigil/web/help/popup365.png +0 -0
  52. revigil-0.1.0/src/revigil/web/help/settings.png +0 -0
  53. revigil-0.1.0/src/revigil/web/help.js +105 -0
  54. revigil-0.1.0/src/revigil/web/index.html +40 -0
  55. revigil-0.1.0/src/revigil/web/style.css +104 -0
  56. revigil-0.1.0/tests/conftest.py +18 -0
  57. revigil-0.1.0/tests/test_checks.py +98 -0
  58. revigil-0.1.0/tests/test_server.py +58 -0
@@ -0,0 +1,31 @@
1
+ # Manuscripts under review are confidential: never commit a workspace, article or review.
2
+ articles/
3
+ reviews/
4
+ private/
5
+ revigil-demo/
6
+ *.pdf
7
+ *.docx
8
+ *.doc
9
+ *.xlsx
10
+ *.csv
11
+ *.zip
12
+ *.eml
13
+
14
+ # Python / build
15
+ __pycache__/
16
+ *.pyc
17
+ *.egg-info/
18
+ build/
19
+ dist/
20
+ .pytest_cache/
21
+ .venv/
22
+
23
+ # OS / editor
24
+ .DS_Store
25
+ Thumbs.db
26
+ *.swp
27
+ .claude/settings.local.json
28
+ brainny-out/
29
+ benchmarks/run.log
30
+ build-exe.log
31
+ build-pkg.log
@@ -0,0 +1,12 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0 (2026-12-02)
4
+
5
+ First public release, split out of ReviewerManager.
6
+
7
+ - Installable with pip (`pip install revigil[all]`) and as a Windows program (`Revigil.exe`), with a cross-platform tray (pystray) instead of the PowerShell tray.
8
+ - Workspace setting (`--workspace`, `REVIGIL_WORKSPACE`, Settings) instead of paths inside the source tree; data in the standard per-OS folder.
9
+ - Reviewer agreement on first start: manuscripts are confidential, most journals forbid cloud AI, the reviewer is responsible.
10
+ - Local AI through Ollama with benchmarked open models (default chosen by `benchmarks/run.py`); cloud AI (Claude Code) is off by default and needs a per-article confirmation.
11
+ - New check: local AI reading (abstract against results, support for each claim, citations that do not fit).
12
+ - Fixes: folders with spaces when opening or forwarding mail; concurrent polls and dashboard edits losing mail events or sending alerts twice; a double click starting a check twice; plain numbers counted as citations; P values with a trailing zero checked too loosely; old mail coming back as new after 20,000 messages; 500 errors on bad numbers; LibreOffice not found on Windows; placeholder due dates listed as due; DOIs with special characters; logging that could crash on non-Latin text or in the windowed program.
revigil-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Alsamman Alsamman
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
revigil-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,373 @@
1
+ Metadata-Version: 2.5
2
+ Name: revigil
3
+ Version: 0.1.0
4
+ Summary: Keep watch over your peer reviews: review mail, Web of Science credit, data-integrity and reference checks, and local AI that never sends a manuscript to the cloud.
5
+ Project-URL: Homepage, https://github.com/AlsammanAlsamman/revigil
6
+ Project-URL: Issues, https://github.com/AlsammanAlsamman/revigil/issues
7
+ Author: Alsamman Alsamman
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Keywords: GRIM,Web of Science,data fabrication,local AI,ollama,peer review,research integrity,reviewer,statcheck
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Environment :: Web Environment
13
+ Classifier: Environment :: Win32 (MS Windows)
14
+ Classifier: Intended Audience :: Science/Research
15
+ Classifier: Operating System :: MacOS
16
+ Classifier: Operating System :: Microsoft :: Windows
17
+ Classifier: Operating System :: POSIX :: Linux
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Topic :: Communications :: Email
20
+ Classifier: Topic :: Scientific/Engineering
21
+ Requires-Python: >=3.10
22
+ Requires-Dist: keyring>=24
23
+ Requires-Dist: numpy>=1.26
24
+ Requires-Dist: openpyxl>=3.1
25
+ Requires-Dist: pillow>=10.0
26
+ Requires-Dist: platformdirs>=4
27
+ Requires-Dist: pymupdf>=1.24
28
+ Requires-Dist: python-docx>=1.1
29
+ Requires-Dist: python-pptx>=0.6
30
+ Requires-Dist: requests>=2.31
31
+ Requires-Dist: scipy>=1.11
32
+ Provides-Extra: all
33
+ Requires-Dist: opencv-python-headless>=4.8; extra == 'all'
34
+ Requires-Dist: pystray>=0.19; extra == 'all'
35
+ Provides-Extra: dev
36
+ Requires-Dist: build; extra == 'dev'
37
+ Requires-Dist: pyinstaller>=6; extra == 'dev'
38
+ Requires-Dist: pytest>=8; extra == 'dev'
39
+ Requires-Dist: twine; extra == 'dev'
40
+ Provides-Extra: images
41
+ Requires-Dist: opencv-python-headless>=4.8; extra == 'images'
42
+ Provides-Extra: tray
43
+ Requires-Dist: pystray>=0.19; extra == 'tray'
44
+ Description-Content-Type: text/markdown
45
+
46
+ <div align="center">
47
+
48
+ <img src="https://raw.githubusercontent.com/AlsammanAlsamman/revigil/main/src/revigil/assets/icon-256.png" width="132" alt="Revigil logo">
49
+
50
+ # Revigil
51
+
52
+ ### Keep watch over your peer reviews.
53
+
54
+ **Organised. In control. Confidential.**<br>
55
+ A reviewer's workbench for the age of AI-written manuscripts: every review e-mail in one place,<br>
56
+ mechanical checks for errors and fabricated data, and AI that runs **on your own computer**.
57
+
58
+ [![PyPI](https://img.shields.io/pypi/v/revigil?color=1f6f5c&label=PyPI&logo=pypi&logoColor=white)](https://pypi.org/project/revigil/)
59
+ [![Python](https://img.shields.io/pypi/pyversions/revigil?color=1f6f5c&logo=python&logoColor=white)](https://pypi.org/project/revigil/)
60
+ [![License: MIT](https://img.shields.io/badge/license-MIT-1f6f5c)](https://github.com/AlsammanAlsamman/revigil/blob/main/LICENSE)
61
+ [![Platforms](https://img.shields.io/badge/Windows%20%C2%B7%20macOS%20%C2%B7%20Linux-1f6f5c)](#install)
62
+ [![Local AI](https://img.shields.io/badge/AI-local%20only-2e8b57)](#-local-ai-that-never-leaves-your-computer)
63
+ [![Manuscripts](https://img.shields.io/badge/manuscripts-never%20uploaded-2e8b57)](#-the-reviewer-agreement)
64
+
65
+ [Why](#why-revigil) ยท [Features](#what-revigil-does-for-you) ยท [Install](#install) ยท [Local AI](#-local-ai-that-never-leaves-your-computer) ยท [Privacy](#what-stays-on-your-computer) ยท [FAQ](#questions-reviewers-ask)
66
+
67
+ <br>
68
+
69
+ <img src="https://raw.githubusercontent.com/AlsammanAlsamman/revigil/main/docs/screenshots/overview.png" alt="Revigil dashboard: reviews, rounds, points raised, recommendations, journals and deadlines" width="900">
70
+
71
+ </div>
72
+
73
+ ---
74
+
75
+ ## Why Revigil
76
+
77
+ > *I am the son of reviewers who worked with a pen. They read every table, recomputed what looked odd, looked up the references they did not know, and wrote in the margins. Checking everything yourself is still the heart of peer review. What has changed is the volume and the tricks.*
78
+
79
+ Generative AI has made manuscripts cheap to produce. Journals receive more submissions than ever. Some are careless, some are padded, and some report data that were never measured. Reviewers get more invitations, shorter deadlines and more reminders.
80
+
81
+ The easy answer is to paste the manuscript into a chatbot and let it write the report. That breaks the confidentiality the authors trusted us with, and most journals forbid it. Worse, it gives away the one thing that makes review worth anything: a person who understands the work and stands behind the judgement. **If we turn our backs on review and hand it to AI, we will lose the ability to tell good science from bad, and no one will be left to fix it.**
82
+
83
+ Revigil takes the other road. It keeps you **organised**, does the **mechanical checking** in seconds, and uses AI only as a **magnifying glass on your own computer**. It points at places to look, and you do the judging. The goal is a reviewer community that is better prepared, not one that has been replaced.
84
+
85
+ <table>
86
+ <tr>
87
+ <td width="33%" valign="top">
88
+
89
+ ### ๐Ÿ—‚๏ธ Organised
90
+ Invitations, reminders, receipts and decisions from all your mailboxes, gathered into **one row per manuscript**: deadlines, rounds, what you still owe. Finished reviews are credited to **Web of Science** automatically.
91
+
92
+ </td>
93
+ <td width="33%" valign="top">
94
+
95
+ ### ๐Ÿ” In control
96
+ P values recomputed, confidence intervals and percentages checked, **GRIM** and digit tests, **duplicated or cloned images**, every reference looked up for **existence and retraction**. Signals, never verdicts.
97
+
98
+ </td>
99
+ <td width="33%" valign="top">
100
+
101
+ ### ๐Ÿ”’ Confidential
102
+ The AI is an **open model running locally**. It compares the abstract with the results, tests each claim against the data, and flags citations that do not fit. **The manuscript never leaves your machine.**
103
+
104
+ </td>
105
+ </tr>
106
+ </table>
107
+
108
+ ---
109
+
110
+ ## What Revigil does for you
111
+
112
+ ### ๐Ÿงช Check a manuscript in minutes, not hours
113
+
114
+ Open an article and run the checks a meticulous reviewer would do by hand:
115
+
116
+ - **Data-integrity screen:**
117
+ - Recomputes P from t, F, ฯ‡ยฒ, r and z (statcheck-style), and P from OR/HR with their 95% CI.
118
+ - Checks CI symmetry on the log scale, `a/b (c%)` percentages and GRIM.
119
+ - Tests last-digit uniformity and looks for repeated values and duplicated table rows.
120
+ - Finds duplicated, rotated, cropped or cloned images.
121
+ - **Reference check:** every reference is looked up in Crossref. Does it exist, do year, author and DOI agree, is it retracted or under an expression of concern, and where in the text is it cited?
122
+ - **Author background:** OpenAlex profiles, retractions, the self-citation share, and papers co-authored with you (conflict of interest).
123
+
124
+ <p align="center"><img src="https://raw.githubusercontent.com/AlsammanAlsamman/revigil/main/docs/screenshots/article-checks.png" alt="Article page: rounds, data-integrity screen, reference check and author background" width="900"></p>
125
+
126
+ ### ๐Ÿค– A second pair of eyes that stays on your desk
127
+
128
+ The **local AI reading** goes through the manuscript the way a careful co-reviewer would:
129
+
130
+ - ๐Ÿ“‘ **Abstract vs. results:** numbers or statements in the abstract that the body contradicts. A changed P value, follow-up time or sample size is a classic sign of careless or fabricated data.
131
+ - โš–๏ธ **Claims vs. evidence:** is each main claim backed by data, only weakly (a subgroup, an association sold as a cause), contradicted, or not supported at all?
132
+ - ๐Ÿ”— **Citations vs. sentences:** does the cited paper plausibly support the sentence that cites it?
133
+
134
+ Below is the real output of the default model on an invented test manuscript. It found all four planted inconsistencies.
135
+
136
+ <p align="center"><img src="https://raw.githubusercontent.com/AlsammanAlsamman/revigil/main/docs/screenshots/ai-reading.png" alt="Local AI reading: four mismatches between abstract and results found by a local model" width="900"></p>
137
+
138
+ > [!NOTE]
139
+ > Like every check in Revigil, the AI gives **signals to verify, not findings**. Small models make mistakes. Read the passage, judge it yourself, and write your own review.
140
+
141
+ ### ๐Ÿ“ฌ Never miss an invitation, a deadline or your credit
142
+
143
+ Revigil watches your mailboxes (read only), recognises invitations, reminders, receipts, decisions and cancellations, and links them to your articles. **To review now** lists what is waiting, oldest first, with the days since the journal asked. When the editor's final decision arrives, the journal's "thank you" e-mail is **forwarded to Web of Science** so the review counts on your profile, after a click or automatically.
144
+
145
+ <p align="center"><img src="https://raw.githubusercontent.com/AlsammanAlsamman/revigil/main/docs/screenshots/mail.png" alt="Mail and Web of Science: invitations, reminders, receipts and decisions grouped by manuscript" width="900"></p>
146
+
147
+ ### ๐Ÿ“ˆ See yourself grow as a reviewer
148
+
149
+ Articles reviewed, rounds, points raised per section, your recommendations, journals, **how many of your earlier comments the authors actually followed**, and a timeline of how your reviewing checklist improved.
150
+
151
+ ---
152
+
153
+ ## ๐Ÿ”’ Local AI that never leaves your computer
154
+
155
+ Revigil runs open models through [Ollama](https://ollama.com) on your own computer. On first start it offers to install Ollama and download the recommended model. You can switch models at any time in **Settings โ†’ Local AI**.
156
+
157
+ <p align="center"><img src="https://raw.githubusercontent.com/AlsammanAlsamman/revigil/main/docs/screenshots/local-ai.png" alt="Settings: local models with benchmark scores, sizes, speeds and licences" width="900"></p>
158
+
159
+ **How the default was chosen.** We did not use generic leaderboards. Seven open models under 8 GB were tested on Revigil's own tasks, using invented manuscripts:
160
+
161
+ - **Manuscript A** has planted problems:
162
+ - a P value, a follow-up time and a subgroup result that differ between abstract and results
163
+ - an overclaimed dose-response
164
+ - a causal claim from observational data
165
+ - a trap that looks like an error but isn't
166
+ - **Manuscript B** is clean, to catch models that cry wolf.
167
+ - **Eight sentence/reference pairs** with known answers test the citation check.
168
+
169
+ <p align="center">
170
+ <picture>
171
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/AlsammanAlsamman/revigil/main/docs/benchmark-dark.svg">
172
+ <img src="https://raw.githubusercontent.com/AlsammanAlsamman/revigil/main/docs/benchmark-light.svg" alt="Benchmark of seven local models on Revigil's reviewer tasks: Qwen 3.5 4B scores 100, Qwen 3.5 9B and Gemma 4 E4B 91, Gemma 3 4B 67, Granite 4 3B 63, Llama 3.2 3B 59, Phi-4 mini 46" width="900">
173
+ </picture>
174
+ </p>
175
+
176
+ <details>
177
+ <summary><b>๐Ÿ“Š Exact numbers per task</b></summary>
178
+ <br>
179
+
180
+ | | Model | Score | Errors found | False alarms | Claims | Citations | Download | Speed | License |
181
+ |:-:|---|:-:|:-:|:-:|:-:|:-:|:-:|:-:|---|
182
+ | ๐Ÿฅ‡ | **Qwen 3.5 4B** โญ default<br><sub>`qwen3.5:4b` ยท Alibaba Qwen</sub> | **100** | โœ… 4/4 | โœ… 0 | 100% | 100% | 3.3 GB | 86 tok/s | Apache-2.0 |
183
+ | ๐Ÿฅˆ | **Qwen 3.5 9B**<br><sub>`qwen3.5:9b` ยท Alibaba Qwen</sub> | **91.2** | โœ… 4/4 | โš ๏ธ 2 | 100% | 100% | 6.6 GB | 53 tok/s | Apache-2.0 |
184
+ | ๐Ÿฅ‰ | **Gemma 4 E4B**<br><sub>`gemma4:e4b` ยท Google DeepMind</sub> | **91.2** | โœ… 4/4 | โš ๏ธ 3 | 100% | 100% | 6.6 GB | 171 tok/s | Gemma terms of use |
185
+ | 4 | **Gemma 3 4B**<br><sub>`gemma3:4b` ยท Google DeepMind</sub> | **66.7** | โš ๏ธ 3/4 | โš ๏ธ 3 | 40% | 100% | 3.4 GB | 97 tok/s | Gemma terms of use |
186
+ | 5 | **Granite 4 3B**<br><sub>`granite4:3b` ยท IBM</sub> | **62.7** | โš ๏ธ 3/4 | โš ๏ธ 2 | 60% | 50% | 2.1 GB | 118 tok/s | Apache-2.0 |
187
+ | 6 | **Llama 3.2 3B**<br><sub>`llama3.2:3b` ยท Meta</sub> | **59.2** | โœ… 4/4 | โŒ 7 | 60% | 0% | 2 GB | 130 tok/s | Llama 3.2 community license |
188
+ | 7 | **Phi-4 mini 3.8B**<br><sub>`phi4-mini` ยท Microsoft</sub> | **45.5** | โŒ 0/4 | โŒ 4 | 60% | 62% | 2.5 GB | 105 tok/s | MIT |
189
+
190
+ <sub>**Errors found:** of the 4 mismatches planted between abstract and results. **False alarms:** mismatches reported on a clean manuscript that has none. **Claims:** 5 claims judged as supported / weak / contradicted as expected. **Citations:** 8 sentenceโ€“reference pairs judged correctly.</sub>
191
+
192
+ </details>
193
+
194
+ Run on one NVIDIA RTX 4000 Ada (20 GB). A laptop without a GPU is several times slower, but the 3.3 GB default fits in 8 GB of memory. A perfect score means this small benchmark can no longer tell the best models apart. It shows a model can do Revigil's tasks; it does not prove it will catch everything in a real manuscript. Reproduce it with `python benchmarks/run.py` ([details](https://github.com/AlsammanAlsamman/revigil/blob/main/benchmarks/README.md)).
195
+
196
+ ---
197
+
198
+ ## ๐Ÿ“œ The reviewer agreement
199
+
200
+ Nothing runs until you accept it, the first time Revigil starts.
201
+
202
+ <table>
203
+ <tr>
204
+ <td width="52%" valign="top">
205
+
206
+ 1. **A manuscript under review is confidential.**
207
+ 2. **Most journals and funders forbid uploading it, or any part of it, to cloud AI** such as ChatGPT, Claude, Gemini or Copilot. Examples: Elsevier, the ICMJE recommendations, the US NIH (NOT-OD-23-149) and the *Science* journals. Some forbid any AI help at all.
208
+ 3. **You, the reviewer, are responsible** for following each journal's policy. Revigil cannot know it.
209
+ 4. **Local AI is the default.** Cloud AI is off. It can be switched on only with a separate confirmation, and Revigil then asks again **for every article**.
210
+ 5. **Signals, not verdicts.** The review is yours.
211
+
212
+ [Read the full agreement โ†’](https://github.com/AlsammanAlsamman/revigil/blob/main/src/revigil/data/AGREEMENT.md)
213
+
214
+ </td>
215
+ <td width="48%" valign="top">
216
+
217
+ <img src="https://raw.githubusercontent.com/AlsammanAlsamman/revigil/main/docs/screenshots/agreement.png" alt="The reviewer agreement shown on first start" width="100%">
218
+
219
+ </td>
220
+ </tr>
221
+ </table>
222
+
223
+ ---
224
+
225
+ ## Install
226
+
227
+ <table>
228
+ <tr>
229
+ <td width="50%" valign="top">
230
+
231
+ ### ๐Ÿ pip (Windows, macOS, Linux)
232
+
233
+ Revigil is on [**PyPI**](https://pypi.org/project/revigil/). With Python 3.10 or newer:
234
+
235
+ ```bash
236
+ pip install "revigil[all]"
237
+ revigil
238
+ ```
239
+
240
+ A green **R** appears next to the clock and the dashboard opens at `http://127.0.0.1:4310`. `[all]` adds the tray icon and the crop/clone image checks. A plain `pip install revigil` opens the dashboard in your browser instead.
241
+
242
+ On Windows, add Start menu, Desktop and sign-in shortcuts once:
243
+
244
+ ```bash
245
+ revigil install-shortcuts
246
+ ```
247
+
248
+ Update later with `pip install -U "revigil[all]"`.
249
+
250
+ </td>
251
+ <td width="50%" valign="top">
252
+
253
+ ### ๐ŸชŸ Windows program (no Python needed)
254
+
255
+ A ready-to-run `Revigil.exe` will be attached to each [**GitHub release**](https://github.com/AlsammanAlsamman/revigil/releases), starting with the first one:
256
+
257
+ 1. Download `Revigil-<version>-windows.zip` and unzip it anywhere.
258
+ 2. Run **`Revigil.exe`**.
259
+ 3. Optional: run `revigil-cli install-shortcuts` in that folder.
260
+
261
+ Until then, use pip, or build it yourself with `pyinstaller packaging/revigil.spec` (see *Development* below).
262
+
263
+ </td>
264
+ </tr>
265
+ </table>
266
+
267
+ **Local AI** needs [Ollama](https://ollama.com/download). On Windows, Revigil installs it for you when you agree. On macOS and Linux, install it first, and Revigil downloads the model.
268
+
269
+ **First steps:**
270
+ 1. Accept the agreement.
271
+ 2. Let Revigil fetch the local model.
272
+ 3. Add your review mailbox in **Settings**. Gmail needs an app password.
273
+ 4. Click **Process now** on an invitation, drop the manuscript files into the folder that opens, and run the checks.
274
+
275
+ ---
276
+
277
+ ## What stays on your computer
278
+
279
+ | | Where it goes |
280
+ |---|---|
281
+ | ๐Ÿ“„ **Manuscripts, reviews, check results** | Your workspace (`Documents/Revigil` by default). **Never uploaded**, unless you turn cloud AI on *and* confirm it for that article. Keep it out of any public repository. |
282
+ | ๐Ÿค– **AI reading** | A local model through Ollama on `127.0.0.1` |
283
+ | ๐Ÿ”‘ **Mailbox passwords** | Your operating system's credential store (Windows Credential Manager, macOS Keychain), never a file |
284
+ | ๐Ÿ“š **Reference text and author names** | Crossref and OpenAlex (public bibliographic databases), only when you run those checks |
285
+ | โœ‰๏ธ **E-mail** | Read only. Revigil sends mail only to forward a receipt to Web of Science or to alert addresses you added. |
286
+ | โš™๏ธ **Settings, mail log, cache** | `%LOCALAPPDATA%\Revigil` ยท `~/Library/Application Support/Revigil` ยท `~/.local/share/Revigil` |
287
+
288
+ The dashboard listens on `127.0.0.1` only, checks the Host header, and requires a per-session token for every action, so other websites cannot drive it.
289
+
290
+ ---
291
+
292
+ ## Questions reviewers ask
293
+
294
+ <details>
295
+ <summary><b>Is using Revigil allowed by my journal?</b></summary>
296
+
297
+ Revigil's organising, mail and mechanical checks never share the manuscript. The local AI keeps it on your computer, which most policies aim to protect. Some journals, however, forbid **any** AI assistance, even local. Read the reviewer guidelines of each journal, and disclose AI use if they ask. You can switch the local AI off in Settings.
298
+ </details>
299
+
300
+ <details>
301
+ <summary><b>Does Revigil write my review?</b></summary>
302
+
303
+ No, on purpose. It points at places to look: a recomputed P value that disagrees, an abstract that contradicts the results, a retracted reference. You read, you judge, you write.
304
+ </details>
305
+
306
+ <details>
307
+ <summary><b>Do I need a powerful computer?</b></summary>
308
+
309
+ No. The default model is a 3.3 GB download and runs in 8 GB of memory, faster with a GPU but fine without one. The mechanical checks run on any computer.
310
+ </details>
311
+
312
+ <details>
313
+ <summary><b>Which mailboxes work?</b></summary>
314
+
315
+ Any IMAP mailbox: Gmail and Google Workspace (with an app password), Outlook.com, Yahoo, iCloud, Zoho and most university servers. Revigil detects the servers from your address. Many Microsoft 365 work accounts block password logins; the in-app help shows the work-arounds.
316
+ </details>
317
+
318
+ <details>
319
+ <summary><b>How does the Web of Science credit work?</b></summary>
320
+
321
+ Web of Science Reviewer Recognition adds a review to your profile when the journal's "thank you for your review" e-mail is forwarded to `reviews@webofscience.com` from an address on your profile. Revigil waits for the editor's final decision, then forwards that e-mail, after your click or automatically.
322
+ </details>
323
+
324
+ <details>
325
+ <summary><b>Can I try it without my own data?</b></summary>
326
+
327
+ Yes: `revigil demo my-demo` writes invented articles, checks and e-mails, and `revigil --workspace my-demo serve --no-watch` shows them. The screenshots on this page were made that way.
328
+ </details>
329
+
330
+ ---
331
+
332
+ <details>
333
+ <summary><b>โŒจ๏ธ Command line</b></summary>
334
+
335
+ ```text
336
+ revigil tray icon + dashboard (http://127.0.0.1:4310)
337
+ revigil serve [--port N] dashboard server and mail watcher, no tray
338
+ revigil prepare <id> [--round N] move downloaded files into the round folder and extract them
339
+ revigil check <id> [integrity|references|authors|ai|all]
340
+ revigil ai status | models | pull [MODEL] | install
341
+ revigil demo <folder> invented data to try Revigil
342
+ revigil install-shortcuts Windows Start menu, Desktop and sign-in shortcuts
343
+ ```
344
+ Global option: `--workspace FOLDER` (or `REVIGIL_WORKSPACE`).
345
+ </details>
346
+
347
+ <details>
348
+ <summary><b>๐Ÿ› ๏ธ Development and releases</b></summary>
349
+
350
+ ```bash
351
+ git clone https://github.com/AlsammanAlsamman/revigil
352
+ cd revigil
353
+ pip install -e ".[all,dev]"
354
+ pytest
355
+ python benchmarks/run.py # local model benchmark (needs Ollama and the models)
356
+ python packaging/make_icons.py # icons from packaging/icon-source.jpg
357
+ pyinstaller packaging/revigil.spec # dist/Revigil/Revigil.exe and revigil-cli.exe
358
+ ```
359
+
360
+ A release is a tag `v<version>`. GitHub Actions tests on Windows, macOS and Linux, publishes the wheel to PyPI (trusted publishing), and attaches the Windows program to the release.
361
+
362
+ Revigil grew out of ReviewerManager, a folder layout with reviewing skills that improve after every article. Point the workspace at such a folder and the **Skill growth** tab shows how the checklist (`.claude/skills/peer-review/lessons.md`) evolved.
363
+ </details>
364
+
365
+ ---
366
+
367
+ <div align="center">
368
+
369
+ **Made for reviewers who still read every table.**
370
+
371
+ MIT licensed ยท Model licences are their makers' (Apache-2.0, MIT, Gemma terms, Llama community license) ยท Revigil downloads a model only when you choose it
372
+
373
+ </div>