β‘ Dev Forge v1.0
Fork conceitual do Growth Forge v3.x, adaptado para desenvolvimento de software.
π― Objetivo
Agente autΓ΄nomo de desenvolvimento que:
- Recebe um goal (feature, bugfix, projeto)
- DecompΓ΅e em tasks com ICE scoring
- Executa com validaΓ§Γ£o e confidence gating
- Aprende com erros e acertos
π ComparaΓ§Γ£o: AIOS vs Dev Forge
1. Recovery System
| Aspecto |
AIOS |
Dev Forge |
Status |
| EstratΓ©gias de recovery |
5 tipos (RETRY, ROLLBACK, SKIP, ESCALATE, TRIGGER_WORKFLOW) |
4 nΓveis (retry β retry+ctx β alternativo β rollback+escalate) |
β
PORTADO |
| Stuck detection |
β
Detecta loops circulares |
β
SerΓ‘ implementado |
β
PORTADO |
| Rollback manager |
β
Restaura estado anterior |
β
Git stash + checkpoints |
β
PORTADO |
| Escalation to human |
β
AutomΓ‘tico apΓ³s max retries |
β
ApΓ³s 3 retries |
β
PORTADO |
| Recovery tracker |
β
Log detalhado |
β
Via LanceDB learning |
β
PORTADO |
2. Workflow Orchestrator
| Aspecto |
AIOS |
Dev Forge |
Status |
| Framework base |
Custom JS |
LangGraph (Python) π |
MELHOR |
| Typed state |
β NΓ£o |
β
TypedDict + reducers π |
MELHOR |
| Checkpointing |
β
Custom |
β
SQLite nativo LangGraph |
β EMPATE |
| Parallel execution |
β
Sim |
β
Sim (Send nodes) |
β EMPATE |
| Tech stack detection |
β
Detecta stack |
β
ContextAgent detecta |
β
PORTADO |
| Confidence gating |
β
Bloqueia se baixa |
β
0-1 score β profile |
β
PORTADO |
| YAML workflows |
β
Workflows em YAML |
β Python (mais flexΓvel) |
NΓO PORTA |
| Execution profiles |
β
yolo/interactive/preflight |
β
Mesmo sistema |
β
PORTADO |
3. Learning & Memory
| Aspecto |
AIOS |
Dev Forge |
Status |
| Self-learning |
β NΓ£o tem |
β
LanceDB completo π |
MELHOR |
| Hierarchical memory |
β οΈ Fragmentado |
β
Core/Working/Archival π |
MELHOR |
| Reflection |
β NΓ£o tem |
β
LLM insights π |
MELHOR |
| Experience recall |
β NΓ£o tem |
β
Semantic search π |
MELHOR |
π Resumo da ComparaΓ§Γ£o
| Componente |
Quem Γ© Melhor |
AΓ§Γ£o no Dev Forge |
| Recovery |
π AIOS (era) |
PORTADO stuck detection, rollback, escalation |
| Workflow base |
π NΓS |
MANTIDO LangGraph |
| Workflow features |
π AIOS (era) |
PORTADO confidence gating, profiles |
| Learning |
π NΓS |
MANTIDO nosso sistema completo |
| Memory |
π NΓS |
MANTIDO hierΓ‘rquica funcional |
ποΈ Arquitetura
HeranΓ§a Growth Forge v3.x
- β
LangGraph workflow
- β
Hierarchical managers (CEO β Managers β Agents)
- β
Validation loop (3x retry + escalate)
- β
Self-learning (LanceDB)
- β
Task decomposition + ICE scoring
Features do AIOS (portadas)
- β
Confidence Gating (0-1)
- β
Execution Profiles (yolo/interactive/preflight)
- β
Tech Stack Detection
- β
Recovery Robusto (4 nΓveis)
- β
Stuck Detection
π Execution Profiles
| Profile |
Confidence |
Quando Usar |
Comportamento |
| yolo |
β₯ 0.85 |
MudanΓ§as triviais, alta certeza |
Executa direto, sem confirmaΓ§Γ£o |
| interactive |
0.5 - 0.85 |
MudanΓ§as mΓ©dias (padrΓ£o) |
Pede confirmaΓ§Γ£o antes de aplicar |
| preflight |
< 0.5 |
MudanΓ§as crΓticas, baixa certeza |
Mostra diff, simula, sΓ³ aplica com OK explΓcito |
Override: Arquivos crΓticos (config, db, auth) forΓ§am preflight independente da confidence.
π‘οΈ Recovery System (do AIOS)
4 NΓveis de Fallback
- Retry simples β Tenta novamente com mesmo approach
- Retry com contexto β Adiciona erro anterior como contexto
- Approach alternativo β Busca soluΓ§Γ£o diferente no learning
- Rollback + escalate β Desfaz mudanΓ§as, pede ajuda humana
Stuck Detection
Detecta loops circulares: se o agent repetir a mesma aΓ§Γ£o 3x sem progresso, escala automaticamente.
Checkpoints
- Snapshot antes de cada task
- Git stash automΓ‘tico de mudanΓ§as uncommitted
- Restore point se pipeline falhar
π§ Estrutura de Swarms
DevForge (CEO)
βββ AnalysisManager
β βββ ContextAgent # Entende codebase, detecta stack
β βββ PlannerAgent # DecompΓ΅e goal em tasks com ICE
β βββ ReviewerAgent # Code review, detecta issues
βββ ExecutionManager
β βββ CoderAgent # Escreve/edita cΓ³digo
β βββ TestAgent # Cria/roda testes
β βββ RefactorAgent # RefatoraΓ§Γ£o, cleanup
βββ OpsManager
βββ GitAgent # Commits, branches, PRs
βββ DeployAgent # Build, deploy, rollback
βββ DebugAgent # AnΓ‘lise de erros, logs
π Workflow Principal
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β 1. GOAL INPUT β
β "Implement user authentication with JWT" β
βββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββββββββββ
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β 2. CONTEXT ANALYSIS (ContextAgent) β
β β’ Detecta stack: Node.js + Express + PostgreSQL β
β β’ Mapeia estrutura existente β
β β’ Identifica padrΓ΅es do projeto β
βββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββββββββββ
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β 3. TASK DECOMPOSITION (PlannerAgent) β
β β’ T1: Create User model (ICE: 8.0) β
β β’ T2: Implement JWT utils (ICE: 7.5) β
β β’ T3: Add auth middleware (ICE: 7.0) β
β β’ T4: Create routes (ICE: 6.5) β
β β’ T5: Write tests (ICE: 6.0) β
βββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββββββββββ
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β 4. EXECUTION LOOP (por task, ordem ICE) β
β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β CoderAgent executa β β
β β β β β
β β Confidence check (0.85+ = yolo, 0.5+ = ask, else sim) β β
β β β β β
β β TestAgent valida (testes passam?) β β
β β β β β
β β ReviewerAgent aprova? β β
β β β
β next task β β
β β β β retry (max 3x) β approach alt β escalate β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
βββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββββββββββ
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β 5. COMMIT & LEARN β
β β’ GitAgent: commit atΓ΄mico por task β
β β’ Learning: salva experiΓͺncia (success/failure) β
β β’ Recall: prΓ³ximas tasks similares usam contexto β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π
Sprints de ImplementaΓ§Γ£o
- Setup projeto, estrutura de pastas
- LangGraph workflow bΓ‘sico
- State management (TypedDict)
- ContextAgent + PlannerAgent
- CoderAgent com confidence gating
- TestAgent integrado
- ReviewerAgent
- Execution profiles (yolo/interactive/preflight)
- Self-learning (port do Growth Forge)
- Recovery robusto (4 nΓveis do AIOS)
- Stuck detection
- Checkpointing
- GitAgent (commits, branches)
- CLI interface
- Testes E2E
Total estimado: ~8-10 dias
Criado: 2026-02-17 | Baseado em: Growth Forge v3.4 + AIOS Analysis | Por: ArcosBot β‘