These tutorials are task-oriented. Each one starts from a working M31A install, builds something concrete, and ends with a verification step.
If you have not installed M31A yet, start with Installation, Authentication, and the Quickstart.
Catalog
| Tutorial | What you build | Time |
|---|---|---|
| Review a diff | A read-only, Plan Mode review workflow with a written report. | 10 min |
| Custom MCP server | A minimal stdio MCP server exposing one tool. | 20 min |
| Custom skill | A SKILL.md that the model activates on demand. | 15 min |
| Custom hook | A BeforeTool hook that logs and validates calls. | 20 min |
| Custom extension | An extension bundling a command, skill, MCP server, and hook. | 25 min |
| Headless CI | A CI job that reviews a diff and emits JSON. | 20 min |
| Parallel worktrees | Two isolated sessions whose results are merged. | 15 min |
| Custom provider | An OpenAI-compatible provider configured by environment and flags. | 15 min |
| Sandbox hardening | Layered trust, policies, containers, and proxy networking. | 25 min |
Choose by goal
Understand the agent first
- Review a diff — no configuration required.
- Read The agent loop to connect what you saw to the implementation.
Extend M31A
- Custom skill for reusable instructions.
- Custom MCP server for external tools and data.
- Custom hook for event-driven automation.
- Custom extension to ship them together.
Automate or isolate
- Headless CI for scripted runs.
- Parallel worktrees for concurrent tasks.
- Sandbox hardening for untrusted repositories.
Change the model backend
Conventions used here
Commands assume m31a is on your PATH. If you are running from a checkout, replace m31a with node bundle/m31a.js as described in Headless mode.
Settings examples go in ~/.m31a/settings.json for user scope or <project>/.m31a/settings.json for workspace scope. Do not commit secrets to either location. See Configuration.
Examples that involve shell commands or hooks should first be run in a throwaway directory or in plan mode. See Approval modes.
Next steps
- Pick a tutorial from the catalog.
- Keep the CLI reference and Settings reference open for exact flag names.