Moon Inc.
Moon Inc. / Field notes

Designing reliable AI agents

Give an agent the smallest set of tools and permissions required for the job. State the inputs, permitted outputs, stop condition and what the agent must never do.

Last updated

  1. 01GoalStart with one job ↗
  2. 02PolicySeparate instructions from retrieved data ↗
  3. 03ToolRequire explicit approval ↗
  4. 04ReviewEvaluate recovery ↗
Select a stage to jump to the explanation and action steps.

How do you start with one job?

State the inputs, permitted outputs, stop condition and what the agent must never do. Use a simple workflow instead of an autonomous agent when the sequence is known. Related reading: intelligent systems, ai evaluation and release gates, privacy by design for digital products.

How do you separate instructions from retrieved data?

Treat documents, web pages and messages as untrusted input. Validate requested actions against the original user goal and a separate permission policy.

How do you require explicit approval?

Distinguish reading, drafting and executing. Require confirmation for payments, external communication or destructive changes, with a clear action summary.

How do you evaluate recovery?

Simulate malformed tool responses, permission denial, prompt injection and duplicate retries. Verify that the agent stops or requests human help instead of expanding its authority.

Decision checklist

  • Allowed tool inventory
  • Approval boundaries
  • Adversarial and failure tests