Skip to content

These practices come from the way M31A's runtime actually behaves: it proposes tool calls, you authorize them, and every turn is recorded.

Give the agent a map, not a guess ​

  • Keep M31A.md short and specific: build commands, forbidden paths, review requirements, and naming conventions.
  • Add extra directories with --include-directories only when the task needs them; more context costs tokens.
  • Use /memory show to confirm which instructions are actually loaded.

Prefer narrow requests ​

text
Bad:  Fix the app.
Good: Fix the null check in packages/cli/src/commands/mcp/list.ts and add a
      regression test for an empty server list.

Narrow prompts produce narrower diffs, which are easier to approve and review.

Match the approval mode to the task ​

TaskSuggested mode
Exploring an unfamiliar repositoryplan or default
Focused edits with known toolsauto_edit
Throwaway sandbox experimentsyolo in a container

Cycle modes with Shift+Tab or start with --approval-mode. Do not use YOLO in a repository you do not trust.

Review before you accept ​

  • Read the tool call, not just the final answer.
  • Use /tools desc when a tool name is unfamiliar.
  • After an edit run the project's own checks; see /stats for the turn's tool usage.
  • If the direction is wrong, /rewind is cheaper than layering corrections.

Control context cost ​

  • Run /compress between phases of a long task.
  • Keep model.compressionThreshold tuned for your model's context window.
  • Avoid pasting entire log files when a filtered excerpt answers the question.
  • Use tools.shell settings to keep shell output readable.

Automate repeatable work ​

Keep secrets out of the loop ​

  • Export credentials as environment variables; never place them in M31A.md or committed settings.
  • Enable security.environmentVariableRedaction.enabled.
  • Review /export-session output before sharing it.

Work in isolation when it matters ​

  • Use --worktree for parallel or risky work.
  • Use container sandboxing for unfamiliar code.
  • Keep checkpoints enabled for multi-hour sessions.

Next steps ​

See Troubleshooting and the Tutorials index.

Built with VitePress. Powered by NVIDIA NIM.