Skip to content

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 ​

TutorialWhat you buildTime
Review a diffA read-only, Plan Mode review workflow with a written report.10 min
Custom MCP serverA minimal stdio MCP server exposing one tool.20 min
Custom skillA SKILL.md that the model activates on demand.15 min
Custom hookA BeforeTool hook that logs and validates calls.20 min
Custom extensionAn extension bundling a command, skill, MCP server, and hook.25 min
Headless CIA CI job that reviews a diff and emits JSON.20 min
Parallel worktreesTwo isolated sessions whose results are merged.15 min
Custom providerAn OpenAI-compatible provider configured by environment and flags.15 min
Sandbox hardeningLayered trust, policies, containers, and proxy networking.25 min

Choose by goal ​

Understand the agent first

  1. Review a diff — no configuration required.
  2. Read The agent loop to connect what you saw to the implementation.

Extend M31A

  1. Custom skill for reusable instructions.
  2. Custom MCP server for external tools and data.
  3. Custom hook for event-driven automation.
  4. Custom extension to ship them together.

Automate or isolate

  1. Headless CI for scripted runs.
  2. Parallel worktrees for concurrent tasks.
  3. 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 ​

Built with VitePress. Powered by NVIDIA NIM.