Skip to content

Commit 70a1d57

Browse files
ishaan1124aayambansal
authored andcommitted
chore: purge flywheel branding, launcher install fallback, v1.2.3
- Rename the ml agent's 'flywheel' language to 'model specialization' across the prompt and skills; only Atlas skills remain in the bundle. - npx synsci: when global npm install fails (common on permissions), fall back to the standalone installer at openscience.sh/install instead of dead-ending. - Bump CLI + launcher to 1.2.3.
1 parent cbed759 commit 70a1d57

7 files changed

Lines changed: 24 additions & 12 deletions

File tree

backend/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json.schemastore.org/package.json",
3-
"version": "1.2.2",
3+
"version": "1.2.3",
44
"name": "@synsci/openscience",
55
"type": "module",
66
"description": "AI-powered CLI for ML research and development workflows",

backend/cli/skills/ml-training/model-economics/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies: []
1313

1414
## When to Use This Skill
1515

16-
Use this skill as the **first step** of any flywheel assessment to determine:
16+
Use this skill as the **first step** of any model-specialization assessment to determine:
1717
- Is it worth training a specialized model?
1818
- What will the total investment be?
1919
- When will the specialized model break even vs frontier APIs?

backend/cli/skills/research/initialize-atlas-graph/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ clone at a different path resolves to the **same** graph.
1818
Run this skill when:
1919
- The canvas shows "no graph for this project" / the folder isn't linked yet.
2020
- The user asks to "initialize", "set up Atlas", or "start tracking" research.
21-
- You are about to begin research/flywheel work that should be recorded.
21+
- You are about to begin research work that should be recorded.
2222

2323
## Steps
2424

backend/cli/src/agent/prompt/ml.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ evidence: scope the problem, survey prior art, build the data pipeline, design a
77
models, evaluate rigorously against real baselines, ablate what matters, and report honestly.
88
You cover the full spectrum — classical ML, deep learning, LLMs, RL, and multimodal — and the
99
complete experimental lifecycle. When the goal is to replace a frontier API dependency with a
10-
cheaper specialized model, you run the model flywheel (see the Model Specialization track).
10+
cheaper specialized model, you run the specialization loop (see the Model Specialization track).
1111

1212
You are NOT a chatbot. You are an autonomous ML agent. Given a task, dataset, or research
1313
question, you independently produce a complete, reproducible analysis and result.
@@ -141,7 +141,7 @@ Before reporting, run the decoupled critique + reviewer gate. This is a blocking
141141

142142
---
143143

144-
## Model Specialization Track (the flywheel)
144+
## Model Specialization Track
145145
When the goal is to REPLACE a frontier API dependency with a cheaper specialized model, run
146146
this loop instead of the generic pipeline: **production data → train specialized model →
147147
deploy → collect more data → retrain**. This is collaborative — present options with

backend/cli/src/openscience/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ export class InsufficientCreditsError extends Error {
185185

186186
// ── Bundled atlas CLI resolution ─────────────────────────────────────────
187187
// The @synsci/atlas package ships as a dependency; its `atlas` binary lives in
188-
// node_modules. The agent shells out to native `atlas` commands (the research /
189-
// flywheel prompts drive the map + managed-compute path through it), so the
188+
// node_modules. The agent shells out to native `atlas` commands (the research
189+
// prompts drive the map + managed-compute path through it), so the
190190
// binary must be on the subprocess PATH without requiring a separate global
191191
// install. We resolve the package, prefer the npm-generated `.bin/atlas` shim,
192192
// and otherwise synthesize a tiny launcher in the openscience data dir that runs the

tooling/launcher/bin/synsci.mjs

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,22 @@ async function main() {
178178
cliPath = resolveCli()
179179
if (!cliPath) throw new Error("openscience not on PATH after install")
180180
s.ok("Installed OpenScience")
181-
} catch (e) {
182-
s.fail(`Install failed${e && e.message ? ": " + e.message : ""}`)
183-
console.log(`\n Try manually: ${CYAN}npm i -g @synsci/openscience${RESET}\n`)
184-
process.exit(1)
181+
} catch {
182+
// Global npm installs commonly fail on permissions. Fall back to the
183+
// standalone installer, which lands in ~/.openscience/bin without sudo
184+
// (resolveCli already checks that location).
185+
s.update("npm -g failed, trying the standalone installer...")
186+
try {
187+
execSync("curl -fsSL https://openscience.sh/install | bash", { stdio: "pipe" })
188+
cliPath = resolveCli()
189+
if (!cliPath) throw new Error("openscience not found after install")
190+
s.ok("Installed OpenScience")
191+
} catch (e2) {
192+
s.fail(`Install failed${e2 && e2.message ? ": " + e2.message : ""}`)
193+
console.log(`\n Try manually: ${CYAN}npm i -g @synsci/openscience${RESET}`)
194+
console.log(` or: ${CYAN}curl -fsSL https://openscience.sh/install | bash${RESET}\n`)
195+
process.exit(1)
196+
}
185197
}
186198
}
187199

tooling/launcher/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "synsci",
3-
"version": "1.2.2",
3+
"version": "1.2.3",
44
"description": "Install wizard for OpenScience, the open-source AI research workspace (optionally with Atlas)",
55
"license": "Apache-2.0",
66
"type": "module",

0 commit comments

Comments
 (0)