Mental Model
Hexi is a deterministic execution shell around non-deterministic models.
Run pipeline
- Input task arrives.
- Repo context is collected (
git status, boundedgit diff). - Model emits ActionPlan JSON.
- Plan is validated.
- Actions execute through ports/adapters under policy.
- Review and done events are emitted.
Why this works
- Model creativity is constrained into a typed plan.
- Execution is bounded by policy and workspace guards.
- Event logs provide replayable operational evidence.
Failure model
- Invalid plan shape fails early.
- Disallowed command/path fails at execution boundary.
- Each failure emits structured
errorand terminaldoneevents.