claude-turing 4.4.0 → 4.6.0
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.
- package/.claude-plugin/marketplace.json +18 -0
- package/.claude-plugin/plugin.json +4 -4
- package/LICENSE +1 -1
- package/README.md +78 -555
- package/bin/cli.js +23 -4
- package/commands/doctor.md +1 -0
- package/commands/init.md +21 -3
- package/commands/turing.md +85 -77
- package/config/commands.yaml +928 -0
- package/config/defaults.yaml +2 -0
- package/package.json +7 -6
- package/src/command-registry.js +151 -0
- package/src/install.js +24 -35
- package/src/verify.js +45 -88
- package/templates/README.md +1 -1
- package/templates/__pycache__/evaluate.cpython-312.pyc +0 -0
- package/templates/__pycache__/prepare.cpython-312.pyc +0 -0
- package/templates/config.yaml +1 -1
- package/templates/features/__pycache__/__init__.cpython-312.pyc +0 -0
- package/templates/features/__pycache__/featurizers.cpython-312.pyc +0 -0
- package/templates/program.md +1 -1
- package/templates/scripts/__pycache__/__init__.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/ablation_study.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/architecture_surgery.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/budget_manager.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/build_ensemble.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/calibration.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/check_convergence.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/checkpoint_manager.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/citation_manager.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/cost_frontier.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/counterfactual_explanation.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/critique_hypothesis.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/curriculum_optimizer.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/diagnose_errors.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/draft_paper_sections.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/equivalence_checker.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/experiment_annotations.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/experiment_archive.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/experiment_diff.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/experiment_index.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/experiment_queue.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/experiment_replay.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/experiment_search.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/experiment_simulator.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/experiment_templates.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/export_card.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/export_formats.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/failure_postmortem.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/feature_intelligence.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/fork_experiment.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/generate_baselines.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/generate_brief.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/generate_changelog.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/generate_figures.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/generate_logbook.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/generate_model_card.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/generate_onboarding.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/harness_doctor.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/harness_doctor.cpython-314.pyc +0 -0
- package/templates/scripts/__pycache__/incremental_update.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/knowledge_transfer.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/latency_benchmark.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/leakage_detector.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/literature_search.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/log_experiment.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/manage_hypotheses.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/methodology_audit.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/model_distiller.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/model_lifecycle.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/model_merger.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/model_pruning.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/model_quantization.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/model_xray.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/novelty_guard.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/package_experiments.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/pareto_frontier.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/parse_metrics.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/pipeline_manager.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/profile_training.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/regression_gate.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/reproduce_experiment.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/research_planner.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/sanity_checks.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/scaffold.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/scaffold.cpython-314.pyc +0 -0
- package/templates/scripts/__pycache__/scaling_estimator.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/seed_runner.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/sensitivity_analysis.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/session_flashback.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/show_experiment_tree.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/show_families.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/simulate_review.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/smart_retry.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/statistical_compare.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/suggest_next.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/sweep.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/synthesize_decision.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/training_monitor.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/treequest_suggest.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/trend_analysis.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/turing_io.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/update_state.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/verify_placeholders.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/warm_start.cpython-312.pyc +0 -0
- package/templates/scripts/__pycache__/whatif_engine.cpython-312.pyc +0 -0
- package/templates/scripts/harness_doctor.py +145 -1
- package/templates/scripts/scaffold.py +50 -28
package/bin/cli.js
CHANGED
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from "module";
|
|
3
|
+
import { realpathSync } from "fs";
|
|
4
|
+
import { fileURLToPath } from "url";
|
|
3
5
|
const require = createRequire(import.meta.url);
|
|
4
6
|
const { Command } = require("commander");
|
|
5
7
|
const pkg = require("../package.json");
|
|
6
8
|
|
|
9
|
+
export function buildInitArgs(name, dir) {
|
|
10
|
+
return [name, dir].filter(Boolean);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function isDirectRun() {
|
|
14
|
+
if (!process.argv[1]) return false;
|
|
15
|
+
|
|
16
|
+
try {
|
|
17
|
+
return realpathSync(fileURLToPath(import.meta.url)) === realpathSync(process.argv[1]);
|
|
18
|
+
} catch {
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
7
23
|
const program = new Command();
|
|
8
24
|
|
|
9
25
|
program
|
|
@@ -34,13 +50,16 @@ program
|
|
|
34
50
|
.command("init [name] [dir]")
|
|
35
51
|
.description("Scaffold ML project (CLI mode, non-Claude-Code usage)")
|
|
36
52
|
.action(async (name, dir) => {
|
|
37
|
-
const {
|
|
53
|
+
const { spawnSync } = await import("child_process");
|
|
38
54
|
const { dirname, join } = await import("path");
|
|
39
55
|
const { fileURLToPath } = await import("url");
|
|
40
56
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
41
57
|
const script = join(__dirname, "turing-init.sh");
|
|
42
|
-
const args =
|
|
43
|
-
|
|
58
|
+
const args = buildInitArgs(name, dir);
|
|
59
|
+
const result = spawnSync("bash", [script, ...args], { stdio: "inherit" });
|
|
60
|
+
process.exit(result.status ?? 1);
|
|
44
61
|
});
|
|
45
62
|
|
|
46
|
-
|
|
63
|
+
if (isDirectRun()) {
|
|
64
|
+
program.parse();
|
|
65
|
+
}
|
package/commands/doctor.md
CHANGED
|
@@ -21,6 +21,7 @@ Is Turing healthy? Check everything and get a score.
|
|
|
21
21
|
- **Scripts:** train.py, prepare.py, evaluate.py exist and parse
|
|
22
22
|
- **Disk space:** warn if <1GB free
|
|
23
23
|
- **Git state:** uncommitted changes to critical files
|
|
24
|
+
- **Claude hooks:** `.claude/settings.local.json` hook group schema; `--fix` migrates legacy bare command hooks
|
|
24
25
|
|
|
25
26
|
## Examples
|
|
26
27
|
```
|
package/commands/init.md
CHANGED
|
@@ -37,18 +37,36 @@ python3 <templates_dir>/scripts/scaffold.py \
|
|
|
37
37
|
The scaffold script handles everything in a single atomic operation:
|
|
38
38
|
- Copies all template files with placeholder substitution
|
|
39
39
|
- Creates data/, experiments/, models/ directories
|
|
40
|
-
- Sets up agent memory at `.claude/agent-memory/ml-researcher/MEMORY.md`
|
|
40
|
+
- Sets up agent memory at `.claude/agent-memory/ml-researcher-{project_name}/MEMORY.md`
|
|
41
41
|
- Configures Claude Code hooks in `.claude/settings.local.json`
|
|
42
42
|
- Creates Python virtual environment and installs requirements
|
|
43
43
|
- Verifies all placeholders were replaced (fails loudly if any remain)
|
|
44
44
|
|
|
45
45
|
## Locating Templates
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
Use the installed command-pack templates directory first:
|
|
48
|
+
```
|
|
49
|
+
.claude/commands/turing/templates/
|
|
50
|
+
~/.claude/commands/turing/templates/
|
|
51
|
+
```
|
|
52
|
+
Then fall back to plugin or npm locations:
|
|
48
53
|
```
|
|
49
54
|
~/.claude/plugins/*/templates/
|
|
55
|
+
node_modules/claude-turing/templates/
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Example command:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
python3 ~/.claude/commands/turing/templates/scripts/scaffold.py \
|
|
62
|
+
--project-name "<project_name>" \
|
|
63
|
+
--target-metric "<target_metric>" \
|
|
64
|
+
--metric-direction "<metric_direction>" \
|
|
65
|
+
--task-description "<task_description>" \
|
|
66
|
+
--ml-dir "<ml_dir>" \
|
|
67
|
+
--data-source "<data_source>" \
|
|
68
|
+
--templates-dir ~/.claude/commands/turing/templates
|
|
50
69
|
```
|
|
51
|
-
Or check if installed via npm by looking for `node_modules/claude-turing/templates/`.
|
|
52
70
|
|
|
53
71
|
## After Scaffolding
|
|
54
72
|
|
package/commands/turing.md
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: turing
|
|
3
|
-
description: Autonomous ML research harness. Thin router that detects ML training intent and
|
|
3
|
+
description: Autonomous ML research harness. Thin router that detects ML training intent and identifies the matching Turing sub-command execution path. Each sub-command handles one phase of the experiment lifecycle.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
You are the Turing ML research router. Detect the user's intent and
|
|
6
|
+
You are the Turing ML research router. Detect the user's intent and identify the matching Turing sub-command execution path.
|
|
7
|
+
|
|
8
|
+
## Execution Contract
|
|
9
|
+
|
|
10
|
+
Turing sub-commands are explicit slash-command skills. Current sub-commands are `slash_only` and use `disable-model-invocation: true`, so router handling must not claim model dispatch into those skills.
|
|
11
|
+
|
|
12
|
+
- If the user explicitly invokes `/turing:<cmd>`, Claude Code runtime handles that slash command.
|
|
13
|
+
- If the user invokes `/turing` as a router and the detected command is `slash_only`, give the exact slash command to run.
|
|
14
|
+
- If a command has a documented safe equivalent script, the assistant may execute those documented steps inline when safe and appropriate.
|
|
7
15
|
|
|
8
16
|
## Routing Table
|
|
9
17
|
|
|
@@ -86,82 +94,82 @@ You are the Turing ML research router. Detect the user's intent and route to the
|
|
|
86
94
|
|
|
87
95
|
## Sub-commands
|
|
88
96
|
|
|
89
|
-
| Command | Purpose |
|
|
97
|
+
| Command | Purpose | Invocation |
|
|
90
98
|
|---|---|---|
|
|
91
|
-
| `/turing:train [ml/project] [N]` | Run the autonomous experiment loop (auto-detects project from path or cwd) |
|
|
92
|
-
| `/turing:status` | Show experiment status, best model, convergence |
|
|
93
|
-
| `/turing:compare <a> <b>` | Side-by-side experiment comparison |
|
|
94
|
-
| `/turing:sweep` | Generate and run hyperparameter sweep |
|
|
95
|
-
| `/turing:try <hypothesis>` | Inject a hypothesis into the agent's queue |
|
|
96
|
-
| `/turing:brief` | Generate structured research intelligence report |
|
|
97
|
-
| `/turing:init` | Scaffold a new ML project |
|
|
98
|
-
| `/turing:validate` | Check metric stability, auto-fix if noisy |
|
|
99
|
-
| `/turing:seed [N] [--quick]` | Multi-seed study: mean/std/CI, flag seed-sensitive results |
|
|
100
|
-
| `/turing:reproduce <exp-id>` | Reproducibility verification with tolerance checking |
|
|
101
|
-
| `/turing:suggest` | Literature-grounded model architecture suggestions |
|
|
102
|
-
| `/turing:explore` | Tree-search hypothesis exploration via AB-MCTS |
|
|
103
|
-
| `/turing:design <hyp-id>` | Generate structured experiment design from hypothesis |
|
|
104
|
-
| `/turing:logbook` | HTML/markdown logbook with trajectory chart |
|
|
105
|
-
| `/turing:poster` | Single-page HTML research poster |
|
|
106
|
-
| `/turing:report` | Structured markdown research report |
|
|
107
|
-
| `/turing:mode <mode>` | Set research strategy (explore/exploit/replicate) |
|
|
108
|
-
| `/turing:preflight` | Pre-flight resource check (VRAM/RAM/disk) |
|
|
109
|
-
| `/turing:card` | Generate standardized model card (type, performance, data, limitations, contract) |
|
|
110
|
-
| `/turing:diagnose [exp-id]` | Error analysis: failure modes, confused pairs, feature-range bias |
|
|
111
|
-
| `/turing:ablate [--components]` | Ablation study: remove components, measure impact, flag dead weight |
|
|
112
|
-
| `/turing:frontier [--metrics]` | Pareto frontier: multi-objective tradeoff visualization |
|
|
113
|
-
| `/turing:lit <query>` | Literature search: papers, SOTA baselines, related work |
|
|
114
|
-
| `/turing:paper [--sections] [--format]` | Draft paper sections from experiment logs (setup, results, ablation, hyperparams) |
|
|
115
|
-
| `/turing:export [exp-id] [--format]` | Export model to production format with equivalence check + latency benchmark |
|
|
116
|
-
| `/turing:queue <action>` | Batch experiment scheduler: add, list, run, pause, clear |
|
|
117
|
-
| `/turing:retry <exp-id>` | Smart failure recovery: auto-diagnose crash, apply fix, re-run |
|
|
118
|
-
| `/turing:fork <exp-id> --branches` | Experiment branching: run parallel tracks, report winner |
|
|
119
|
-
| `/turing:profile [exp-id]` | Computational profiling: timing, memory, throughput, bottleneck detection |
|
|
120
|
-
| `/turing:checkpoint <action>` | Smart checkpoint management: list, prune (Pareto), average, resume, stats |
|
|
121
|
-
| `/turing:diff <exp-a> <exp-b>` | Deep experiment comparison: config diff, metric significance, per-class regressions, curve divergence |
|
|
122
|
-
| `/turing:watch [--analyze]` | Live training monitor with early-warning alerts (loss spike, NaN, overfitting, plateau) |
|
|
123
|
-
| `/turing:regress [--tolerance]` | Performance regression gate: re-run best experiment, verify metrics haven't degraded |
|
|
124
|
-
| `/turing:ensemble [--top-k] [--methods]` | Automated ensemble: voting, weighted voting, stacking, blending from top-K models |
|
|
125
|
-
| `/turing:stitch <action> [stage]` | Pipeline composition: show/swap/cache/run stages independently |
|
|
126
|
-
| `/turing:warm <exp-id>` | Warm-start from prior model: load checkpoint, freeze layers, adjust LR |
|
|
127
|
-
| `/turing:scale [--axis]` | Scaling law estimator: fit power law, predict full-scale performance |
|
|
128
|
-
| `/turing:budget <action>` | Compute budget manager: set limits, track allocation, auto-shift modes |
|
|
129
|
-
| `/turing:distill <exp-id>` | Model compression: distill teacher into smaller student model |
|
|
130
|
-
| `/turing:transfer [--from]` | Cross-project knowledge transfer: find similar prior projects, surface what worked |
|
|
131
|
-
| `/turing:audit [--strict]` | Pre-submission methodology audit: data leakage, baselines, seeds, ablations, reproducibility |
|
|
132
|
-
| `/turing:sanity [--quick]` | Pre-training sanity checks: initial loss, overfit test, gradient flow, output validation |
|
|
133
|
-
| `/turing:baseline [--methods]` | Automatic baseline generation: random, majority/mean, linear, k-NN |
|
|
134
|
-
| `/turing:leak [--deep]` | Targeted leakage detection: single-feature tests, correlation, train/test overlap |
|
|
135
|
-
| `/turing:xray [exp-id]` | Internal model diagnostics: gradient flow, dead neurons, weight distributions, tree analysis |
|
|
136
|
-
| `/turing:sensitivity [exp-id]` | Hyperparameter sensitivity analysis: rank parameters by impact, detect non-monotonic responses |
|
|
137
|
-
| `/turing:calibrate [exp-id]` | Probability calibration: ECE/MCE, reliability diagrams, Platt/isotonic/temperature scaling |
|
|
138
|
-
| `/turing:feature [--method]` | Automated feature selection: multi-method consensus ranking, redundancy, interaction generation |
|
|
139
|
-
| `/turing:curriculum [exp-id]` | Training curriculum optimization: difficulty scoring, strategy comparison, impossible sample detection |
|
|
140
|
-
| `/turing:prune <exp-id>` | Weight pruning: magnitude/structured/lottery, sparsity sweep, knee point detection |
|
|
141
|
-
| `/turing:quantize <exp-id>` | Post-training quantization: FP16/INT8, accuracy-latency comparison, QAT suggestion |
|
|
142
|
-
| `/turing:merge <exp-ids...>` | Model merging: uniform/greedy soup, TIES, DARE — free accuracy, zero latency cost |
|
|
143
|
-
| `/turing:surgery <exp-id>` | Architecture modification: add/remove layer, widen/narrow, swap activation, skip connections |
|
|
144
|
-
| `/turing:trend` | Long-term trend analysis: improvement velocity, family ROI, diminishing returns detection |
|
|
145
|
-
| `/turing:flashback` | Session context restoration: "where was I?" after days away from the project |
|
|
146
|
-
| `/turing:archive` | Experiment lifecycle cleanup: compress old artifacts, prune checkpoints, summary index |
|
|
147
|
-
| `/turing:annotate <exp-id>` | Retrospective annotations: add human notes, tags, search by content |
|
|
148
|
-
| `/turing:search <query>` | Natural language experiment search with structured filters |
|
|
149
|
-
| `/turing:template <action>` | Experiment template library: save/list/apply reusable configs across projects |
|
|
150
|
-
| `/turing:replay <exp-id>` | Experiment replay: re-run old experiment with current infrastructure |
|
|
151
|
-
| `/turing:cite <action>` | Citation manager: add/list/check/bib for papers, datasets, methods |
|
|
152
|
-
| `/turing:present [--figures]` | Presentation figures: training curves, comparisons, ablation, Pareto, sensitivity |
|
|
153
|
-
| `/turing:changelog [--audience]` | Model changelog: version-grouped improvements for technical or stakeholder audiences |
|
|
154
|
-
| `/turing:onboard [--audience]` | Project onboarding: full walkthrough for new collaborators |
|
|
155
|
-
| `/turing:share <exp-ids...>` | Experiment packaging: portable archive with manifest and README |
|
|
156
|
-
| `/turing:review [--venue]` | Peer review simulation: weaknesses, questions, fix commands, score |
|
|
157
|
-
| `/turing:whatif "<question>"` | What-if analysis: route hypotheticals to existing estimators (scaling, ablation, sensitivity, ensemble, pruning) |
|
|
158
|
-
| `/turing:counterfactual <exp-id> --sample <index>` | Input-level counterfactual explanations: minimum input change to flip a prediction |
|
|
159
|
-
| `/turing:simulate [--configs] [--top-k]` | Experiment outcome prediction: pre-filter configs using surrogate model, save budget |
|
|
160
|
-
| `/turing:update <exp-id> --new-data <path>` | Incremental model update: add new data without full retraining, forgetting detection |
|
|
161
|
-
| `/turing:registry [list\|register\|promote\|demote\|history]` | Model registry: stage lifecycle (candidate → staging → production) with promotion gates |
|
|
162
|
-
| `/turing:postmortem [--window N]` | Failure postmortem: diagnose why experiments stopped improving (exhaustion, config error, data issue, ceiling, noise) |
|
|
163
|
-
| `/turing:doctor [--fix]` | Harness self-diagnosis: environment, dependencies, config, log integrity, scripts, disk, git state |
|
|
164
|
-
| `/turing:plan [--budget N] [--goal]` | Research planning assistant: strategic campaign design with budget-aware ROI allocation |
|
|
99
|
+
| `/turing:train [ml/project] [N]` | Run the autonomous experiment loop (auto-detects project from path or cwd) | slash_only |
|
|
100
|
+
| `/turing:status` | Show experiment status, best model, convergence | slash_only |
|
|
101
|
+
| `/turing:compare <a> <b>` | Side-by-side experiment comparison | slash_only |
|
|
102
|
+
| `/turing:sweep` | Generate and run hyperparameter sweep | slash_only |
|
|
103
|
+
| `/turing:try <hypothesis>` | Inject a hypothesis into the agent's queue | slash_only |
|
|
104
|
+
| `/turing:brief` | Generate structured research intelligence report | slash_only |
|
|
105
|
+
| `/turing:init` | Scaffold a new ML project | slash_only |
|
|
106
|
+
| `/turing:validate` | Check metric stability, auto-fix if noisy | slash_only |
|
|
107
|
+
| `/turing:seed [N] [--quick]` | Multi-seed study: mean/std/CI, flag seed-sensitive results | slash_only |
|
|
108
|
+
| `/turing:reproduce <exp-id>` | Reproducibility verification with tolerance checking | slash_only |
|
|
109
|
+
| `/turing:suggest` | Literature-grounded model architecture suggestions | slash_only |
|
|
110
|
+
| `/turing:explore` | Tree-search hypothesis exploration via AB-MCTS | slash_only |
|
|
111
|
+
| `/turing:design <hyp-id>` | Generate structured experiment design from hypothesis | slash_only |
|
|
112
|
+
| `/turing:logbook` | HTML/markdown logbook with trajectory chart | slash_only |
|
|
113
|
+
| `/turing:poster` | Single-page HTML research poster | slash_only |
|
|
114
|
+
| `/turing:report` | Structured markdown research report | slash_only |
|
|
115
|
+
| `/turing:mode <mode>` | Set research strategy (explore/exploit/replicate) | slash_only |
|
|
116
|
+
| `/turing:preflight` | Pre-flight resource check (VRAM/RAM/disk) | slash_only |
|
|
117
|
+
| `/turing:card` | Generate standardized model card (type, performance, data, limitations, contract) | slash_only |
|
|
118
|
+
| `/turing:diagnose [exp-id]` | Error analysis: failure modes, confused pairs, feature-range bias | slash_only |
|
|
119
|
+
| `/turing:ablate [--components]` | Ablation study: remove components, measure impact, flag dead weight | slash_only |
|
|
120
|
+
| `/turing:frontier [--metrics]` | Pareto frontier: multi-objective tradeoff visualization | slash_only |
|
|
121
|
+
| `/turing:lit <query>` | Literature search: papers, SOTA baselines, related work | slash_only |
|
|
122
|
+
| `/turing:paper [--sections] [--format]` | Draft paper sections from experiment logs (setup, results, ablation, hyperparams) | slash_only |
|
|
123
|
+
| `/turing:export [exp-id] [--format]` | Export model to production format with equivalence check + latency benchmark | slash_only |
|
|
124
|
+
| `/turing:queue <action>` | Batch experiment scheduler: add, list, run, pause, clear | slash_only |
|
|
125
|
+
| `/turing:retry <exp-id>` | Smart failure recovery: auto-diagnose crash, apply fix, re-run | slash_only |
|
|
126
|
+
| `/turing:fork <exp-id> --branches` | Experiment branching: run parallel tracks, report winner | slash_only |
|
|
127
|
+
| `/turing:profile [exp-id]` | Computational profiling: timing, memory, throughput, bottleneck detection | slash_only |
|
|
128
|
+
| `/turing:checkpoint <action>` | Smart checkpoint management: list, prune (Pareto), average, resume, stats | slash_only |
|
|
129
|
+
| `/turing:diff <exp-a> <exp-b>` | Deep experiment comparison: config diff, metric significance, per-class regressions, curve divergence | slash_only |
|
|
130
|
+
| `/turing:watch [--analyze]` | Live training monitor with early-warning alerts (loss spike, NaN, overfitting, plateau) | slash_only |
|
|
131
|
+
| `/turing:regress [--tolerance]` | Performance regression gate: re-run best experiment, verify metrics haven't degraded | slash_only |
|
|
132
|
+
| `/turing:ensemble [--top-k] [--methods]` | Automated ensemble: voting, weighted voting, stacking, blending from top-K models | slash_only |
|
|
133
|
+
| `/turing:stitch <action> [stage]` | Pipeline composition: show/swap/cache/run stages independently | slash_only |
|
|
134
|
+
| `/turing:warm <exp-id>` | Warm-start from prior model: load checkpoint, freeze layers, adjust LR | slash_only |
|
|
135
|
+
| `/turing:scale [--axis]` | Scaling law estimator: fit power law, predict full-scale performance | slash_only |
|
|
136
|
+
| `/turing:budget <action>` | Compute budget manager: set limits, track allocation, auto-shift modes | slash_only |
|
|
137
|
+
| `/turing:distill <exp-id>` | Model compression: distill teacher into smaller student model | slash_only |
|
|
138
|
+
| `/turing:transfer [--from]` | Cross-project knowledge transfer: find similar prior projects, surface what worked | slash_only |
|
|
139
|
+
| `/turing:audit [--strict]` | Pre-submission methodology audit: data leakage, baselines, seeds, ablations, reproducibility | slash_only |
|
|
140
|
+
| `/turing:sanity [--quick]` | Pre-training sanity checks: initial loss, overfit test, gradient flow, output validation | slash_only |
|
|
141
|
+
| `/turing:baseline [--methods]` | Automatic baseline generation: random, majority/mean, linear, k-NN | slash_only |
|
|
142
|
+
| `/turing:leak [--deep]` | Targeted leakage detection: single-feature tests, correlation, train/test overlap | slash_only |
|
|
143
|
+
| `/turing:xray [exp-id]` | Internal model diagnostics: gradient flow, dead neurons, weight distributions, tree analysis | slash_only |
|
|
144
|
+
| `/turing:sensitivity [exp-id]` | Hyperparameter sensitivity analysis: rank parameters by impact, detect non-monotonic responses | slash_only |
|
|
145
|
+
| `/turing:calibrate [exp-id]` | Probability calibration: ECE/MCE, reliability diagrams, Platt/isotonic/temperature scaling | slash_only |
|
|
146
|
+
| `/turing:feature [--method]` | Automated feature selection: multi-method consensus ranking, redundancy, interaction generation | slash_only |
|
|
147
|
+
| `/turing:curriculum [exp-id]` | Training curriculum optimization: difficulty scoring, strategy comparison, impossible sample detection | slash_only |
|
|
148
|
+
| `/turing:prune <exp-id>` | Weight pruning: magnitude/structured/lottery, sparsity sweep, knee point detection | slash_only |
|
|
149
|
+
| `/turing:quantize <exp-id>` | Post-training quantization: FP16/INT8, accuracy-latency comparison, QAT suggestion | slash_only |
|
|
150
|
+
| `/turing:merge <exp-ids...>` | Model merging: uniform/greedy soup, TIES, DARE — free accuracy, zero latency cost | slash_only |
|
|
151
|
+
| `/turing:surgery <exp-id>` | Architecture modification: add/remove layer, widen/narrow, swap activation, skip connections | slash_only |
|
|
152
|
+
| `/turing:trend` | Long-term trend analysis: improvement velocity, family ROI, diminishing returns detection | slash_only |
|
|
153
|
+
| `/turing:flashback` | Session context restoration: "where was I?" after days away from the project | slash_only |
|
|
154
|
+
| `/turing:archive` | Experiment lifecycle cleanup: compress old artifacts, prune checkpoints, summary index | slash_only |
|
|
155
|
+
| `/turing:annotate <exp-id>` | Retrospective annotations: add human notes, tags, search by content | slash_only |
|
|
156
|
+
| `/turing:search <query>` | Natural language experiment search with structured filters | slash_only |
|
|
157
|
+
| `/turing:template <action>` | Experiment template library: save/list/apply reusable configs across projects | slash_only |
|
|
158
|
+
| `/turing:replay <exp-id>` | Experiment replay: re-run old experiment with current infrastructure | slash_only |
|
|
159
|
+
| `/turing:cite <action>` | Citation manager: add/list/check/bib for papers, datasets, methods | slash_only |
|
|
160
|
+
| `/turing:present [--figures]` | Presentation figures: training curves, comparisons, ablation, Pareto, sensitivity | slash_only |
|
|
161
|
+
| `/turing:changelog [--audience]` | Model changelog: version-grouped improvements for technical or stakeholder audiences | slash_only |
|
|
162
|
+
| `/turing:onboard [--audience]` | Project onboarding: full walkthrough for new collaborators | slash_only |
|
|
163
|
+
| `/turing:share <exp-ids...>` | Experiment packaging: portable archive with manifest and README | slash_only |
|
|
164
|
+
| `/turing:review [--venue]` | Peer review simulation: weaknesses, questions, fix commands, score | slash_only |
|
|
165
|
+
| `/turing:whatif "<question>"` | What-if analysis: route hypotheticals to existing estimators (scaling, ablation, sensitivity, ensemble, pruning) | slash_only |
|
|
166
|
+
| `/turing:counterfactual <exp-id> --sample <index>` | Input-level counterfactual explanations: minimum input change to flip a prediction | slash_only |
|
|
167
|
+
| `/turing:simulate [--configs] [--top-k]` | Experiment outcome prediction: pre-filter configs using surrogate model, save budget | slash_only |
|
|
168
|
+
| `/turing:update <exp-id> --new-data <path>` | Incremental model update: add new data without full retraining, forgetting detection | slash_only |
|
|
169
|
+
| `/turing:registry [list\|register\|promote\|demote\|history]` | Model registry: stage lifecycle (candidate → staging → production) with promotion gates | slash_only |
|
|
170
|
+
| `/turing:postmortem [--window N]` | Failure postmortem: diagnose why experiments stopped improving (exhaustion, config error, data issue, ceiling, noise) | slash_only |
|
|
171
|
+
| `/turing:doctor [--fix]` | Harness self-diagnosis: environment, dependencies, config, log integrity, scripts, disk, git state, Claude hooks | slash_only |
|
|
172
|
+
| `/turing:plan [--budget N] [--goal]` | Research planning assistant: strategic campaign design with budget-aware ROI allocation | slash_only |
|
|
165
173
|
|
|
166
174
|
## Proactive Detection
|
|
167
175
|
|