Dev.to
6/15/2026

Building M31A: A Terminal-Native AI Coding Agent That Ships, Not Just Suggests
Short summary
M31A is a terminal-native AI coding agent written in Go that autonomously handles the complete development workflow: planning, execution, verification, and git commits. Using a six-phase architecture with LLM streaming, topological task scheduling, and a Bubble Tea TUI, it delivers end-to-end code ownership rather than suggestions. The design emphasizes clean separation of concerns across layers.
- •M31A is a Go-based autonomous coding agent, not a suggestion engine—it plans, executes, verifies, and commits changes end-to-end
- •Uses a six-layer architecture: TUI → Workflow Engine → Providers/Tools/Domain Packages → Infrastructure (git, logging, etc.)
- •Implements Kahn's algorithm for topological task sorting and Bubble Tea for terminal UI with 29 interactive screens
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



