feat(run): headless mode and no-auto-skills flag#294
Conversation
Amp-Thread-ID: https://ampcode.com/threads/T-019ce754-f12f-7219-9c9a-17cc72247f81 Co-authored-by: Amp <amp@ampcode.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Issue Linking ReminderThis PR doesn't appear to have a linked issue. Consider linking to:
Using If this PR doesn't need an issue, you can ignore this message. |
✔️ Bundle Size Analysis
Bundle breakdown |
Greptile SummaryThis PR adds two runtime flags — Key changes and findings:
Confidence Score: 3/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[ralph-starter run] --> B{--headless?}
B -->|yes| C[skip showWelcome]
B -->|no| D[showWelcome]
C --> E{--no-auto-skills?}
D --> E
E -->|yes, autoSkills=false| F[skip autoInstallSkillsFromTask]
E -->|no, autoSkills=true| G[autoInstallSkillsFromTask]
F --> H[build loopOptions\nheadless=true\nenableSkills=false]
G --> H2[build loopOptions\nheadless=false\nenableSkills=true]
H --> I{--swarm?}
H2 --> I
I -->|yes| J[runSwarm\nheadless + enableSkills\nthreaded through]
I -->|no| K[runLoop\nenableSkills===false?\nskip detectClaudeSkills]
J --> L{headless?}
K --> M{headless?}
L -->|yes, no winner| N[throw Error]
L -->|yes, winner| O[return early — no summary output]
L -->|no| P[print swarm summary]
M -->|yes, failure| Q[throw Error with exitReason]
M -->|yes, success| R[return early — no summary output]
M -->|no| S[print loop summary]
style C fill:#f9a,stroke:#f66
style F fill:#f9a,stroke:#f66
style N fill:#f66,stroke:#c00,color:#fff
style Q fill:#f66,stroke:#c00,color:#fff
|
Amp-Thread-ID: https://ampcode.com/threads/T-019ce754-f12f-7219-9c9a-17cc72247f81 Co-authored-by: Amp <amp@ampcode.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019ce754-f12f-7219-9c9a-17cc72247f81 Co-authored-by: Amp <amp@ampcode.com>
Summary
This PR adds two runtime controls to
ralph-starter runso embedding tools (likeautoresearcher) can run cleaner, non-interactive backend iterations.Problem
When
autoresearcherinvokesralph-starteronce per benchmark iteration, users currently see repeated startup/UI noise and skills auto-install checks. That makes loop logs hard to read and can add avoidable churn.What Changed
--headlessto suppress non-essential CLI output inrunmode.--no-auto-skillsto disable automaticskills.shinstallation checks inrunmode.headless,enableSkills) so behavior is enforced at executor level, not just hidden.0.4.5.Why This Helps
autoresearcherValidation
pnpm buildpnpm testpnpm typecheckpnpm lint(existing repo-wide warnings only; no new errors introduced by this change)Notes
This PR does not introduce a persistent multi-iteration backend session; each invocation is still a fresh
runprocess. It is intended to make repeated one-iteration embedding significantly cleaner and more predictable.