What's new in v0.4.0
All features are backward compatible — no breaking changes.
Staged process
Third orchestration mode: stages run in sequence, while tasks within a single stage run concurrently. The output of each stage feeds the following ones via Task.Context. Stages marked Optional continue on failure.
crew.Process = crewai.Staged
crew.Stages = []crewai.Stage{
{Name: "collect", Tasks: []*crewai.Task{researchA, researchB}},
{Name: "synthesize", Tasks: []*crewai.Task{write}},
}Agentic loop
Optional Plan → Execute → Evaluate → Refine cycle. Opt-in via Agent.Loop or Task.Loop. Supports independent evaluator, pass threshold, skip-plan, and rewrite-only refine.
agent.Loop = crewai.NewAgenticLoop(
crewai.WithMaxRefinements(3),
crewai.WithPassThreshold(80),
)New sentinels
ErrNoStagesErrEvaluationFailedErrInvalidEvaluation
Examples
go run ./examples/stagedgo run ./examples/agentic_loop(offline, mock LLM)
Docs
See CHANGELOG and the bilingual README / docs.
Full changelog: https://github.com/rhgs/crewai-go/blob/v0.4.0/CHANGELOG.md