feat: add Alpha loop orchestrator with Gemini - #40
Conversation
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR introduces an end-to-end "Alpha loop" feature that orchestrates four sequential LLM-driven steps (Observer, Evaluator, Proposer, Curator) using the Google Gemini API. It adds a new orchestrator module that manages step execution, prompt assembly, and logging, and integrates it into the server with new HTTP endpoints for running individual steps or the full pipeline, plus local JSONL log persistence and retrieval. ChangesAlpha Loop Feature
Sequence DiagramsequenceDiagram
participant Client
participant Server
participant AlphaLoopOrch
participant GeminiAPI
participant LogFile
Client->>Server: POST /api/run/alpha-loop
Server->>AlphaLoopOrch: Call runAlphaLoop()
loop Four Steps (Observer→Evaluator→Proposer→Curator)
AlphaLoopOrch->>AlphaLoopOrch: runStep(step, input)
AlphaLoopOrch->>GeminiAPI: callGemini(prompt)
GeminiAPI-->>AlphaLoopOrch: LLM output or mock
AlphaLoopOrch->>LogFile: logToFile(entry)
end
AlphaLoopOrch-->>Server: Return results array
Server->>LogFile: Optional logging of final status
Server-->>Client: JSON { results, outputs }
Client->>Server: GET /api/logs
Server->>LogFile: Read last 50 lines
Server-->>Client: JSON { entries, count, file }
Estimated Code Review Effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly Related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Summary
POST /api/run/observer,/api/run/evaluator,/api/run/proposer,/api/run/curatorPOST /api/run/alpha-loophomebase-logs.jsonlviaGET /api/logsTo test
Click Alpha buttons to run steps.
@atomeam can click here to continue refining the PR
Summary by CodeRabbit
Release Notes