Cleanup Ralph workflow: remove old attempts, update docs for final Python-based system
This commit is contained in:
48
AGENTS.md
48
AGENTS.md
@@ -55,34 +55,40 @@ When I receive errors, bugs, or new feature requests:
|
||||
|
||||
**A. Planning cu OPUS (eu, Echo) - pe moltbot:**
|
||||
```python
|
||||
from tools.ralph_workflow import create_prd, convert_prd, run_ralph
|
||||
from tools.ralph_prd_generator import create_prd_and_json
|
||||
from tools.ralph_workflow import run_ralph
|
||||
import subprocess
|
||||
|
||||
# Pentru PROIECTE NOI
|
||||
prd_file = create_prd(
|
||||
# Pentru fiecare proiect aprobat
|
||||
prd_file, prd_json = create_prd_and_json(
|
||||
project_name="project-name", # kebab-case
|
||||
description="Descriere completă feature/proiect"
|
||||
description="Descriere completă cu Features:\n- Feature 1\n- Feature 2",
|
||||
workspace_dir=Path.home() / "workspace"
|
||||
)
|
||||
prd_json = convert_prd(prd_file) # → prd.json + configurare
|
||||
|
||||
# Git init + push
|
||||
project_dir = prd_json.parent.parent.parent
|
||||
subprocess.run(["git", "init"], cwd=project_dir)
|
||||
subprocess.run(["git", "add", "."], cwd=project_dir)
|
||||
subprocess.run(["git", "commit", "-m", "Initial commit with PRD"], cwd=project_dir)
|
||||
subprocess.run(["git", "remote", "add", "origin", f"https://gitea.romfast.ro/romfast/PROJECT"], cwd=project_dir)
|
||||
subprocess.run(["git", "push", "-u", "origin", "main"], cwd=project_dir)
|
||||
|
||||
# Lansează Ralph
|
||||
run_ralph(prd_json, max_iterations=20, background=True)
|
||||
|
||||
# Pentru FEATURES EXISTENTE
|
||||
# Citesc PRD existent, generez noi stories, actualizez prd.json
|
||||
# Apoi run_ralph() pentru implementare
|
||||
# Marchează [x] în approved-tasks.md
|
||||
```
|
||||
|
||||
- Workspace: `~/workspace/PROJECT-NAME/`
|
||||
- Git init + commit + push către gitea.romfast.ro
|
||||
- Marchează [x] în approved-tasks.md
|
||||
|
||||
**B. Implementare cu Ralph (Sonnet) - automat în background:**
|
||||
- Ralph loop autonom (ralph.sh):
|
||||
- ralph.sh rulează autonom:
|
||||
1. Selectează story (priority minimă, passes=false)
|
||||
2. Rulează Claude Code (Sonnet) pentru implementare
|
||||
3. Quality checks: typecheck, lint, test
|
||||
4. Commit dacă OK → passes: true
|
||||
4. Git commit dacă OK → passes: true
|
||||
5. Update progress.txt cu learnings
|
||||
6. Repetă până toate complete sau max 20 iterații
|
||||
- Git push toate commit-urile automat
|
||||
6. Repetă până complete sau max 20 iterații
|
||||
- Git push automat
|
||||
|
||||
**3. DIMINEAȚĂ (08:30) - morning-report:**
|
||||
```python
|
||||
@@ -103,11 +109,11 @@ status = check_status(Path.home() / "workspace" / "PROJECT-NAME")
|
||||
- User: moltbot
|
||||
- Workspace: `~/workspace/`
|
||||
- Claude Code: `~/.local/bin/claude` (v2.1.37)
|
||||
- Ralph skill: `~/.claude/skills/ralph/`
|
||||
- Comenzi: `/ralph:prd` (generare PRD) + `/ralph:convert` (conversie prd.json)
|
||||
- Templates: ralph.sh, prompt.md (copiate automat)
|
||||
- Helper Python: `~/clawd/tools/ralph_workflow.py`
|
||||
- `create_prd()`, `convert_prd()`, `run_ralph()`, `check_status()`
|
||||
- Ralph tools:
|
||||
- `~/clawd/tools/ralph_prd_generator.py` - Generează PRD și prd.json (Python)
|
||||
- `~/clawd/tools/ralph_workflow.py` - Wrapper (lansare Ralph)
|
||||
- `~/clawd/skills/ralph/templates/` - ralph.sh, prompt.md (copiate în proiecte)
|
||||
- Templates copiate automat în fiecare proiect
|
||||
|
||||
### Model Strategy (OBLIGATORIU)
|
||||
- **Opus** → Planning, PRD, stories (eu, Echo în night-execute)
|
||||
|
||||
Reference in New Issue
Block a user