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