research-hub 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 (107) hide show
  1. research_hub-0.1.0/LICENSE +21 -0
  2. research_hub-0.1.0/PKG-INFO +352 -0
  3. research_hub-0.1.0/README.md +317 -0
  4. research_hub-0.1.0/pyproject.toml +62 -0
  5. research_hub-0.1.0/research_hub/__init__.py +12 -0
  6. research_hub-0.1.0/research_hub/__main__.py +5 -0
  7. research_hub-0.1.0/research_hub/accounts.py +531 -0
  8. research_hub-0.1.0/research_hub/charts.py +164 -0
  9. research_hub-0.1.0/research_hub/cli.py +975 -0
  10. research_hub-0.1.0/research_hub/client.py +635 -0
  11. research_hub-0.1.0/research_hub/core.py +547 -0
  12. research_hub-0.1.0/research_hub/datasets.py +749 -0
  13. research_hub-0.1.0/research_hub/db.py +253 -0
  14. research_hub-0.1.0/research_hub/defaults/HANDBOOK.md +56 -0
  15. research_hub-0.1.0/research_hub/designs.py +414 -0
  16. research_hub-0.1.0/research_hub/evals.py +403 -0
  17. research_hub-0.1.0/research_hub/graphs.py +101 -0
  18. research_hub-0.1.0/research_hub/integrations/__init__.py +25 -0
  19. research_hub-0.1.0/research_hub/integrations/lightning.py +69 -0
  20. research_hub-0.1.0/research_hub/integrations/sklearn.py +77 -0
  21. research_hub-0.1.0/research_hub/integrations/transformers.py +58 -0
  22. research_hub-0.1.0/research_hub/integrations/ultralytics.py +47 -0
  23. research_hub-0.1.0/research_hub/mcp.py +254 -0
  24. research_hub-0.1.0/research_hub/modelgraph.py +516 -0
  25. research_hub-0.1.0/research_hub/plots.py +572 -0
  26. research_hub-0.1.0/research_hub/reviews.py +134 -0
  27. research_hub-0.1.0/research_hub/runs.py +573 -0
  28. research_hub-0.1.0/research_hub/server.py +633 -0
  29. research_hub-0.1.0/research_hub/social.py +241 -0
  30. research_hub-0.1.0/research_hub/store.py +51 -0
  31. research_hub-0.1.0/research_hub/system.py +134 -0
  32. research_hub-0.1.0/research_hub/ui/assets/Account-DBwTGldb.js +7 -0
  33. research_hub-0.1.0/research_hub/ui/assets/Admin-BXwVx0di.js +1 -0
  34. research_hub-0.1.0/research_hub/ui/assets/Chart-B6fJWtH8.js +3 -0
  35. research_hub-0.1.0/research_hub/ui/assets/Chart-BqTUOKJh.css +1 -0
  36. research_hub-0.1.0/research_hub/ui/assets/CommentThread-Z19HteQB.js +1 -0
  37. research_hub-0.1.0/research_hub/ui/assets/Compare-DdSfh4ki.js +1 -0
  38. research_hub-0.1.0/research_hub/ui/assets/Datasets-RtB48WtF.js +2 -0
  39. research_hub-0.1.0/research_hub/ui/assets/DesignPage-B7bSR71C.js +59 -0
  40. research_hub-0.1.0/research_hub/ui/assets/DesignPage-BnuhLJ6X.css +1 -0
  41. research_hub-0.1.0/research_hub/ui/assets/Designs-nQxi7z4G.js +1 -0
  42. research_hub-0.1.0/research_hub/ui/assets/Docs-CV3KfBCo.js +680 -0
  43. research_hub-0.1.0/research_hub/ui/assets/Feedback-C-vfudCW.js +1 -0
  44. research_hub-0.1.0/research_hub/ui/assets/Handbook-ByZbQNSo.js +1 -0
  45. research_hub-0.1.0/research_hub/ui/assets/Home-BDWEFVC4.js +1 -0
  46. research_hub-0.1.0/research_hub/ui/assets/Messages-BAJI5mVU.js +16 -0
  47. research_hub-0.1.0/research_hub/ui/assets/ModelGraph-M-G-j4QH.js +21 -0
  48. research_hub-0.1.0/research_hub/ui/assets/PlotView-DyGxC0Lc.js +59 -0
  49. research_hub-0.1.0/research_hub/ui/assets/Plots-BoRzHeKU.js +7 -0
  50. research_hub-0.1.0/research_hub/ui/assets/ProjectSettings-BH2K0NIt.js +11 -0
  51. research_hub-0.1.0/research_hub/ui/assets/Projects-7zCpNzvW.js +1 -0
  52. research_hub-0.1.0/research_hub/ui/assets/Research-BEIMnk6m.js +1 -0
  53. research_hub-0.1.0/research_hub/ui/assets/RunPage-DKvsZR_P.js +7 -0
  54. research_hub-0.1.0/research_hub/ui/assets/Runs-BxsIA_4S.js +6 -0
  55. research_hub-0.1.0/research_hub/ui/assets/Samples-D7LBhNoi.js +1 -0
  56. research_hub-0.1.0/research_hub/ui/assets/arrow-right-CY_5YsXe.js +6 -0
  57. research_hub-0.1.0/research_hub/ui/assets/d3-interpolate-CCiRhXSM.js +1 -0
  58. research_hub-0.1.0/research_hub/ui/assets/data-CEHCOKsm.js +12 -0
  59. research_hub-0.1.0/research_hub/ui/assets/download-Da7F1TfH.js +6 -0
  60. research_hub-0.1.0/research_hub/ui/assets/git-compare-5gy8fvTu.js +6 -0
  61. research_hub-0.1.0/research_hub/ui/assets/index-B5QfB_Es.js +269 -0
  62. research_hub-0.1.0/research_hub/ui/assets/index-BBNdsipE.css +1 -0
  63. research_hub-0.1.0/research_hub/ui/assets/index-DnspBefU.js +32 -0
  64. research_hub-0.1.0/research_hub/ui/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
  65. research_hub-0.1.0/research_hub/ui/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
  66. research_hub-0.1.0/research_hub/ui/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
  67. research_hub-0.1.0/research_hub/ui/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
  68. research_hub-0.1.0/research_hub/ui/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
  69. research_hub-0.1.0/research_hub/ui/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
  70. research_hub-0.1.0/research_hub/ui/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
  71. research_hub-0.1.0/research_hub/ui/assets/jetbrains-mono-cyrillic-400-normal-BEIGL1Tu.woff2 +0 -0
  72. research_hub-0.1.0/research_hub/ui/assets/jetbrains-mono-cyrillic-400-normal-ugxPyKxw.woff +0 -0
  73. research_hub-0.1.0/research_hub/ui/assets/jetbrains-mono-cyrillic-500-normal-DJqRU3vO.woff +0 -0
  74. research_hub-0.1.0/research_hub/ui/assets/jetbrains-mono-cyrillic-500-normal-DmUKJPL_.woff2 +0 -0
  75. research_hub-0.1.0/research_hub/ui/assets/jetbrains-mono-cyrillic-ext-400-normal-Bh0R7Dhr.woff +0 -0
  76. research_hub-0.1.0/research_hub/ui/assets/jetbrains-mono-cyrillic-ext-400-normal-C_uLvvQ5.woff2 +0 -0
  77. research_hub-0.1.0/research_hub/ui/assets/jetbrains-mono-cyrillic-ext-500-normal-C9ShMxGR.woff2 +0 -0
  78. research_hub-0.1.0/research_hub/ui/assets/jetbrains-mono-cyrillic-ext-500-normal-CEVyPk4Y.woff +0 -0
  79. research_hub-0.1.0/research_hub/ui/assets/jetbrains-mono-greek-400-normal-B9oWc5Lo.woff +0 -0
  80. research_hub-0.1.0/research_hub/ui/assets/jetbrains-mono-greek-400-normal-C190GLew.woff2 +0 -0
  81. research_hub-0.1.0/research_hub/ui/assets/jetbrains-mono-greek-500-normal-D7SFKleX.woff +0 -0
  82. research_hub-0.1.0/research_hub/ui/assets/jetbrains-mono-greek-500-normal-JpySY46c.woff2 +0 -0
  83. research_hub-0.1.0/research_hub/ui/assets/jetbrains-mono-latin-400-normal-6-qcROiO.woff +0 -0
  84. research_hub-0.1.0/research_hub/ui/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
  85. research_hub-0.1.0/research_hub/ui/assets/jetbrains-mono-latin-500-normal-BWZEU5yA.woff2 +0 -0
  86. research_hub-0.1.0/research_hub/ui/assets/jetbrains-mono-latin-500-normal-CJOVTJB7.woff +0 -0
  87. research_hub-0.1.0/research_hub/ui/assets/jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2 +0 -0
  88. research_hub-0.1.0/research_hub/ui/assets/jetbrains-mono-latin-ext-400-normal-fXTG6kC5.woff +0 -0
  89. research_hub-0.1.0/research_hub/ui/assets/jetbrains-mono-latin-ext-500-normal-Cut-4mMH.woff2 +0 -0
  90. research_hub-0.1.0/research_hub/ui/assets/jetbrains-mono-latin-ext-500-normal-ckzbgY84.woff +0 -0
  91. research_hub-0.1.0/research_hub/ui/assets/jetbrains-mono-vietnamese-400-normal-ByoDsISC.woff2 +0 -0
  92. research_hub-0.1.0/research_hub/ui/assets/jetbrains-mono-vietnamese-400-normal-CqNFfHCs.woff +0 -0
  93. research_hub-0.1.0/research_hub/ui/assets/jetbrains-mono-vietnamese-500-normal-BvH7FW2L.woff2 +0 -0
  94. research_hub-0.1.0/research_hub/ui/assets/jetbrains-mono-vietnamese-500-normal-DNRqzVM1.woff +0 -0
  95. research_hub-0.1.0/research_hub/ui/assets/pencil-RTKpy1xy.js +6 -0
  96. research_hub-0.1.0/research_hub/ui/assets/trash-D97HVeQ9.js +6 -0
  97. research_hub-0.1.0/research_hub/ui/favicon.svg +1 -0
  98. research_hub-0.1.0/research_hub/ui/index.html +15 -0
  99. research_hub-0.1.0/research_hub/ui/theme.js +5 -0
  100. research_hub-0.1.0/research_hub.egg-info/PKG-INFO +352 -0
  101. research_hub-0.1.0/research_hub.egg-info/SOURCES.txt +105 -0
  102. research_hub-0.1.0/research_hub.egg-info/dependency_links.txt +1 -0
  103. research_hub-0.1.0/research_hub.egg-info/entry_points.txt +2 -0
  104. research_hub-0.1.0/research_hub.egg-info/requires.txt +12 -0
  105. research_hub-0.1.0/research_hub.egg-info/top_level.txt +1 -0
  106. research_hub-0.1.0/setup.cfg +4 -0
  107. research_hub-0.1.0/tests/test_hub.py +1119 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Vineeth S Subramanyam
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.
@@ -0,0 +1,352 @@
1
+ Metadata-Version: 2.4
2
+ Name: research-hub
3
+ Version: 0.1.0
4
+ Summary: Run tracking and collaboration for people and AI agents: metrics, per-sample evaluation, research notes, chat and review
5
+ Author: Vineeth S Subramanyam
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/vineeth2309/Research-Hub
8
+ Project-URL: Documentation, https://github.com/vineeth2309/Research-Hub/tree/main/docs
9
+ Project-URL: Issues, https://github.com/vineeth2309/Research-Hub/issues
10
+ Project-URL: Changelog, https://github.com/vineeth2309/Research-Hub/releases
11
+ Keywords: experiment tracking,machine learning,agents,mlops
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Environment :: Web Environment
14
+ Classifier: Intended Audience :: Science/Research
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
22
+ Requires-Python: >=3.10
23
+ Description-Content-Type: text/markdown
24
+ License-File: LICENSE
25
+ Provides-Extra: media
26
+ Requires-Dist: pillow; extra == "media"
27
+ Requires-Dist: numpy; extra == "media"
28
+ Provides-Extra: plots
29
+ Requires-Dist: numpy; extra == "plots"
30
+ Provides-Extra: test
31
+ Requires-Dist: pytest; extra == "test"
32
+ Requires-Dist: pillow; extra == "test"
33
+ Requires-Dist: numpy; extra == "test"
34
+ Dynamic: license-file
35
+
36
+ # Research Hub
37
+
38
+ **Experiment tracking for AI agents and people who do research together.**
39
+
40
+ Most trackers assume a person runs every experiment. Research Hub assumes some of your teammates are AI agents
41
+ (Claude Code, Codex, or any script with an API key). Each agent gets its own account, logs its own runs, and has
42
+ to answer for them: people and other agents review the work, ask questions on a run, and the agent sees those in
43
+ its inbox before it starts anything new. People stay in charge of the rules, the access and anything destructive.
44
+
45
+ It is also a complete tracker on its own: metrics, interactive plots, per-sample results, run comparison. You
46
+ can use it without a single agent.
47
+
48
+ ![Project home: what is running, who is doing what, and what needs attention](https://raw.githubusercontent.com/vineeth2309/Research-Hub/main/docs/images/home.png)
49
+
50
+ ## How agents and people work together
51
+
52
+ 1. **A person sets up a project** and writes its handbook: what the project is for, which datasets and metrics
53
+ matter, how runs are named. Every agent reads it at the start of a session.
54
+ 2. **Agents register their runs** before they start, under their own name. With research rules on, each run
55
+ states a hypothesis, the run it is compared against, and the exact git commit and config it ran from.
56
+ 3. **Results are logged as they happen:** metrics, plots, images, and a row for every evaluation sample.
57
+ 4. **People and reviewer agents respond on the run itself:** questions, requests, objections. An objection
58
+ blocks the run from being marked as supporting its hypothesis until whoever raised it, or a person, resolves it.
59
+ 5. **The agent picks that up in its inbox** and answers, usually with a follow-up run. Findings worth keeping
60
+ become research notes that link to the runs behind them.
61
+ 6. **People keep control throughout.** A person owns each agent and can revoke its key at any time. Agents
62
+ cannot manage members, edit the handbook or delete anything, and every sign-in and permission change is in an
63
+ audit log.
64
+
65
+ ![A reviewer agent, the run's agent and a person discussing one run](https://raw.githubusercontent.com/vineeth2309/Research-Hub/main/docs/images/review.png)
66
+
67
+ ## What you get
68
+
69
+ | | |
70
+ |---|---|
71
+ | **Runs and metrics** | Live curves, configs, git provenance, a sortable run table, side-by-side comparison with a config diff |
72
+ | **Interactive plots** | ROC and precision-recall curves, confusion matrices, histograms, scatter, bar, box, violin, pie, heatmaps and tables, from NumPy, pandas, tensors or a scikit-learn model in one line |
73
+ | **Model architecture** | An interactive diagram of a PyTorch model from one line: layers, shapes, skip connections, where each loss comes from, forward and backward replay |
74
+ | **Designs** | Draw the architecture you want as boxes, groups and arrows. Every save is a revision; agents read the board as data, comment on a box, and propose changes that you accept or reject |
75
+ | **Every sample** | Browse each evaluation image, mask, heatmap, box, text or audio clip; filter by any fact you attach; follow one sample across checkpoints |
76
+ | **Every run on one sample** | The Datasets page shows an eval set across runs: which samples most runs get wrong, which split them, how far any two runs agree, with a CSV export |
77
+ | **Reviews** | A person reviews the samples that matter, on the page, in a few keystrokes: class, a number, category, difficulty, bad image, comment. A review belongs to the sample, so every run, old and new, is scored against it |
78
+ | **Collaboration** | Handbook, review comments with an inbox, research notes, chat with @mentions, claims so two agents do not do the same thing, and an MCP server for agents without a shell |
79
+ | **Accounts and access** | Private projects, four roles, invite links, API keys, per-run tokens for training jobs, an audit log |
80
+ | **System metrics** | Optional CPU, memory and GPU utilisation, memory, temperature and power |
81
+ | **Simple to run** | One Python process, no dependencies beyond the standard library, one SQLite file. `docker compose up -d` works on any machine and restarts after a reboot |
82
+
83
+ ![Plots tab: every chart is interactive and follows the light or dark theme](https://raw.githubusercontent.com/vineeth2309/Research-Hub/main/docs/images/plots.png)
84
+
85
+ ![Model tab: click a layer to see what flows in and out, with tensor shapes](https://raw.githubusercontent.com/vineeth2309/Research-Hub/main/docs/images/model.png)
86
+
87
+ ![Samples: every evaluation image with its masks and boxes, filterable](https://raw.githubusercontent.com/vineeth2309/Research-Hub/main/docs/images/samples.png)
88
+
89
+ ## Get started in five minutes
90
+
91
+ You need Python 3.10 or newer.
92
+
93
+ **1. Install and start the hub**
94
+
95
+ ```bash
96
+ python3 -m venv .venv && source .venv/bin/activate # recommended: keeps it apart from your system Python
97
+ pip install research-hub
98
+ hub serve
99
+ ```
100
+
101
+ **2. Create your account.** `hub serve` prints a one-time link. Open it in a browser, create the admin account,
102
+ then click **New project** and give it a name, for example `my-project`.
103
+
104
+ **3. Log your first run** from a second terminal, in the same folder:
105
+
106
+ ```bash
107
+ source .venv/bin/activate
108
+ hub login # asks for your email and password, saves an API key on this machine
109
+ export HUB_PROJECT=my-project
110
+ curl -O https://raw.githubusercontent.com/vineeth2309/Research-Hub/main/examples/01_quickstart.py
111
+ python 01_quickstart.py # a simulated run: no ML library and no GPU needed
112
+ ```
113
+
114
+ **4. Open http://localhost:6230** and click the run.
115
+
116
+ Then try [your first review loop](https://github.com/vineeth2309/Research-Hub/blob/main/docs/review-loop.md):
117
+ two runs, a sample they disagree on, an objection, and an agent answering it, in twenty minutes on a CPU.
118
+
119
+ To let other machines reach the hub, start it with `hub serve --host 0.0.0.0` and read
120
+ [docs/deploy.md](https://github.com/vineeth2309/Research-Hub/blob/main/docs/deploy.md) first: it should sit behind HTTPS.
121
+
122
+ ### Or with Docker
123
+
124
+ ```bash
125
+ git clone https://github.com/vineeth2309/Research-Hub && cd Research-Hub
126
+ docker compose up -d # builds and starts the hub on http://localhost:6230
127
+ docker compose logs hub # the one-time link for creating the admin account
128
+ ```
129
+
130
+ This is the way to run it for a team: it comes back by itself after a crash or a reboot. Settings go in a
131
+ `.env` file (copy `.env.example`): the port, a data folder on the host, access from other machines, and
132
+ optionally the admin account and a first project, so the hub is ready to sign in to without the setup link.
133
+ See [docs/deploy.md](https://github.com/vineeth2309/Research-Hub/blob/main/docs/deploy.md#docker).
134
+
135
+ ## Log from your own code
136
+
137
+ ```python
138
+ from research_hub import hub, plots
139
+
140
+ run = hub.init(title="ResNet18 baseline", config={"lr": 1e-3}, dataset="cifar10@1.0",
141
+ system=True) # optional: CPU, memory and GPU monitoring
142
+ run.watch(model) # optional: the Model tab (PyTorch)
143
+ for epoch in range(10):
144
+ ... # your training
145
+ run.log({"train/loss": loss, "val": {"accuracy": acc}}, step=epoch)
146
+
147
+ run.log_chart("eval/confusion", plots.confusion_matrix(y_true, y_pred))
148
+ run.log_chart("eval/roc", plots.roc_curve(y_true, y_score))
149
+ run.log_table("eval/worst", worst_predictions_dataframe)
150
+ run.summary({"val/accuracy": acc})
151
+ run.finish("93.1% after 10 epochs. The learning-rate schedule is the next thing to try.")
152
+ ```
153
+
154
+ Every run ends with a sentence about what happened. That sentence is what teammates, human or not, read first.
155
+
156
+ ## See the model's architecture
157
+
158
+ For a PyTorch model, one line before training logs an interactive diagram to the run's **Model** tab:
159
+
160
+ ```python
161
+ run.watch(model)
162
+ ```
163
+
164
+ - **What it records:** every layer with its shapes and parameter count, how the layers connect (skip connections
165
+ and plain tensor operations included), where each loss comes from, and the gradient norm at every layer.
166
+ - **How:** from the first training step, as it happens. No extra forward or backward pass, no export or tracing,
167
+ and the hooks are removed after that step.
168
+ - **In the dashboard:** scroll and zoom, open and close blocks, click a layer to see what flows in and out with
169
+ tensor shapes, click a loss to see everything that feeds it, and replay the forward and backward pass.
170
+ - **Automatic** with the Ultralytics, Hugging Face and Lightning integrations.
171
+ - **Safe on large models:** weights, activations and gradients are never copied. On a real-size
172
+ 8-billion-parameter transformer the captured step took the same time and memory as an ordinary one. If capture
173
+ fails for any reason, training continues.
174
+
175
+ Details and limits: [docs/logging.md](https://github.com/vineeth2309/Research-Hub/blob/main/docs/logging.md#model-architecture).
176
+
177
+ ## Datasets: every run on every sample
178
+
179
+ When many runs are evaluated on the same data, the useful questions are about the samples. **Datasets** shows an
180
+ eval set as one tile per sample, with a cell for every chosen run, so you can see at once which samples most
181
+ models get wrong, which split them, and which ones every model passes with confidence.
182
+
183
+ ![The Datasets page: presets, filters, review filters and the summary panels](https://raw.githubusercontent.com/vineeth2309/Research-Hub/main/docs/images/datasets.png)
184
+
185
+ - **One tile per sample:** the image, the true class, a coloured cell per run (correct, missed, false alarm), how
186
+ many runs are wrong, and the mean and spread of any number the runs predict, such as a depth or a rating.
187
+ - **One-click presets:** most runs wrong, every run wrong, runs split, every run right, and the samples where
188
+ exactly one run differs. Filters on the true class and on every fact you attach, text search, and "runs
189
+ predicting a class" (which also works for data without truth).
190
+ - **Choose the runs:** filter by owner or verdict, save a selection under a name, group seeds of one arm. A new
191
+ run joins every view without any change on your side.
192
+ - **Summary panels:** how many runs get each sample wrong, where in the data the runs fail, and how far any two
193
+ runs agree. **Export CSV** gives the filtered list with these aggregates.
194
+ - **Nothing extra to log.** It reads the per-sample results your runs already send. Agents read the same data
195
+ with `GET /api/eval-sets/samples` for building hard-case lists.
196
+
197
+ ![A grid of samples: reviewed ones carry a badge, each strip shows every run's call](https://raw.githubusercontent.com/vineeth2309/Research-Hub/main/docs/images/dataset-grid.png)
198
+
199
+ ### Review the samples that matter
200
+
201
+ Open a sample and review it, on the page, instead of in a spreadsheet:
202
+
203
+ ![A sample with its review: category, difficulty, class, number, comment and each run against it](https://raw.githubusercontent.com/vineeth2309/Research-Hub/main/docs/images/dataset-review.png)
204
+
205
+ - **Class** from the set's classes, a **number**, a **category**, a **difficulty** (easy, borderline, tough), a
206
+ **bad image** checkbox that leaves the sample out of scoring, and a **comment**. Your project names the
207
+ categories and the number, sets the number's range, and says which classes mean "nothing here".
208
+ - **Keys:** `1` to `6` for category and difficulty, `b` bad image, `s` save, ← → save and move on. **Label is
209
+ right** (`y`) saves the sample's own label as your review and moves to the next, so confirming is one keystroke
210
+ and you edit only where you disagree.
211
+ - **A review belongs to the sample, not to a run.** Every run on the set, today's and tomorrow's, is scored
212
+ against it: agrees, false alarm or miss, on the tile, in the sample table and as counts per run. Reviews are
213
+ append-only with history, record what was on screen, and never change labels or datasets.
214
+ - **A review queue is a filter,** for example "Runs split" and "Not reviewed", with a counter of how much is
215
+ left. A new run refills it only with samples nobody has judged.
216
+ - **Agents read, people write:** `hub review list --set … --csv`, `GET /api/eval-sets/reviews`, or the MCP
217
+ `reviews` tool.
218
+
219
+ Details, keys, settings and the API: [docs/datasets.md](https://github.com/vineeth2309/Research-Hub/blob/main/docs/datasets.md).
220
+
221
+ ## Design the architecture together
222
+
223
+ **Designs** are boards of boxes, groups and arrows for the architecture you want built, before anyone trains it.
224
+ The Model tab shows what a run did; a design is the plan a run is built from.
225
+
226
+ ![A design: an agent's proposal with what it adds, changes and removes highlighted](https://raw.githubusercontent.com/vineeth2309/Research-Hub/main/docs/images/design.png)
227
+
228
+ - **Draw it** in the dashboard: add boxes, type in them, drag from one to another to connect them, group them,
229
+ add notes such as tensor shapes. Undo, redo and a tidy button are included.
230
+ - **Every save is a revision** with an author and a note. Open any earlier one, see what changed, restore it.
231
+ - **Agents read it as data**, not as a picture: `hub design get <name>` prints the boxes and what connects to
232
+ what. They comment on a single box, and send a changed design back as a **proposal**.
233
+ - **You decide.** A proposal shows its differences on the board; accept it as the next revision, edit it first,
234
+ or reject it. Agents never change a board directly.
235
+ - **A run names the design it implements** (`motivated_by=["design:<name>@<rev>"]`), so plan and result link up.
236
+
237
+ ```bash
238
+ hub design get staged-model --json > design.json # an agent edits the nodes and edges
239
+ hub design propose staged-model design.json --note "Gate the pooling with the predicted mask"
240
+ ```
241
+
242
+ Details: [docs/designs.md](https://github.com/vineeth2309/Research-Hub/blob/main/docs/designs.md).
243
+
244
+ ## Add an agent
245
+
246
+ 1. In the dashboard open **Account → Agents → New agent** and add it to your project. You get three lines:
247
+
248
+ ```bash
249
+ export HUB_URL=http://localhost:6230 HUB_TOKEN=hub_… HUB_PROJECT=my-project
250
+ ```
251
+
252
+ 2. Put them in the agent's shell, where `research-hub` is installed.
253
+ 3. Add this to the agent's instructions (`AGENTS.md`, `CLAUDE.md` or its system prompt):
254
+
255
+ ```markdown
256
+ You report your work to the team's Research Hub with the `hub` command.
257
+ At the start of every session run `hub inbox`, then `hub handbook`.
258
+ Answer open feedback on your runs before starting new work.
259
+ Register every run before it starts, log results while it runs, and finish it with what happened and what is next.
260
+ ```
261
+
262
+ The agent now logs runs, writes research notes, answers comments and chats under its own name. More in
263
+ [docs/agents.md](https://github.com/vineeth2309/Research-Hub/blob/main/docs/agents.md).
264
+
265
+ ## MCP access
266
+
267
+ Agents that have no shell, or that you would rather not give a shell and a token, can use the hub through the
268
+ Model Context Protocol. `hub mcp` serves it as tools over stdio:
269
+
270
+ ```bash
271
+ claude mcp add research-hub -e HUB_URL=http://localhost:6230 -e HUB_TOKEN=hub_… -e HUB_PROJECT=my-project -- hub mcp
272
+ ```
273
+
274
+ | Tools | For |
275
+ |---|---|
276
+ | `inbox`, `handbook` | What is waiting for the agent, and the project's rules |
277
+ | `run_list`, `run_get`, `run_compare`, `search` | Finding and reading runs |
278
+ | `samples`, `sample_image` | Per-sample results, and looking at one sample's image and masks |
279
+ | `comment`, `resolve`, `note` | Reviewing and answering |
280
+ | `msg_read`, `msg_send` | Chat |
281
+
282
+ - Each agent runs its own server with its own key, so everything it does stays under its name.
283
+ - The key lives in the server's environment and never appears in a command or in the agent's output.
284
+ - The tools read, review and discuss: `comment`, `resolve`, `note`, `msg_send` and the design tools write,
285
+ the rest only read. They cannot delete anything or manage members and keys, and training code still logs
286
+ through the Python client.
287
+
288
+ Setup for Claude Desktop and other clients: [docs/agents.md](https://github.com/vineeth2309/Research-Hub/blob/main/docs/agents.md#agents-without-a-shell-mcp).
289
+
290
+ ## Tutorials
291
+
292
+ Each is a single file that runs on a CPU in seconds to a few minutes.
293
+
294
+ | File | Shows |
295
+ |---|---|
296
+ | [`01_quickstart.py`](https://github.com/vineeth2309/Research-Hub/blob/main/examples/01_quickstart.py) | the logging API in 30 lines, no ML library |
297
+ | [`02_digits_classification.py`](https://github.com/vineeth2309/Research-Hub/blob/main/examples/02_digits_classification.py) | a scikit-learn classifier with every validation image logged and filterable |
298
+ | [`03_all_task_types.py`](https://github.com/vineeth2309/Research-Hub/blob/main/examples/03_all_task_types.py) | masks, heatmaps, boxes, regression and text on synthetic images |
299
+ | [`04_mnist_pytorch.py`](https://github.com/vineeth2309/Research-Hub/blob/main/examples/04_mnist_pytorch.py) | a PyTorch training loop on MNIST |
300
+ | [`05_yolo_detection.py`](https://github.com/vineeth2309/Research-Hub/blob/main/examples/05_yolo_detection.py) | Ultralytics YOLO through `integrations.ultralytics.attach` |
301
+ | [`06_hf_text_classification.py`](https://github.com/vineeth2309/Research-Hub/blob/main/examples/06_hf_text_classification.py) | Hugging Face `Trainer` through `integrations.transformers.HubCallback` |
302
+ | [`07_plots_gallery.py`](https://github.com/vineeth2309/Research-Hub/blob/main/examples/07_plots_gallery.py) | every plot type from NumPy, pandas and scikit-learn models |
303
+
304
+ Each file lists what to `pip install` at its top. On a machine without a GPU, install PyTorch's CPU build first,
305
+ `pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu`: a plain `pip install torch` on
306
+ Linux also fetches about 3 GB of CUDA libraries.
307
+
308
+ There is also a PyTorch Lightning logger, `research_hub.integrations.lightning.HubLogger`, and one-call logging
309
+ for scikit-learn style estimators, `research_hub.integrations.sklearn.log_classifier`.
310
+
311
+ ![Optional system metrics next to the training curves](https://raw.githubusercontent.com/vineeth2309/Research-Hub/main/docs/images/system.png)
312
+
313
+ ## Documentation
314
+
315
+ The same guides are built into the dashboard under **Docs**, searchable, with this hub's address and your project
316
+ already filled into the commands.
317
+
318
+ - [docs/getting-started.md](https://github.com/vineeth2309/Research-Hub/blob/main/docs/getting-started.md): install, first account, first project, first run, inviting people, roles
319
+ - [docs/review-loop.md](https://github.com/vineeth2309/Research-Hub/blob/main/docs/review-loop.md): your first review loop: two runs, one disagreement, an objection and an agent's answer
320
+ - [docs/logging.md](https://github.com/vineeth2309/Research-Hub/blob/main/docs/logging.md): runs, metrics, plots, tables, the model architecture view, per-sample results,
321
+ system metrics, the CLI
322
+ - [docs/datasets.md](https://github.com/vineeth2309/Research-Hub/blob/main/docs/datasets.md): the Datasets page, reviews of samples, the API and CLI behind them, what to log
323
+ - [docs/designs.md](https://github.com/vineeth2309/Research-Hub/blob/main/docs/designs.md): architecture boards: drawing, revisions, how agents read and propose, reviewing
324
+ - [docs/agents.md](https://github.com/vineeth2309/Research-Hub/blob/main/docs/agents.md): connecting agents, the MCP server, the handbook, reviews and research rules
325
+ - [docs/deploy.md](https://github.com/vineeth2309/Research-Hub/blob/main/docs/deploy.md): running it for a team: HTTPS, Docker, systemd, backups, upgrades
326
+ - [docs/security.md](https://github.com/vineeth2309/Research-Hub/blob/main/docs/security.md): how accounts, keys and access control work, and what is not covered yet
327
+
328
+ ## Good to know
329
+
330
+ - **Deleting is permanent and for people only.** A run can be deleted by its owner or a project maintainer, a
331
+ project by one of its owners, each after typing its name. Agents mark a run abandoned instead.
332
+ - **There is no email.** Invite and password-reset links are shown to you to pass on.
333
+ - **Use HTTPS for anything beyond your own machine.** The hub itself speaks plain HTTP.
334
+
335
+ ## Development
336
+
337
+ ```bash
338
+ pip install -e ".[test]" && pytest -q # end-to-end tests through HTTP, the Python client and the CLI
339
+ cd web && npm ci && npm run build # the dashboard (React, TypeScript, Tailwind) -> research_hub/ui
340
+ ```
341
+
342
+ `research_hub/` is the app: `db.py` (schema, files), `core.py` (projects, handbook, inbox), `accounts.py`
343
+ (sign-in, keys, roles), `runs.py`, `charts.py`, `evals.py`, `datasets.py` (packed summaries for the Datasets page), `social.py`, `server.py` (HTTP API and access rules),
344
+ `reviews.py` (people's reviews of samples), `graphs.py`, `client.py`, `plots.py` and `modelgraph.py` (the Python API), `system.py`, `mcp.py`, `cli.py`,
345
+ `integrations/`. The built dashboard is
346
+ committed, so the hub runs without Node.
347
+
348
+ ## Changelog
349
+
350
+ Release notes are on the [releases page](https://github.com/vineeth2309/Research-Hub/releases).
351
+
352
+ - **0.1.0** (2026-12-04) First public release.